diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工序交接记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工序交接记录.frx new file mode 100644 index 0000000..62bbe8c --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工序交接记录.frx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管件宏观检查记录表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管件宏观检查记录表.frx new file mode 100644 index 0000000..28ac4d5 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管件宏观检查记录表.frx @@ -0,0 +1,248 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + + private void Table2_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Data"); + // init the data source + rowData.Init(); + + // print the first table row - it is a header + + // now enumerate the data source and print the table body + while (rowData.HasMoreRows) + { + // print the table body + Table2.PrintRow(0); + Table2.PrintColumns(); + + // go next data source row + rowData.Next(); + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx new file mode 100644 index 0000000..7c75456 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx new file mode 100644 index 0000000..d1e5eef --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx new file mode 100644 index 0000000..6db822e --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx @@ -0,0 +1,210 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + + private void Table2_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Data"); + // init the data source + rowData.Init(); + + // print the first table row - it is a header + + // now enumerate the data source and print the table body + while (rowData.HasMoreRows) + { + // print the table body + Table2.PrintRow(0); + Table2.PrintColumns(); + + // go next data source row + rowData.Next(); + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/防腐工程质量验收记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/防腐工程质量验收记录.frx new file mode 100644 index 0000000..8a237ed --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/防腐工程质量验收记录.frx @@ -0,0 +1,223 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user index 12bfa62..214980b 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -14,9 +14,8 @@ - - - CurrentPage + Login.aspx + SpecificPage True False False diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx index e69ce08..cf621a9 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx @@ -5,7 +5,7 @@ - 管件宏观检查验收记录表 + 管件宏观检查记录表
@@ -13,7 +13,7 @@ @@ -25,28 +25,28 @@ - + Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="管件宏观检查记录表" + TitleToolTip="管件宏观检查记录表" AutoScroll="true"> - + - - - diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx.cs index 656d178..498c5c2 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecord.aspx.cs @@ -195,7 +195,7 @@ namespace FineUIPro.Web.JGZL string rootPath = Server.MapPath("~/"); BLL.Common.FastReportService.ResetData(); - string strSql = @"SELECT * from JGZL_PipeFittingInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc"; + string strSql = @"SELECT * from JGZL_PipeFittingInspectionRecord where ProjectId = @ProjectId order by CompileDate "; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", projectId)); SqlParameter[] parameter = listStr.ToArray(); @@ -203,25 +203,40 @@ namespace FineUIPro.Web.JGZL DataTable dt = new DataTable(); dt.TableName = "Data"; - dt.Columns.Add("Num"); - dt.Columns.Add("ConcealedWorks"); - dt.Columns.Add("DrawingNumber"); - dt.Columns.Add("ConcealedContentAndDiagram"); - dt.Columns.Add("InspectionResults"); - dt.Columns.Add("Remark"); + dt.Columns.Add("Name"); + dt.Columns.Add("ContractNo"); + dt.Columns.Add("ArrivalUnit"); + dt.Columns.Add("ArrivalNum"); + dt.Columns.Add("MaterialCertificateNumber"); + dt.Columns.Add("Material"); + dt.Columns.Add("Specifications"); + dt.Columns.Add("InspectionNum"); + dt.Columns.Add("ODVariation"); + dt.Columns.Add("IDVariation"); + dt.Columns.Add("WallVariation"); + dt.Columns.Add("OtherVariation"); + dt.Columns.Add("AppearanceQuality"); + dt.Columns.Add("Result"); DataRow[] rows = tb.DefaultView.ToTable().Select(); - int i = 0; foreach (var row in rows) { var newRow = dt.NewRow(); - newRow["Num"] = (i + 1).ToString(); - newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); - newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); - newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); - newRow["Remark"] = row["Remark"].ToString(); + newRow["Name"] = row["Name"].ToString(); + newRow["ContractNo"] = row["ContractNo"].ToString(); + newRow["ArrivalUnit"] = row["ArrivalUnit"].ToString(); + newRow["ArrivalNum"] = row["ArrivalNum"].ToString(); + newRow["MaterialCertificateNumber"] = row["MaterialCertificateNumber"].ToString(); + newRow["Material"] = row["Material"].ToString(); + newRow["Specifications"] = row["Specifications"].ToString(); + newRow["InspectionNum"] = row["InspectionNum"].ToString(); + newRow["ODVariation"] = row["ODVariation"].ToString(); + newRow["IDVariation"] = row["IDVariation"].ToString(); + newRow["WallVariation"] = row["WallVariation"].ToString(); + newRow["OtherVariation"] = row["OtherVariation"].ToString(); + newRow["AppearanceQuality"] = row["AppearanceQuality"].ToString(); + newRow["Result"] = row["Result"].ToString(); dt.Rows.Add(newRow); - i++; } BLL.Common.FastReportService.AddFastreportTable(dt); @@ -229,7 +244,7 @@ namespace FineUIPro.Web.JGZL keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); - initTemplatePath = "File\\Fastreport\\JGZL\\管件宏观检查验收记录表.frx"; + initTemplatePath = "File\\Fastreport\\JGZL\\管件宏观检查记录表.frx"; if (File.Exists(rootPath + initTemplatePath)) { PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx index 8ccf91f..c22324d 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx @@ -67,7 +67,7 @@ - + @@ -79,11 +79,7 @@ - - - - - + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx index 85ddd8a..5c4c24d 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx @@ -61,7 +61,7 @@ - listStr = new List(); - listStr.Add(new SqlParameter("@ProjectId", projectId)); - SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - - DataTable dt = new DataTable(); - dt.TableName = "Data"; - dt.Columns.Add("Num"); - dt.Columns.Add("ConcealedWorks"); - dt.Columns.Add("DrawingNumber"); - dt.Columns.Add("ConcealedContentAndDiagram"); - dt.Columns.Add("InspectionResults"); - dt.Columns.Add("Remark"); - - DataRow[] rows = tb.DefaultView.ToTable().Select(); - int i = 0; - foreach (var row in rows) + string id = this.Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(id)) { - var newRow = dt.NewRow(); - newRow["Num"] = (i + 1).ToString(); - newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); - newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); - newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); - newRow["Remark"] = row["Remark"].ToString(); - dt.Rows.Add(newRow); - i++; + DataTable dt = new DataTable(); + dt.TableName = "Data"; + dt.Columns.Add("DrawingNumber"); + dt.Columns.Add("ProfessionalEngineering"); + dt.Columns.Add("InspectionResults"); + + var report = BLL.PipelinePrefabricationConstructionInspectionRecordService.GetPipelinePrefabricationConstructionInspectionRecordById(id); + if (report != null) + { + var newRow = dt.NewRow(); + newRow["DrawingNumber"] = report.DrawingNumber; + newRow["ProfessionalEngineering"] = report.ProfessionalEngineering; + newRow["InspectionResults"] = report.InspectionResults; + dt.Rows.Add(newRow); + } + BLL.Common.FastReportService.AddFastreportTable(dt); + + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + initTemplatePath = "File\\Fastreport\\JGZL\\管道预制施工检查记录.frx"; + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + } } - BLL.Common.FastReportService.AddFastreportTable(dt); - - Dictionary keyValuePairs = new Dictionary(); - keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); - BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); - - initTemplatePath = "File\\Fastreport\\JGZL\\管道预制施工检查记录.frx"; - if (File.Exists(rootPath + initTemplatePath)) + else { - PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; } } else diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx index 1e6c8f8..10339c4 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx @@ -36,7 +36,7 @@ - + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.cs index bf67555..7990527 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.cs @@ -60,6 +60,15 @@ namespace FineUIPro.Web.JGZL this.txtRemark.Text = report.Remark; } } + else + { + if (!string.IsNullOrEmpty(this.ProjectId)) + { + this.txtDrawingNumber.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectCode; + this.txtProfessionalEngineering.Text = "管道安装工程"; + this.txtInspectionResults.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName + "完成,经自检,管道施工符合SH/T 3501-2011《石油化工有毒、可燃介质钢制管道工程施工及验收规范》要求,焊缝外观检查合格。"; + } + } } } #endregion diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx.cs index f71a649..1255a49 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx.cs @@ -195,45 +195,48 @@ namespace FineUIPro.Web.JGZL string rootPath = Server.MapPath("~/"); BLL.Common.FastReportService.ResetData(); - string strSql = @"SELECT * from JGZL_ProcessHandoverRecord where ProjectId = @ProjectId order by DrawingNumber desc"; - List listStr = new List(); - listStr.Add(new SqlParameter("@ProjectId", projectId)); - SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - DataTable dt = new DataTable(); dt.TableName = "Data"; - dt.Columns.Add("Num"); - dt.Columns.Add("ConcealedWorks"); - dt.Columns.Add("DrawingNumber"); - dt.Columns.Add("ConcealedContentAndDiagram"); + dt.Columns.Add("ExecutionStandard"); + dt.Columns.Add("OrganizationalUnit"); + dt.Columns.Add("HandoverUnit"); + dt.Columns.Add("ReceivingUnit"); dt.Columns.Add("InspectionResults"); - dt.Columns.Add("Remark"); + dt.Columns.Add("ReceivingUnitOpinions"); - DataRow[] rows = tb.DefaultView.ToTable().Select(); - int i = 0; - foreach (var row in rows) + string id = this.Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(id)) { - var newRow = dt.NewRow(); - newRow["Num"] = (i + 1).ToString(); - newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); - newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); - newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); - newRow["Remark"] = row["Remark"].ToString(); - dt.Rows.Add(newRow); - i++; + var report = BLL.ProcessHandoverRecordService.GetProcessHandoverRecordById(id); + if (report!=null) + { + var newRow = dt.NewRow(); + newRow["ExecutionStandard"] = report.ExecutionStandard; + newRow["OrganizationalUnit"] = report.OrganizationalUnit; + newRow["HandoverUnit"] = report.HandoverUnit; + newRow["ReceivingUnit"] = report.ReceivingUnit; + newRow["InspectionResults"] = report.InspectionResults; + newRow["ReceivingUnitOpinions"] = report.ReceivingUnitOpinions; + dt.Rows.Add(newRow); + } + + BLL.Common.FastReportService.AddFastreportTable(dt); + + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + initTemplatePath = "File\\Fastreport\\JGZL\\工序交接记录.frx"; + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + } } - BLL.Common.FastReportService.AddFastreportTable(dt); - - Dictionary keyValuePairs = new Dictionary(); - keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); - BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); - - initTemplatePath = "File\\Fastreport\\JGZL\\工序交接记录.frx"; - if (File.Exists(rootPath + initTemplatePath)) + else { - PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); - } + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } } else { diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ValveInspectionTestRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ValveInspectionTestRecord.aspx.cs index 0c3c42d..6bb3aa9 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/ValveInspectionTestRecord.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/ValveInspectionTestRecord.aspx.cs @@ -195,7 +195,7 @@ namespace FineUIPro.Web.JGZL string rootPath = Server.MapPath("~/"); BLL.Common.FastReportService.ResetData(); - string strSql = @"SELECT * from JGZL_ValveInspectionTestRecord where ProjectId = @ProjectId order by DrawingNumber desc"; + string strSql = @"SELECT * from JGZL_ValveInspectionTestRecord where ProjectId = @ProjectId order by CompileDate"; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", projectId)); SqlParameter[] parameter = listStr.ToArray(); @@ -204,9 +204,19 @@ namespace FineUIPro.Web.JGZL DataTable dt = new DataTable(); dt.TableName = "Data"; dt.Columns.Add("Num"); - dt.Columns.Add("ConcealedWorks"); - dt.Columns.Add("DrawingNumber"); - dt.Columns.Add("ConcealedContentAndDiagram"); + dt.Columns.Add("Name"); + dt.Columns.Add("SpecificationModel"); + dt.Columns.Add("Code"); + dt.Columns.Add("NominalPressure"); + dt.Columns.Add("PressuretTestMedium"); + dt.Columns.Add("PressuretTestPressure"); + dt.Columns.Add("PressureTestTime"); + dt.Columns.Add("SealTestMedium"); + dt.Columns.Add("SealTestPressure"); + dt.Columns.Add("SealTestTime"); + dt.Columns.Add("UpperSealTestMedium"); + dt.Columns.Add("UpperSealTestPressure"); + dt.Columns.Add("UpperSealTestTime"); dt.Columns.Add("InspectionResults"); dt.Columns.Add("Remark"); @@ -216,9 +226,20 @@ namespace FineUIPro.Web.JGZL { var newRow = dt.NewRow(); newRow["Num"] = (i + 1).ToString(); - newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); - newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); - newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); + newRow["Name"] = row["Name"].ToString(); + newRow["SpecificationModel"] = row["SpecificationModel"].ToString(); + newRow["Code"] = row["Code"].ToString(); + newRow["NominalPressure"] = row["NominalPressure"].ToString(); + newRow["PressuretTestMedium"] = row["PressuretTestMedium"].ToString(); + newRow["PressuretTestPressure"] = row["PressuretTestPressure"].ToString(); + newRow["PressureTestTime"] = row["PressureTestTime"].ToString(); + newRow["SealTestMedium"] = row["SealTestMedium"].ToString(); + newRow["SealTestPressure"] = row["SealTestPressure"].ToString(); + newRow["SealTestTime"] = row["SealTestTime"].ToString(); + newRow["UpperSealTestMedium"] = row["UpperSealTestMedium"].ToString(); + newRow["UpperSealTestPressure"] = row["UpperSealTestPressure"].ToString(); + newRow["UpperSealTestTime"] = row["UpperSealTestTime"].ToString(); + newRow["InspectionResults"] = row["InspectionResults"].ToString(); newRow["Remark"] = row["Remark"].ToString(); dt.Rows.Add(newRow); i++; diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationForm.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationForm.aspx.cs index d368728..7e5d6d4 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationForm.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationForm.aspx.cs @@ -195,7 +195,7 @@ namespace FineUIPro.Web.JGZL string rootPath = Server.MapPath("~/"); BLL.Common.FastReportService.ResetData(); - string strSql = @"SELECT * from JGZL_ValveTestConfirmationForm where ProjectId = @ProjectId order by DrawingNumber desc"; + string strSql = @"SELECT * from JGZL_ValveTestConfirmationForm where ProjectId = @ProjectId order by CompileDate"; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", projectId)); SqlParameter[] parameter = listStr.ToArray(); @@ -203,25 +203,34 @@ namespace FineUIPro.Web.JGZL DataTable dt = new DataTable(); dt.TableName = "Data"; + dt.Columns.Add("Name"); + dt.Columns.Add("ModelNumber"); + dt.Columns.Add("Specifications"); + dt.Columns.Add("NominalPressure"); dt.Columns.Add("Num"); - dt.Columns.Add("ConcealedWorks"); - dt.Columns.Add("DrawingNumber"); - dt.Columns.Add("ConcealedContentAndDiagram"); - dt.Columns.Add("InspectionResults"); + dt.Columns.Add("PressureTest"); + dt.Columns.Add("SealTest"); + dt.Columns.Add("UpperSealTest"); + dt.Columns.Add("Code"); + dt.Columns.Add("TestResults"); dt.Columns.Add("Remark"); DataRow[] rows = tb.DefaultView.ToTable().Select(); - int i = 0; foreach (var row in rows) { var newRow = dt.NewRow(); - newRow["Num"] = (i + 1).ToString(); - newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); - newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); - newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); + newRow["Name"] = row["Name"].ToString(); + newRow["ModelNumber"] = row["ModelNumber"].ToString(); + newRow["Specifications"] = row["Specifications"].ToString(); + newRow["NominalPressure"] = row["NominalPressure"].ToString(); + newRow["Num"] = row["Num"].ToString(); + newRow["PressureTest"] = row["PressureTest"].ToString(); + newRow["SealTest"] = row["SealTest"].ToString(); + newRow["UpperSealTest"] = row["UpperSealTest"].ToString(); + newRow["Code"] = row["Code"].ToString(); + newRow["TestResults"] = row["TestResults"].ToString(); newRow["Remark"] = row["Remark"].ToString(); dt.Rows.Add(newRow); - i++; } BLL.Common.FastReportService.AddFastreportTable(dt); diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationFormEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationFormEdit.aspx index 7e469db..649baa9 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationFormEdit.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationFormEdit.aspx @@ -12,64 +12,56 @@ - + - + - + - - + + - - - - + + + + - - - - + + + + - - - + + - + - - - + + + + - - - + + + + - - - + + + - - - - - - - - - - - + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationFormEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationFormEdit.aspx.designer.cs index 1a341b6..609ce83 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationFormEdit.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/ValveTestConfirmationFormEdit.aspx.designer.cs @@ -156,7 +156,7 @@ namespace FineUIPro.Web.JGZL /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextArea txtTestResults; + protected global::FineUIPro.TextBox txtTestResults; /// /// txtRemark 控件。 diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index 9cb9284..30834b7 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs index 6372404..1f59d8f 100644 --- a/HJGL_DS/Model/Model.cs +++ b/HJGL_DS/Model/Model.cs @@ -86240,7 +86240,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_STE_ID", DbType="NVarChar(500)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_STE_ID", DbType="NVarChar(50)")] public string STE_ID { get @@ -86320,7 +86320,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeFittingName", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeFittingName", DbType="NVarChar(100)")] public string PipeFittingName { get @@ -86360,7 +86360,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Conclusion", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Conclusion", DbType="NVarChar(500)")] public string Conclusion { get