diff --git a/HJGL_ZH/BLL/HJGL/HotHardManage/HJGL_CH_HardTestReportService.cs b/HJGL_ZH/BLL/HJGL/HotHardManage/HJGL_CH_HardTestReportService.cs index 03d0865..de4d9e3 100644 --- a/HJGL_ZH/BLL/HJGL/HotHardManage/HJGL_CH_HardTestReportService.cs +++ b/HJGL_ZH/BLL/HJGL/HotHardManage/HJGL_CH_HardTestReportService.cs @@ -236,6 +236,7 @@ namespace BLL newCH_HardTestReport.STE_ID = cH_Trust.STE_ID; newCH_HardTestReport.TrustName = cH_Trust.TrustName; newCH_HardTestReport.ReportName = cH_Trust.ReportName; + newCH_HardTestReport.ExecStandard = cH_Trust.ExecStandard; db.SubmitChanges(); } @@ -327,6 +328,7 @@ namespace BLL newTrustItem.HotProessTrustId = trustItem.HotProessTrustId; newTrustItem.Flag = trustItem.Flag; newTrustItem.IsShow = trustItem.IsShow; + newTrustItem.CheckDate = trustItem.CheckDate; db.HJGL_CH_HardTestReportItem.InsertOnSubmit(newTrustItem); db.SubmitChanges(); } @@ -346,6 +348,7 @@ namespace BLL newItem.Remark = trustItem.Remark; newItem.Flag = trustItem.Flag; newItem.NewFlag = trustItem.NewFlag; + newItem.CheckDate = trustItem.CheckDate; db.SubmitChanges(); } } diff --git a/HJGL_ZH/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs b/HJGL_ZH/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs index df08e2f..d53642e 100644 --- a/HJGL_ZH/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs +++ b/HJGL_ZH/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs @@ -1313,6 +1313,24 @@ namespace BLL return name; } + public static string ConvertJointCodeString(string jotIdList) + { + string name = string.Empty; + string[] list = jotIdList.Split(','); + foreach (var item in list) + { + if (!string.IsNullOrEmpty(item)) + { + name += GetJointInfoByJotID(item).JOT_JointNo + ","; + } + } + if (!string.IsNullOrEmpty(name)) + { + name = name.Substring(0, name.LastIndexOf(",")); + } + return name; + } + /// /// 根据焊口号、管线ID、项目Id获取焊口信息 /// diff --git a/HJGL_ZH/BLL/WeldMat/Stock/StockInService.cs b/HJGL_ZH/BLL/WeldMat/Stock/StockInService.cs index e90fcbd..6662128 100644 --- a/HJGL_ZH/BLL/WeldMat/Stock/StockInService.cs +++ b/HJGL_ZH/BLL/WeldMat/Stock/StockInService.cs @@ -196,6 +196,18 @@ namespace BLL } } + public static void WarrantybookSure(string stockInId, bool? isSure, string sureMan) + { + Model.SGGLDB db = Funs.DB; + Model.Weld_StockIn newStockIn = db.Weld_StockIn.FirstOrDefault(e => e.StockInId == stockInId); + if (newStockIn != null) + { + newStockIn.IsSure= isSure; + newStockIn.SureMan= sureMan; + db.SubmitChanges(); + } + } + /// /// 根据主键删除焊材入库 /// diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/CommissionRepairPrint.aspx b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/CommissionRepairPrint.aspx index fed2113..8b8cc8f 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/CommissionRepairPrint.aspx +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/CommissionRepairPrint.aspx @@ -16,7 +16,7 @@ Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox"> + DataKeyNames="ISO_ID" AllowSorting="true" SortField="Record_PrintDate" + SortDirection="DESC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true"> diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/CommissionRepairPrint.aspx.cs b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/CommissionRepairPrint.aspx.cs index 9dcfb00..2b53ec1 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/CommissionRepairPrint.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/CommissionRepairPrint.aspx.cs @@ -67,11 +67,21 @@ namespace FineUIPro.Web.ContinuousPrint } } - string strSql = @"select a.CH_RepairID,a.TrustItemID,a.Record_PrintDate,a.CH_RepairNo,a.CH_PrintDate,b.ProjectCode,b.ProjectName,b.ShortName,b.StartDate,b.EndDate from HJGL_CH_Repair as a inner join Base_Project as b on a.ProjectId=b.ProjectId where a.ProjectId= @ProjectId" + str; + string strSql = @"select a.CH_RepairID,a.TrustItemID,a.Record_PrintDate,a.CH_RepairNo,a.CH_PrintDate,b.ProjectCode,b.ProjectName,b.ShortName,b.StartDate,b.EndDate + from HJGL_CH_Repair as a + inner join Base_Project as b on a.ProjectId=b.ProjectId + where a.ProjectId= @ProjectId" + str; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); SqlParameter[] parameter = listStr.ToArray(); - Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + DataView view = dt.DefaultView; + if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0) + { + view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection); + } + DataTable table = view.ToTable(); + Grid2.DataSource = table; Grid2.DataBind(); Grid2.SelectAllRows(); } @@ -107,10 +117,12 @@ namespace FineUIPro.Web.ContinuousPrint /// protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) { - Grid1.SortDirection = e.SortDirection; - Grid1.SortField = e.SortField; BindGrid(); } + protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid1(this.Grid1.SelectedRowID); + } #endregion #region 选择加载 diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestOrderPrint.aspx b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestOrderPrint.aspx index b5c304f..efedd17 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestOrderPrint.aspx +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestOrderPrint.aspx @@ -16,7 +16,7 @@ Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox"> + SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true"> diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestOrderPrint.aspx.cs b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestOrderPrint.aspx.cs index fc195ec..756def7 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestOrderPrint.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestOrderPrint.aspx.cs @@ -57,7 +57,14 @@ namespace FineUIPro.Web.ContinuousPrint List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); SqlParameter[] parameter = listStr.ToArray(); - Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + DataView view = dt.DefaultView; + if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0) + { + view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection); + } + DataTable table = view.ToTable(); + Grid2.DataSource = table; Grid2.DataBind(); Grid2.SelectAllRows(); } @@ -93,10 +100,13 @@ namespace FineUIPro.Web.ContinuousPrint /// protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) { - Grid1.SortDirection = e.SortDirection; - Grid1.SortField = e.SortField; BindGrid(); } + + protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid1(this.Grid1.SelectedRowID); + } #endregion #region 选择加载 diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestReportPrint.aspx b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestReportPrint.aspx index 9eca888..1f84b25 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestReportPrint.aspx +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestReportPrint.aspx @@ -16,7 +16,7 @@ Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox"> + SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true"> diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestReportPrint.aspx.cs b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestReportPrint.aspx.cs index 3f3e3f6..036a4c7 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestReportPrint.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessTestReportPrint.aspx.cs @@ -58,7 +58,14 @@ namespace FineUIPro.Web.ContinuousPrint List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); SqlParameter[] parameter = listStr.ToArray(); - Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + DataView view = dt.DefaultView; + if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0) + { + view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection); + } + DataTable table = view.ToTable(); + Grid2.DataSource = table; Grid2.DataBind(); Grid2.SelectAllRows(); } @@ -94,10 +101,14 @@ namespace FineUIPro.Web.ContinuousPrint /// protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) { - Grid1.SortDirection = e.SortDirection; - Grid1.SortField = e.SortField; BindGrid(); } + + protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid1(this.Grid1.SelectedRowID); + } + #endregion #region 选择加载 diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx index bb1dcfb..d78e63e 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx @@ -16,7 +16,7 @@ Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox"> + SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true"> diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs index a3bce6a..43514d1 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs @@ -57,7 +57,14 @@ namespace FineUIPro.Web.ContinuousPrint List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); SqlParameter[] parameter = listStr.ToArray(); - Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + DataView view = dt.DefaultView; + if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0) + { + view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection); + } + DataTable table = view.ToTable(); + Grid2.DataSource = table; Grid2.DataBind(); Grid2.SelectAllRows(); } @@ -93,10 +100,13 @@ namespace FineUIPro.Web.ContinuousPrint /// protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) { - Grid1.SortDirection = e.SortDirection; - Grid1.SortField = e.SortField; BindGrid(); } + + protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid1(this.Grid1.SelectedRowID); + } #endregion #region 选择加载 diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx index 67df708..3f1feb5 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx @@ -16,7 +16,7 @@ Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox"> listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); SqlParameter[] parameter = listStr.ToArray(); - Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + DataView view = dt.DefaultView; + if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0) + { + view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection); + } + DataTable table = view.ToTable(); + Grid2.DataSource = table; Grid2.DataBind(); Grid2.SelectAllRows(); } @@ -115,8 +123,6 @@ namespace FineUIPro.Web.ContinuousPrint /// protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) { - Grid1.SortDirection = e.SortDirection; - Grid1.SortField = e.SortField; BindGrid(); } diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestRecordtPrint.aspx b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestRecordtPrint.aspx index ed94e97..d6e0d91 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestRecordtPrint.aspx +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestRecordtPrint.aspx @@ -16,7 +16,7 @@ Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox"> + SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true"> @@ -112,22 +112,22 @@ FieldType="Date" Renderer="Date" HeaderTextAlign="Center" TextAlign="Left" Width="90px"> + SortField="ISO_IsoNo" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px"> + SortField="JOT_JointNo" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px"> + SortField="JOT_JointDesc" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px"> + SortField="NDT_Code" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px"> + SortField="Record_Printer" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px"> + SortField="Record_PrintDate" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px"> diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestRecordtPrint.aspx.cs b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestRecordtPrint.aspx.cs index 03fece2..675cbcb 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestRecordtPrint.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestRecordtPrint.aspx.cs @@ -130,7 +130,14 @@ namespace FineUIPro.Web.ContinuousPrint LEFT JOIN HJGL_BS_NDTType AS ndt ON ndt.NDT_ID = v.CH_NDTMethod LEFT JOIN Base_Project AS project ON project.ProjectId = v.ProjectId"; SqlParameter[] parameter = listStr.ToArray(); - Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + DataView view = dt.DefaultView; + if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0) + { + view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection); + } + DataTable table = view.ToTable(); + Grid2.DataSource = table; Grid2.DataBind(); Grid2.SelectAllRows(); } @@ -166,10 +173,13 @@ namespace FineUIPro.Web.ContinuousPrint /// protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) { - Grid1.SortDirection = e.SortDirection; - Grid1.SortField = e.SortField; BindGrid(); } + + protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid1(this.Grid1.SelectedRowID); + } #endregion #region 选择加载 diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx index 60cdc00..adf284c 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx @@ -16,7 +16,7 @@ Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox"> + AllowSorting="true" SortField="VICheckDate" + SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true"> diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.cs b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.cs index dfdbeaa..ba965c3 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.cs @@ -66,7 +66,14 @@ namespace FineUIPro.Web.ContinuousPrint List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); SqlParameter[] parameter = listStr.ToArray(); - Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + DataView view = dt.DefaultView; + if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0) + { + view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection); + } + DataTable table = view.ToTable(); + Grid2.DataSource = table; Grid2.DataBind(); Grid2.SelectAllRows(); } @@ -102,10 +109,12 @@ namespace FineUIPro.Web.ContinuousPrint /// protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) { - Grid1.SortDirection = e.SortDirection; - Grid1.SortField = e.SortField; BindGrid(); } + protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid1(this.Grid1.SelectedRowID); + } #endregion #region 选择加载 diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingRecordPrint.aspx b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingRecordPrint.aspx index 60a6816..1d5ae47 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingRecordPrint.aspx +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingRecordPrint.aspx @@ -16,7 +16,7 @@ Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox"> + SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true"> diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingRecordPrint.aspx.cs b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingRecordPrint.aspx.cs index c67bebc..2234186 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingRecordPrint.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/WeldingRecordPrint.aspx.cs @@ -51,7 +51,14 @@ namespace FineUIPro.Web.ContinuousPrint List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); SqlParameter[] parameter = listStr.ToArray(); - Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + DataView view = dt.DefaultView; + if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0) + { + view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection); + } + DataTable table = view.ToTable(); + Grid2.DataSource = table; Grid2.DataBind(); Grid2.SelectAllRows(); @@ -88,10 +95,12 @@ namespace FineUIPro.Web.ContinuousPrint /// protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) { - Grid1.SortDirection = e.SortDirection; - Grid1.SortField = e.SortField; BindGrid(); } + protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid1(this.Grid1.SelectedRowID); + } #endregion #region 选择加载 diff --git a/HJGL_ZH/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_ZH/FineUIPro.Web/FineUIPro.Web.csproj index fcd0dcc..babee87 100644 --- a/HJGL_ZH/FineUIPro.Web/FineUIPro.Web.csproj +++ b/HJGL_ZH/FineUIPro.Web/FineUIPro.Web.csproj @@ -1115,6 +1115,7 @@ + @@ -5828,6 +5829,13 @@ DetectionPoint.aspx + + JointInfoBatchModity.aspx + ASPXCodeBehind + + + JointInfoBatchModity.aspx + JointInfoOut.aspx ASPXCodeBehind diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/MTReportEdit.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/MTReportEdit.aspx.cs index 9b790f0..68957bb 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/MTReportEdit.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/MTReportEdit.aspx.cs @@ -310,14 +310,15 @@ namespace FineUIPro.Web.HJGL.CheckManage if (mtReport != null) { this.TestingReportPrintId = mtReport.TestingReportPrintId; - if (!string.IsNullOrEmpty(mtReport.ReportCode) && mtReport.ReportCode.Length > 3) - { - this.txtMTReportCode.Text = mtReport.ReportCode.Substring(3);//报告编号 - } - else - { - this.txtMTReportCode.Text = mtReport.ReportCode; - } + //if (!string.IsNullOrEmpty(mtReport.ReportCode) && mtReport.ReportCode.Length > 3) + //{ + // this.txtMTReportCode.Text = mtReport.ReportCode.Substring(3);//报告编号 + //} + //else + //{ + // this.txtMTReportCode.Text = mtReport.ReportCode; + //} + this.txtMTReportCode.Text = mtReport.ReportCode; this.hdReportCode.Text = mtReport.ReportCode; this.txtSurfaceState.Text = mtReport.MT_SurfaceState;//表面状态 @@ -342,8 +343,8 @@ namespace FineUIPro.Web.HJGL.CheckManage } else { - this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId3", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, "MT-" + pro.TestEngineeringCode + "-"); - this.txtMTReportCode.Text = this.hdReportCode.Text.Substring(3); + this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId3", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, pro.TestEngineeringCode + "-MT-"); + this.txtMTReportCode.Text = this.hdReportCode.Text; } BindGrid(); } diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/PTReportEdit.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/PTReportEdit.aspx.cs index 688f677..a5f881b 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/PTReportEdit.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/PTReportEdit.aspx.cs @@ -267,14 +267,15 @@ namespace FineUIPro.Web.HJGL.CheckManage if (ptReport != null) { this.TestingReportPrintId = ptReport.TestingReportPrintId; - if (!string.IsNullOrEmpty(ptReport.ReportCode) && ptReport.ReportCode.Length > 3) - { - this.txtPTReportCode.Text = ptReport.ReportCode.Substring(3);//报告编号 - } - else - { - this.txtPTReportCode.Text = ptReport.ReportCode; - } + //if (!string.IsNullOrEmpty(ptReport.ReportCode) && ptReport.ReportCode.Length > 3) + //{ + // this.txtPTReportCode.Text = ptReport.ReportCode.Substring(3);//报告编号 + //} + //else + //{ + // this.txtPTReportCode.Text = ptReport.ReportCode; + //} + this.txtPTReportCode.Text = ptReport.ReportCode; this.hdReportCode.Text = ptReport.ReportCode; //this.txtContractUnit.Text = ptReport.ContractUnitId;//承包单位 @@ -299,8 +300,8 @@ namespace FineUIPro.Web.HJGL.CheckManage } else { - this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId3", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, "PT-" + pro.TestEngineeringCode + "-"); - this.txtPTReportCode.Text = this.hdReportCode.Text.Substring(3); + this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId3", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, pro.TestEngineeringCode + "-PT-"); + this.txtPTReportCode.Text = this.hdReportCode.Text; this.txtContractUnit.Text = "镇海石化建安工程有限公司"; } BindGrid(); diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/RTReportEdit.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/RTReportEdit.aspx.cs index adfb9ad..d05c17b 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/RTReportEdit.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/RTReportEdit.aspx.cs @@ -339,15 +339,16 @@ namespace FineUIPro.Web.HJGL.CheckManage if (rtReport != null) { this.TestingReportPrintId = rtReport.TestingReportPrintId; - if (!string.IsNullOrEmpty(rtReport.ReportCode) && rtReport.ReportCode.Length > 3) - { - this.txtRTReportCode.Text = rtReport.ReportCode.Substring(3); - } - else - { - this.txtRTReportCode.Text = rtReport.ReportCode; - } + //if (!string.IsNullOrEmpty(rtReport.ReportCode) && rtReport.ReportCode.Length > 3) + //{ + // this.txtRTReportCode.Text = rtReport.ReportCode.Substring(3); + //} + //else + //{ + // this.txtRTReportCode.Text = rtReport.ReportCode; + //} + this.txtRTReportCode.Text = rtReport.ReportCode; this.hdReportCode.Text = rtReport.ReportCode; this.txtTechnicalGrade.Text = rtReport.RT_TechnicalGrade; @@ -391,7 +392,7 @@ namespace FineUIPro.Web.HJGL.CheckManage else { int maxCode = 0; - string prefix = "RT-" + pro.TestEngineeringCode + "-"; + string prefix = pro.TestEngineeringCode + "-RT-"; int prefixLeng = prefix.Length + 1; string sqlstr = "SELECT MAX(CONVERT(INT, SUBSTRING(ReportCode,@prefixLeng,LEN(ReportCode)))) FROM HJGL_CH_TestingReportPrint WHERE ProjectId=@ProjectId AND ReportCode LIKE @prefix"; List listStr = new List(); @@ -406,13 +407,13 @@ namespace FineUIPro.Web.HJGL.CheckManage } if (maxCode < 999) { - this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId3", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, "RT-" + pro.TestEngineeringCode + "-"); + this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId3", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, pro.TestEngineeringCode + "-RT-"); } else { - this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeThreeToFour", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, "RT-" + pro.TestEngineeringCode + "-"); + this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeThreeToFour", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, pro.TestEngineeringCode + "-RT-"); } - this.txtRTReportCode.Text = this.hdReportCode.Text.Substring(3); + this.txtRTReportCode.Text = this.hdReportCode.Text; this.txtTubeVoltage.Text = " kv"; } BindGrid(); diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/TestingReportPrint.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/TestingReportPrint.aspx.cs index 3bd9a85..e99a732 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/TestingReportPrint.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/TestingReportPrint.aspx.cs @@ -500,7 +500,8 @@ namespace FineUIPro.Web.HJGL.CheckManage string reportCode = string.Empty; if (!string.IsNullOrEmpty(rtReport.ReportCode) && rtReport.ReportCode.Length > 3) { - reportCode = rtReport.ReportCode.Substring(3); + //reportCode = rtReport.ReportCode.Substring(3); + reportCode = rtReport.ReportCode; } string unitName = string.Empty; if (iso != null) @@ -540,24 +541,24 @@ namespace FineUIPro.Web.HJGL.CheckManage } if (ndtType.NDT_Code == "RT") { - code = dateStr + "-RT-" + reportCode + "-" + unitName + "-" + projectCode + "-" + projectName + "(" + iso.ISO_IsoNo + ")-" + (tb.Rows.Count - 1).ToString(); + code = dateStr + "-" + reportCode + "-" + unitName + "-" + projectCode + "-" + projectName + "(" + iso.ISO_IsoNo + ")-" + (tb.Rows.Count - 1).ToString() + "-" + userName; PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("FileCode.aspx?code={0}", HttpUtility.UrlEncodeUnicode(code), "编辑 - "))); } - else if (ndtType.NDT_Code == "PT") + else { - code = dateStr + "-PT-" + reportCode + "-" + unitName + "-" + projectCode + "-" + projectName + "(" + iso.ISO_IsoNo + ")-" + userName; - PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("FileCode.aspx?code={0}", HttpUtility.UrlEncodeUnicode(code), "编辑 - "))); - } - else if (ndtType.NDT_Code == "MT") - { - code = dateStr + "-MT-" + reportCode + "-" + unitName + "-" + projectCode + "-" + projectName + "(" + iso.ISO_IsoNo + ")-" + userName; - PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("FileCode.aspx?code={0}", HttpUtility.UrlEncodeUnicode(code), "编辑 - "))); - } - else if (ndtType.NDT_Code == "UT") - { - code = dateStr + "-UT-" + reportCode + "-" + unitName + "-" + projectCode + "-" + projectName + "(" + iso.ISO_IsoNo + ")-" + userName; + code = dateStr + "-" + reportCode + "-" + unitName + "-" + projectCode + "-" + projectName + "(" + iso.ISO_IsoNo + ")-" + userName + "-" + jointDesc + "-" + (tb.Rows.Count - 1).ToString(); PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("FileCode.aspx?code={0}", HttpUtility.UrlEncodeUnicode(code), "编辑 - "))); } + //else if (ndtType.NDT_Code == "MT") + //{ + // code = dateStr + "-MT-" + reportCode + "-" + unitName + "-" + projectCode + "-" + projectName + "(" + iso.ISO_IsoNo + ")-" + userName; + // PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("FileCode.aspx?code={0}", HttpUtility.UrlEncodeUnicode(code), "编辑 - "))); + //} + //else if (ndtType.NDT_Code == "UT") + //{ + // code = dateStr + "-UT-" + reportCode + "-" + unitName + "-" + projectCode + "-" + projectName + "(" + iso.ISO_IsoNo + ")-" + userName; + // PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("FileCode.aspx?code={0}", HttpUtility.UrlEncodeUnicode(code), "编辑 - "))); + //} } else { diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/UTReportEdit.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/UTReportEdit.aspx.cs index 3f71273..42a531a 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/UTReportEdit.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/CheckManage/UTReportEdit.aspx.cs @@ -316,14 +316,15 @@ namespace FineUIPro.Web.HJGL.CheckManage if (utReport != null) { this.TestingReportPrintId = utReport.TestingReportPrintId; - if (!string.IsNullOrEmpty(utReport.ReportCode) && utReport.ReportCode.Length > 3) - { - this.txtUTReportCode.Text = utReport.ReportCode.Substring(3);//报表编号 - } - else - { - this.txtUTReportCode.Text = utReport.ReportCode; - } + //if (!string.IsNullOrEmpty(utReport.ReportCode) && utReport.ReportCode.Length > 3) + //{ + // this.txtUTReportCode.Text = utReport.ReportCode.Substring(3);//报表编号 + //} + //else + //{ + // this.txtUTReportCode.Text = utReport.ReportCode; + //} + this.txtUTReportCode.Text = utReport.ReportCode; this.hdReportCode.Text = utReport.ReportCode; //this.txtContractUnit.Text = utReport.ContractUnitId;//承包单位 @@ -349,8 +350,8 @@ namespace FineUIPro.Web.HJGL.CheckManage } else { - this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId3", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, "UT-" + pro.TestEngineeringCode + "-"); - this.txtUTReportCode.Text = this.hdReportCode.Text.Substring(3); + this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId3", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, pro.TestEngineeringCode + "-UT-"); + this.txtUTReportCode.Text = this.hdReportCode.Text; this.txtContractUnit.Text = "镇海石化建安工程有限公司"; this.txtSurfaceState.Text = "机械打磨"; this.txtProbeType.Text = "2.5MHZ10×10K2"; diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx index 07b915a..78c867f 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx +++ b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx @@ -57,6 +57,7 @@ + @@ -146,6 +147,10 @@ + + diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx.cs index b1d8a58..17cf57b 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx.cs @@ -307,7 +307,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage SelectList.Add(Grid1.DataKeys[rowIndex][0] + "," + Grid1.DataKeys[rowIndex][1]); } string strSql = @"select * from dbo.HJGL_View_CH_HardTestReportItemSet Item -where Item.ProjectId=@ProjectId and HardTestReportId is null "; + where Item.ProjectId=@ProjectId and HardTestReportId is null "; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID)); if (this.drpIsoNo.SelectedValue != BLL.Const._Null) @@ -320,7 +320,7 @@ where Item.ProjectId=@ProjectId and HardTestReportId is null "; Grid1.RecordCount = tb.Rows.Count; - tb = GetFilteredTable(Grid1.FilteredData, tb); + //tb = GetFilteredTable(Grid1.FilteredData, tb); // 2.获取当前排序(如不分页要调用这个排序方法) //var table = this.GetSortTable(Grid1, tb); // 2.获取当前分页数据 @@ -378,34 +378,44 @@ where Item.ProjectId=@ProjectId and HardTestReportId is null "; /// protected void btnSave_Click(object sender, EventArgs e) { - JArray mergedData = Grid1.GetMergedData(); - string jot_id = string.Empty, hardTestReportId = string.Empty, hardTestReportItemId = string.Empty, hardTestReportItemId2 = string.Empty, hardTestReportItemId3 = string.Empty, isoidLog = string.Empty, jointIdLog = string.Empty; - foreach (JObject mergedRow in mergedData) + if (!string.IsNullOrEmpty(this.txtCheckDate.Text)) { - string status = mergedRow.Value("status"); - JObject values = mergedRow.Value("values"); - int rowIndex = mergedRow.Value("index"); - jot_id = Grid1.DataKeys[rowIndex][3].ToString(); - hardTestReportItemId = Grid1.DataKeys[rowIndex][0].ToString(); - hardTestReportItemId2 = Grid1.DataKeys[rowIndex][1].ToString(); - hardTestReportItemId3 = Grid1.DataKeys[rowIndex][2].ToString(); - Model.HJGL_PW_JointInfo joint = BLL.HJGL_PW_JointInfoService.GetJointInfoByJotID(jot_id); - Model.HJGL_PW_IsoInfo iso = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(joint.ISO_ID); - Model.HJGL_CH_HardTestReportItem item1 = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportItemByID(hardTestReportItemId); - item1.HardNessValue = Funs.GetNewInt(values.Value("HardNessValue1").ToString()); - item1.Remark = values.Value("Remark").ToString(); - BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReportItem(item1); - Model.HJGL_CH_HardTestReportItem item2 = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportItemByID(hardTestReportItemId2); - item2.HardNessValue = Funs.GetNewInt(values.Value("HardNessValue2").ToString()); - item2.Remark = values.Value("Remark").ToString(); - BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReportItem(item2); - Model.HJGL_CH_HardTestReportItem item3 = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportItemByID(hardTestReportItemId3); - item3.HardNessValue = Funs.GetNewInt(values.Value("HardNessValue3").ToString()); - item3.Remark = values.Value("Remark").ToString(); - BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReportItem(item3); + JArray mergedData = Grid1.GetModifiedData();//.GetMergedData(); + string jot_id = string.Empty, hardTestReportId = string.Empty, hardTestReportItemId = string.Empty, hardTestReportItemId2 = string.Empty, hardTestReportItemId3 = string.Empty, isoidLog = string.Empty, jointIdLog = string.Empty; + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + int rowIndex = mergedRow.Value("index"); + jot_id = Grid1.DataKeys[rowIndex][3].ToString(); + hardTestReportItemId = Grid1.DataKeys[rowIndex][0] != null ? Grid1.DataKeys[rowIndex][0].ToString() : null; + hardTestReportItemId2 = Grid1.DataKeys[rowIndex][1] != null ? Grid1.DataKeys[rowIndex][1].ToString() : null; + hardTestReportItemId3 = Grid1.DataKeys[rowIndex][2] != null ? Grid1.DataKeys[rowIndex][2].ToString() : null; + Model.HJGL_PW_JointInfo joint = BLL.HJGL_PW_JointInfoService.GetJointInfoByJotID(jot_id); + Model.HJGL_PW_IsoInfo iso = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(joint.ISO_ID); + Model.HJGL_CH_HardTestReportItem item1 = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportItemByID(hardTestReportItemId); + item1.HardNessValue = Funs.GetNewInt(values.Value("HardNessValue1")); + item1.Remark = values.Value("Remark") != null ? values.Value("Remark").ToString() : null; + item1.CheckDate = Convert.ToDateTime(txtCheckDate.Text); + BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReportItem(item1); + Model.HJGL_CH_HardTestReportItem item2 = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportItemByID(hardTestReportItemId2); + item2.HardNessValue = Funs.GetNewInt(values.Value("HardNessValue2")); + item2.Remark = values.Value("Remark") != null ? values.Value("Remark").ToString() : null; + item2.CheckDate = Convert.ToDateTime(txtCheckDate.Text); + BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReportItem(item2); + Model.HJGL_CH_HardTestReportItem item3 = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportItemByID(hardTestReportItemId3); + item3.HardNessValue = Funs.GetNewInt(values.Value("HardNessValue3")); + item3.Remark = values.Value("Remark") != null ? values.Value("Remark").ToString() : null; + item3.CheckDate = Convert.ToDateTime(txtCheckDate.Text); + BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReportItem(item3); + } + ShowNotify("提交成功!", MessageBoxIcon.Success); + BindGrid(); + } + else + { + ShowNotify("请选择检测日期!", MessageBoxIcon.Warning); } - ShowNotify("提交成功!", MessageBoxIcon.Success); - BindGrid(); } #endregion } diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx.designer.cs b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx.designer.cs index 9bf8ab9..cda08fb 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx.designer.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.HotHardManage { - - - public partial class HardReportSet { - +namespace FineUIPro.Web.HJGL.HotHardManage +{ + + + public partial class HardReportSet + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelLeftRegion 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelLeftRegion; - + /// /// Toolbar2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// drpProjectId 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpProjectId; - + /// /// tvControlItem 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree tvControlItem; - + /// /// panelCenterRegion 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Toolbar3 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar3; - + /// /// ToolbarFill1 控件。 /// @@ -101,7 +103,16 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + + /// + /// txtCheckDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCheckDate; + /// /// btnSave 控件。 /// @@ -110,7 +121,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// btnGenerating 控件。 /// @@ -119,7 +130,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnGenerating; - + /// /// Grid1 控件。 /// @@ -128,7 +139,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar1 控件。 /// @@ -137,7 +148,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// drpIsoNo 控件。 /// @@ -146,7 +157,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpIsoNo; - + /// /// ToolbarFill2 控件。 /// @@ -155,7 +166,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill2; - + /// /// nbHardNessValue1 控件。 /// @@ -164,7 +175,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox nbHardNessValue1; - + /// /// nbHardNessValue2 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox nbHardNessValue2; - + /// /// nbHardNessValue3 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox nbHardNessValue3; - + /// /// txtRemark 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtRemark; - + /// /// ToolbarSeparator1 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -209,7 +220,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx index f07e83d..2e9eabf 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx +++ b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx @@ -105,6 +105,12 @@ + + + + + + diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx.cs index c15ef33..77b00cd 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx.cs @@ -101,6 +101,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { this.ProjectId = trust.ProjectId; this.txtHardTestReportCode.Text = trust.HardTestReportCode; + string execStandard = string.Empty; if (!string.IsNullOrEmpty(trust.TrustUnitId)) { this.drpUnit.SelectedValue = trust.TrustUnitId; @@ -124,6 +125,14 @@ namespace FineUIPro.Web.HJGL.HotHardManage this.ddlSTE.SelectedValue = trust.STE_ID; this.txtMaterialStandard.Text = steel2.HardQuaStandard; } + if(!string.IsNullOrEmpty(isoInfo.ISO_Executive)) + { + var exec = BLL.HJGL_ExecStandardService.GetExecStandardById(isoInfo.ISO_Executive); + if (exec != null) + { + execStandard = exec.ExecStandardName; + } + } } } this.txtContractUnit.Text = trust.ContractUnit; @@ -149,6 +158,15 @@ namespace FineUIPro.Web.HJGL.HotHardManage { this.txtTestCount.Text = trust.TestCount.ToString(); } + if (!string.IsNullOrEmpty(trust.ExecStandard)) + { + txtExecStandard.Text = trust.ExecStandard; + } + else + { + txtExecStandard.Text = execStandard; + } + } else { @@ -255,6 +273,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage } newHardTestReport.TestRate = this.txtTestRate.Text.Trim(); newHardTestReport.TestCount = Funs.GetNewIntOrZero(this.txtTestCount.Text.Trim()); + newHardTestReport.ExecStandard = this.txtExecStandard.Text.Trim(); BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(newHardTestReport); BLL.Sys_LogService.AddLog(BLL.Const.System_3, newHardTestReport.ProjectId, this.CurrUser.UserId, "修改硬度检测报告信息"); } diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx.designer.cs b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx.designer.cs index 5f8206b..0710553 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx.designer.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardTestReportEdit.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.HotHardManage { - - - public partial class HardTestReportEdit { - +namespace FineUIPro.Web.HJGL.HotHardManage +{ + + + public partial class HardTestReportEdit + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelCenterRegion 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Toolbar2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// hdItemsString 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdItemsString; - + /// /// ToolbarFill1 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnSave 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// SimpleForm1 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// drpUnit 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpUnit; - + /// /// txtHardTestReportCode 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtHardTestReportCode; - + /// /// txtIsoNo 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtIsoNo; - + /// /// txtContractUnit 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtContractUnit; - + /// /// txtIsoNo2 控件。 /// @@ -137,7 +139,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtIsoNo2; - + /// /// txtDesc 控件。 /// @@ -146,7 +148,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtDesc; - + /// /// ddlSTE 控件。 /// @@ -155,7 +157,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlSTE; - + /// /// txtHotProessState 控件。 /// @@ -164,7 +166,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtHotProessState; - + /// /// txtSurfaceAppearance 控件。 /// @@ -173,7 +175,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtSurfaceAppearance; - + /// /// txtTestMethod 控件。 /// @@ -182,7 +184,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtTestMethod; - + /// /// txtTestStandard 控件。 /// @@ -191,7 +193,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtTestStandard; - + /// /// txtMaterialStandard 控件。 /// @@ -200,7 +202,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMaterialStandard; - + /// /// drpEquipment 控件。 /// @@ -209,7 +211,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpEquipment; - + /// /// txtTestRate 控件。 /// @@ -218,7 +220,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtTestRate; - + /// /// txtTestCount 控件。 /// @@ -227,7 +229,16 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtTestCount; - + + /// + /// txtExecStandard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtExecStandard; + /// /// Grid1 控件。 /// @@ -236,7 +247,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar1 控件。 /// @@ -245,7 +256,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// btnClearRow 控件。 /// @@ -254,7 +265,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnClearRow; - + /// /// nbHardNessValue1 控件。 /// @@ -263,7 +274,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox nbHardNessValue1; - + /// /// nbHardNessValue2 控件。 /// @@ -272,7 +283,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox nbHardNessValue2; - + /// /// nbHardNessValue3 控件。 /// @@ -281,7 +292,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox nbHardNessValue3; - + /// /// txtRemark 控件。 /// @@ -290,7 +301,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtRemark; - + /// /// Window1 控件。 /// @@ -299,7 +310,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Menu1 控件。 /// @@ -308,7 +319,7 @@ namespace FineUIPro.Web.HJGL.HotHardManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuDelete 控件。 /// diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx index 8ad928e..4c6cd00 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx @@ -58,6 +58,8 @@ + + @@ -102,12 +104,13 @@ + OnRowDoubleClick="Grid1_RowDoubleClick" OnRowDataBound="Grid1_RowDataBound" + EnableCheckBoxSelect="true" EnableMultiSelect="true"> <%----%> @@ -300,6 +303,10 @@ Target="Parent" EnableResize="true" runat="server" IsModal="true" OnClose="Window8_Close" Width="600px" Height="300px"> + + + diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.cs index db79d6a..a535dcb 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.cs @@ -357,6 +357,25 @@ namespace FineUIPro.Web.HJGL.WeldingManage } } + protected void btnBatchModity_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_JointInfoMenuId, Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + + string jotIdList = string.Join(",", Grid1.SelectedRowIDArray); + PageContext.RegisterStartupScript(Window9.GetShowReference(String.Format("JointInfoBatchModity.aspx?jotIdList={0}", jotIdList, "批量修改 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + /// /// 焊口信息编辑 /// @@ -405,6 +424,49 @@ namespace FineUIPro.Web.HJGL.WeldingManage } } + /// + /// 试压包号同步 + /// + /// + /// + protected void btnMenuSync_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HJGL_PipelineManageMenuId, BLL.Const.BtnSync)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + + string isoId = tvControlItem.SelectedNodeID; + var iso = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(isoId); + if (!string.IsNullOrEmpty(iso.PressureTestPackageNo)) + { + var jotIdList = Grid1.SelectedRowIDArray; + foreach (string jotId in jotIdList) + { + Model.SGGLDB db = Funs.DB; + Model.HJGL_PW_JointInfo newJointInfo = db.HJGL_PW_JointInfo.FirstOrDefault(x => x.JOT_ID == jotId); + if (newJointInfo != null) + { + newJointInfo.PressureTestPackageNo = iso.PressureTestPackageNo; + db.SubmitChanges(); + } + } + } + else + { + Alert.ShowInTop("该管线的试压包号为空,不能同步!", MessageBoxIcon.Warning); + } + + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + /// /// 删除按钮 /// diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.designer.cs b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.designer.cs index 20cc875..bf84322 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.designer.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.WeldingManage { - - - public partial class JointInfo { - +namespace FineUIPro.Web.HJGL.WeldingManage +{ + + + public partial class JointInfo + { + /// /// Head1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlHead Head1; - + /// /// form1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelLeftRegion 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelLeftRegion; - + /// /// Toolbar1 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// txtIsono 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtIsono; - + /// /// hdPageMax 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdPageMax; - + /// /// tvControlItem 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree tvControlItem; - + /// /// panelCenterRegion 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Toolbar3 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar3; - + /// /// ToolbarFill1 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnNew 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnNew; - + /// /// btnBatchAdd 控件。 /// @@ -137,7 +139,16 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnBatchAdd; - + + /// + /// btnBatchModity 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnBatchModity; + /// /// btnOut 控件。 /// @@ -146,7 +157,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnOut; - + /// /// btnFileName 控件。 /// @@ -155,7 +166,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnFileName; - + /// /// btnPrint 控件。 /// @@ -164,7 +175,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPrint; - + /// /// btnPrintNew 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPrintNew; - + /// /// btnSelectColumn 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSelectColumn; - + /// /// hdColumn 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdColumn; - + /// /// Toolbar2 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// lbMat 控件。 /// @@ -209,7 +220,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbMat; - + /// /// lbDesignPress 控件。 /// @@ -218,7 +229,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbDesignPress; - + /// /// lbDesignTemperature 控件。 /// @@ -227,7 +238,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbDesignTemperature; - + /// /// lbSer 控件。 /// @@ -236,7 +247,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbSer; - + /// /// ToolbarFill2 控件。 /// @@ -245,7 +256,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill2; - + /// /// txtJOT_JointNo 控件。 /// @@ -254,7 +265,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtJOT_JointNo; - + /// /// rbIsHj 控件。 /// @@ -263,7 +274,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.RadioButtonList rbIsHj; - + /// /// Grid1 控件。 /// @@ -272,7 +283,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Label8 控件。 /// @@ -281,7 +292,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label8; - + /// /// ToolbarSeparator1 控件。 /// @@ -290,7 +301,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -299,7 +310,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -308,7 +319,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -317,7 +328,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Window2 控件。 /// @@ -326,7 +337,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window2; - + /// /// Window3 控件。 /// @@ -335,7 +346,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window3; - + /// /// Window4 控件。 /// @@ -344,7 +355,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window4; - + /// /// Window5 控件。 /// @@ -353,7 +364,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window5; - + /// /// Window6 控件。 /// @@ -362,7 +373,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window6; - + /// /// Window7 控件。 /// @@ -371,7 +382,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window7; - + /// /// Window8 控件。 /// @@ -380,7 +391,16 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window8; - + + /// + /// Window9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window9; + /// /// Menu1 控件。 /// @@ -389,7 +409,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuEdit 控件。 /// @@ -398,7 +418,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuEdit; - + /// /// btnMenuUpdate 控件。 /// @@ -407,7 +427,16 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuUpdate; - + + /// + /// btnMenuSync 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuSync; + /// /// btnMenuDelete 控件。 /// diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchModity.aspx b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchModity.aspx new file mode 100644 index 0000000..51cfdee --- /dev/null +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchModity.aspx @@ -0,0 +1,156 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JointInfoBatchModity.aspx.cs" Inherits="FineUIPro.Web.HJGL.WeldingManage.JointInfoBatchModity" %> + + + + + + 焊口信息 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchModity.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchModity.aspx.cs new file mode 100644 index 0000000..58020e6 --- /dev/null +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchModity.aspx.cs @@ -0,0 +1,601 @@ +using BLL; +using FineUIPro.Web.HJGL.DataIn; +using NPOI.SS.Formula.Functions; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.HJGL.WeldingManage +{ + public partial class JointInfoBatchModity : PageBase + { + #region 定义项 + /// + /// 管线主键 + /// + private string ISO_ID + { + get + { + return (string)ViewState["ISO_ID"]; + } + set + { + ViewState["ISO_ID"] = value; + } + } + + #endregion + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ///初始化下拉框 + this.LoadDropDownList(); + ///初始化显示信息 + this.LoadShowInfo(); + } + } + + #region 初始化页面信息 + #region 加载下拉框 + /// + /// 加载下拉框 + /// + private void LoadDropDownList() + { + ///材质1 + this.ddlSTE1.DataTextField = "STE_Code"; + this.ddlSTE1.DataValueField = "STE_ID"; + this.ddlSTE1.DataSource = BLL.HJGL_MaterialService.GetSteelList(); + this.ddlSTE1.DataBind(); + Funs.FineUIPleaseSelect(this.ddlSTE1); + + ///材质2 + this.ddlSTE2.DataTextField = "STE_Code"; + this.ddlSTE2.DataValueField = "STE_ID"; + this.ddlSTE2.DataSource = BLL.HJGL_MaterialService.GetSteelList(); + this.ddlSTE2.DataBind(); + Funs.FineUIPleaseSelect(this.ddlSTE2); + + ///焊缝类型 + this.ddlJOTY_ID.DataTextField = "JOTY_Name"; + this.ddlJOTY_ID.DataValueField = "JOTY_ID"; + this.ddlJOTY_ID.DataSource = BLL.HJGL_WeldService.GetJointTypeNameList("2"); + this.ddlJOTY_ID.DataBind(); + Funs.FineUIPleaseSelect(this.ddlJOTY_ID); + + ///坡口类型 + this.ddlJST_ID.DataTextField = "JST_Name"; + this.ddlJST_ID.DataValueField = "JST_ID"; + this.ddlJST_ID.DataSource = BLL.HJGL_GrooveService.GetSlopeTypeNameList(); + this.ddlJST_ID.DataBind(); + Funs.FineUIPleaseSelect(this.ddlJST_ID); + + ///焊口属性 + this.ddlJointAttribute.DataTextField = "Text"; + this.ddlJointAttribute.DataValueField = "Value"; + this.ddlJointAttribute.DataSource = BLL.DropListService.HJGL_JointAttributeItem(); + this.ddlJointAttribute.DataBind(); + Funs.FineUIPleaseSelect(this.ddlJointAttribute); + + ///焊接方法 + this.ddlWME_ID.DataTextField = "WME_Name"; + this.ddlWME_ID.DataValueField = "WME_ID"; + this.ddlWME_ID.DataSource = BLL.HJGL_WeldingMethodService.GetWeldMethodNameList(); + this.ddlWME_ID.DataBind(); + Funs.FineUIPleaseSelect(this.ddlWME_ID); + + ///焊接区域 + this.ddlWLO_CODE.DataTextField = "Text"; + this.ddlWLO_CODE.DataValueField = "Value"; + this.ddlWLO_CODE.DataSource = BLL.DropListService.HJGL_WLO_CODEItem(); + this.ddlWLO_CODE.DataBind(); + Funs.FineUIPleaseSelect(this.ddlWLO_CODE); + + this.drpInstallationId.DataTextField = "Text"; + this.drpInstallationId.DataValueField = "Value"; + this.drpInstallationId.DataSource = BLL.Project_InstallationService.GetInstallationList(this.CurrUser.LoginProjectId); + this.drpInstallationId.DataBind(); + Funs.FineUIPleaseSelect(this.drpInstallationId); + + //探伤比例 + this.drpNDTR_ID.DataTextField = "NDTR_Name"; + this.drpNDTR_ID.DataValueField = "NDTR_ID"; + this.drpNDTR_ID.DataSource = BLL.HJGL_DetectionService.GetNDTRateNameList(); + this.drpNDTR_ID.DataBind(); + Funs.FineUIPleaseSelect(this.drpNDTR_ID); + + //合格等级 + this.drpJOT_QualifiedLevel.DataTextField = "Text"; + this.drpJOT_QualifiedLevel.DataValueField = "Value"; + this.drpJOT_QualifiedLevel.DataSource = BLL.DropListService.HJGL_NDTClassItem(); + this.drpJOT_QualifiedLevel.DataBind(); + Funs.FineUIPleaseSelect(this.drpJOT_QualifiedLevel); + + ///焊丝 + this.ddlWeldSilk.DataTextField = "WMT_MatCode"; + this.ddlWeldSilk.DataValueField = "WMT_ID"; + this.ddlWeldSilk.DataSource = BLL.HJGL_ConsumablesService.GetMaterialList("1"); + this.ddlWeldSilk.DataBind(); + Funs.FineUIPleaseSelect(this.ddlWeldSilk); + + ///焊条 + this.ddlWeldMat.DataTextField = "WMT_MatCode"; + this.ddlWeldMat.DataValueField = "WMT_ID"; + this.ddlWeldMat.DataSource = BLL.HJGL_ConsumablesService.GetMaterialList("2"); + this.ddlWeldMat.DataBind(); + Funs.FineUIPleaseSelect(this.ddlWeldMat); + } + #endregion + + #region 加载页面显示信息 + /// + /// 加载页面显示信息 + /// + private void LoadShowInfo() + { + string jotIdStr = Request.Params["jotIdList"]; + if (!string.IsNullOrEmpty(jotIdStr)) + { + var jotIdList= jotIdStr.Split(','); + txtJointNoS.Text=BLL.HJGL_PW_JointInfoService.ConvertJointCodeString(jotIdStr); + var jointInfo = BLL.HJGL_PW_JointInfoService.GetJointInfoByJotID(jotIdList[0]); + this.ISO_ID = jointInfo.ISO_ID; + if (jointInfo != null) + { + this.txtJointDesc.Text = jointInfo.JOT_JointDesc; + if (!string.IsNullOrEmpty(jointInfo.DReportID)) + { + this.drpNDTR_ID.Enabled = false; + } + if (!string.IsNullOrEmpty(jointInfo.STE_ID)) + { + this.ddlSTE1.SelectedValue = jointInfo.STE_ID; + var ste = BLL.HJGL_MaterialService.GetSteelBySteID(jointInfo.STE_ID); + if (ste != null) + { + this.txtHardQuaStandard.Text = ste.HardQuaStandard; + } + } + if (!string.IsNullOrEmpty(jointInfo.STE_ID2)) + { + this.ddlSTE2.SelectedValue = jointInfo.STE_ID2; + } + if (!string.IsNullOrEmpty(jointInfo.JOTY_ID)) + { + this.ddlJOTY_ID.SelectedValue = jointInfo.JOTY_ID; + } + if (!string.IsNullOrEmpty(jointInfo.JST_ID)) + { + this.ddlJST_ID.SelectedValue = jointInfo.JST_ID; + } + if (!string.IsNullOrEmpty(jointInfo.JOT_JointAttribute)) + { + this.ddlJointAttribute.SelectedValue = jointInfo.JOT_JointAttribute; + } + if (!string.IsNullOrEmpty(jointInfo.WME_ID)) + { + this.ddlWME_ID.SelectedValue = jointInfo.WME_ID; + } + this.txtSize.Text = Convert.ToString(jointInfo.JOT_Size); + + this.txtSch.Text = jointInfo.JOT_Sch; + if (jointInfo.JOT_Dia != null) + { + this.txtDia.Text = Convert.ToString(jointInfo.JOT_Dia); + } + //this.txtFactSch.Text = Convert.ToString(jointInfo.JOT_FactSch); + if (!string.IsNullOrEmpty(jointInfo.WLO_Code)) + { + this.ddlWLO_CODE.SelectedValue = jointInfo.WLO_Code; + } + + this.txtLastTemp.Text = Convert.ToString(jointInfo.JOT_LastTemp); + this.txtCellTemp.Text = Convert.ToString(jointInfo.JOT_CellTemp); + this.txtPrepareTemp.Text = Convert.ToString(jointInfo.JOT_PrepareTemp); + if (!string.IsNullOrEmpty(jointInfo.JOT_WeldSilk)) + { + this.ddlWeldSilk.SelectedValue = jointInfo.JOT_WeldSilk; + } + if (jointInfo.WeldL != null) + { + this.txtWeldL.Text = jointInfo.WeldL.ToString(); + } + if (!string.IsNullOrEmpty(jointInfo.JOT_WeldMat)) + { + this.ddlWeldMat.SelectedValue = jointInfo.JOT_WeldMat; + } + this.txtElectricity.Text = jointInfo.JOT_Electricity; + + if (!string.IsNullOrEmpty(jointInfo.IS_Proess)) + { + this.drpIS_Proess.SelectedValue = jointInfo.IS_Proess; + if (jointInfo.IS_Proess == "1") + { + this.drpProessTypes.Hidden = false; + //this.lbl.Hidden = true; + if (!string.IsNullOrEmpty(jointInfo.ProessTypes)) + { + string[] proessTypes = jointInfo.ProessTypes.Split('|'); + this.drpProessTypes.Values = proessTypes; + } + } + } + if (jointInfo.IsSpecial == true) + { + this.drpIsSpecial.SelectedValue = "1"; + } + else + { + this.drpIsSpecial.SelectedValue = "0"; + } + + if (!string.IsNullOrEmpty(jointInfo.InstallationId)) + { + this.drpInstallationId.SelectedValue = jointInfo.InstallationId; + } + if (!string.IsNullOrEmpty(jointInfo.NDTR_ID)) + { + this.drpNDTR_ID.SelectedValue = jointInfo.NDTR_ID; + } + if (!string.IsNullOrEmpty(jointInfo.JOT_QualifiedLevel)) + { + this.drpJOT_QualifiedLevel.SelectedValue = jointInfo.JOT_QualifiedLevel; + } + this.txtPressureTestPackageNo.Text = jointInfo.PressureTestPackageNo; + } + + } + } + #endregion + #endregion + + #region 提交按钮 + /// + /// 提交按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_JointInfoMenuId, Const.BtnSave)) + { + if (this.drpInstallationId.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择装置", MessageBoxIcon.Warning); + return; + } + if (this.ddlSTE1.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择材质1", MessageBoxIcon.Warning); + return; + } + if (this.ddlJOTY_ID.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择焊缝类型!", MessageBoxIcon.Warning); + return; + } + if (this.ddlJST_ID.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择坡口类型!", MessageBoxIcon.Warning); + return; + } + if (this.ddlJointAttribute.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择焊口属性!", MessageBoxIcon.Warning); + return; + } + if (this.ddlWME_ID.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择焊接方法!", MessageBoxIcon.Warning); + return; + } + + string jotIdStr = Request.Params["jotIdList"]; + if (!string.IsNullOrEmpty(jotIdStr)) + { + Model.SGGLDB db = Funs.DB; + var jotIdList = jotIdStr.Split(','); + foreach (var jotId in jotIdList) + { + Model.HJGL_PW_JointInfo newJointInfo = db.HJGL_PW_JointInfo.FirstOrDefault(x => x.JOT_ID == jotId); + var hotItems = from x in BLL.Funs.DB.HJGL_CH_HotProessTrustItem where x.JOT_ID == jotId select x; + var batchDetail = BLL.HJGL_BO_BatchDetailService.GetBatchDetailByJotId(jotId); + if ((batchDetail != null || hotItems.Count() > 0) && this.CurrUser.UserId != BLL.Const.GlyId) + { + newJointInfo.JOT_PrepareTemp = Funs.GetNewDecimal(this.txtPrepareTemp.Text); + newJointInfo.PressureTestPackageNo = this.txtPressureTestPackageNo.Text; + if (this.drpIS_Proess.SelectedValue != BLL.Const._Null) + { + newJointInfo.IS_Proess = this.drpIS_Proess.SelectedValue; + if (this.drpIS_Proess.SelectedValue == "1") + { + if (drpProessTypes.Values.Length > 0) + { + newJointInfo.ProessTypes = String.Join("|", drpProessTypes.Values); + } + else + { + Alert.ShowInTop("请选择热处理类型!", MessageBoxIcon.Warning); + return; + } + } + } + BLL.HJGL_PW_JointInfoService.UpdateJointInfo(newJointInfo); + } + else + { + newJointInfo.JOT_JointDesc = this.txtJointDesc.Text.Trim(); + if (this.ddlSTE1.SelectedValue != BLL.Const._Null) + { + newJointInfo.STE_ID = this.ddlSTE1.SelectedValue; + } + if (this.ddlSTE2.SelectedValue != BLL.Const._Null) + { + newJointInfo.STE_ID2 = this.ddlSTE2.SelectedValue; + } + if (this.ddlJOTY_ID.SelectedValue != BLL.Const._Null) + { + newJointInfo.JOTY_ID = this.ddlJOTY_ID.SelectedValue; + } + if (this.ddlJST_ID.SelectedValue != BLL.Const._Null) + { + newJointInfo.JST_ID = this.ddlJST_ID.SelectedValue; + } + if (this.ddlJointAttribute.SelectedValue != BLL.Const._Null) + { + newJointInfo.JOT_JointAttribute = this.ddlJointAttribute.SelectedValue; + } + if (this.ddlWME_ID.SelectedValue != BLL.Const._Null) + { + newJointInfo.WME_ID = this.ddlWME_ID.SelectedValue; + } + if (this.drpInstallationId.SelectedValue != BLL.Const._Null) + { + newJointInfo.InstallationId = this.drpInstallationId.SelectedValue; + } + + newJointInfo.JOT_Size = Funs.GetNewDecimal(this.txtSize.Text); + newJointInfo.JOT_Dia = Funs.GetNewDecimal(this.txtDia.Text); + newJointInfo.JOT_Sch = this.txtSch.Text.Trim(); + + newJointInfo.JOT_TrustFlag = "00"; + newJointInfo.JOT_CheckFlag = "00"; + newJointInfo.JOT_JointStatus = "100"; + if (this.ddlWLO_CODE.SelectedValue != BLL.Const._Null) + { + newJointInfo.WLO_Code = this.ddlWLO_CODE.SelectedValue; + } + if (this.drpNDTR_ID.SelectedValue != BLL.Const._Null) + { + if (string.IsNullOrEmpty(newJointInfo.DReportID)) + { + newJointInfo.NDTR_ID = this.drpNDTR_ID.SelectedValue; + } + } + + if (this.drpJOT_QualifiedLevel.SelectedValue != BLL.Const._Null) + { + newJointInfo.JOT_QualifiedLevel = this.drpJOT_QualifiedLevel.SelectedValue; + } + + newJointInfo.JOT_LastTemp = Funs.GetNewDecimal(this.txtLastTemp.Text); + newJointInfo.JOT_CellTemp = Funs.GetNewDecimal(this.txtCellTemp.Text); + newJointInfo.JOT_PrepareTemp = Funs.GetNewDecimal(this.txtPrepareTemp.Text); + newJointInfo.JOT_Electricity = this.txtElectricity.Text.Trim(); + + newJointInfo.PressureTestPackageNo = this.txtPressureTestPackageNo.Text; + + if (this.drpIsSpecial.SelectedValue == "1") + { + newJointInfo.IsSpecial = true; + } + else + { + newJointInfo.IsSpecial = false; + } + if (this.drpIS_Proess.SelectedValue != BLL.Const._Null) + { + newJointInfo.IS_Proess = this.drpIS_Proess.SelectedValue; + if (this.drpIS_Proess.SelectedValue == "1") + { + if (drpProessTypes.Values.Length > 0) + { + newJointInfo.ProessTypes = String.Join("|", drpProessTypes.Values); + } + else + { + Alert.ShowInTop("请选择热处理类型!", MessageBoxIcon.Warning); + return; + } + } + } + if (this.ddlWeldSilk.SelectedValue != BLL.Const._Null) + { + newJointInfo.JOT_WeldSilk = this.ddlWeldSilk.SelectedValue; + } + if (this.ddlWeldMat.SelectedValue != BLL.Const._Null) + { + newJointInfo.JOT_WeldMat = this.ddlWeldMat.SelectedValue; + } + if (!string.IsNullOrEmpty(this.txtWeldL.Text)) + { + newJointInfo.WeldL = Convert.ToInt32(this.txtWeldL.Text); + } + if (newJointInfo.DReportID != null) + { + BLL.HJGL_PW_JointInfoService.UpdateJointNoAddG(jotId, this.ddlJointAttribute.SelectedValue, Const.BtnModify); + } + + BLL.HJGL_PW_JointInfoService.UpdateJointInfo(newJointInfo); + } + + + } + } + + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + ShowNotify("提交成功!", MessageBoxIcon.Success); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 根据寸经外径对照表,输入外径是自动得到寸径;焊口规格:Φ外径*壁厚 + /// + /// 根据寸经外径对照表,输入外径是自动得到寸径;焊口规格:Φ外径*壁厚 + /// + /// + /// + protected void txtText_TextChanged(object sender, EventArgs e) + { + //根据寸经外径对照表,输入外径是自动得到寸径 + if (!string.IsNullOrEmpty(this.txtDia.Text.Trim())) + { + decimal dia = Funs.GetNewDecimalOrZero(this.txtDia.Text.Trim()); + if (dia >= 500) + { + this.drpIsSpecial.SelectedValue = "1"; + } + + var inch = HJGL_ControlService.GetSizeByDia(dia); + if (inch != null) + { + this.txtSize.Text = Convert.ToString(inch); + } + } + + //焊口规格:Φ外径*壁厚 + if (!string.IsNullOrEmpty(this.txtDia.Text.Trim()) && !string.IsNullOrEmpty(this.txtSch.Text.Trim())) + { + this.txtJointDesc.Text = "Φ" + this.txtDia.Text.Trim() + "×" + this.txtSch.Text.Trim(); + } + } + + // 非常规焊缝 + protected void txtWeldL_TextChanged(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.txtWeldL.Text.Trim())) + { + this.txtJointDesc.Text = "L=" + this.txtWeldL.Text.Trim() + "×" + this.txtSch.Text.Trim(); + } + } + + #endregion + + #region DropDownList下拉选择事件 + /// + /// 焊缝类型下拉选择事件 + /// + /// + /// + protected void ddlJOTY_ID_SelectedIndexChanged(object sender, EventArgs e) + { + if (this.ddlJOTY_ID.SelectedValue != BLL.Const._Null) + { + var joty = BLL.HJGL_WeldService.GetJointTypeByID(this.ddlJOTY_ID.SelectedValue); + if (joty != null) + { + var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(this.ISO_ID); + if (isoInfo != null) + { + if (!string.IsNullOrEmpty(isoInfo.ISC_ID) && !string.IsNullOrEmpty(isoInfo.ISO_Executive)) + { + var weldControl = BLL.HJGL_WeldControlService.GEtWeldControlByISCIDAndExecStandardId(isoInfo.ISC_ID, isoInfo.ISO_Executive); + if (weldControl != null) + { + if (joty.JOTY_Group == "1") + { + this.drpNDTR_ID.SelectedValue = weldControl.Joty_Rate; + this.drpJOT_QualifiedLevel.SelectedValue = weldControl.Joty_Level; + } + else if (joty.JOTY_Group == "2") + { + this.drpNDTR_ID.SelectedValue = weldControl.Joty_C_Rate; + this.drpJOT_QualifiedLevel.SelectedValue = weldControl.Joty_C_Level; + } + else if (joty.JOTY_Group == "3") + { + this.drpNDTR_ID.SelectedValue = weldControl.Joty_D_Rate; + this.drpJOT_QualifiedLevel.SelectedValue = weldControl.Joty_D_Level; + } + else + { + this.drpNDTR_ID.SelectedValue = BLL.Const._Null; + this.drpJOT_QualifiedLevel.SelectedValue = BLL.Const._Null; + } + } + else + { + this.drpNDTR_ID.SelectedValue = BLL.Const._Null; + this.drpJOT_QualifiedLevel.SelectedValue = BLL.Const._Null; + } + } + } + } + else + { + this.drpNDTR_ID.SelectedValue = BLL.Const._Null; + this.drpJOT_QualifiedLevel.SelectedValue = BLL.Const._Null; + } + } + else + { + this.drpNDTR_ID.SelectedValue = BLL.Const._Null; + this.drpJOT_QualifiedLevel.SelectedValue = BLL.Const._Null; + } + } + + /// + /// 材质1下拉选择事件 + /// + /// + /// + protected void ddlSTE1_SelectedIndexChanged(object sender, EventArgs e) + { + if (this.ddlSTE1.SelectedValue != BLL.Const._Null) + { + var ste = BLL.HJGL_MaterialService.GetSteelBySteID(this.ddlSTE1.SelectedValue); + if (ste != null) + { + this.txtHardQuaStandard.Text = ste.HardQuaStandard; + } + else + { + this.txtHardQuaStandard.Text = string.Empty; + } + this.ddlSTE2.SelectedValue = ddlSTE1.SelectedValue; + } + else + { + this.txtHardQuaStandard.Text = string.Empty; + } + } + + /// + /// 是否显示热处理类型 + /// + /// + /// + protected void drpIS_Proess_SelectedIndexChanged(object sender, EventArgs e) + { + if (this.drpIS_Proess.SelectedValue == "1") + { + this.drpProessTypes.Hidden = false; + } + else + { + this.drpProessTypes.Hidden = true; + } + } + #endregion + } +} \ No newline at end of file diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchModity.aspx.designer.cs b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchModity.aspx.designer.cs new file mode 100644 index 0000000..9df95f3 --- /dev/null +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchModity.aspx.designer.cs @@ -0,0 +1,359 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.WeldingManage +{ + + + public partial class JointInfoBatchModity + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtJointNoS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtJointNoS; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// drpInstallationId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpInstallationId; + + /// + /// ddlSTE1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlSTE1; + + /// + /// ddlSTE2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlSTE2; + + /// + /// ddlWLO_CODE 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlWLO_CODE; + + /// + /// ddlJOTY_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlJOTY_ID; + + /// + /// ddlJST_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlJST_ID; + + /// + /// ddlJointAttribute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlJointAttribute; + + /// + /// ddlWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlWME_ID; + + /// + /// txtDia 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtDia; + + /// + /// txtSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSize; + + /// + /// txtSch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSch; + + /// + /// txtJointDesc 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtJointDesc; + + /// + /// txtLastTemp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLastTemp; + + /// + /// txtCellTemp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtCellTemp; + + /// + /// txtPrepareTemp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtPrepareTemp; + + /// + /// txtElectricity 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtElectricity; + + /// + /// drpIsSpecial 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpIsSpecial; + + /// + /// drpNDTR_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpNDTR_ID; + + /// + /// drpJOT_QualifiedLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpJOT_QualifiedLevel; + + /// + /// txtHardQuaStandard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHardQuaStandard; + + /// + /// ddlWeldSilk 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlWeldSilk; + + /// + /// ddlWeldMat 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlWeldMat; + + /// + /// drpIS_Proess 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpIS_Proess; + + /// + /// drpProessTypes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownBox drpProessTypes; + + /// + /// SimpleForm3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.SimpleForm SimpleForm3; + + /// + /// Label10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label10; + + /// + /// RadioButtonList1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBoxList RadioButtonList1; + + /// + /// lb1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lb1; + + /// + /// txtPressureTestPackageNo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPressureTestPackageNo; + + /// + /// txtWeldL 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtWeldL; + + /// + /// lbDef 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbDef; + } +} diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/PipelineManage.aspx.designer.cs b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/PipelineManage.aspx.designer.cs index b686a5c..bba1b22 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/PipelineManage.aspx.designer.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingManage/PipelineManage.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.WeldingManage { - - - public partial class PipelineManage { - +namespace FineUIPro.Web.HJGL.WeldingManage +{ + + + public partial class PipelineManage + { + /// /// Head1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlHead Head1; - + /// /// form1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelCenterRegion 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Toolbar2 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// txtISO_IsoNo 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtISO_IsoNo; - + /// /// ToolbarFill1 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// drpOut 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpOut; - + /// /// btnOut 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnOut; - + /// /// btnNew 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnNew; - + /// /// Grid1 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// ToolbarSeparator1 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -137,7 +139,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -146,7 +148,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -155,7 +157,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Window2 控件。 /// @@ -164,7 +166,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window2; - + /// /// Window3 控件。 /// @@ -173,7 +175,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window3; - + /// /// Window4 控件。 /// @@ -182,7 +184,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window4; - + /// /// Window5 控件。 /// @@ -191,7 +193,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window5; - + /// /// Menu1 控件。 /// @@ -200,7 +202,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuEdit 控件。 /// @@ -209,7 +211,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuEdit; - + /// /// btnMenuDelete 控件。 /// diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/InspectionBatch.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/InspectionBatch.aspx.cs index b9e971c..54475d8 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/InspectionBatch.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/InspectionBatch.aspx.cs @@ -341,10 +341,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport where x.JOT_JointNo.Contains("G") && x.BatchId == batchId && x.PointTypeStr == "1" select x).Count(); oneGTrustCounts = oneGTrustCount.ToString(); - if (GjointCount != 0) - { - oneGtrustRate = (oneGTrustCount * 100.0 / oneTrustCount * 1.0).ToString("0.00") + "%"; - } + if (jointCount != 0) { totalCheckRate = (totalCheckCount * 100.0 / jointCount * 1.0).ToString("0.00") + "%"; @@ -352,6 +349,11 @@ namespace FineUIPro.Web.HJGL.WeldingReport chFixedJotCounts = chFixedJotCount.ToString(); needCheckCount = Convert.ToInt32(Math.Ceiling(jointCount * Convert.ToDecimal(NDTR_Name.Replace("%", "")) / 100)); needCheckCounts = needCheckCount.ToString(); + + if (needCheckCount != 0) + { + oneGtrustRate = (oneGTrustCount * 100.0 / needCheckCount * 1.0).ToString("0.00") + "%"; + } totalWeldCount = (from x in Funs.DB.HJGL_BO_BatchDetail join y in Funs.DB.HJGL_PW_JointInfo on x.JOT_ID equals y.JOT_ID diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx index 1ce47a1..9bef88f 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx @@ -40,16 +40,17 @@ BoxConfigAlign="Stretch" BoxConfigPosition="Left" runat="server"> - + - + + @@ -95,7 +96,7 @@ - <%-- --%> diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx.cs index 1fd706a..adee359 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx.cs @@ -73,7 +73,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_IsoCheckStatistics", parameter); this.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(); diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx.designer.cs b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx.designer.cs index ca1ff57..f1153da 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx.designer.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/IsoCheckStatistics.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.WeldingReport { - - - public partial class IsoCheckStatistics { - +namespace FineUIPro.Web.HJGL.WeldingReport +{ + + + public partial class IsoCheckStatistics + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// RegionPanel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.RegionPanel RegionPanel1; - + /// /// Region1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Region Region1; - + /// /// Form2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form2; - + /// /// drpProject 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpProject; - + /// /// drpIsoId 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpIsoId; - + /// /// BtnAnalyse 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button BtnAnalyse; - + /// /// btnOut 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnOut; - + /// /// Region2 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Region Region2; - + /// /// Grid1 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// labNumber 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label labNumber; - + /// /// lblButtJointCheckRate 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblButtJointCheckRate; - + /// /// lblFixedJointCheckRate 控件。 /// @@ -137,7 +139,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblFixedJointCheckRate; - + /// /// ToolbarSeparator1 控件。 /// @@ -146,7 +148,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -155,7 +157,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// diff --git a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx index 8ebf407..7e7636d 100644 --- a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx +++ b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx @@ -60,7 +60,12 @@ HeaderText="规格" HeaderTextAlign="Center" TextAlign="Center"> + HeaderText="质保书自编号" HeaderTextAlign="Center" TextAlign="Center" SortField="WeldCode"> + + + @@ -119,10 +124,14 @@ Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true" Width="800px" Height="600px"> + + + diff --git a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx.cs b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx.cs index 6227e7d..7ef4029 100644 --- a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx.cs @@ -39,10 +39,12 @@ namespace FineUIPro.Web.WeldMat.Stock string strSql = @"SELECT StockIn.StockInId,StockIn.WeldId,StockIn.Amount,StockIn.Weight,Users.UserName AS Materialman,StockIn.InStockDate, ReviewDate,Weld.WeldCode,Weld.WeldName,Weld.WeldSpec,StockIn.Warrantybook, StockIn.HeartNo, WeldType.WeldTypeName,WeldType.WeldUnit,(unit.UnitName+'('+store.UnitStoreName+')') AS UnitStoreName, - (CASE WHEN (StockIn.AttachUrl!='' AND StockIn.AttachUrl IS NOT NULL) THEN '是' ELSE '否' END) IsUploadAttach + (CASE WHEN (StockIn.AttachUrl!='' AND StockIn.AttachUrl IS NOT NULL) THEN '是' ELSE '否' END) IsUploadAttach, + StockIn.IsSure ,sureUser.UserName AS SureMan FROM dbo.Weld_StockIn AS StockIn LEFT JOIN dbo.Weld_WeldInfo AS Weld ON Weld.WeldId=StockIn.WeldId LEFT JOIN dbo.Sys_User AS Users ON Users.UserId=StockIn.Materialman + LEFT JOIN dbo.Sys_User AS sureUser ON sureUser.UserId=StockIn.SureMan LEFT JOIN dbo.Weld_WeldType AS WeldType ON WeldType.WeldTypeId = Weld.WeldTypeId LEFT JOIN dbo.Weld_UnitStore store ON store.UnitStoreId=StockIn.UnitStoreId LEFT JOIN dbo.Base_Unit unit ON unit.UnitId=store.UnitId @@ -192,6 +194,72 @@ namespace FineUIPro.Web.WeldMat.Stock } } + /// + /// 质保书自编号确认 + /// + /// + /// + protected void btnMenuSure_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_StockInMenuId, BLL.Const.BtnCheck)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + + string id = Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(id)) + { + var q = BLL.StockInService.GetStockInById(id); + + if (q.UnitStoreId != null) + { + var s = BLL.UnitStoreService.GetUnitStoreById(q.UnitStoreId); + if (s != null && s.UnitId == CurrUser.UnitId) + { + if (s.IsUse == true) + { + if (q.IsSure == true) + { + btnMenuSure.ConfirmText = "是否取消质保书自编号确认?"; + BLL.StockInService.WarrantybookSure(id, null, null); + } + else + { + btnMenuSure.ConfirmText = "是否确认质保书自编号正确?"; + string sureMan = this.CurrUser.UserId; + BLL.StockInService.WarrantybookSure(id, true, sureMan); + } + + this.BindGrid(); + ShowNotify("质保书自编号确认成功!", MessageBoxIcon.Success); + BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "质保书自编号确认"); + } + else + { + Alert.ShowInTop("该仓库已停用,不能进行质保书自编号确认!", MessageBoxIcon.Warning); + return; + } + + } + else + { + Alert.ShowInTop("非本单位的数据,不能进行质保书自编号确认!", MessageBoxIcon.Warning); + return; + } + } + + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #region 编辑 /// /// 双击Grid事件 diff --git a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx.designer.cs b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx.designer.cs index afaa032..0fd0622 100644 --- a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx.designer.cs +++ b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockIn.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.WeldMat.Stock { - - - public partial class StockIn { - +namespace FineUIPro.Web.WeldMat.Stock +{ + + + public partial class StockIn + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// txtWeldName 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtWeldName; - + /// /// drpWeldType 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpWeldType; - + /// /// ToolbarFill1 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnNew 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnNew; - + /// /// btnMoveStore 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnMoveStore; - + /// /// lblNumber 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblNumber; - + /// /// ToolbarSeparator1 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -137,7 +139,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -146,7 +148,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Window2 控件。 /// @@ -155,7 +157,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window2; - + /// /// Menu1 控件。 /// @@ -164,7 +166,7 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuEdit 控件。 /// @@ -173,7 +175,16 @@ namespace FineUIPro.Web.WeldMat.Stock { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuEdit; - + + /// + /// btnMenuSure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuSure; + /// /// btnMenuDelete 控件。 /// diff --git a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInEdit.aspx b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInEdit.aspx index 49ff28d..72a7e04 100644 --- a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInEdit.aspx +++ b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInEdit.aspx @@ -30,7 +30,7 @@ - diff --git a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInit.aspx b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInit.aspx index 9b878c9..0b02db5 100644 --- a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInit.aspx +++ b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInit.aspx @@ -71,7 +71,7 @@ HeaderText="回收重量" HeaderTextAlign="Center" TextAlign="Center"> + HeaderText="质保书自编号" HeaderTextAlign="Center" TextAlign="Center"> diff --git a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInitEdit.aspx b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInitEdit.aspx index 53bf7a8..1c07846 100644 --- a/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInitEdit.aspx +++ b/HJGL_ZH/FineUIPro.Web/WeldMat/Stock/StockInitEdit.aspx @@ -31,7 +31,7 @@ - diff --git a/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/ShowStockIn.aspx.cs b/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/ShowStockIn.aspx.cs index e0e216a..ddfed33 100644 --- a/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/ShowStockIn.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/ShowStockIn.aspx.cs @@ -69,7 +69,7 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat LEFT JOIN dbo.Weld_Supplier supplier ON supplier.SupplierId=StockIn.SupplierId LEFT JOIN dbo.Weld_UnitStore store ON store.UnitStoreId = StockIn.UnitStoreId WHERE (StockIn.Amount-ISNULL(StockIn.UsingAmount,0)+ISNULL(StockIn.RecycleAmount,0))>0 - AND store.IsUse=1 + AND store.IsUse=1 AND StockIn.IsSure=1 AND StockIn.WeldId=@WeldId AND store.UnitId=@UnitId"; List listStr = new List(); if (plan != null) diff --git a/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/UsingMat.aspx.cs b/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/UsingMat.aspx.cs index 83fd290..e547816 100644 --- a/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/UsingMat.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/UsingMat.aspx.cs @@ -539,14 +539,60 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat break; } } + + // 在同一单位跨项目如有未完结的领料也不能领用 + if (isUsing) { - string window = String.Format("ShowStockIn.aspx?UsingPlanId={0}", this.Grid2.SelectedRowID, "编辑 - "); - PageContext.RegisterStartupScript(Window1.GetSaveStateReference(hdItemsString.ClientID) + Window1.GetShowReference(window)); + bool otherIsUsed = true; + string strSql = @"SELECT m.UsingMatId, m.ProjectId, m.WeldId, welder.WED_Code + FROM dbo.Weld_UsingMat m + LEFT JOIN dbo.Weld_UsingPlan usingPlan ON usingPlan.UsingPlanId = m.UsingPlanId + LEFT JOIN dbo.HJGL_BS_Welder welder ON welder.WED_ID=m.UsingMan + WHERE m.IsWelderConfirm=1 AND m.IsStoreManConfirm=1 + AND (m.IsClose IS NULL OR m.IsClose=0) + AND usingPlan.UsingManOne=@WelderId + AND usingPlan.UsingUnit=@UsingUnit + AND m.ProjectId IN (SELECT DISTINCT ProjectId FROM dbo.Project_User WHERE UserId=@CurrUserId) "; + List listStr = new List(); + listStr.Add(new SqlParameter("@WelderId", this.WelderId)); + if (CurrUser.UnitId != null) + { + listStr.Add(new SqlParameter("@UsingUnit", CurrUser.UnitId)); + } + else + { + listStr.Add(new SqlParameter("@UsingUnit", null)); + } + listStr.Add(new SqlParameter("@CurrUserId", this.CurrUser.UserId)); + SqlParameter[] parameter = listStr.ToArray(); + + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + + for (int i = 0; i < dt.Rows.Count; i++) + { + string usingMatId = dt.Rows[i]["UsingMatId"].ToString(); + var usingMat = BLL.UsingMatService.GetUsingMatById(usingMatId); + var uWeld = BLL.WeldInfoService.GetWeldInfoById(usingMat.WeldId); + if (uWeld != null && uWeld.WeldTypeId == weldTypeId) + { + otherIsUsed = false; + break; + } + } + if (otherIsUsed) + { + string window = String.Format("ShowStockIn.aspx?UsingPlanId={0}", this.Grid2.SelectedRowID, "编辑 - "); + PageContext.RegisterStartupScript(Window1.GetSaveStateReference(hdItemsString.ClientID) + Window1.GetShowReference(window)); + } + else + { + ShowNotify("其它项目有未完结的领料计划,处理后才能领用!"); + } } else { - ShowNotify("有未完结的领料计划,处理后才能领用!"); + ShowNotify("本项目有未完结的领料计划,处理后才能领用!"); } } } diff --git a/HJGL_ZH/FineUIPro.Web/Welder/FilmInfoQuery.aspx b/HJGL_ZH/FineUIPro.Web/Welder/FilmInfoQuery.aspx index c4d0d9d..c6f519e 100644 --- a/HJGL_ZH/FineUIPro.Web/Welder/FilmInfoQuery.aspx +++ b/HJGL_ZH/FineUIPro.Web/Welder/FilmInfoQuery.aspx @@ -62,6 +62,9 @@ + + @@ -80,6 +83,9 @@ + +