diff --git a/DataBase/版本日志/HJGLDB_DS_2026-04-18_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-04-18_bwj.sql new file mode 100644 index 0000000..330d57d --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-04-18_bwj.sql @@ -0,0 +1,89 @@ +alter table HJGL_HotProessItem add PostHeatingDate datetime +go + + +ALTER PROC [dbo].[HJGL_sp_HeatTreatmentEstimateRecord] + @projectId NVARCHAR(50) = NULL, + @type NVARCHAR(50) = NULL +AS +/*ۺϷ*/ +SELECT + isoinfo.ProjectId + ,isoinfo.ISO_ID + ,isoinfo.ISO_IsoNo + ,ndtRate.NDTR_Name --ԽӺ + ,ISNULL(total_jot.total_jot,0) AS total_jot -- + ,ISNULL(total_bw1jot.total_bw1jot,0) AS total_bw1jot --ԽӺ + ,ISNULL(total_hotjot.total_hotjot ,0) AS total_hotjot --Ԥȴ + ,ISNULL(total_OKhotjot.total_OKhotjot ,0) AS total_OKhotjot --ȴϸ񺸿 + ,ISNULL(total_Trusthotjot.total_Trusthotjot ,0) AS total_Trusthotjot --ίȴ + ,ISNULL(total_Inputhotjot.total_Inputhotjot ,0) AS total_Inputhotjot --¼ȴ + ,ISNULL(total_hotjot.total_hotjot ,0)-ISNULL(total_OKhotjot.total_OKhotjot ,0) AS total_NotOKhotjot --ȴδϸ񺸿 + ,CEILING(ISNULL(total_bw1jot.total_bw1jot,0)*ndtRate.NDTR_Rate/100.00) AS maybe_bw1jot + --,CASE WHEN + --CAST(total_jot.total_jot AS DECIMAL(9,2))*ndtRate.NDTR_Rate/100>CAST((ISNULL(total_jot.total_jot,0)*ndtRate.NDTR_Rate/100) AS INT) + -- THEN CAST((ISNULL(total_jot.total_jot,0)*ndtRate.NDTR_Rate/100) AS INT)+1 + --ELSE CAST((ISNULL(total_jot.total_jot,0)*ndtRate.NDTR_Rate/100) AS INT) END + -- AS maybe_bw1jot --ԤƼͷ + ,ISNULL(postHeating_jot.postHeating_jot,0) AS postHeating_jot --Ⱥ +FROM HJGL_PW_IsoInfo AS isoinfo + --ԽӺ + LEFT JOIN HJGL_BS_WeldControl AS weldControl ON weldControl.ISC_ID=isoinfo.ISC_ID AND weldControl.ExecStandardId=isoinfo.ISO_Executive + LEFT JOIN HJGL_BS_NDTRate AS ndtRate ON ndtRate.NDTR_ID=weldControl.Joty_Rate + ---- + LEFT JOIN (SELECT COUNT(*) AS total_jot + ,HJGL_PW_JointInfo.ISO_ID + FROM HJGL_PW_JointInfo + GROUP BY HJGL_PW_JointInfo.ISO_ID) AS total_jot ON total_jot.ISO_ID =isoinfo.ISO_ID + ----ԽӺ + LEFT JOIN (SELECT COUNT(*) AS total_bw1jot + ,jointinfo.ISO_ID + FROM HJGL_PW_JointInfo AS jointinfo + WHERE jointinfo.JOTY_ID='1e2704c8-b088-4389-9adf-9d89ceffe85b' + GROUP BY jointinfo.ISO_ID) AS total_bw1jot ON total_bw1jot.ISO_ID =isoinfo.ISO_ID + --Ԥȴ + LEFT JOIN (SELECT COUNT(*) AS total_hotjot + ,jointinfo.ISO_ID + FROM HJGL_PW_JointInfo AS jointinfo + WHERE jointinfo.IS_Proess='1' and jointinfo.ProessTypes like '%'+@type+'%' + GROUP BY jointinfo.ISO_ID) AS total_hotjot ON total_hotjot.ISO_ID =isoinfo.ISO_ID + --ȴϸ񺸿 + LEFT JOIN (SELECT COUNT(*) AS total_OKhotjot + ,jointinfo.ISO_ID + FROM HJGL_PW_JointInfo AS jointinfo + WHERE jointinfo.IS_Proess='1' and jointinfo.ProessTypes like '%'+@type+'%' + and ((select count(*) from HJGL_CH_HotProessResult r where r.JOT_ID=jointinfo.JOT_ID and r.ProessTypes=@type and r.IsOK=1)>0 or (select count(*) from HJGL_CH_HardTestResult r where r.JOT_ID=jointinfo.JOT_ID and r.IsOK=1)>0) + GROUP BY jointinfo.ISO_ID) AS total_OKhotjot ON total_OKhotjot.ISO_ID =isoinfo.ISO_ID + --ίȴ + LEFT JOIN (SELECT COUNT(*) AS total_Trusthotjot + ,jointinfo.ISO_ID + FROM HJGL_PW_JointInfo AS jointinfo + WHERE jointinfo.IS_Proess='1' and jointinfo.ProessTypes like '%'+@type+'%' + and (select count(*) from HJGL_CH_HotProessTrustItem r where r.JOT_ID=jointinfo.JOT_ID and r.ProessTypes=@type)>0 + GROUP BY jointinfo.ISO_ID) AS total_Trusthotjot ON total_Trusthotjot.ISO_ID =isoinfo.ISO_ID + --¼ȴ + --LEFT JOIN (SELECT COUNT(*) AS total_Inputhotjot + -- ,jointinfo.ISO_ID + -- FROM HJGL_PW_JointInfo AS jointinfo + -- WHERE jointinfo.IS_Proess='1' and jointinfo.ProessTypes like '%'+@type+'%' + -- and (select count(*) from HJGL_HotProessItem r where r.JOT_ID=jointinfo.JOT_ID and r.ProessTypes=@type and r.RecordChartNo is not null and r.RecordChartNo!='')>0 + -- GROUP BY jointinfo.ISO_ID) AS total_Inputhotjot ON total_Inputhotjot.ISO_ID =isoinfo.ISO_ID + LEFT JOIN (SELECT COUNT(*) AS total_Inputhotjot + ,jointinfo.ISO_ID + FROM HJGL_HotProessItem AS r + left join HJGL_PW_JointInfo jointinfo on jointinfo.JOT_ID = r.JOT_ID + WHERE r.ProessTypes=@type --and r.RecordChartNo is not null and r.RecordChartNo!='' + GROUP BY jointinfo.ISO_ID) AS total_Inputhotjot ON total_Inputhotjot.ISO_ID =isoinfo.ISO_ID + + LEFT JOIN (SELECT COUNT(*) AS postHeating_jot + ,jointinfo.ISO_ID + FROM HJGL_HotProessItem AS r + left join HJGL_PW_JointInfo jointinfo on jointinfo.JOT_ID = r.JOT_ID + WHERE r.ProessTypes=@type and r.PostHeatingDate is not null + GROUP BY jointinfo.ISO_ID) AS postHeating_jot ON postHeating_jot.ISO_ID =isoinfo.ISO_ID + +WHERE (isoinfo.ProjectId = @projectId OR @projectId IS NULL) +ORDER BY isoinfo.ISO_IsoNo + + +GO \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/File/Excel/热处理数据录入导入模板.xlsx b/HJGL_DS/FineUIPro.Web/File/Excel/热处理数据录入导入模板.xlsx index 0f12aa6..3f749c8 100644 Binary files a/HJGL_DS/FineUIPro.Web/File/Excel/热处理数据录入导入模板.xlsx and b/HJGL_DS/FineUIPro.Web/File/Excel/热处理数据录入导入模板.xlsx differ diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user index 80f7761..e3436b8 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,4 +1,4 @@ - + true diff --git a/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx b/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx index 92ee250..42d3278 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx +++ b/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx @@ -159,6 +159,14 @@ SortField="JOT_JointDesc" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px"> + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.cs index be6eba9..46ca73f 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.cs @@ -137,7 +137,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage left join dbo.HJGL_CH_HardTestReport re on item.HardTestReportId=re.HardTestReportId WHERE item.JOT_ID=HotProessItem.JOT_ID AND item.HotProessTrustId=HotProessItem.HotProessTrustId and (re.FileType='R' or re.FileType is null))) AS HardnessReportNo, - HotProessItem.HotProessItemId,HotProessItem.SortIndex,HotProessItem.ProessTypes,JointInfo.JOT_JointDesc,isnull(HotProessItem.Remark,'') as Remark + HotProessItem.HotProessItemId,HotProessItem.SortIndex,HotProessItem.ProessTypes,JointInfo.JOT_JointDesc,isnull(HotProessItem.Remark,'') as Remark,HotProessItem.PostHeatingDate FROM dbo.HJGL_HotProessItem AS HotProessItem LEFT JOIN dbo.HJGL_PW_JointInfo AS JointInfo ON JointInfo.JOT_ID = HotProessItem.JOT_ID LEFT JOIN dbo.HJGL_PW_IsoInfo AS IsoInfo ON JointInfo.ISO_ID = IsoInfo.ISO_ID @@ -199,7 +199,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage left join dbo.HJGL_CH_HardTestReport re on item.HardTestReportId=re.HardTestReportId WHERE item.JOT_ID=HotProessItem.JOT_ID AND item.HotProessTrustId=HotProessItem.HotProessTrustId and (re.FileType='R' or re.FileType is null))) AS HardnessReportNo, - HotProessItem.ProessTypes,JointInfo.JOT_JointDesc,isnull(HotProessItem.Remark,'') as Remark + HotProessItem.ProessTypes,JointInfo.JOT_JointDesc,isnull(HotProessItem.Remark,'') as Remark,HotProessItem.PostHeatingDate FROM dbo.HJGL_HotProessItem AS HotProessItem LEFT JOIN dbo.HJGL_PW_JointInfo AS JointInfo ON JointInfo.JOT_ID = HotProessItem.JOT_ID LEFT JOIN dbo.HJGL_PW_IsoInfo AS IsoInfo ON JointInfo.ISO_ID = IsoInfo.ISO_ID @@ -238,7 +238,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage // 2.获取当前分页数据 //var table = this.GetPagedDataTable(Grid1, tb1); Grid1.RecordCount = tb.Rows.Count; - tb = GetFilteredTable(Grid1.FilteredData, tb); + //tb = GetFilteredTable(Grid1.FilteredData, tb); var table = this.GetPagedDataTable(Grid1, tb); Grid1.DataSource = table; Grid1.DataBind(); @@ -989,7 +989,8 @@ namespace FineUIPro.Web.HJGL.HotProessManage /// private void SaveData() { - bool isEmpty = false;//是否为空 + bool isEmptyPostHeatingDate = false;//后热日期是否为空 + bool isEmpty = false;//热处理数据是否为空 string isoidLog = string.Empty; //是否同一管线标记 int i = 0; //检验数量 int flag = 0; //打印标记 @@ -1139,13 +1140,21 @@ namespace FineUIPro.Web.HJGL.HotProessManage isEmpty = true; } newHotProessItem.Remark = values.Value("Remark").ToString(); - if (!isEmpty) + if (!string.IsNullOrEmpty(values.Value("PostHeatingDate").ToString())) + { + newHotProessItem.PostHeatingDate = Funs.GetNewDateTime(values.Value("PostHeatingDate").ToString()); + } + else + { + isEmptyPostHeatingDate = true; + } + if (!isEmpty || !isEmptyPostHeatingDate) { Funs.DB.SubmitChanges(); } else { - Alert.ShowInTop("测温点编号、热处理温度℃(要求)、热处理温度℃(实际)、恒温时间h(要求)、恒温时间h(实际)、热处理日期、记录曲线图编号、热电偶数量、加热范围、保温范围、保温厚度、热处理开始时间、热处理完成时间不能为空!", MessageBoxIcon.Warning); + Alert.ShowInTop("后热日期或测温点编号、热处理温度℃(要求)、热处理温度℃(实际)、恒温时间h(要求)、恒温时间h(实际)、热处理日期、记录曲线图编号、热电偶数量、加热范围、保温范围、保温厚度、热处理开始时间、热处理完成时间不能为空!", MessageBoxIcon.Warning); return; } //} @@ -1369,7 +1378,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage // oldHardTestReport2.TestCount = i; // BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(oldHardTestReport2); //} - if (!isEmpty) + if (!isEmpty || !isEmptyPostHeatingDate) { ShowNotify("提交成功!", MessageBoxIcon.Success); } diff --git a/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.designer.cs index bf362f3..b4fa553 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.HotProessManage { - - - public partial class HotProessManageEdit { - +namespace FineUIPro.Web.HJGL.HotProessManage +{ + + + public partial class HotProessManageEdit + { + /// /// Head1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlHead Head1; - + /// /// form1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelLeftRegion 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelLeftRegion; - + /// /// Toolbar5 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar5; - + /// /// drpProjectId 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpProjectId; - + /// /// tvControlItem 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree tvControlItem; - + /// /// panelCenterRegion 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Toolbar2 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// hdHotProessId 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdHotProessId; - + /// /// ToolbarFill1 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// rblIsPrint 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.RadioButtonList rblIsPrint; - + /// /// btnPrint 控件。 /// @@ -137,7 +139,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPrint; - + /// /// btnPrintNew 控件。 /// @@ -146,7 +148,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPrintNew; - + /// /// btnSave 控件。 /// @@ -155,7 +157,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// SimpleForm1 控件。 /// @@ -164,7 +166,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// txtHotProessNo 控件。 /// @@ -173,7 +175,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtHotProessNo; - + /// /// txtUnit 控件。 /// @@ -182,7 +184,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtUnit; - + /// /// txtProessMethod 控件。 /// @@ -191,7 +193,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtProessMethod; - + /// /// txtProessEquipment 控件。 /// @@ -200,7 +202,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtProessEquipment; - + /// /// Grid1 控件。 /// @@ -209,7 +211,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar3 控件。 /// @@ -218,7 +220,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar3; - + /// /// drpIsoNo 控件。 /// @@ -227,7 +229,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpIsoNo; - + /// /// txtSearchNo 控件。 /// @@ -236,7 +238,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtSearchNo; - + /// /// ToolbarFill2 控件。 /// @@ -245,7 +247,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill2; - + /// /// hdItemsString 控件。 /// @@ -254,7 +256,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdItemsString; - + /// /// btnImport 控件。 /// @@ -263,7 +265,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnImport; - + /// /// btnCopy 控件。 /// @@ -272,7 +274,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnCopy; - + /// /// ckSelect 控件。 /// @@ -281,7 +283,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button ckSelect; - + /// /// btnOut 控件。 /// @@ -290,7 +292,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnOut; - + /// /// lbJOT_JointNo 控件。 /// @@ -299,7 +301,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lbJOT_JointNo; - + /// /// Label8 控件。 /// @@ -308,7 +310,16 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label8; - + + /// + /// txtPostHeatingDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtPostHeatingDate; + /// /// nbPointCount 控件。 /// @@ -317,7 +328,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox nbPointCount; - + /// /// txtRequiredT 控件。 /// @@ -326,7 +337,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtRequiredT; - + /// /// txtActualT 控件。 /// @@ -335,7 +346,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtActualT; - + /// /// txtRequestTime 控件。 /// @@ -344,7 +355,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtRequestTime; - + /// /// txtActualTime 控件。 /// @@ -353,7 +364,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtActualTime; - + /// /// txtHotProessDate 控件。 /// @@ -362,7 +373,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtHotProessDate; - + /// /// txtRecordChartNo 控件。 /// @@ -371,7 +382,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtRecordChartNo; - + /// /// txtThermocouplesNum 控件。 /// @@ -380,7 +391,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtThermocouplesNum; - + /// /// txtHeatingRange 控件。 /// @@ -389,7 +400,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtHeatingRange; - + /// /// txtInsulationRange 控件。 /// @@ -398,7 +409,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtInsulationRange; - + /// /// txtInsulationThickness 控件。 /// @@ -407,7 +418,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtInsulationThickness; - + /// /// txtHotStartDate 控件。 /// @@ -416,7 +427,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtHotStartDate; - + /// /// txtHotEndDate 控件。 /// @@ -425,7 +436,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtHotEndDate; - + /// /// txtRemark 控件。 /// @@ -434,7 +445,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtRemark; - + /// /// Label1 控件。 /// @@ -443,7 +454,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label1; - + /// /// ToolbarSeparator1 控件。 /// @@ -452,7 +463,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -461,7 +472,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -470,7 +481,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -479,7 +490,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Window5 控件。 /// @@ -488,7 +499,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window5; - + /// /// Window2 控件。 /// @@ -497,7 +508,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window2; - + /// /// Window4 控件。 /// @@ -506,7 +517,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window4; - + /// /// Window3 控件。 /// @@ -515,7 +526,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window3; - + /// /// Window6 控件。 /// @@ -524,7 +535,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window6; - + /// /// Menu1 控件。 /// @@ -533,7 +544,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnAdd 控件。 /// @@ -542,7 +553,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnAdd; - + /// /// btnDelete 控件。 /// diff --git a/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEditImport.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEditImport.aspx.cs index c1fddff..5678fb7 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEditImport.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEditImport.aspx.cs @@ -80,6 +80,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage protected void btnAudit_Click(object sender, EventArgs e) { + bool isEmptyPostHeatingDate = false; string message = string.Empty; errorInfos = string.Empty; try @@ -178,14 +179,33 @@ namespace FineUIPro.Web.HJGL.HotProessManage { errorInfos += (i + 2) + "行, [施工号、管线号和焊口号] 不能为空|"; } - - if (ds.Tables[0].Rows[i]["测温点编号"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["测温点编号"].ToString())) + if(ds.Tables[0].Rows[i]["后热日期"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["后热日期"].ToString())) { - + try + { + DateTime date = Convert.ToDateTime(ds.Tables[0].Rows[i]["后热日期"].ToString()); + isEmptyPostHeatingDate = true; + } + catch (Exception) + { + errorInfos += (i + 2) + "行, [热处理开始时间] 必须为日期型|"; + } } else { - errorInfos += (i + 2) + "行, [测温点编号] 不能为空|"; + isEmptyPostHeatingDate = false; + errorInfos += (i + 2) + "行, [后热日期]或热处理数据,不能为空|"; + } + if (ds.Tables[0].Rows[i]["测温点编号"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["测温点编号"].ToString())) + { + + } + else + { + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [测温点编号] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["热处理温度℃(要求)"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热处理温度℃(要求)"].ToString())) @@ -193,7 +213,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [热处理温度℃(要求)] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [热处理温度℃(要求)] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["热处理温度℃(实际)"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热处理温度℃(实际)"].ToString())) @@ -201,7 +224,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [热处理温度℃(实际)] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [热处理温度℃(实际)] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["恒温时间h(要求)"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["恒温时间h(要求)"].ToString())) @@ -209,7 +235,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [恒温时间h(要求)] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [恒温时间h(要求)] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["恒温时间h(实际)"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["恒温时间h(实际)"].ToString())) @@ -217,7 +246,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [恒温时间h(实际)] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [恒温时间h(实际)] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["热处理日期"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热处理日期"].ToString())) @@ -228,12 +260,15 @@ namespace FineUIPro.Web.HJGL.HotProessManage } catch (Exception) { - errorInfos += (i + 2) + "行, [热处理日期] 必须为日期型|"; + errorInfos += (i + 2) + "行, [热处理日期] 必须为日期型|"; } } else { - errorInfos += (i + 2) + "行, [热处理日期] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [热处理日期] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["记录曲线图编号"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["记录曲线图编号"].ToString())) @@ -241,7 +276,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [记录曲线图编号] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [记录曲线图编号] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["热电偶数量/个"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热电偶数量/个"].ToString())) @@ -249,7 +287,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [热电偶数量/个] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [热电偶数量/个] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["加热范围/mm"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["加热范围/mm"].ToString())) @@ -257,7 +298,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [加热范围/mm] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [加热范围/mm] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["保温范围/mm"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["保温范围/mm"].ToString())) @@ -265,7 +309,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [保温范围/mm] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [保温范围/mm] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["保温厚度/mm"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["保温厚度/mm"].ToString())) @@ -273,7 +320,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [保温厚度/mm] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [保温厚度/mm] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["热处理开始时间"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热处理开始时间"].ToString())) @@ -290,7 +340,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [热处理开始时间] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [热处理开始时间] 不能为空|"; + } } if (ds.Tables[0].Rows[i]["热处理完成时间"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热处理完成时间"].ToString())) @@ -307,7 +360,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { - errorInfos += (i + 2) + "行, [热处理完成时间] 不能为空|"; + if (isEmptyPostHeatingDate == false) + { + errorInfos += (i + 2) + "行, [热处理完成时间] 不能为空|"; + } } #endregion } @@ -334,6 +390,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage } else { + isEmptyPostHeatingDate = false; errorInfos = string.Empty; ShowNotify("数据审核成功!请点击导入数据!", MessageBoxIcon.Success); } @@ -447,6 +504,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage newItem.HotProessTrustId = item.HotProessTrustId; newItem.ProessTypes = item.ProessTypes; newItem.SortIndex = item.SortIndex; + newItem.PostHeatingDate = Funs.GetNewDateTime(ds.Tables[0].Rows[i]["后热日期"].ToString()); newItem.PointCount = ds.Tables[0].Rows[i]["测温点编号"].ToString(); newItem.RequiredT = ds.Tables[0].Rows[i]["热处理温度℃(要求)"].ToString(); newItem.ActualT = ds.Tables[0].Rows[i]["热处理温度℃(实际)"].ToString(); @@ -545,19 +603,19 @@ namespace FineUIPro.Web.HJGL.HotProessManage int a = anchor.Row1; int b = anchor.Col1; string jotId = dic[a]; - if (b == 16) + if (b == 17) { jotId += "1"; } - else if (b == 17) + else if (b == 18) { jotId += "2"; } - else if (b == 18) + else if (b == 19) { jotId += "3"; } - else if (b == 19) + else if (b == 20) { jotId += "4"; } diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PointManage.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PointManage.aspx.cs index e9a5d97..a02d9e7 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PointManage.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PointManage.aspx.cs @@ -1339,26 +1339,50 @@ namespace FineUIPro.Web.HJGL.WeldingManage { var joint = BLL.HJGL_PW_JointInfoService.GetJointInfoByJotID(d.JOT_ID); if (joint.IS_Proess == "1") //需要热处理 - { + { if (joint.HotProessResultOK == false || joint.HotProessResultOK == null) { EventArg = EventArg + "焊口" + joint.JOT_JointNo + "热处理未合格,"; } else { - if (!string.IsNullOrEmpty(joint.STE_ID)) + var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID); + if (material.IsCracking == true) { - //材质有延迟裂纹倾向,热处理合格未满24小时提醒 - var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID); - if (material.IsCracking == true && (DateTime.Now - joint.HotResultDate.Value).Days < 1) + var hotProessItem = (from x in Funs.DB.HJGL_HotProessItem where x.JOT_ID == joint.JOT_ID select x).FirstOrDefault(); + if (hotProessItem != null) { - EventArg = EventArg + "焊口" + joint.JOT_JointNo + "热处理合格未满24小时,"; + if (hotProessItem.PostHeatingDate.HasValue || (!string.IsNullOrEmpty(hotProessItem.PointCount) + && !string.IsNullOrEmpty(hotProessItem.RequiredT) && !string.IsNullOrEmpty(hotProessItem.ActualT) + && !string.IsNullOrEmpty(hotProessItem.RequestTime) && !string.IsNullOrEmpty(hotProessItem.ActualTime) + && hotProessItem.HotProessDate.HasValue && !string.IsNullOrEmpty(hotProessItem.RecordChartNo) + && !string.IsNullOrEmpty(hotProessItem.ThermocouplesNum) && !string.IsNullOrEmpty(hotProessItem.HeatingRange) + && !string.IsNullOrEmpty(hotProessItem.InsulationRange) && !string.IsNullOrEmpty(hotProessItem.InsulationThickness) + && hotProessItem.HotStartDate.HasValue && hotProessItem.HotEndDate.HasValue)) + { + + } + else + { + EventArg = EventArg + "焊口" + joint.JOT_JointNo + "后热日期未填写或热处理数据未录入,请录入数据后进行委托,"; + } } } + + //if (!string.IsNullOrEmpty(joint.STE_ID)) + //{ + // //材质有延迟裂纹倾向,热处理合格未满24小时提醒 + // var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID); + // if (material.IsCracking == true && (DateTime.Now - joint.HotResultDate.Value).Days < 1) + // { + // EventArg = EventArg + "焊口" + joint.JOT_JointNo + "热处理合格未满24小时,"; + // } + //} } } } } + if (EventArg != string.Empty) { EventArg = EventArg.Substring(0, EventArg.Length - 1); @@ -1539,15 +1563,38 @@ namespace FineUIPro.Web.HJGL.WeldingManage } else { - if (!string.IsNullOrEmpty(joint.STE_ID)) + var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID); + if (material.IsCracking == true) { - //材质有延迟裂纹倾向,热处理合格未满24小时提醒 - var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID); - if (material.IsCracking == true && (DateTime.Now - joint.HotResultDate.Value).Days < 1) + var hotProessItem = (from x in Funs.DB.HJGL_HotProessItem where x.JOT_ID == joint.JOT_ID select x).FirstOrDefault(); + if (hotProessItem != null) { - EventArg = EventArg + "焊口" + joint.JOT_JointNo + "热处理合格未满24小时,"; + if (hotProessItem.PostHeatingDate.HasValue || (!string.IsNullOrEmpty(hotProessItem.PointCount) + && !string.IsNullOrEmpty(hotProessItem.RequiredT) && !string.IsNullOrEmpty(hotProessItem.ActualT) + && !string.IsNullOrEmpty(hotProessItem.RequestTime) && !string.IsNullOrEmpty(hotProessItem.ActualTime) + && hotProessItem.HotProessDate.HasValue && !string.IsNullOrEmpty(hotProessItem.RecordChartNo) + && !string.IsNullOrEmpty(hotProessItem.ThermocouplesNum) && !string.IsNullOrEmpty(hotProessItem.HeatingRange) + && !string.IsNullOrEmpty(hotProessItem.InsulationRange) && !string.IsNullOrEmpty(hotProessItem.InsulationThickness) + && hotProessItem.HotStartDate.HasValue && hotProessItem.HotEndDate.HasValue)) + { + + } + else + { + EventArg = EventArg + "焊口" + joint.JOT_JointNo + "后热日期未填写或热处理数据未录入,请录入数据后进行委托,"; + } } } + //if (!string.IsNullOrEmpty(joint.STE_ID)) + //{ + // //材质有延迟裂纹倾向,热处理合格未满24小时提醒 + // var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID); + // if (material.IsCracking == true && (DateTime.Now - joint.HotResultDate.Value).Days < 1) + // { + // EventArg = EventArg + "焊口" + joint.JOT_JointNo + "热处理合格未满24小时,"; + // } + //} + } } } diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/HeatTreatmentEstimateRecord.aspx b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/HeatTreatmentEstimateRecord.aspx index a301707..d3f1999 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/HeatTreatmentEstimateRecord.aspx +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/HeatTreatmentEstimateRecord.aspx @@ -77,22 +77,25 @@ FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="180px"> + FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="120px"> + FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="130px"> + FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="150px"> + FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="160px"> + + + FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="160px"> + FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="160px"> diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/HeatTreatmentEstimateRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/HeatTreatmentEstimateRecord.aspx.cs index 7fa8b15..f33f8c2 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/HeatTreatmentEstimateRecord.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/HeatTreatmentEstimateRecord.aspx.cs @@ -52,6 +52,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport int total_Trusthotjot = 0; int total_Inputhotjot = 0; int total_NotOKhotjot = 0; + int postHeating_jot = 0; //int maybe_bw1jot = 0; foreach (DataRow row in tb.Rows) { @@ -63,6 +64,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport total_Trusthotjot += Convert.ToInt32(row["total_Trusthotjot"]); total_Inputhotjot += Convert.ToInt32(row["total_Inputhotjot"]); total_NotOKhotjot += Convert.ToInt32(row["total_NotOKhotjot"]); + postHeating_jot += Convert.ToInt32(row["postHeating_jot"]); } JObject summary = new JObject(); @@ -75,7 +77,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport summary.Add("total_Trusthotjot", total_Trusthotjot); summary.Add("total_Inputhotjot", total_Inputhotjot); summary.Add("total_NotOKhotjot", total_NotOKhotjot); - //summary.Add("maybe_bw1jot", maybe_bw1jot); + summary.Add("postHeating_jot", postHeating_jot); Grid1.SummaryData = summary; } @@ -233,6 +235,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport sb.AppendFormat("{0}", this.Grid1.SummaryData.GetValue("total_bw1jot").ToString()); sb.AppendFormat("{0}", this.Grid1.SummaryData.GetValue("total_hotjot").ToString()); sb.AppendFormat("{0}", this.Grid1.SummaryData.GetValue("total_Trusthotjot").ToString()); + sb.AppendFormat("{0}", this.Grid1.SummaryData.GetValue("postHeating_jot").ToString()); sb.AppendFormat("{0}", this.Grid1.SummaryData.GetValue("total_Inputhotjot").ToString()); sb.AppendFormat("{0}", this.Grid1.SummaryData.GetValue("total_OKhotjot").ToString()); sb.AppendFormat("{0}", this.Grid1.SummaryData.GetValue("total_NotOKhotjot").ToString()); diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index 3f81ed7..30834b7 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx index fd808e1..da12d87 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx @@ -19,7 +19,6 @@ - diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx.cs b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx.cs index 0c919f0..6e701d8 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx.cs @@ -34,7 +34,6 @@ namespace FineUIPro.Web.WeldMat.UsingPlan if (!IsPostBack) { this.ProjectId = Request.Params["projectId"]; - this.lblWED_ID.Text = Request.Params["wed_Id"]; ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); this.drpWeldType.DataTextField = "WeldTypeName"; @@ -54,40 +53,40 @@ namespace FineUIPro.Web.WeldMat.UsingPlan private void BindGrid() { string strSql = string.Empty; - bool isQua = false; - if (!string.IsNullOrEmpty(this.lblWED_ID.Text.Trim())) - { - var qualifiedProject = BLL.HJGL_WelderQualifiedProjectService.GetWelderQualifiedProjectByWedId(this.lblWED_ID.Text.Trim()); - if (qualifiedProject.Count > 0) - { - //当材质类型为FeⅢ并且资质后面三个数中间的为11时可领用FeⅢ无保护气体焊丝 - qualifiedProject = qualifiedProject.Where(e => e.MaterialType.Contains("FeⅢ") && e.QualifiedProjectCode.Contains("/11/")).ToList(); - if (qualifiedProject.Count > 0) - { - isQua = true; - } - } - } + //bool isQua = false; + //if (!string.IsNullOrEmpty(this.lblWED_ID.Text.Trim())) + //{ + // var qualifiedProject = BLL.HJGL_WelderQualifiedProjectService.GetWelderQualifiedProjectByWedId(this.lblWED_ID.Text.Trim()); + // if (qualifiedProject.Count > 0) + // { + // //当材质类型为FeⅢ并且资质后面三个数中间的为11时可领用FeⅢ无保护气体焊丝 + // qualifiedProject = qualifiedProject.Where(e => e.MaterialType.Contains("FeⅢ") && e.QualifiedProjectCode.Contains("/11/")).ToList(); + // if (qualifiedProject.Count > 0) + // { + // isQua = true; + // } + // } + //} - if (isQua) - { - strSql = @"SELECT weld.WeldId, weld.WeldCode, weld.WeldName, weld.WeldSpec,weld.WeldTypeId,weld.SteelType, + //if (isQua) + //{ + strSql = @"SELECT weld.WeldId, weld.WeldCode, weld.WeldName, weld.WeldSpec,weld.WeldTypeId,weld.SteelType, WeldType.WeldTypeName,WeldType.WeldUnit FROM dbo.Weld_WeldInfo weld LEFT JOIN Weld_WeldType AS weldType ON weldType.WeldTypeId =weld.WeldTypeId WHERE 1 = 1 and (weld.IsLock is null or weld.IsLock=0) and (select SUM(ISNULL(stockIn.Amount,0)) from Weld_StockIn stockIn where UnitStoreId=@UnitStoreId and WeldId=weld.WeldId)>0"; - } - else - { - strSql = @"SELECT weld.WeldId, weld.WeldCode, weld.WeldName, weld.WeldSpec,weld.WeldTypeId,weld.SteelType, - WeldType.WeldTypeName,WeldType.WeldUnit - FROM dbo.Weld_WeldInfo weld - LEFT JOIN Weld_WeldType AS weldType ON weldType.WeldTypeId =weld.WeldTypeId - WHERE 1 = 1 and (weld.IsLock is null or weld.IsLock=0) - and weld.SteelType != 'FeⅢ无保护气体' - and (select SUM(ISNULL(stockIn.Amount,0)) from Weld_StockIn stockIn where UnitStoreId=@UnitStoreId and WeldId=weld.WeldId)>0"; - } + //} + //else + //{ + // strSql = @"SELECT weld.WeldId, weld.WeldCode, weld.WeldName, weld.WeldSpec,weld.WeldTypeId,weld.SteelType, + // WeldType.WeldTypeName,WeldType.WeldUnit + // FROM dbo.Weld_WeldInfo weld + // LEFT JOIN Weld_WeldType AS weldType ON weldType.WeldTypeId =weld.WeldTypeId + // WHERE 1 = 1 and (weld.IsLock is null or weld.IsLock=0) + // and weld.SteelType != 'FeⅢ无保护气体' + // and (select SUM(ISNULL(stockIn.Amount,0)) from Weld_StockIn stockIn where UnitStoreId=@UnitStoreId and WeldId=weld.WeldId)>0"; + //} List listStr = new List(); //listStr.Add(new SqlParameter("@ProjectId", this.ProjectId)); listStr.Add(new SqlParameter("@UnitStoreId", Request.Params["unitStoreId"])); diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx.designer.cs index e6d3376..7a079f4 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/ShowPlanWeld.aspx.designer.cs @@ -68,15 +68,6 @@ namespace FineUIPro.Web.WeldMat.UsingPlan /// protected global::FineUIPro.Toolbar Toolbar2; - /// - /// lblWED_ID 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label lblWED_ID; - /// /// txtName 控件。 /// diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlanEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlanEdit.aspx.cs index d41eb95..4887ef8 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlanEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlanEdit.aspx.cs @@ -349,7 +349,24 @@ namespace FineUIPro.Web.WeldMat.UsingPlan } } } - } + if (!string.IsNullOrEmpty(weld.SteelType) && weld.SteelType == "FeⅢ无保护气体") + { + if (!string.IsNullOrEmpty(this.hdUsingMan1.Text.Trim())) + { + var qualifiedProject = BLL.HJGL_WelderQualifiedProjectService.GetWelderQualifiedProjectByWedId(this.hdUsingMan1.Text.Trim()); + if (qualifiedProject.Count > 0) + { + //当材质类型为FeⅢ并且资质后面三个数中间的为11时可领用FeⅢ无保护气体焊丝 + qualifiedProject = qualifiedProject.Where(e => e.MaterialType.Contains("FeⅢ") && e.QualifiedProjectCode.Contains("/11/")).ToList(); + if (qualifiedProject.Count == 0) + { + Alert.ShowInTop("无FeⅢ无保护气体资质,不可领用!", MessageBoxIcon.Warning); + return; + } + } + } + } + } Model.Weld_UsingPlan usingPlan = new Model.Weld_UsingPlan(); usingPlan.UnitStoreId = this.drpUnitStore.SelectedValue; @@ -578,13 +595,8 @@ namespace FineUIPro.Web.WeldMat.UsingPlan { Alert.ShowInTop("请选择焊材库!", MessageBoxIcon.Warning); return; - } - if (string.IsNullOrEmpty(this.hdUsingMan1.Text.Trim())) - { - Alert.ShowInTop("请选择领料人!", MessageBoxIcon.Warning); - return; - } - string window = String.Format("ShowPlanWeld.aspx?projectId={0}&unitStoreId={1}&wed_Id={2}", drpProjectId.SelectedValue, this.drpUnitStore.SelectedValue, hdUsingMan1.Text.Trim(), "编辑 - "); + } + string window = String.Format("ShowPlanWeld.aspx?projectId={0}&unitStoreId={1}", drpProjectId.SelectedValue, this.drpUnitStore.SelectedValue, "编辑 - "); PageContext.RegisterStartupScript(Window1.GetSaveStateReference(this.hdWeldId.ClientID) + Window1.GetShowReference(window)); } diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs index e1eef6c..39d9dcb 100644 --- a/HJGL_DS/Model/Model.cs +++ b/HJGL_DS/Model/Model.cs @@ -44079,6 +44079,8 @@ namespace Model private System.Nullable _HotEndDate; + private System.Nullable _PostHeatingDate; + private EntityRef _HJGL_PW_JointInfo; #region 可扩展性方法定义 @@ -44131,6 +44133,8 @@ namespace Model partial void OnHotStartDateChanged(); partial void OnHotEndDateChanging(System.Nullable value); partial void OnHotEndDateChanged(); + partial void OnPostHeatingDateChanging(System.Nullable value); + partial void OnPostHeatingDateChanged(); #endregion public HJGL_HotProessItem() @@ -44603,6 +44607,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PostHeatingDate", DbType="DateTime")] + public System.Nullable PostHeatingDate + { + get + { + return this._PostHeatingDate; + } + set + { + if ((this._PostHeatingDate != value)) + { + this.OnPostHeatingDateChanging(value); + this.SendPropertyChanging(); + this._PostHeatingDate = value; + this.SendPropertyChanged("PostHeatingDate"); + this.OnPostHeatingDateChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_HotProessItem_HJGL_PW_JointInfo", Storage="_HJGL_PW_JointInfo", ThisKey="JOT_ID", OtherKey="JOT_ID", IsForeignKey=true)] public HJGL_PW_JointInfo HJGL_PW_JointInfo { diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user index 28be9c4..8cd7f1f 100644 --- a/HJGL_DS/WebAPI/WebAPI.csproj.user +++ b/HJGL_DS/WebAPI/WebAPI.csproj.user @@ -1,4 +1,4 @@ - + Release|Any CPU