diff --git a/DataBase/版本日志/SGGLDB_WH_2024-03-30-yll.sql b/DataBase/版本日志/SGGLDB_WH_2024-03-30-yll.sql
new file mode 100644
index 00000000..35840c32
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2024-03-30-yll.sql
@@ -0,0 +1,6 @@
+ALTER TABLE Comprehensive_NCRManagement ADD Problem varchar(50)
+ALTER TABLE Comprehensive_NCRManagement ADD Measure varchar(100)
+
+ALTER TABLE Comprehensive_PressurePipe ADD ReportTime datetime
+
+ALTER TABLE Comprehensive_SpecialEquipment ADD ReportTime datetime
\ No newline at end of file
diff --git a/DataBase/版本日志/SGGLDB_WH_2024-03-30_bwj.sql b/DataBase/版本日志/SGGLDB_WH_2024-03-30_bwj.sql
new file mode 100644
index 00000000..1d4dcc08
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2024-03-30_bwj.sql
@@ -0,0 +1,77 @@
+delete from Sys_ButtonToMenu where MenuId='420456A5-22E7-45BF-A4CA-8412F4C7D1B9'
+delete from Sys_Menu where MenuId='420456A5-22E7-45BF-A4CA-8412F4C7D1B9'
+go
+update Sys_Menu set MenuName='鷢',Url='TestRun/Meeting/MeetingInitiate.aspx' where MenuId='2B42BDDA-0D24-4C68-9C35-DCCA4054736A'
+update Sys_Menu set MenuName='Ҫ',Url='TestRun/Meeting/MeetingSummary.aspx' where MenuId='E453EEE9-9D6A-454B-AB17-A6E284B7A95F'
+go
+
+
+ALTER TABLE [dbo].[Driver_MeetingItem] DROP CONSTRAINT [FK_Driver_MeetingItem_Driver_Meeting]
+GO
+
+DROP TABLE [dbo].[Driver_Meeting]
+GO
+
+CREATE TABLE [dbo].[Driver_Meeting](
+ [MeetingId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [MeetingName] [nvarchar](50) NULL,
+ [StartTime] [datetime] NULL,
+ [EndTime] [datetime] NULL,
+ [MeetingAddress] [nvarchar](100) NULL,
+ [MeetingUrl] [nvarchar](500) NULL,
+ [InitiationDate] [datetime] NULL,
+ [MeetingContent] [nvarchar](1000) NULL,
+ [MeetingType] [nchar](1) NULL,
+ CONSTRAINT [PK_Driver_Meeting] PRIMARY KEY CLUSTERED
+(
+ [MeetingId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+GO
+
+ALTER TABLE [dbo].[Driver_Meeting] WITH CHECK ADD CONSTRAINT [FK_Driver_Meeting_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[Driver_Meeting] CHECK CONSTRAINT [FK_Driver_Meeting_Base_Project]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'ProjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʼʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'StartTime'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'EndTime'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ַ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingAddress'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingUrl'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'InitiationDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingContent'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͣ1-Ȼᣬ2-ᣬ3-רᣩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingType'
+GO
+
+
+ALTER TABLE [dbo].[Driver_MeetingItem] WITH CHECK ADD CONSTRAINT [FK_Driver_MeetingItem_Driver_Meeting] FOREIGN KEY([MeetingId])
+REFERENCES [dbo].[Driver_Meeting] ([MeetingId])
+GO
+
+ALTER TABLE [dbo].[Driver_MeetingItem] CHECK CONSTRAINT [FK_Driver_MeetingItem_Driver_Meeting]
+GO
+
diff --git a/SGGL/BLL/CQMS/Comprehensive/NCRManagementService.cs b/SGGL/BLL/CQMS/Comprehensive/NCRManagementService.cs
index fbf7b803..ea7fe758 100644
--- a/SGGL/BLL/CQMS/Comprehensive/NCRManagementService.cs
+++ b/SGGL/BLL/CQMS/Comprehensive/NCRManagementService.cs
@@ -116,6 +116,8 @@ namespace BLL
newNCRManagement.CompileMan = nCRManagement.CompileMan;
newNCRManagement.UnitWorkId = nCRManagement.UnitWorkId;
newNCRManagement.Status = nCRManagement.Status;
+ newNCRManagement.Problem = nCRManagement.Problem;
+ newNCRManagement.Measure = nCRManagement.Measure;
db.Comprehensive_NCRManagement.InsertOnSubmit(newNCRManagement);
db.SubmitChanges();
}
@@ -144,6 +146,8 @@ namespace BLL
newNCRManagement.ImplementationFrontState = nCRManagement.ImplementationFrontState;
newNCRManagement.UnitWorkId = nCRManagement.UnitWorkId;
newNCRManagement.Status = nCRManagement.Status;
+ newNCRManagement.Problem = nCRManagement.Problem;
+ newNCRManagement.Measure = nCRManagement.Measure;
db.SubmitChanges();
}
}
diff --git a/SGGL/BLL/CQMS/Comprehensive/PressurePipeService.cs b/SGGL/BLL/CQMS/Comprehensive/PressurePipeService.cs
index f0707b19..61db5b1a 100644
--- a/SGGL/BLL/CQMS/Comprehensive/PressurePipeService.cs
+++ b/SGGL/BLL/CQMS/Comprehensive/PressurePipeService.cs
@@ -101,6 +101,7 @@ namespace BLL
newPressurePipe.IssuedReportNumber = PressurePipe.IssuedReportNumber;
newPressurePipe.CompileMan = PressurePipe.CompileMan;
newPressurePipe.Status = PressurePipe.Status;
+ newPressurePipe.ReportTime = PressurePipe.ReportTime;
db.Comprehensive_PressurePipe.InsertOnSubmit(newPressurePipe);
db.SubmitChanges();
}
@@ -124,6 +125,7 @@ namespace BLL
newPressurePipe.PressurePipeNumber = PressurePipe.PressurePipeNumber;
newPressurePipe.IssuedReportNumber = PressurePipe.IssuedReportNumber;
newPressurePipe.Status = PressurePipe.Status;
+ newPressurePipe.ReportTime = PressurePipe.ReportTime;
db.SubmitChanges();
}
}
diff --git a/SGGL/BLL/CQMS/ProcessControl/InspectionManagementService.cs b/SGGL/BLL/CQMS/ProcessControl/InspectionManagementService.cs
index 26bc8dd3..220d3ddc 100644
--- a/SGGL/BLL/CQMS/ProcessControl/InspectionManagementService.cs
+++ b/SGGL/BLL/CQMS/ProcessControl/InspectionManagementService.cs
@@ -337,7 +337,7 @@ namespace BLL
}
if (!string.IsNullOrEmpty(cNProfessionalId) && cNProfessionalId != "0")
{
- InspectionMangementList = (from x in InspectionMangementList where x.CNProfessionalId == cNProfessionalId select x).ToList();
+ InspectionMangementList = (from x in InspectionMangementList where x.CNProfessionalId==cNProfessionalId select x).ToList();
}
if (isOnceQualified == true)
{
diff --git a/SGGL/BLL/TestRun/DriverReport/TestRun_MonthReportService.cs b/SGGL/BLL/TestRun/DriverReport/TestRun_MonthReportService.cs
index d4a6386f..ccea96cf 100644
--- a/SGGL/BLL/TestRun/DriverReport/TestRun_MonthReportService.cs
+++ b/SGGL/BLL/TestRun/DriverReport/TestRun_MonthReportService.cs
@@ -18,6 +18,16 @@ namespace BLL
return Funs.DB.TestRun_MonthReport.FirstOrDefault(e => e.MonthReportId == monthReportId);
}
+ ///
+ /// 获取最新一条月报信息
+ ///
+ ///
+ ///
+ public static Model.TestRun_MonthReport GetReportByMaxDate(string projectId)
+ {
+ return (from x in Funs.DB.TestRun_MonthReport where x.ProjectId == projectId select x).OrderByDescending(e => e.MonthReportDate).FirstOrDefault();
+ }
+
///
/// 根据月份获取开车月报告
///
diff --git a/SGGL/BLL/TestRun/Meeting/MeetingService.cs b/SGGL/BLL/TestRun/Meeting/MeetingService.cs
index 47be8a98..597e85f2 100644
--- a/SGGL/BLL/TestRun/Meeting/MeetingService.cs
+++ b/SGGL/BLL/TestRun/Meeting/MeetingService.cs
@@ -26,20 +26,14 @@ namespace BLL
Model.Driver_Meeting newMeeting = new Model.Driver_Meeting();
newMeeting.MeetingId = meeting.MeetingId;
newMeeting.ProjectId = meeting.ProjectId;
- newMeeting.MeetingTake = meeting.MeetingTake;
- newMeeting.UnitWorkId = meeting.UnitWorkId;
- newMeeting.MeetingUnit = meeting.MeetingUnit;
+ newMeeting.MeetingName = meeting.MeetingName;
+ newMeeting.StartTime = meeting.StartTime;
+ newMeeting.EndTime = meeting.EndTime;
newMeeting.MeetingAddress = meeting.MeetingAddress;
- newMeeting.MeetingDate = meeting.MeetingDate;
+ newMeeting.MeetingUrl = meeting.MeetingUrl;
+ newMeeting.InitiationDate = meeting.InitiationDate;
newMeeting.MeetingContent = meeting.MeetingContent;
- newMeeting.Number = meeting.Number;
newMeeting.MeetingType = meeting.MeetingType;
- newMeeting.AttachUrl = meeting.AttachUrl;
- newMeeting.Remark = meeting.Remark;
- newMeeting.MeetingCode = meeting.MeetingCode;
- newMeeting.CompileMan = meeting.CompileMan;
- newMeeting.CompileDate = meeting.CompileDate;
- newMeeting.States = meeting.States;
Funs.DB.Driver_Meeting.InsertOnSubmit(newMeeting);
Funs.DB.SubmitChanges();
@@ -54,19 +48,14 @@ namespace BLL
Model.Driver_Meeting newMeeting = Funs.DB.Driver_Meeting.FirstOrDefault(e => e.MeetingId == meeting.MeetingId);
if (newMeeting != null)
{
- //newMeeting.ProjectId = meeting.ProjectId;
- newMeeting.MeetingTake = meeting.MeetingTake;
- newMeeting.UnitWorkId = meeting.UnitWorkId;
- newMeeting.MeetingUnit = meeting.MeetingUnit;
+ newMeeting.MeetingName = meeting.MeetingName;
+ newMeeting.StartTime = meeting.StartTime;
+ newMeeting.EndTime = meeting.EndTime;
newMeeting.MeetingAddress = meeting.MeetingAddress;
- newMeeting.MeetingDate = meeting.MeetingDate;
+ newMeeting.MeetingUrl = meeting.MeetingUrl;
+ newMeeting.InitiationDate = meeting.InitiationDate;
newMeeting.MeetingContent = meeting.MeetingContent;
- newMeeting.Number = meeting.Number;
- //newMeeting.MeetingType = meeting.MeetingType;
- newMeeting.AttachUrl = meeting.AttachUrl;
- newMeeting.Remark = meeting.Remark;
- newMeeting.MeetingCode = meeting.MeetingCode;
- newMeeting.States = meeting.States;
+ newMeeting.MeetingType = meeting.MeetingType;
Funs.DB.SubmitChanges();
}
@@ -81,9 +70,9 @@ namespace BLL
Model.Driver_Meeting meeting = Funs.DB.Driver_Meeting.FirstOrDefault(e => e.MeetingId == meetingId);
if (meeting != null)
{
- CommonService.DeleteAttachFileById(meetingId + "#1");//删除会议纪要附件
- CommonService.DeleteAttachFileById(meetingId + "#2");//删除签到表附件
- CommonService.DeleteFlowOperateByID(meetingId);//删除流程表
+ //CommonService.DeleteAttachFileById(meetingId + "#1");//删除会议纪要附件
+ //CommonService.DeleteAttachFileById(meetingId + "#2");//删除签到表附件
+ //CommonService.DeleteFlowOperateByID(meetingId);//删除流程表
Funs.DB.Driver_Meeting.DeleteOnSubmit(meeting);
Funs.DB.SubmitChanges();
}
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx
index 715392b9..1a44d148 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx
@@ -32,6 +32,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs
index d6f4a005..0265053e 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs
@@ -79,6 +79,13 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.txtCompleteDate.Text = string.Format("{0:yyyy-MM-dd}", nCRManagement.CompleteDate);
}
+ if (nCRManagement.Problem!=null)
+ {
+ this.ddlProblem.SelectedValue = nCRManagement.Problem;
+ }
+ this.txtMeasure.Text = nCRManagement.Measure;
+
+
this.txtResponsibleMan.Text = nCRManagement.ResponsibleMan;
this.txtImplementationFrontState.Text = nCRManagement.ImplementationFrontState;
@@ -143,7 +150,8 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.drpSendUnit.Readonly = true;
this.drpUnitIds.Readonly = true;
this.drpUnitWorkIds.Readonly = true;
- this.drpAudit.Readonly = true;
+ this.drpAudit.Readonly = true;
+ this.ddlProblem.Readonly = true;
//this.btnAttach.Enabled = false;
@@ -207,6 +215,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
}
nCRManagement.NCRCode = this.txtNCRCode.Text.Trim();
nCRManagement.Contents = this.txtContents.Text.Trim();
+
+ #region 新增2024-03-29
+ if (this.ddlProblem.SelectedValue != BLL.Const._Null)
+ {
+ nCRManagement.Problem = this.ddlProblem.SelectedValue;
+ }
+ nCRManagement.Measure = this.txtMeasure.Text.Trim();
+ #endregion
+
if (!string.IsNullOrEmpty(this.txtIssuedDate.Text))
{
nCRManagement.IssuedDate = Convert.ToDateTime(this.txtIssuedDate.Text);
@@ -318,6 +335,14 @@ namespace FineUIPro.Web.CQMS.Comprehensive
}
nCRManagement.NCRCode = this.txtNCRCode.Text.Trim();
nCRManagement.Contents = this.txtContents.Text.Trim();
+ #region 新增2024-03-29
+ if (!string.IsNullOrEmpty(this.ddlProblem.SelectedValue))
+ {
+ nCRManagement.Problem = this.ddlProblem.SelectedValue;
+ }
+ nCRManagement.Measure = this.txtMeasure.Text.Trim();
+ #endregion
+
if (!string.IsNullOrEmpty(this.txtIssuedDate.Text))
{
nCRManagement.IssuedDate = Convert.ToDateTime(this.txtIssuedDate.Text);
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.designer.cs
index 750d2e35..f844bd96 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.designer.cs
@@ -7,13 +7,11 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.CQMS.Comprehensive
-{
-
-
- public partial class NCRManagementEdit
- {
-
+namespace FineUIPro.Web.CQMS.Comprehensive {
+
+
+ public partial class NCRManagementEdit {
+
///
/// form1 控件。
///
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// SimpleForm1 控件。
///
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm1;
-
+
///
/// drpSendUnit 控件。
///
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpSendUnit;
-
+
///
/// drpCNProfessionalId 控件。
///
@@ -58,7 +56,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpCNProfessionalId;
-
+
///
/// txtNCRCode 控件。
///
@@ -67,7 +65,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtNCRCode;
-
+
///
/// txtIssuedDate 控件。
///
@@ -76,7 +74,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtIssuedDate;
-
+
///
/// txtContents 控件。
///
@@ -85,7 +83,25 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextArea txtContents;
-
+
+ ///
+ /// ddlProblem 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlProblem;
+
+ ///
+ /// txtMeasure 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtMeasure;
+
///
/// drpUnitWorkIds 控件。
///
@@ -94,7 +110,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpUnitWorkIds;
-
+
///
/// drpUnitIds 控件。
///
@@ -103,7 +119,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpUnitIds;
-
+
///
/// txtImplementationFrontState 控件。
///
@@ -112,7 +128,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtImplementationFrontState;
-
+
///
/// txtResponsibleMan 控件。
///
@@ -121,7 +137,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtResponsibleMan;
-
+
///
/// txtClosedDate 控件。
///
@@ -130,7 +146,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtClosedDate;
-
+
///
/// txtCompleteDate 控件。
///
@@ -139,7 +155,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtCompleteDate;
-
+
///
/// Panel2 控件。
///
@@ -148,7 +164,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel2;
-
+
///
/// Label1 控件。
///
@@ -157,7 +173,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label Label1;
-
+
///
/// btnAttach 控件。
///
@@ -166,7 +182,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnAttach;
-
+
///
/// drpAudit 控件。
///
@@ -175,7 +191,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpAudit;
-
+
///
/// agree 控件。
///
@@ -184,7 +200,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.FormRow agree;
-
+
///
/// rblIsAgree 控件。
///
@@ -193,7 +209,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.RadioButtonList rblIsAgree;
-
+
///
/// options 控件。
///
@@ -202,7 +218,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.FormRow options;
-
+
///
/// txtidea 控件。
///
@@ -211,7 +227,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextArea txtidea;
-
+
///
/// Toolbar1 控件。
///
@@ -220,7 +236,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar1;
-
+
///
/// hdAttachUrl 控件。
///
@@ -229,7 +245,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.HiddenField hdAttachUrl;
-
+
///
/// btnSave 控件。
///
@@ -238,7 +254,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSave;
-
+
///
/// btnSubmit 控件。
///
@@ -247,7 +263,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSubmit;
-
+
///
/// WindowAtt 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx
index b05676cd..4439355a 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx
@@ -9,7 +9,7 @@
-
+
@@ -38,7 +38,7 @@
-
+
@@ -52,11 +52,14 @@
-
+
+
+
@@ -69,7 +72,7 @@
-
+
@@ -85,10 +88,10 @@
-
+
-
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.cs
index ee3f7e5e..60f22207 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.cs
@@ -59,6 +59,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.txtPressurePipeNumber.Text = pressurePipe.PressurePipeNumber.HasValue ? pressurePipe.PressurePipeNumber.ToString() : "";
this.txtIssuedReportNumber.Text = pressurePipe.IssuedReportNumber.HasValue ? pressurePipe.IssuedReportNumber.ToString() : "";
+ if (pressurePipe.ReportTime != null)
+ {
+ this.txtReportTime.Text = string.Format("{0:yyyy-MM-dd}", pressurePipe.ReportTime);
+ }
var currApprove = PressurePipeApproveService.GetCurrentApprove(pressurePipe.PressurePipeId);
if (currApprove != null)
@@ -94,6 +98,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
}
else
{
+ this.txtReportTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.btnSave.Hidden = false;
this.btnSubmit.Hidden = false;
}
@@ -113,6 +118,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.txtPackageNumber.Readonly = true;
this.txtPressurePipeNumber.Readonly = true;
this.drpUnit.Readonly = true;
+ this.txtReportTime.Readonly = true;
this.drpAudit.Readonly = true;
@@ -191,6 +197,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
pressurePipe.IssuedReportNumber = Convert.ToInt32(this.txtIssuedReportNumber.Text);
}
+ if (!string.IsNullOrEmpty(this.txtReportTime.Text))
+ {
+ pressurePipe.ReportTime = Convert.ToDateTime(this.txtReportTime.Text);
+ }
+
if (string.IsNullOrEmpty(this.PressurePipeId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
@@ -277,6 +288,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
pressurePipe.IssuedReportNumber = Convert.ToInt32(this.txtIssuedReportNumber.Text);
}
+ if (!string.IsNullOrEmpty(this.txtReportTime.Text))
+ {
+ pressurePipe.ReportTime = Convert.ToDateTime(this.txtReportTime.Text);
+ }
if (string.IsNullOrEmpty(this.PressurePipeId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.designer.cs
index b88bc8b1..c04b9621 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.designer.cs
@@ -140,6 +140,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
///
protected global::FineUIPro.DropDownList drpAudit;
+ ///
+ /// txtReportTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtReportTime;
+
///
/// agree 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx
index 683ffd57..8893694e 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx
@@ -51,6 +51,9 @@
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.cs
index f8741790..329bcbca 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.cs
@@ -61,8 +61,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.txtMonitoringReportNumber.Text = specialEquipment.MonitoringReportNumber.HasValue ? specialEquipment.MonitoringReportNumber.ToString() : "";
this.txtSubmitDataNumber.Text = specialEquipment.SubmitDataNumber.HasValue ? specialEquipment.SubmitDataNumber.ToString() : "";
this.txtSunNumber.Text = specialEquipment.SunNumber.HasValue ? specialEquipment.SunNumber.ToString() : "";
-
-
+ if (specialEquipment.ReportTime != null)
+ {
+ this.txtReportTime.Text = string.Format("{0:yyyy-MM-dd}", specialEquipment.ReportTime);
+ }
var currApprove = SpecialEquipmentApproveService.GetCurrentApprove(specialEquipment.SpecialEquipmentId);
if (currApprove != null)
@@ -98,6 +100,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
}
else
{
+ this.txtReportTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.btnSave.Hidden = false;
this.btnSubmit.Hidden = false;
@@ -192,6 +195,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
specialEquipment.InformNumber = Convert.ToInt32(this.txtInformNumber.Text);
}
+ if (!string.IsNullOrEmpty(this.txtReportTime.Text))
+ {
+ specialEquipment.ReportTime = Convert.ToDateTime(this.txtReportTime.Text);
+ }
+
if (string.IsNullOrEmpty(this.SpecialEquipmentId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
@@ -273,6 +281,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
specialEquipment.InformNumber = Convert.ToInt32(this.txtInformNumber.Text);
}
+ if (!string.IsNullOrEmpty(this.txtReportTime.Text))
+ {
+ specialEquipment.ReportTime = Convert.ToDateTime(this.txtReportTime.Text);
+ }
if (string.IsNullOrEmpty(this.SpecialEquipmentId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.designer.cs
index 5ad26ed9..3e34b1c5 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.designer.cs
@@ -131,6 +131,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
///
protected global::FineUIPro.DropDownList drpAudit;
+ ///
+ /// txtReportTime 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtReportTime;
+
///
/// agree 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs
index e592408b..71ef4b38 100644
--- a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReport.aspx.cs
@@ -104,10 +104,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
//本月质量目标管理情况
CqmsTargetService.Delete(rowID);
-
TextBoxContentService.Delete(rowID);
-
-
+ Report_CQMS_MonthReportItemService.DeleteReportItemByReportId(rowID);
WeekAndMonthReportNewService.Delete(rowID);
}
BindGrid();
@@ -889,9 +887,327 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
- #endregion
+ #endregion
- doc.Save(newUrl);
+ var reportItem = db.Report_CQMS_MonthReportItem.Where(x => x.ReportId == Id).OrderBy(x => x.ContentName).ToList();
+
+ #region 9.计量器具报验管理情况
+ #endregion
+
+ #region 10.现场质量共检数据
+ #endregion
+
+ #region 11.压力管道监检情况
+ #endregion
+
+ #region 12.管道试压包管理情况
+ #endregion
+
+ #region 13.特种设备监检情况
+ #endregion
+
+ #region 14.NCR管理情况
+ #endregion
+
+ #region 15.质量巡检情况
+ var qualityInspections = reportItem.Where(x => x.ReType == "1").ToList();
+ if (qualityInspections.Count > 0)
+ {
+ isYm = true;
+ //whileIndex += 1;
+ whileIndex = 26;
+ table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ //跳过页眉的表头
+ while (isYm)
+ {
+ if (table.Range.Text.Substring(0, 2) != "序号")
+ {
+ whileIndex += 1;
+ table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ }
+ else
+ {
+ isYm = false;
+ }
+ }
+ numberIndex = 1;
+ int? num1 = 0, num2 = 0;
+ foreach (var item in qualityInspections)
+ {
+ //创建行
+ Row row = new Row(doc);
+ row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.RectificationRate, doc, table.FirstRow.Cells[4].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[5].CellFormat.Width));
+ table.Rows.Insert(numberIndex, row);
+ num1 += item.MonthsCount;
+ num2 += item.ProjectCount;
+ numberIndex += 1;
+ }
+ //自动设置表格样式
+ table.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ //创建合计
+ Row rowhj = new Row(doc);
+ rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[5].CellFormat.Width));
+ table.Rows.Insert(numberIndex, rowhj);
+
+ //自动设置表格样式
+ table.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ }
+ #endregion
+
+ #region 16.质量专项检查情况
+ var specialChecks = reportItem.Where(x => x.ReType == "2").ToList();
+ if (specialChecks.Count > 0)
+ {
+ isYm = true;
+ //whileIndex += 1;
+ whileIndex = 27;
+ table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ //跳过页眉的表头
+ while (isYm)
+ {
+ if (table.Range.Text.Substring(0, 2) != "序号")
+ {
+ whileIndex += 1;
+ table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ }
+ else
+ {
+ isYm = false;
+ }
+ }
+ numberIndex = 1;
+ int? num1 = 0, num2 = 0;
+ foreach (var item in specialChecks)
+ {
+ //创建行
+ Row row = new Row(doc);
+ row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[4].CellFormat.Width));
+ table.Rows.Insert(numberIndex, row);
+ num1 += item.MonthsCount;
+ num2 += item.ProjectCount;
+ numberIndex += 1;
+ }
+ //自动设置表格样式
+ table.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ //创建合计
+ Row rowhj = new Row(doc);
+ rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width));
+ table.Rows.Insert(numberIndex, rowhj);
+
+ //自动设置表格样式
+ table.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ }
+ #endregion
+
+ #region 17.质量文件上报情况
+ var fileReports = reportItem.Where(x => x.ReType == "3").ToList();
+ if (fileReports.Count > 0)
+ {
+ isYm = true;
+ //whileIndex += 1;
+ whileIndex = 28;
+ table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ //跳过页眉的表头
+ while (isYm)
+ {
+ if (table.Range.Text.Substring(0, 2) != "序号")
+ {
+ whileIndex += 1;
+ table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ }
+ else
+ {
+ isYm = false;
+ }
+ }
+ numberIndex = 1;
+ int? num1 = 0, num2 = 0, num3 = 0, num4 = 0;
+ foreach (var item in fileReports)
+ {
+ //创建行
+ Row row = new Row(doc);
+ row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.MonthsBackCount.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.FirstRow.Cells[5].CellFormat.Width));
+ table.Rows.Insert(numberIndex, row);
+ num1 += item.MonthsCount;
+ num2 += item.ProjectCount;
+ num3 += item.MonthsBackCount;
+ num4 += item.TotalNoBackCount;
+ numberIndex += 1;
+ }
+ //自动设置表格样式
+ table.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ //创建合计
+ Row rowhj = new Row(doc);
+ rowhj.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[0].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell("合计", doc, table.FirstRow.Cells[1].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell(num1.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell(num2.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell(num3.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width));
+ rowhj.Cells.Add(CreateCell(num4.ToString(), doc, table.FirstRow.Cells[5].CellFormat.Width));
+ table.Rows.Insert(numberIndex, rowhj);
+
+ //自动设置表格样式
+ table.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ }
+ #endregion
+
+ #region 18.本月质量问题处理情况
+ #region (1)原材料问题
+ whileIndex = 29;
+ Aspose.Words.Tables.Table table18_1 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ bool isYm18_1 = true;
+ //跳过页眉的表头
+ while (isYm18_1)
+ {
+ if (table18_1.Range.Text.Substring(0, 2) != "序号")
+ {
+ whileIndex += 1;
+ table18_1 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ }
+ else
+ {
+ isYm18_1 = false;
+ }
+ }
+ var rowMaterialProblems = db.Report_RowMaterialProblem.Where(x => x.ReportId == Id);
+ int numberIndex18_1 = 1;
+ foreach (var item in rowMaterialProblems)
+ {
+ //创建行
+ Row row = new Row(doc);
+ row.Cells.Add(CreateCell(numberIndex18_1.ToString(), doc, table18_1.FirstRow.Cells[0].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.UnitId, doc, table18_1.FirstRow.Cells[1].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.ProblemDesrioption, doc, table18_1.FirstRow.Cells[2].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.TreatmentMeasures, doc, table18_1.FirstRow.Cells[3].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.ProcessingResults, doc, table18_1.FirstRow.Cells[4].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.Remark, doc, table18_1.FirstRow.Cells[5].CellFormat.Width));
+ table18_1.Rows.Insert(numberIndex18_1, row);
+
+ numberIndex18_1 += 1;
+ }
+ //自动设置表格样式
+ table18_1.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ #endregion
+
+ #region (2)施工过程问题
+ whileIndex = 30;
+ Aspose.Words.Tables.Table table18_2 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ bool isYm18_2 = true;
+ //跳过页眉的表头
+ while (isYm18_2)
+ {
+ if (table18_2.Range.Text.Substring(0, 2) != "序号")
+ {
+ whileIndex += 1;
+ table18_2 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ }
+ else
+ {
+ isYm18_2 = false;
+ }
+ }
+ var constructionProblems = db.Report_ConstructionProblems.Where(x => x.ReportId == Id);
+ int numberIndex18_2 = 1;
+ foreach (var item in constructionProblems)
+ {
+ //创建行
+ Row row = new Row(doc);
+ row.Cells.Add(CreateCell(numberIndex18_2.ToString(), doc, table18_2.FirstRow.Cells[0].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.UnitId, doc, table18_2.FirstRow.Cells[1].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.ProblemDesrioption, doc, table18_2.FirstRow.Cells[2].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.TreatmentMeasures, doc, table18_2.FirstRow.Cells[3].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.ProcessingResults, doc, table18_2.FirstRow.Cells[4].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.Remark, doc, table18_2.FirstRow.Cells[5].CellFormat.Width));
+ table18_2.Rows.Insert(numberIndex18_2, row);
+
+ numberIndex18_2 += 1;
+ }
+ //自动设置表格样式
+ table18_2.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ #endregion
+ #endregion
+
+ #region 19.下月质量控制重点
+ whileIndex = 31;
+ Aspose.Words.Tables.Table table19 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ bool isYm19 = true;
+ //跳过页眉的表头
+ while (isYm19)
+ {
+ if (table19.Range.Text.Substring(0, 2) != "序号")
+ {
+ whileIndex += 1;
+ table19 = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
+ }
+ else
+ {
+ isYm19 = false;
+ }
+ }
+ var nextQualityControls = db.Report_NextQualityControl.Where(x => x.ReportId == Id);
+ int numberIndex19 = 1;
+ foreach (var item in nextQualityControls)
+ {
+ //创建行
+ Row row = new Row(doc);
+ row.Cells.Add(CreateCell(numberIndex19.ToString(), doc, table19.FirstRow.Cells[0].CellFormat.Width));
+ row.Cells.Add(CreateCell(item.NextQualityControlContent, doc, table19.FirstRow.Cells[1].CellFormat.Width));
+ table19.Rows.Insert(numberIndex19, row);
+
+ numberIndex19 += 1;
+ }
+ //自动设置表格样式
+ table19.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ #endregion
+
+ #region 20.项目质量体系审核
+ bkmark = doc.Range.Bookmarks["Content20"];
+ if (bkmark != null)
+ {
+ bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "20").ContentText;
+ }
+ #endregion
+
+ #region 21.类似项目管理经验教训应对措施及跟踪
+ bkmark = doc.Range.Bookmarks["Content21"];
+ if (bkmark != null)
+ {
+ bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText;
+ }
+ #endregion
+
+ #region 22.附件
+ bkmark = doc.Range.Bookmarks["Content22"];
+ if (bkmark != null)
+ {
+ bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText;
+ }
+ #endregion
+
+ doc.Save(newUrl);
string fileName = Path.GetFileName(newUrl);
FileInfo info = new FileInfo(newUrl);
long fileSize = info.Length;
diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx
index 3e1ecc6f..7658c249 100644
--- a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx
@@ -832,21 +832,21 @@
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
@@ -859,13 +859,558 @@
+ <%--9.计量器具报验管理情况--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--10.现场质量共检数据--%>
+
+
+
+
+
+
+ <%--10-1.土建--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--10-2.设备--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--10-3.管道--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--10-4.电气--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--10-5.仪表--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--10-6.防腐--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--10-7.消防--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--10.合计--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--11.压力管道监检情况--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--12.管道试压包管理情况--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--13.特种设备监检情况--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--14.NCR管理情况--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
+
+
+
+
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
<%--15.质量巡检情况--%>
@@ -908,6 +1453,11 @@
+
+
+
+
+
@@ -1095,7 +1645,7 @@
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="施工分包商">
-
+
@@ -1190,20 +1740,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<%--20.项目质量体系审核--%>
@@ -1221,7 +1757,6 @@
-
<%--21.类似项目管理经验教训应对措施及跟踪--%>
@@ -1257,7 +1792,6 @@
-
@@ -1266,9 +1800,6 @@
-
-
-
@@ -1280,10 +1811,7 @@
-
-
-