Compare commits

...

2 Commits

Author SHA1 Message Date
毕文静 ca6008fff6 20250408 材料标签打印 2025-04-08 09:41:45 +08:00
毕文静 3f229e710a 20250408 材料标签打印 2025-04-08 09:40:22 +08:00
11 changed files with 31 additions and 15 deletions

Binary file not shown.

View File

@ -162,7 +162,7 @@
</site> </site>
<site name="FineUIPro.Web" id="2"> <site name="FineUIPro.Web" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool"> <application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="D:\工作\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web" /> <virtualDirectory path="/" physicalPath="E:\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web" />
</application> </application>
<bindings> <bindings>
<binding protocol="http" bindingInformation="*:64304:localhost" /> <binding protocol="http" bindingInformation="*:64304:localhost" />
@ -170,7 +170,7 @@
</site> </site>
<site name="WebAPI" id="3"> <site name="WebAPI" id="3">
<application path="/" applicationPool="Clr4IntegratedAppPool"> <application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="D:\工作\鼎盛\HJGL_DS\HJGL_DS\WebAPI" /> <virtualDirectory path="/" physicalPath="E:\鼎盛\HJGL_DS\HJGL_DS\WebAPI" />
</application> </application>
<bindings> <bindings>
<binding protocol="http" bindingInformation="*:32379:localhost" /> <binding protocol="http" bindingInformation="*:32379:localhost" />

View File

@ -232,10 +232,8 @@ namespace FineUIPro.Web.HJGL.WeldingReport
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_jot").ToString()); sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_jot").ToString());
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_bw1jot").ToString()); sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_bw1jot").ToString());
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_hotjot").ToString()); sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_hotjot").ToString());
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_Trusthotjot").ToString()); sb.AppendFormat("<td></td>");
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_Inputhotjot").ToString()); sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("maybe_bw1jot").ToString());
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_OKhotjot").ToString());
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_NotOKhotjot").ToString());
sb.Append("</tr>"); sb.Append("</tr>");
sb.Append("</table>"); sb.Append("</table>");

View File

@ -11,7 +11,7 @@
<FineUIPro DebugMode="false" Theme="Cupertino"/> <FineUIPro DebugMode="false" Theme="Cupertino"/>
<appSettings> <appSettings>
<!--连接字符串--> <!--连接字符串-->
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/> <add key="ConnectionString" value="Server=.\SQL2019;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
<!--系统名称--> <!--系统名称-->
<add key="SystemName" value="诺必达焊接管理系统"/> <add key="SystemName" value="诺必达焊接管理系统"/>
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/> <add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>

View File

@ -1086,11 +1086,11 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
} }
if (weldTypeName == "焊丝" || weldTypeName == "焊条") if (weldTypeName == "焊丝" || weldTypeName == "焊条")
{ {
number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "根" : ""; number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "根" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0.#") + "根" : "";
} }
else else
{ {
number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "Kg" : ""; number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "Kg" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0#") + "Kg" : "";
} }
if (!string.IsNullOrEmpty(material.StoreMan)) if (!string.IsNullOrEmpty(material.StoreMan))
{ {

View File

@ -280,11 +280,11 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
} }
if (weldTypeName == "焊丝" || weldTypeName == "焊条") if (weldTypeName == "焊丝" || weldTypeName == "焊条")
{ {
number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "根" : ""; number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "根" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0.#") + "根" : "";
} }
else else
{ {
number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "Kg" : ""; number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "Kg" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0#") + "Kg" : "";
} }
if (!string.IsNullOrEmpty(material.StoreMan)) if (!string.IsNullOrEmpty(material.StoreMan))
{ {

View File

@ -263,11 +263,11 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
} }
if (weldTypeName == "焊丝" || weldTypeName == "焊条") if (weldTypeName == "焊丝" || weldTypeName == "焊条")
{ {
number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "根" : ""; number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "根" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0.#") + "根" : "";
} }
else else
{ {
number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "Kg" : ""; number = material.Amount.HasValue ? material.Amount.Value.ToString("0.#") + "Kg" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0#") + "Kg" : "";
} }
if (!string.IsNullOrEmpty(material.StoreMan)) if (!string.IsNullOrEmpty(material.StoreMan))

View File

@ -10,6 +10,23 @@ namespace FineUIPro.Web.common.ProjectSet
{ {
public partial class SelectWelder : PageBase public partial class SelectWelder : PageBase
{ {
#region
/// <summary>
/// 项目id
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region #region
/// <summary> /// <summary>
/// 加载页面 /// 加载页面
@ -20,6 +37,7 @@ namespace FineUIPro.Web.common.ProjectSet
{ {
if (!IsPostBack) if (!IsPostBack)
{ {
this.ProjectId = Request.Params["projectId"];
BindGrid(); BindGrid();
//InitTreeMenu();//加载树 //InitTreeMenu();//加载树
} }
@ -58,7 +76,7 @@ namespace FineUIPro.Web.common.ProjectSet
WHERE WED_ID NOT IN(SELECT WED_ID FROM Project_Welder WHERE ProjectId =@ProjectId) WHERE WED_ID NOT IN(SELECT WED_ID FROM Project_Welder WHERE ProjectId =@ProjectId)
AND IsOAM=1"; AND IsOAM=1";
List<SqlParameter> listStr = new List<SqlParameter>(); List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"])); listStr.Add(new SqlParameter("@ProjectId", ProjectId));
if (!string.IsNullOrEmpty(txtWeldCode.Text)) if (!string.IsNullOrEmpty(txtWeldCode.Text))
{ {
@ -122,7 +140,7 @@ namespace FineUIPro.Web.common.ProjectSet
{ {
Model.Project_Welder newProjectWelder = new Model.Project_Welder(); Model.Project_Welder newProjectWelder = new Model.Project_Welder();
newProjectWelder.WED_ID = Grid1.DataKeys[i][0].ToString(); newProjectWelder.WED_ID = Grid1.DataKeys[i][0].ToString();
newProjectWelder.ProjectId = Request.Params["projectId"]; newProjectWelder.ProjectId = this.ProjectId;
newProjectWelder.IsSelected = true; newProjectWelder.IsSelected = true;
newProjectWelder.IsApprove = true; newProjectWelder.IsApprove = true;
newProjectWelder.ProjectWelderId = SQLHelper.GetNewID(typeof(Model.Project_Welder)); newProjectWelder.ProjectWelderId = SQLHelper.GetNewID(typeof(Model.Project_Welder));