diff --git a/DataBase/版本日志/SGGLDB_V2021-12-02-001.sql b/DataBase/版本日志/SGGLDB_V2021-12-02-001.sql new file mode 100644 index 00000000..05152a09 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2021-12-02-001.sql @@ -0,0 +1,70 @@ +CREATE TABLE [dbo].[Information_UrgeReport]( + [UrgeReportId] [nvarchar](50) NOT NULL, + [UnitId] [nvarchar](50) NULL, + [ReprotType] [nvarchar](50) NULL, + [YearId] [nvarchar](50) NULL, + [MonthId] [nvarchar](50) NULL, + [QuarterId] [nvarchar](50) NULL, + [HalfYearId] [nvarchar](50) NULL, + [UrgeDate] [datetime] NULL, + [IsComplete] [bit] NULL, + [IsCancel] [bit] NULL, + CONSTRAINT [PK_Information_UrgeReport] PRIMARY KEY CLUSTERED +( + [UrgeReportId] 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].[Information_UrgeReport] WITH CHECK ADD CONSTRAINT [FK_Information_UrgeReport_Base_Unit] FOREIGN KEY([UnitId]) +REFERENCES [dbo].[Base_Unit] ([UnitId]) +GO + +ALTER TABLE [dbo].[Information_UrgeReport] CHECK CONSTRAINT [FK_Information_UrgeReport_Base_Unit] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'߱id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_UrgeReport', @level2type=N'COLUMN',@level2name=N'UrgeReportId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λid' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_UrgeReport', @level2type=N'COLUMN',@level2name=N'UnitId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N' ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_UrgeReport', @level2type=N'COLUMN',@level2name=N'ReprotType' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿϱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_UrgeReport', @level2type=N'COLUMN',@level2name=N'IsComplete' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫϢ߱' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_UrgeReport' +GO + + +CREATE VIEW [dbo].[View_Supervise_SubUnitReportItem] +AS +/*ӹ˾ȫϱ*/ +SELECT Item.SubUnitReportItemId, + Item.SubUnitReportId, + Item.UnitId, + Item.PlanReortDate, + Item.ReportTitle, + Item.ReportContent, + --Item.AttachUrl, + Item.ReportDate, + Item.State, + Item.UpState, + SUBSTRING(AttachFile.AttachUrl,CHARINDEX('~',AttachFile.AttachUrl)+1,LEN(AttachFile.AttachUrl)) AS AttachUrlName, + U.UnitName, + (CASE WHEN Item.UpState='1' THEN 'λ' WHEN Item.UpState='2' THEN 'ϱ' when Item.UpState='3' then 'ϱ' when Item.UpState='4' then 'ϱʧ' end) as UpStates, + ConstUpState.ConstText AS UpStateName, + AttachFile.AttachFileId, + AttachFile.ToKeyId, + AttachFile.AttachSource, + AttachFile.AttachUrl +FROM Supervise_SubUnitReportItem AS Item +LEFT JOIN Base_Unit AS U ON U.UnitId=Item.UnitId +LEFT JOIN AttachFile AS AttachFile ON Item.SubUnitReportItemId=AttachFile.ToKeyId +LEFT JOIN Sys_Const AS ConstUpState ON Item.UpState=ConstUpState.ConstValue and ConstUpState.GroupId='UpState' + + +GO \ No newline at end of file diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 691252ae..34b194b6 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -564,6 +564,8 @@ + + @@ -707,12 +709,14 @@ + + @@ -895,13 +899,6 @@ - - WCF Proxy Generator - Reference.cs - - - - WCF Proxy Generator Reference.cs @@ -909,6 +906,13 @@ + + WCF Proxy Generator + Reference.cs + + + + diff --git a/SGGL/BLL/Common/ProjectDataFlowSetService.cs b/SGGL/BLL/Common/ProjectDataFlowSetService.cs index 22f9746d..e234b549 100644 --- a/SGGL/BLL/Common/ProjectDataFlowSetService.cs +++ b/SGGL/BLL/Common/ProjectDataFlowSetService.cs @@ -1,5 +1,6 @@ namespace BLL { + using System; using System.Collections; using System.Linq; @@ -162,6 +163,21 @@ return unFlowOperate; } + /// + /// + /// + public static void CloseFlowOperate(string menuId, string dataId, string opinion) + { + var updateUnFlowOperate = db.ProjectData_FlowOperate.FirstOrDefault(x => x.MenuId == menuId && x.DataId == dataId && (x.IsClosed == false || !x.IsClosed.HasValue)); + if (updateUnFlowOperate != null) + { + updateUnFlowOperate.OperaterTime = DateTime.Now; + updateUnFlowOperate.IsClosed = true; + updateUnFlowOperate.Opinion = opinion; + BLL.ProjectDataFlowSetService.UpdateFlowOperateOpinion(updateUnFlowOperate); + } + } + /// /// 更新处理意见 /// diff --git a/SGGL/BLL/OpenService/FileInsertService.cs b/SGGL/BLL/OpenService/FileInsertService.cs new file mode 100644 index 00000000..d041eecb --- /dev/null +++ b/SGGL/BLL/OpenService/FileInsertService.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Collections; +using System.IO; +using System.Web; + +namespace BLL +{ + public static class FileInsertService + { + /// + /// 获取附件数据流类 + /// + /// 附件路径 + /// + public static void FileInsert(List fileContextList, string attachUrl) + { + if (fileContextList != null && fileContextList.Count > 0) + { + string physicalpath = Funs.RootPath; + //HttpContext.Current.Request.PhysicalApplicationPath; + string fullPath = physicalpath + attachUrl; + if (!File.Exists(fullPath)) + { + byte[] fileContext = fileContextList[0]; + int index = fullPath.LastIndexOf("\\"); + string filePath = fullPath.Substring(0, index); + if (!Directory.Exists(filePath)) + { + Directory.CreateDirectory(filePath); + } + //string savePath = fullPath + fileName; + + //文件读写模式 + System.IO.FileMode fileMode = System.IO.FileMode.Create; + //写入文件 + using (System.IO.FileStream fs = new System.IO.FileStream(fullPath, fileMode, System.IO.FileAccess.Write)) + { + fs.Write(fileContext, 0, fileContext.Length); + } + } + } + } + + /// + /// 获取多附件数据流类 + /// + /// 附件路径 + /// + public static void FileMoreInsert(List fileContextList, string attachUrl) + { + if (fileContextList != null && fileContextList.Count() > 0) + { + if (fileContextList.Count > 0) + { + string[] strs = attachUrl.Trim().Split(','); + int i = 0; + foreach (var item in fileContextList) + { + if (strs.Count() > i) + { + string physicalpath = Funs.RootPath; + //HttpContext.Current.Request.PhysicalApplicationPath; + string fullPath = physicalpath + strs[i]; + if (!File.Exists(fullPath)) + { + byte[] fileContext = item; + int index = fullPath.LastIndexOf("\\"); + string filePath = fullPath.Substring(0, index); + + if (!Directory.Exists(filePath)) + { + Directory.CreateDirectory(filePath); + } + //string savePath = fullPath + fileName; + + //文件读写模式 + System.IO.FileMode fileMode = System.IO.FileMode.Create; + + //写入文件 + using (System.IO.FileStream fs = new System.IO.FileStream(fullPath, fileMode, System.IO.FileAccess.Write)) + { + fs.Write(fileContext, 0, fileContext.Length); + } + } + + i++; + } + } + } + } + } + + /// + /// 数据和附件插入到多附件表 + /// + public static void InsertAttachFile(string attachFileId, string dataId, string attachSource, string attachUrl, List fileContext) + { + //多附件 + var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataId); + if (attachFile == null && !string.IsNullOrEmpty(attachSource)) + { + Model.AttachFile newAttachFile = new Model.AttachFile + { + AttachFileId = attachFileId, + ToKeyId = dataId, + AttachSource = attachSource, + AttachUrl = attachUrl + }; + Funs.DB.AttachFile.InsertOnSubmit(newAttachFile); + Funs.DB.SubmitChanges(); + + ////插入附件文件 + BLL.FileInsertService.FileMoreInsert(fileContext, attachUrl); + } + else + { + if (attachFile.AttachUrl != attachUrl) + { + ///删除附件文件 + BLL.UploadAttachmentService.DeleteFile(Funs.RootPath, attachFile.AttachUrl); + ////插入附件文件 + BLL.FileInsertService.FileMoreInsert(fileContext, attachUrl); + attachFile.AttachSource = attachSource; + attachFile.AttachUrl = attachUrl; + Funs.DB.SubmitChanges(); + } + } + } + } +} diff --git a/SGGL/BLL/OpenService/FileStructService.cs b/SGGL/BLL/OpenService/FileStructService.cs new file mode 100644 index 00000000..43f84382 --- /dev/null +++ b/SGGL/BLL/OpenService/FileStructService.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Collections; +using System.IO; +using System.Web; + +namespace BLL +{ + public static class FileStructService + { + /// + /// 获取附件数据流类 + /// + /// 附件路径 + /// + public static List GetFileStructByAttachUrl(string attachUrl) + { + List fileContext = new List(); + if (!String.IsNullOrEmpty(attachUrl)) + { + string filePath = string.Empty; + string physicalpath = Funs.RootPath; + //HttpContext.Current.Request.PhysicalApplicationPath; + filePath = physicalpath + attachUrl; + if (File.Exists(filePath)) + { + FileInfo fileInfo = new FileInfo(filePath); + Stream stream = fileInfo.OpenRead(); + //读取指定大小的文件流内容到uploadFile.Context以便上传 + int b; + while (stream.Position > -1 && stream.Position < stream.Length) + { + if (stream.Length - stream.Position >= 20000000) + { + b = 20000000; + } + else + { + b = (int)(stream.Length - stream.Position); + } + + byte[] filebyte = new byte[b]; + stream.Read(filebyte, 0, b); + fileContext.Add(filebyte); + } + stream.Close(); + } + } + + return fileContext; + } + + /// + /// 获取附件数据流类 多附件的情况 + /// + /// 附件路径 + /// + public static List GetMoreFileStructByAttachUrl(string attachUrl) + { + List fileContext = new List(); + if (!String.IsNullOrEmpty(attachUrl)) + { + string[] strs = attachUrl.Trim().Split(','); + foreach (var item in strs) + { + string filePath = string.Empty; + string physicalpath = Funs.RootPath; + //HttpContext.Current.Request.PhysicalApplicationPath; + filePath = physicalpath + item; + if (File.Exists(filePath)) + { + FileInfo fileInfo = new FileInfo(filePath); + if (fileInfo != null) + { + Stream stream = fileInfo.OpenRead(); + if (stream != null) + { + //读取指定大小的文件流内容到uploadFile.Context以便上传 + int b; + while (stream.Position > -1 && stream.Position < stream.Length) + { + if (stream.Length - stream.Position >= 20000000) + { + b = 20000000; + } + else + { + b = (int)(stream.Length - stream.Position); + } + + byte[] filebyte = new byte[b]; + stream.Read(filebyte, 0, b); + fileContext.Add(filebyte); + } + } + + stream.Close(); + } + } + } + } + return fileContext; + } + } +} diff --git a/SGGL/BLL/Service References/CNCECHSSEService/Reference.cs b/SGGL/BLL/Service References/CNCECHSSEService/Reference.cs index 35343cb3..5ba5f9f7 100644 --- a/SGGL/BLL/Service References/CNCECHSSEService/Reference.cs +++ b/SGGL/BLL/Service References/CNCECHSSEService/Reference.cs @@ -47,7 +47,7 @@ namespace BLL.CNCECHSSEService { private string CompileManField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable IsPassField; @@ -194,7 +194,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -377,7 +377,7 @@ namespace BLL.CNCECHSSEService { private string CompileManField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable IsPassField; @@ -502,7 +502,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -1617,7 +1617,7 @@ namespace BLL.CNCECHSSEService { private string AttachUrlField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] AttachUrlFileContextField; + private System.Collections.Generic.List AttachUrlFileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable AuditDateField; @@ -1692,7 +1692,7 @@ namespace BLL.CNCECHSSEService { private string PhotoUrlField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] PhotoUrlFileContextField; + private System.Collections.Generic.List PhotoUrlFileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private string PostTitleCodeField; @@ -1784,7 +1784,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] AttachUrlFileContext { + public System.Collections.Generic.List AttachUrlFileContext { get { return this.AttachUrlFileContextField; } @@ -2109,7 +2109,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] PhotoUrlFileContext { + public System.Collections.Generic.List PhotoUrlFileContext { get { return this.PhotoUrlFileContextField; } @@ -3436,7 +3436,7 @@ namespace BLL.CNCECHSSEService { private string AttachUrlField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable PlanReortDateField; @@ -3515,7 +3515,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -3697,7 +3697,7 @@ namespace BLL.CNCECHSSEService { private string DangerPointField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private string HandleStateField; @@ -3901,7 +3901,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -4956,7 +4956,7 @@ namespace BLL.CNCECHSSEService { private System.Nullable EffectiveDateField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable IsPassField; @@ -5129,7 +5129,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -5312,7 +5312,7 @@ namespace BLL.CNCECHSSEService { private string CompileManField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable IsPassField; @@ -5527,7 +5527,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -6067,7 +6067,7 @@ namespace BLL.CNCECHSSEService { private System.Nullable CustomDateField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable IsPassField; @@ -6227,7 +6227,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -6410,7 +6410,7 @@ namespace BLL.CNCECHSSEService { private string CompileManField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable IsPassField; @@ -6547,7 +6547,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -6746,7 +6746,7 @@ namespace BLL.CNCECHSSEService { private string CompileManField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable HAZOPDateField; @@ -6881,7 +6881,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -7033,7 +7033,7 @@ namespace BLL.CNCECHSSEService { private string CompileManField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable IsPassField; @@ -7237,7 +7237,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -7347,7 +7347,7 @@ namespace BLL.CNCECHSSEService { private string EmergencyTypeNameField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable IsPassField; @@ -7544,7 +7544,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -7662,7 +7662,7 @@ namespace BLL.CNCECHSSEService { private string CompileManField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FileContextField; + private System.Collections.Generic.List FileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private System.Nullable IsPassField; @@ -7796,7 +7796,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FileContext { + public System.Collections.Generic.List FileContext { get { return this.FileContextField; } @@ -11832,7 +11832,7 @@ namespace BLL.CNCECHSSEService { private string FullTimeManAttachUrlField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] FullTimeManAttachUrlFileContextField; + private System.Collections.Generic.List FullTimeManAttachUrlFileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private string FullTimeManRemarkField; @@ -11892,7 +11892,7 @@ namespace BLL.CNCECHSSEService { private string PMManAttachUrlField; [System.Runtime.Serialization.OptionalFieldAttribute()] - private byte[][] PMManAttachUrlFileContextField; + private System.Collections.Generic.List PMManAttachUrlFileContextField; [System.Runtime.Serialization.OptionalFieldAttribute()] private string PMManRemarkField; @@ -12305,7 +12305,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] FullTimeManAttachUrlFileContext { + public System.Collections.Generic.List FullTimeManAttachUrlFileContext { get { return this.FullTimeManAttachUrlFileContextField; } @@ -12565,7 +12565,7 @@ namespace BLL.CNCECHSSEService { } [System.Runtime.Serialization.DataMemberAttribute()] - public byte[][] PMManAttachUrlFileContext { + public System.Collections.Generic.List PMManAttachUrlFileContext { get { return this.PMManAttachUrlFileContextField; } @@ -13087,97 +13087,97 @@ namespace BLL.CNCECHSSEService { [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTraining_TrainingItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTraining_TrainingItemTableResponse" + "")] - string[] DataInsertTraining_TrainingItemTable(BLL.CNCECHSSEService.Training_TrainingItem[] trainingItem); + System.Collections.Generic.List DataInsertTraining_TrainingItemTable(System.Collections.Generic.List trainingItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTraining_TrainingItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTraining_TrainingItemTableResponse" + "")] - System.Threading.Tasks.Task DataInsertTraining_TrainingItemTableAsync(BLL.CNCECHSSEService.Training_TrainingItem[] trainingItem); + System.Threading.Tasks.Task> DataInsertTraining_TrainingItemTableAsync(System.Collections.Generic.List trainingItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTraining_TrainTestDBItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTraining_TrainTestDBItemTableRespo" + "nse")] - string[] DataInsertTraining_TrainTestDBItemTable(BLL.CNCECHSSEService.Training_TrainTestDBItem[] trainTestDBItem); + System.Collections.Generic.List DataInsertTraining_TrainTestDBItemTable(System.Collections.Generic.List trainTestDBItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTraining_TrainTestDBItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTraining_TrainTestDBItemTableRespo" + "nse")] - System.Threading.Tasks.Task DataInsertTraining_TrainTestDBItemTableAsync(BLL.CNCECHSSEService.Training_TrainTestDBItem[] trainTestDBItem); + System.Threading.Tasks.Task> DataInsertTraining_TrainTestDBItemTableAsync(System.Collections.Generic.List trainTestDBItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertEduTrain_AccidentCaseItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertEduTrain_AccidentCaseItemTableResp" + "onse")] - string[] DataInsertEduTrain_AccidentCaseItemTable(BLL.CNCECHSSEService.EduTrain_AccidentCaseItem[] accidentCaseItem); + System.Collections.Generic.List DataInsertEduTrain_AccidentCaseItemTable(System.Collections.Generic.List accidentCaseItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertEduTrain_AccidentCaseItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertEduTrain_AccidentCaseItemTableResp" + "onse")] - System.Threading.Tasks.Task DataInsertEduTrain_AccidentCaseItemTableAsync(BLL.CNCECHSSEService.EduTrain_AccidentCaseItem[] accidentCaseItem); + System.Threading.Tasks.Task> DataInsertEduTrain_AccidentCaseItemTableAsync(System.Collections.Generic.List accidentCaseItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTraining_KnowledgeItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTraining_KnowledgeItemTableRespons" + "e")] - string[] DataInsertTraining_KnowledgeItemTable(BLL.CNCECHSSEService.Training_KnowledgeItem[] knowledgeItem); + System.Collections.Generic.List DataInsertTraining_KnowledgeItemTable(System.Collections.Generic.List knowledgeItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTraining_KnowledgeItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTraining_KnowledgeItemTableRespons" + "e")] - System.Threading.Tasks.Task DataInsertTraining_KnowledgeItemTableAsync(BLL.CNCECHSSEService.Training_KnowledgeItem[] knowledgeItem); + System.Threading.Tasks.Task> DataInsertTraining_KnowledgeItemTableAsync(System.Collections.Generic.List knowledgeItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_HazardListTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_HazardListTableResponse")] - string[] DataInsertTechnique_HazardListTable(BLL.CNCECHSSEService.Technique_HazardList[] hazardList); + System.Collections.Generic.List DataInsertTechnique_HazardListTable(System.Collections.Generic.List hazardList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_HazardListTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_HazardListTableResponse")] - System.Threading.Tasks.Task DataInsertTechnique_HazardListTableAsync(BLL.CNCECHSSEService.Technique_HazardList[] hazardList); + System.Threading.Tasks.Task> DataInsertTechnique_HazardListTableAsync(System.Collections.Generic.List hazardList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_RectifyItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_RectifyItemTableResponse" + "")] - string[] DataInsertTechnique_RectifyItemTable(BLL.CNCECHSSEService.Technique_RectifyItem[] rectifyItem); + System.Collections.Generic.List DataInsertTechnique_RectifyItemTable(System.Collections.Generic.List rectifyItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_RectifyItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_RectifyItemTableResponse" + "")] - System.Threading.Tasks.Task DataInsertTechnique_RectifyItemTableAsync(BLL.CNCECHSSEService.Technique_RectifyItem[] rectifyItem); + System.Threading.Tasks.Task> DataInsertTechnique_RectifyItemTableAsync(System.Collections.Generic.List rectifyItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_ExpertTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_ExpertTableResponse")] - string[] DataInsertTechnique_ExpertTable(BLL.CNCECHSSEService.Technique_Expert[] expert); + System.Collections.Generic.List DataInsertTechnique_ExpertTable(System.Collections.Generic.List expert); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_ExpertTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_ExpertTableResponse")] - System.Threading.Tasks.Task DataInsertTechnique_ExpertTableAsync(BLL.CNCECHSSEService.Technique_Expert[] expert); + System.Threading.Tasks.Task> DataInsertTechnique_ExpertTableAsync(System.Collections.Generic.List expert); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertSupervise_SuperviseCheckRectifyTab" + "le", ReplyAction="http://www.localhost.com/HSSEService/DataInsertSupervise_SuperviseCheckRectifyTab" + "leResponse")] - string[] DataInsertSupervise_SuperviseCheckRectifyTable(BLL.CNCECHSSEService.Supervise_SuperviseCheckRectify[] superviseCheckRectify); + System.Collections.Generic.List DataInsertSupervise_SuperviseCheckRectifyTable(System.Collections.Generic.List superviseCheckRectify); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertSupervise_SuperviseCheckRectifyTab" + "le", ReplyAction="http://www.localhost.com/HSSEService/DataInsertSupervise_SuperviseCheckRectifyTab" + "leResponse")] - System.Threading.Tasks.Task DataInsertSupervise_SuperviseCheckRectifyTableAsync(BLL.CNCECHSSEService.Supervise_SuperviseCheckRectify[] superviseCheckRectify); + System.Threading.Tasks.Task> DataInsertSupervise_SuperviseCheckRectifyTableAsync(System.Collections.Generic.List superviseCheckRectify); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertHSSESystem_HSSEManageItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertHSSESystem_HSSEManageItemTableResp" + "onse")] - string[] DataInsertHSSESystem_HSSEManageItemTable(BLL.CNCECHSSEService.HSSESystem_HSSEManageItem[] HSSEManageItem); + System.Collections.Generic.List DataInsertHSSESystem_HSSEManageItemTable(System.Collections.Generic.List HSSEManageItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertHSSESystem_HSSEManageItemTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertHSSESystem_HSSEManageItemTableResp" + "onse")] - System.Threading.Tasks.Task DataInsertHSSESystem_HSSEManageItemTableAsync(BLL.CNCECHSSEService.HSSESystem_HSSEManageItem[] HSSEManageItem); + System.Threading.Tasks.Task> DataInsertHSSESystem_HSSEManageItemTableAsync(System.Collections.Generic.List HSSEManageItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertSupervise_UpCheckReportTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertSupervise_UpCheckReportTableRespon" + "se")] - string[] DataInsertSupervise_UpCheckReportTable(BLL.CNCECHSSEService.Supervise_UpCheckReport[] upCheckReport, BLL.CNCECHSSEService.Supervise_UpCheckReportItem[] upCheckReportItem, BLL.CNCECHSSEService.Supervise_UpCheckReportItem2[] upCheckReportItem2); + System.Collections.Generic.List DataInsertSupervise_UpCheckReportTable(System.Collections.Generic.List upCheckReport, System.Collections.Generic.List upCheckReportItem, System.Collections.Generic.List upCheckReportItem2); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertSupervise_UpCheckReportTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertSupervise_UpCheckReportTableRespon" + "se")] - System.Threading.Tasks.Task DataInsertSupervise_UpCheckReportTableAsync(BLL.CNCECHSSEService.Supervise_UpCheckReport[] upCheckReport, BLL.CNCECHSSEService.Supervise_UpCheckReportItem[] upCheckReportItem, BLL.CNCECHSSEService.Supervise_UpCheckReportItem2[] upCheckReportItem2); + System.Threading.Tasks.Task> DataInsertSupervise_UpCheckReportTableAsync(System.Collections.Generic.List upCheckReport, System.Collections.Generic.List upCheckReportItem, System.Collections.Generic.List upCheckReportItem2); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertSupervise_SubUnitReportItemItemTab" + "le", ReplyAction="http://www.localhost.com/HSSEService/DataInsertSupervise_SubUnitReportItemItemTab" + "leResponse")] - string[] DataInsertSupervise_SubUnitReportItemItemTable(BLL.CNCECHSSEService.Supervise_SubUnitReportItem[] subUnitReportItem); + System.Collections.Generic.List DataInsertSupervise_SubUnitReportItemItemTable(System.Collections.Generic.List subUnitReportItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertSupervise_SubUnitReportItemItemTab" + "le", ReplyAction="http://www.localhost.com/HSSEService/DataInsertSupervise_SubUnitReportItemItemTab" + "leResponse")] - System.Threading.Tasks.Task DataInsertSupervise_SubUnitReportItemItemTableAsync(BLL.CNCECHSSEService.Supervise_SubUnitReportItem[] subUnitReportItem); + System.Threading.Tasks.Task> DataInsertSupervise_SubUnitReportItemItemTableAsync(System.Collections.Generic.List subUnitReportItem); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertCheck_CheckRectifyTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertCheck_CheckRectifyTableResponse")] - string[] DataInsertCheck_CheckRectifyTable(BLL.CNCECHSSEService.Check_CheckRectify[] checkRectify); + System.Collections.Generic.List DataInsertCheck_CheckRectifyTable(System.Collections.Generic.List checkRectify); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertCheck_CheckRectifyTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertCheck_CheckRectifyTableResponse")] - System.Threading.Tasks.Task DataInsertCheck_CheckRectifyTableAsync(BLL.CNCECHSSEService.Check_CheckRectify[] checkRectify); + System.Threading.Tasks.Task> DataInsertCheck_CheckRectifyTableAsync(System.Collections.Generic.List checkRectify); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertHSSESystem_HSSEOrganizeTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertHSSESystem_HSSEOrganizeTableRespon" + "se")] @@ -13188,300 +13188,300 @@ namespace BLL.CNCECHSSEService { System.Threading.Tasks.Task DataInsertHSSESystem_HSSEOrganizeTableAsync(BLL.CNCECHSSEService.HSSESystem_HSSEOrganize hsseOrganize); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertSys_SubUnitLogListTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertSys_SubUnitLogListTableResponse")] - string[] DataInsertSys_SubUnitLogListTable(BLL.CNCECHSSEService.Sys_SubUnitLog[] subUnitLogList); + System.Collections.Generic.List DataInsertSys_SubUnitLogListTable(System.Collections.Generic.List subUnitLogList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertSys_SubUnitLogListTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertSys_SubUnitLogListTableResponse")] - System.Threading.Tasks.Task DataInsertSys_SubUnitLogListTableAsync(BLL.CNCECHSSEService.Sys_SubUnitLog[] subUnitLogList); + System.Threading.Tasks.Task> DataInsertSys_SubUnitLogListTableAsync(System.Collections.Generic.List subUnitLogList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetSys_VersionToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetSys_VersionToSUBResponse")] - BLL.CNCECHSSEService.Sys_Version[] GetSys_VersionToSUB(); + System.Collections.Generic.List GetSys_VersionToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetSys_VersionToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetSys_VersionToSUBResponse")] - System.Threading.Tasks.Task GetSys_VersionToSUBAsync(); + System.Threading.Tasks.Task> GetSys_VersionToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetBase_UnitToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetBase_UnitToSUBResponse")] - BLL.CNCECHSSEService.Base_Unit[] GetBase_UnitToSUB(); + System.Collections.Generic.List GetBase_UnitToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetBase_UnitToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetBase_UnitToSUBResponse")] - System.Threading.Tasks.Task GetBase_UnitToSUBAsync(); + System.Threading.Tasks.Task> GetBase_UnitToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetInformation_UrgeReportToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetInformation_UrgeReportToSUBResponse")] - BLL.CNCECHSSEService.Information_UrgeReport[] GetInformation_UrgeReportToSUB(string unitId); + System.Collections.Generic.List GetInformation_UrgeReportToSUB(string unitId); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetInformation_UrgeReportToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetInformation_UrgeReportToSUBResponse")] - System.Threading.Tasks.Task GetInformation_UrgeReportToSUBAsync(string unitId); + System.Threading.Tasks.Task> GetInformation_UrgeReportToSUBAsync(string unitId); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetLaw_LawRegulationListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetLaw_LawRegulationListToSUBResponse")] - BLL.CNCECHSSEService.Law_LawRegulationList[] GetLaw_LawRegulationListToSUB(); + System.Collections.Generic.List GetLaw_LawRegulationListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetLaw_LawRegulationListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetLaw_LawRegulationListToSUBResponse")] - System.Threading.Tasks.Task GetLaw_LawRegulationListToSUBAsync(); + System.Threading.Tasks.Task> GetLaw_LawRegulationListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetLaw_HSSEStandardsListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetLaw_HSSEStandardsListToSUBResponse")] - BLL.CNCECHSSEService.Law_HSSEStandardsList[] GetLaw_HSSEStandardsListToSUB(); + System.Collections.Generic.List GetLaw_HSSEStandardsListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetLaw_HSSEStandardsListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetLaw_HSSEStandardsListToSUBResponse")] - System.Threading.Tasks.Task GetLaw_HSSEStandardsListToSUBAsync(); + System.Threading.Tasks.Task> GetLaw_HSSEStandardsListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetLaw_RulesRegulationsToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetLaw_RulesRegulationsToSUBResponse")] - BLL.CNCECHSSEService.Law_RulesRegulations[] GetLaw_RulesRegulationsToSUB(); + System.Collections.Generic.List GetLaw_RulesRegulationsToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetLaw_RulesRegulationsToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetLaw_RulesRegulationsToSUBResponse")] - System.Threading.Tasks.Task GetLaw_RulesRegulationsToSUBAsync(); + System.Threading.Tasks.Task> GetLaw_RulesRegulationsToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetLaw_ManageRuleToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetLaw_ManageRuleToSUBResponse")] - BLL.CNCECHSSEService.Law_ManageRule[] GetLaw_ManageRuleToSUB(); + System.Collections.Generic.List GetLaw_ManageRuleToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetLaw_ManageRuleToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetLaw_ManageRuleToSUBResponse")] - System.Threading.Tasks.Task GetLaw_ManageRuleToSUBAsync(); + System.Threading.Tasks.Task> GetLaw_ManageRuleToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_HAZOPToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_HAZOPToSUBResponse")] - BLL.CNCECHSSEService.Technique_HAZOP[] GetTechnique_HAZOPToSUB(); + System.Collections.Generic.List GetTechnique_HAZOPToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_HAZOPToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_HAZOPToSUBResponse")] - System.Threading.Tasks.Task GetTechnique_HAZOPToSUBAsync(); + System.Threading.Tasks.Task> GetTechnique_HAZOPToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_AppraiseToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_AppraiseToSUBResponse")] - BLL.CNCECHSSEService.Technique_Appraise[] GetTechnique_AppraiseToSUB(); + System.Collections.Generic.List GetTechnique_AppraiseToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_AppraiseToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_AppraiseToSUBResponse")] - System.Threading.Tasks.Task GetTechnique_AppraiseToSUBAsync(); + System.Threading.Tasks.Task> GetTechnique_AppraiseToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_EmergencyToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_EmergencyToSUBResponse")] - BLL.CNCECHSSEService.Technique_Emergency[] GetTechnique_EmergencyToSUB(); + System.Collections.Generic.List GetTechnique_EmergencyToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_EmergencyToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_EmergencyToSUBResponse")] - System.Threading.Tasks.Task GetTechnique_EmergencyToSUBAsync(); + System.Threading.Tasks.Task> GetTechnique_EmergencyToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_SpecialSchemeToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_SpecialSchemeToSUBResponse")] - BLL.CNCECHSSEService.Technique_SpecialScheme[] GetTechnique_SpecialSchemeToSUB(); + System.Collections.Generic.List GetTechnique_SpecialSchemeToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_SpecialSchemeToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_SpecialSchemeToSUBResponse")] - System.Threading.Tasks.Task GetTechnique_SpecialSchemeToSUBAsync(); + System.Threading.Tasks.Task> GetTechnique_SpecialSchemeToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_TrainingListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_TrainingListToSUBResponse")] - BLL.CNCECHSSEService.Training_Training[] GetTraining_TrainingListToSUB(); + System.Collections.Generic.List GetTraining_TrainingListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_TrainingListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_TrainingListToSUBResponse")] - System.Threading.Tasks.Task GetTraining_TrainingListToSUBAsync(); + System.Threading.Tasks.Task> GetTraining_TrainingListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_TrainingItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_TrainingItemListToSUBResponse")] - BLL.CNCECHSSEService.Training_TrainingItem[] GetTraining_TrainingItemListToSUB(); + System.Collections.Generic.List GetTraining_TrainingItemListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_TrainingItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_TrainingItemListToSUBResponse")] - System.Threading.Tasks.Task GetTraining_TrainingItemListToSUBAsync(); + System.Threading.Tasks.Task> GetTraining_TrainingItemListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_TrainTestDBListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_TrainTestDBListToSUBResponse")] - BLL.CNCECHSSEService.Training_TrainTestDB[] GetTraining_TrainTestDBListToSUB(); + System.Collections.Generic.List GetTraining_TrainTestDBListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_TrainTestDBListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_TrainTestDBListToSUBResponse")] - System.Threading.Tasks.Task GetTraining_TrainTestDBListToSUBAsync(); + System.Threading.Tasks.Task> GetTraining_TrainTestDBListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_TrainTestDBItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_TrainTestDBItemListToSUBResponse" + "")] - BLL.CNCECHSSEService.Training_TrainTestDBItem[] GetTraining_TrainTestDBItemListToSUB(); + System.Collections.Generic.List GetTraining_TrainTestDBItemListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_TrainTestDBItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_TrainTestDBItemListToSUBResponse" + "")] - System.Threading.Tasks.Task GetTraining_TrainTestDBItemListToSUBAsync(); + System.Threading.Tasks.Task> GetTraining_TrainTestDBItemListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetEduTrain_AccidentCaseListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetEduTrain_AccidentCaseListToSUBResponse")] - BLL.CNCECHSSEService.EduTrain_AccidentCase[] GetEduTrain_AccidentCaseListToSUB(); + System.Collections.Generic.List GetEduTrain_AccidentCaseListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetEduTrain_AccidentCaseListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetEduTrain_AccidentCaseListToSUBResponse")] - System.Threading.Tasks.Task GetEduTrain_AccidentCaseListToSUBAsync(); + System.Threading.Tasks.Task> GetEduTrain_AccidentCaseListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetEduTrain_AccidentCaseItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetEduTrain_AccidentCaseItemListToSUBRespons" + "e")] - BLL.CNCECHSSEService.EduTrain_AccidentCaseItem[] GetEduTrain_AccidentCaseItemListToSUB(); + System.Collections.Generic.List GetEduTrain_AccidentCaseItemListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetEduTrain_AccidentCaseItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetEduTrain_AccidentCaseItemListToSUBRespons" + "e")] - System.Threading.Tasks.Task GetEduTrain_AccidentCaseItemListToSUBAsync(); + System.Threading.Tasks.Task> GetEduTrain_AccidentCaseItemListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_KnowledgeListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_KnowledgeListToSUBResponse")] - BLL.CNCECHSSEService.Training_Knowledge[] GetTraining_KnowledgeListToSUB(); + System.Collections.Generic.List GetTraining_KnowledgeListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_KnowledgeListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_KnowledgeListToSUBResponse")] - System.Threading.Tasks.Task GetTraining_KnowledgeListToSUBAsync(); + System.Threading.Tasks.Task> GetTraining_KnowledgeListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_KnowledgeItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_KnowledgeItemListToSUBResponse")] - BLL.CNCECHSSEService.Training_KnowledgeItem[] GetTraining_KnowledgeItemListToSUB(); + System.Collections.Generic.List GetTraining_KnowledgeItemListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTraining_KnowledgeItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTraining_KnowledgeItemListToSUBResponse")] - System.Threading.Tasks.Task GetTraining_KnowledgeItemListToSUBAsync(); + System.Threading.Tasks.Task> GetTraining_KnowledgeItemListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_HazardListTypeListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_HazardListTypeListToSUBResponse" + "")] - BLL.CNCECHSSEService.Technique_HazardListType[] GetTechnique_HazardListTypeListToSUB(); + System.Collections.Generic.List GetTechnique_HazardListTypeListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_HazardListTypeListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_HazardListTypeListToSUBResponse" + "")] - System.Threading.Tasks.Task GetTechnique_HazardListTypeListToSUBAsync(); + System.Threading.Tasks.Task> GetTechnique_HazardListTypeListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_HazardListListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_HazardListListToSUBResponse")] - BLL.CNCECHSSEService.Technique_HazardList[] GetTechnique_HazardListListToSUB(); + System.Collections.Generic.List GetTechnique_HazardListListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_HazardListListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_HazardListListToSUBResponse")] - System.Threading.Tasks.Task GetTechnique_HazardListListToSUBAsync(); + System.Threading.Tasks.Task> GetTechnique_HazardListListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_RectifyListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_RectifyListToSUBResponse")] - BLL.CNCECHSSEService.Technique_Rectify[] GetTechnique_RectifyListToSUB(); + System.Collections.Generic.List GetTechnique_RectifyListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_RectifyListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_RectifyListToSUBResponse")] - System.Threading.Tasks.Task GetTechnique_RectifyListToSUBAsync(); + System.Threading.Tasks.Task> GetTechnique_RectifyListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_RectifyItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_RectifyItemListToSUBResponse")] - BLL.CNCECHSSEService.Technique_RectifyItem[] GetTechnique_RectifyItemListToSUB(); + System.Collections.Generic.List GetTechnique_RectifyItemListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_RectifyItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_RectifyItemListToSUBResponse")] - System.Threading.Tasks.Task GetTechnique_RectifyItemListToSUBAsync(); + System.Threading.Tasks.Task> GetTechnique_RectifyItemListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_ExpertListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_ExpertListToSUBResponse")] - BLL.CNCECHSSEService.Technique_Expert[] GetTechnique_ExpertListToSUB(); + System.Collections.Generic.List GetTechnique_ExpertListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetTechnique_ExpertListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetTechnique_ExpertListToSUBResponse")] - System.Threading.Tasks.Task GetTechnique_ExpertListToSUBAsync(); + System.Threading.Tasks.Task> GetTechnique_ExpertListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetSupervise_SuperviseCheckRectifyListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetSupervise_SuperviseCheckRectifyListToSUBR" + "esponse")] - BLL.CNCECHSSEService.Supervise_SuperviseCheckRectify[] GetSupervise_SuperviseCheckRectifyListToSUB(string unitId); + System.Collections.Generic.List GetSupervise_SuperviseCheckRectifyListToSUB(string unitId); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetSupervise_SuperviseCheckRectifyListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetSupervise_SuperviseCheckRectifyListToSUBR" + "esponse")] - System.Threading.Tasks.Task GetSupervise_SuperviseCheckRectifyListToSUBAsync(string unitId); + System.Threading.Tasks.Task> GetSupervise_SuperviseCheckRectifyListToSUBAsync(string unitId); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetSupervise_SubUnitReportListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetSupervise_SubUnitReportListToSUBResponse")] - BLL.CNCECHSSEService.Supervise_SubUnitReport[] GetSupervise_SubUnitReportListToSUB(); + System.Collections.Generic.List GetSupervise_SubUnitReportListToSUB(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetSupervise_SubUnitReportListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetSupervise_SubUnitReportListToSUBResponse")] - System.Threading.Tasks.Task GetSupervise_SubUnitReportListToSUBAsync(); + System.Threading.Tasks.Task> GetSupervise_SubUnitReportListToSUBAsync(); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetSupervise_SubUnitReportItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetSupervise_SubUnitReportItemListToSUBRespo" + "nse")] - BLL.CNCECHSSEService.Supervise_SubUnitReportItem[] GetSupervise_SubUnitReportItemListToSUB(string unitId); + System.Collections.Generic.List GetSupervise_SubUnitReportItemListToSUB(string unitId); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetSupervise_SubUnitReportItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetSupervise_SubUnitReportItemListToSUBRespo" + "nse")] - System.Threading.Tasks.Task GetSupervise_SubUnitReportItemListToSUBAsync(string unitId); + System.Threading.Tasks.Task> GetSupervise_SubUnitReportItemListToSUBAsync(string unitId); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetCheck_CheckRectifyListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetCheck_CheckRectifyListToSUBResponse")] - BLL.CNCECHSSEService.Check_CheckRectify[] GetCheck_CheckRectifyListToSUB(string unitId); + System.Collections.Generic.List GetCheck_CheckRectifyListToSUB(string unitId); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetCheck_CheckRectifyListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetCheck_CheckRectifyListToSUBResponse")] - System.Threading.Tasks.Task GetCheck_CheckRectifyListToSUBAsync(string unitId); + System.Threading.Tasks.Task> GetCheck_CheckRectifyListToSUBAsync(string unitId); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetCheck_CheckInfo_Table8ItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetCheck_CheckInfo_Table8ItemListToSUBRespon" + "se")] - BLL.CNCECHSSEService.Check_CheckInfo_Table8Item[] GetCheck_CheckInfo_Table8ItemListToSUB(string unitId); + System.Collections.Generic.List GetCheck_CheckInfo_Table8ItemListToSUB(string unitId); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/GetCheck_CheckInfo_Table8ItemListToSUB", ReplyAction="http://www.localhost.com/HSSEService/GetCheck_CheckInfo_Table8ItemListToSUBRespon" + "se")] - System.Threading.Tasks.Task GetCheck_CheckInfo_Table8ItemListToSUBAsync(string unitId); + System.Threading.Tasks.Task> GetCheck_CheckInfo_Table8ItemListToSUBAsync(string unitId); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertLaw_LawRegulationListTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertLaw_LawRegulationListTableResponse" + "")] - string[] DataInsertLaw_LawRegulationListTable(BLL.CNCECHSSEService.Law_LawRegulationList[] lawRegulationList); + System.Collections.Generic.List DataInsertLaw_LawRegulationListTable(System.Collections.Generic.List lawRegulationList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertLaw_LawRegulationListTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertLaw_LawRegulationListTableResponse" + "")] - System.Threading.Tasks.Task DataInsertLaw_LawRegulationListTableAsync(BLL.CNCECHSSEService.Law_LawRegulationList[] lawRegulationList); + System.Threading.Tasks.Task> DataInsertLaw_LawRegulationListTableAsync(System.Collections.Generic.List lawRegulationList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertLaw_HSSEStandardsListTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertLaw_HSSEStandardsListTableResponse" + "")] - string[] DataInsertLaw_HSSEStandardsListTable(BLL.CNCECHSSEService.Law_HSSEStandardsList[] hsseStandardsList); + System.Collections.Generic.List DataInsertLaw_HSSEStandardsListTable(System.Collections.Generic.List hsseStandardsList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertLaw_HSSEStandardsListTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertLaw_HSSEStandardsListTableResponse" + "")] - System.Threading.Tasks.Task DataInsertLaw_HSSEStandardsListTableAsync(BLL.CNCECHSSEService.Law_HSSEStandardsList[] hsseStandardsList); + System.Threading.Tasks.Task> DataInsertLaw_HSSEStandardsListTableAsync(System.Collections.Generic.List hsseStandardsList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertLaw_RulesRegulationsTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertLaw_RulesRegulationsTableResponse")] - string[] DataInsertLaw_RulesRegulationsTable(BLL.CNCECHSSEService.Law_RulesRegulations[] rulesRegulations); + System.Collections.Generic.List DataInsertLaw_RulesRegulationsTable(System.Collections.Generic.List rulesRegulations); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertLaw_RulesRegulationsTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertLaw_RulesRegulationsTableResponse")] - System.Threading.Tasks.Task DataInsertLaw_RulesRegulationsTableAsync(BLL.CNCECHSSEService.Law_RulesRegulations[] rulesRegulations); + System.Threading.Tasks.Task> DataInsertLaw_RulesRegulationsTableAsync(System.Collections.Generic.List rulesRegulations); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertLaw_ManageRuleTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertLaw_ManageRuleTableResponse")] - string[] DataInsertLaw_ManageRuleTable(BLL.CNCECHSSEService.Law_ManageRule[] manageRule); + System.Collections.Generic.List DataInsertLaw_ManageRuleTable(System.Collections.Generic.List manageRule); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertLaw_ManageRuleTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertLaw_ManageRuleTableResponse")] - System.Threading.Tasks.Task DataInsertLaw_ManageRuleTableAsync(BLL.CNCECHSSEService.Law_ManageRule[] manageRule); + System.Threading.Tasks.Task> DataInsertLaw_ManageRuleTableAsync(System.Collections.Generic.List manageRule); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_HAZOPTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_HAZOPTableResponse")] - string[] DataInsertTechnique_HAZOPTable(BLL.CNCECHSSEService.Technique_HAZOP[] hazop); + System.Collections.Generic.List DataInsertTechnique_HAZOPTable(System.Collections.Generic.List hazop); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_HAZOPTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_HAZOPTableResponse")] - System.Threading.Tasks.Task DataInsertTechnique_HAZOPTableAsync(BLL.CNCECHSSEService.Technique_HAZOP[] hazop); + System.Threading.Tasks.Task> DataInsertTechnique_HAZOPTableAsync(System.Collections.Generic.List hazop); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_AppraiseTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_AppraiseTableResponse")] - string[] DataInsertTechnique_AppraiseTable(BLL.CNCECHSSEService.Technique_Appraise[] appraise); + System.Collections.Generic.List DataInsertTechnique_AppraiseTable(System.Collections.Generic.List appraise); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_AppraiseTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_AppraiseTableResponse")] - System.Threading.Tasks.Task DataInsertTechnique_AppraiseTableAsync(BLL.CNCECHSSEService.Technique_Appraise[] appraise); + System.Threading.Tasks.Task> DataInsertTechnique_AppraiseTableAsync(System.Collections.Generic.List appraise); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_EmergencyTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_EmergencyTableResponse")] - string[] DataInsertTechnique_EmergencyTable(BLL.CNCECHSSEService.Technique_Emergency[] emergency); + System.Collections.Generic.List DataInsertTechnique_EmergencyTable(System.Collections.Generic.List emergency); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_EmergencyTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_EmergencyTableResponse")] - System.Threading.Tasks.Task DataInsertTechnique_EmergencyTableAsync(BLL.CNCECHSSEService.Technique_Emergency[] emergency); + System.Threading.Tasks.Task> DataInsertTechnique_EmergencyTableAsync(System.Collections.Generic.List emergency); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_SpecialSchemeTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_SpecialSchemeTableRespon" + "se")] - string[] DataInsertTechnique_SpecialSchemeTable(BLL.CNCECHSSEService.Technique_SpecialScheme[] specialScheme); + System.Collections.Generic.List DataInsertTechnique_SpecialSchemeTable(System.Collections.Generic.List specialScheme); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertTechnique_SpecialSchemeTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertTechnique_SpecialSchemeTableRespon" + "se")] - System.Threading.Tasks.Task DataInsertTechnique_SpecialSchemeTableAsync(BLL.CNCECHSSEService.Technique_SpecialScheme[] specialScheme); + System.Threading.Tasks.Task> DataInsertTechnique_SpecialSchemeTableAsync(System.Collections.Generic.List specialScheme); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertInformation_AccidentCauseReportTab" + "le", ReplyAction="http://www.localhost.com/HSSEService/DataInsertInformation_AccidentCauseReportTab" + "leResponse")] - string[] DataInsertInformation_AccidentCauseReportTable(BLL.CNCECHSSEService.Information_AccidentCauseReport[] accidentCauseReportList, BLL.CNCECHSSEService.Information_AccidentCauseReportItem[] accidentCauseReportItemList); + System.Collections.Generic.List DataInsertInformation_AccidentCauseReportTable(System.Collections.Generic.List accidentCauseReportList, System.Collections.Generic.List accidentCauseReportItemList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertInformation_AccidentCauseReportTab" + "le", ReplyAction="http://www.localhost.com/HSSEService/DataInsertInformation_AccidentCauseReportTab" + "leResponse")] - System.Threading.Tasks.Task DataInsertInformation_AccidentCauseReportTableAsync(BLL.CNCECHSSEService.Information_AccidentCauseReport[] accidentCauseReportList, BLL.CNCECHSSEService.Information_AccidentCauseReportItem[] accidentCauseReportItemList); + System.Threading.Tasks.Task> DataInsertInformation_AccidentCauseReportTableAsync(System.Collections.Generic.List accidentCauseReportList, System.Collections.Generic.List accidentCauseReportItemList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertInformation_DrillConductedQuarterl" + "yReportTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertInformation_DrillConductedQuarterl" + "yReportTableResponse")] - string[] DataInsertInformation_DrillConductedQuarterlyReportTable(BLL.CNCECHSSEService.Information_DrillConductedQuarterlyReport[] drillConductedQuarterlyReportList, BLL.CNCECHSSEService.Information_DrillConductedQuarterlyReportItem[] drillConductedQuarterlyReportItemList); + System.Collections.Generic.List DataInsertInformation_DrillConductedQuarterlyReportTable(System.Collections.Generic.List drillConductedQuarterlyReportList, System.Collections.Generic.List drillConductedQuarterlyReportItemList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertInformation_DrillConductedQuarterl" + "yReportTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertInformation_DrillConductedQuarterl" + "yReportTableResponse")] - System.Threading.Tasks.Task DataInsertInformation_DrillConductedQuarterlyReportTableAsync(BLL.CNCECHSSEService.Information_DrillConductedQuarterlyReport[] drillConductedQuarterlyReportList, BLL.CNCECHSSEService.Information_DrillConductedQuarterlyReportItem[] drillConductedQuarterlyReportItemList); + System.Threading.Tasks.Task> DataInsertInformation_DrillConductedQuarterlyReportTableAsync(System.Collections.Generic.List drillConductedQuarterlyReportList, System.Collections.Generic.List drillConductedQuarterlyReportItemList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertInformation_DrillPlanHalfYearRepor" + "tTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertInformation_DrillPlanHalfYearRepor" + "tTableResponse")] - string[] DataInsertInformation_DrillPlanHalfYearReportTable(BLL.CNCECHSSEService.Information_DrillPlanHalfYearReport[] drillPlanHalfYearReportList, BLL.CNCECHSSEService.Information_DrillPlanHalfYearReportItem[] drillPlanHalfYearReportItemList); + System.Collections.Generic.List DataInsertInformation_DrillPlanHalfYearReportTable(System.Collections.Generic.List drillPlanHalfYearReportList, System.Collections.Generic.List drillPlanHalfYearReportItemList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertInformation_DrillPlanHalfYearRepor" + "tTable", ReplyAction="http://www.localhost.com/HSSEService/DataInsertInformation_DrillPlanHalfYearRepor" + "tTableResponse")] - System.Threading.Tasks.Task DataInsertInformation_DrillPlanHalfYearReportTableAsync(BLL.CNCECHSSEService.Information_DrillPlanHalfYearReport[] drillPlanHalfYearReportList, BLL.CNCECHSSEService.Information_DrillPlanHalfYearReportItem[] drillPlanHalfYearReportItemList); + System.Threading.Tasks.Task> DataInsertInformation_DrillPlanHalfYearReportTableAsync(System.Collections.Generic.List drillPlanHalfYearReportList, System.Collections.Generic.List drillPlanHalfYearReportItemList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertInformation_MillionsMonthlyReportT" + "able", ReplyAction="http://www.localhost.com/HSSEService/DataInsertInformation_MillionsMonthlyReportT" + "ableResponse")] - string[] DataInsertInformation_MillionsMonthlyReportTable(BLL.CNCECHSSEService.Information_MillionsMonthlyReport[] millionsMonthlyReportList, BLL.CNCECHSSEService.Information_MillionsMonthlyReportItem[] millionsMonthlyReportItemList); + System.Collections.Generic.List DataInsertInformation_MillionsMonthlyReportTable(System.Collections.Generic.List millionsMonthlyReportList, System.Collections.Generic.List millionsMonthlyReportItemList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertInformation_MillionsMonthlyReportT" + "able", ReplyAction="http://www.localhost.com/HSSEService/DataInsertInformation_MillionsMonthlyReportT" + "ableResponse")] - System.Threading.Tasks.Task DataInsertInformation_MillionsMonthlyReportTableAsync(BLL.CNCECHSSEService.Information_MillionsMonthlyReport[] millionsMonthlyReportList, BLL.CNCECHSSEService.Information_MillionsMonthlyReportItem[] millionsMonthlyReportItemList); + System.Threading.Tasks.Task> DataInsertInformation_MillionsMonthlyReportTableAsync(System.Collections.Generic.List millionsMonthlyReportList, System.Collections.Generic.List millionsMonthlyReportItemList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertInformation_SafetyQuarterlyReportT" + "able", ReplyAction="http://www.localhost.com/HSSEService/DataInsertInformation_SafetyQuarterlyReportT" + "ableResponse")] - string[] DataInsertInformation_SafetyQuarterlyReportTable(BLL.CNCECHSSEService.Information_SafetyQuarterlyReport[] safetyQuarterlyReportList); + System.Collections.Generic.List DataInsertInformation_SafetyQuarterlyReportTable(System.Collections.Generic.List safetyQuarterlyReportList); [System.ServiceModel.OperationContractAttribute(Action="http://www.localhost.com/HSSEService/DataInsertInformation_SafetyQuarterlyReportT" + "able", ReplyAction="http://www.localhost.com/HSSEService/DataInsertInformation_SafetyQuarterlyReportT" + "ableResponse")] - System.Threading.Tasks.Task DataInsertInformation_SafetyQuarterlyReportTableAsync(BLL.CNCECHSSEService.Information_SafetyQuarterlyReport[] safetyQuarterlyReportList); + System.Threading.Tasks.Task> DataInsertInformation_SafetyQuarterlyReportTableAsync(System.Collections.Generic.List safetyQuarterlyReportList); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] @@ -13511,99 +13511,99 @@ namespace BLL.CNCECHSSEService { base(binding, remoteAddress) { } - public string[] DataInsertTraining_TrainingItemTable(BLL.CNCECHSSEService.Training_TrainingItem[] trainingItem) { + public System.Collections.Generic.List DataInsertTraining_TrainingItemTable(System.Collections.Generic.List trainingItem) { return base.Channel.DataInsertTraining_TrainingItemTable(trainingItem); } - public System.Threading.Tasks.Task DataInsertTraining_TrainingItemTableAsync(BLL.CNCECHSSEService.Training_TrainingItem[] trainingItem) { + public System.Threading.Tasks.Task> DataInsertTraining_TrainingItemTableAsync(System.Collections.Generic.List trainingItem) { return base.Channel.DataInsertTraining_TrainingItemTableAsync(trainingItem); } - public string[] DataInsertTraining_TrainTestDBItemTable(BLL.CNCECHSSEService.Training_TrainTestDBItem[] trainTestDBItem) { + public System.Collections.Generic.List DataInsertTraining_TrainTestDBItemTable(System.Collections.Generic.List trainTestDBItem) { return base.Channel.DataInsertTraining_TrainTestDBItemTable(trainTestDBItem); } - public System.Threading.Tasks.Task DataInsertTraining_TrainTestDBItemTableAsync(BLL.CNCECHSSEService.Training_TrainTestDBItem[] trainTestDBItem) { + public System.Threading.Tasks.Task> DataInsertTraining_TrainTestDBItemTableAsync(System.Collections.Generic.List trainTestDBItem) { return base.Channel.DataInsertTraining_TrainTestDBItemTableAsync(trainTestDBItem); } - public string[] DataInsertEduTrain_AccidentCaseItemTable(BLL.CNCECHSSEService.EduTrain_AccidentCaseItem[] accidentCaseItem) { + public System.Collections.Generic.List DataInsertEduTrain_AccidentCaseItemTable(System.Collections.Generic.List accidentCaseItem) { return base.Channel.DataInsertEduTrain_AccidentCaseItemTable(accidentCaseItem); } - public System.Threading.Tasks.Task DataInsertEduTrain_AccidentCaseItemTableAsync(BLL.CNCECHSSEService.EduTrain_AccidentCaseItem[] accidentCaseItem) { + public System.Threading.Tasks.Task> DataInsertEduTrain_AccidentCaseItemTableAsync(System.Collections.Generic.List accidentCaseItem) { return base.Channel.DataInsertEduTrain_AccidentCaseItemTableAsync(accidentCaseItem); } - public string[] DataInsertTraining_KnowledgeItemTable(BLL.CNCECHSSEService.Training_KnowledgeItem[] knowledgeItem) { + public System.Collections.Generic.List DataInsertTraining_KnowledgeItemTable(System.Collections.Generic.List knowledgeItem) { return base.Channel.DataInsertTraining_KnowledgeItemTable(knowledgeItem); } - public System.Threading.Tasks.Task DataInsertTraining_KnowledgeItemTableAsync(BLL.CNCECHSSEService.Training_KnowledgeItem[] knowledgeItem) { + public System.Threading.Tasks.Task> DataInsertTraining_KnowledgeItemTableAsync(System.Collections.Generic.List knowledgeItem) { return base.Channel.DataInsertTraining_KnowledgeItemTableAsync(knowledgeItem); } - public string[] DataInsertTechnique_HazardListTable(BLL.CNCECHSSEService.Technique_HazardList[] hazardList) { + public System.Collections.Generic.List DataInsertTechnique_HazardListTable(System.Collections.Generic.List hazardList) { return base.Channel.DataInsertTechnique_HazardListTable(hazardList); } - public System.Threading.Tasks.Task DataInsertTechnique_HazardListTableAsync(BLL.CNCECHSSEService.Technique_HazardList[] hazardList) { + public System.Threading.Tasks.Task> DataInsertTechnique_HazardListTableAsync(System.Collections.Generic.List hazardList) { return base.Channel.DataInsertTechnique_HazardListTableAsync(hazardList); } - public string[] DataInsertTechnique_RectifyItemTable(BLL.CNCECHSSEService.Technique_RectifyItem[] rectifyItem) { + public System.Collections.Generic.List DataInsertTechnique_RectifyItemTable(System.Collections.Generic.List rectifyItem) { return base.Channel.DataInsertTechnique_RectifyItemTable(rectifyItem); } - public System.Threading.Tasks.Task DataInsertTechnique_RectifyItemTableAsync(BLL.CNCECHSSEService.Technique_RectifyItem[] rectifyItem) { + public System.Threading.Tasks.Task> DataInsertTechnique_RectifyItemTableAsync(System.Collections.Generic.List rectifyItem) { return base.Channel.DataInsertTechnique_RectifyItemTableAsync(rectifyItem); } - public string[] DataInsertTechnique_ExpertTable(BLL.CNCECHSSEService.Technique_Expert[] expert) { + public System.Collections.Generic.List DataInsertTechnique_ExpertTable(System.Collections.Generic.List expert) { return base.Channel.DataInsertTechnique_ExpertTable(expert); } - public System.Threading.Tasks.Task DataInsertTechnique_ExpertTableAsync(BLL.CNCECHSSEService.Technique_Expert[] expert) { + public System.Threading.Tasks.Task> DataInsertTechnique_ExpertTableAsync(System.Collections.Generic.List expert) { return base.Channel.DataInsertTechnique_ExpertTableAsync(expert); } - public string[] DataInsertSupervise_SuperviseCheckRectifyTable(BLL.CNCECHSSEService.Supervise_SuperviseCheckRectify[] superviseCheckRectify) { + public System.Collections.Generic.List DataInsertSupervise_SuperviseCheckRectifyTable(System.Collections.Generic.List superviseCheckRectify) { return base.Channel.DataInsertSupervise_SuperviseCheckRectifyTable(superviseCheckRectify); } - public System.Threading.Tasks.Task DataInsertSupervise_SuperviseCheckRectifyTableAsync(BLL.CNCECHSSEService.Supervise_SuperviseCheckRectify[] superviseCheckRectify) { + public System.Threading.Tasks.Task> DataInsertSupervise_SuperviseCheckRectifyTableAsync(System.Collections.Generic.List superviseCheckRectify) { return base.Channel.DataInsertSupervise_SuperviseCheckRectifyTableAsync(superviseCheckRectify); } - public string[] DataInsertHSSESystem_HSSEManageItemTable(BLL.CNCECHSSEService.HSSESystem_HSSEManageItem[] HSSEManageItem) { + public System.Collections.Generic.List DataInsertHSSESystem_HSSEManageItemTable(System.Collections.Generic.List HSSEManageItem) { return base.Channel.DataInsertHSSESystem_HSSEManageItemTable(HSSEManageItem); } - public System.Threading.Tasks.Task DataInsertHSSESystem_HSSEManageItemTableAsync(BLL.CNCECHSSEService.HSSESystem_HSSEManageItem[] HSSEManageItem) { + public System.Threading.Tasks.Task> DataInsertHSSESystem_HSSEManageItemTableAsync(System.Collections.Generic.List HSSEManageItem) { return base.Channel.DataInsertHSSESystem_HSSEManageItemTableAsync(HSSEManageItem); } - public string[] DataInsertSupervise_UpCheckReportTable(BLL.CNCECHSSEService.Supervise_UpCheckReport[] upCheckReport, BLL.CNCECHSSEService.Supervise_UpCheckReportItem[] upCheckReportItem, BLL.CNCECHSSEService.Supervise_UpCheckReportItem2[] upCheckReportItem2) { + public System.Collections.Generic.List DataInsertSupervise_UpCheckReportTable(System.Collections.Generic.List upCheckReport, System.Collections.Generic.List upCheckReportItem, System.Collections.Generic.List upCheckReportItem2) { return base.Channel.DataInsertSupervise_UpCheckReportTable(upCheckReport, upCheckReportItem, upCheckReportItem2); } - public System.Threading.Tasks.Task DataInsertSupervise_UpCheckReportTableAsync(BLL.CNCECHSSEService.Supervise_UpCheckReport[] upCheckReport, BLL.CNCECHSSEService.Supervise_UpCheckReportItem[] upCheckReportItem, BLL.CNCECHSSEService.Supervise_UpCheckReportItem2[] upCheckReportItem2) { + public System.Threading.Tasks.Task> DataInsertSupervise_UpCheckReportTableAsync(System.Collections.Generic.List upCheckReport, System.Collections.Generic.List upCheckReportItem, System.Collections.Generic.List upCheckReportItem2) { return base.Channel.DataInsertSupervise_UpCheckReportTableAsync(upCheckReport, upCheckReportItem, upCheckReportItem2); } - public string[] DataInsertSupervise_SubUnitReportItemItemTable(BLL.CNCECHSSEService.Supervise_SubUnitReportItem[] subUnitReportItem) { + public System.Collections.Generic.List DataInsertSupervise_SubUnitReportItemItemTable(System.Collections.Generic.List subUnitReportItem) { return base.Channel.DataInsertSupervise_SubUnitReportItemItemTable(subUnitReportItem); } - public System.Threading.Tasks.Task DataInsertSupervise_SubUnitReportItemItemTableAsync(BLL.CNCECHSSEService.Supervise_SubUnitReportItem[] subUnitReportItem) { + public System.Threading.Tasks.Task> DataInsertSupervise_SubUnitReportItemItemTableAsync(System.Collections.Generic.List subUnitReportItem) { return base.Channel.DataInsertSupervise_SubUnitReportItemItemTableAsync(subUnitReportItem); } - public string[] DataInsertCheck_CheckRectifyTable(BLL.CNCECHSSEService.Check_CheckRectify[] checkRectify) { + public System.Collections.Generic.List DataInsertCheck_CheckRectifyTable(System.Collections.Generic.List checkRectify) { return base.Channel.DataInsertCheck_CheckRectifyTable(checkRectify); } - public System.Threading.Tasks.Task DataInsertCheck_CheckRectifyTableAsync(BLL.CNCECHSSEService.Check_CheckRectify[] checkRectify) { + public System.Threading.Tasks.Task> DataInsertCheck_CheckRectifyTableAsync(System.Collections.Generic.List checkRectify) { return base.Channel.DataInsertCheck_CheckRectifyTableAsync(checkRectify); } @@ -13615,347 +13615,347 @@ namespace BLL.CNCECHSSEService { return base.Channel.DataInsertHSSESystem_HSSEOrganizeTableAsync(hsseOrganize); } - public string[] DataInsertSys_SubUnitLogListTable(BLL.CNCECHSSEService.Sys_SubUnitLog[] subUnitLogList) { + public System.Collections.Generic.List DataInsertSys_SubUnitLogListTable(System.Collections.Generic.List subUnitLogList) { return base.Channel.DataInsertSys_SubUnitLogListTable(subUnitLogList); } - public System.Threading.Tasks.Task DataInsertSys_SubUnitLogListTableAsync(BLL.CNCECHSSEService.Sys_SubUnitLog[] subUnitLogList) { + public System.Threading.Tasks.Task> DataInsertSys_SubUnitLogListTableAsync(System.Collections.Generic.List subUnitLogList) { return base.Channel.DataInsertSys_SubUnitLogListTableAsync(subUnitLogList); } - public BLL.CNCECHSSEService.Sys_Version[] GetSys_VersionToSUB() { + public System.Collections.Generic.List GetSys_VersionToSUB() { return base.Channel.GetSys_VersionToSUB(); } - public System.Threading.Tasks.Task GetSys_VersionToSUBAsync() { + public System.Threading.Tasks.Task> GetSys_VersionToSUBAsync() { return base.Channel.GetSys_VersionToSUBAsync(); } - public BLL.CNCECHSSEService.Base_Unit[] GetBase_UnitToSUB() { + public System.Collections.Generic.List GetBase_UnitToSUB() { return base.Channel.GetBase_UnitToSUB(); } - public System.Threading.Tasks.Task GetBase_UnitToSUBAsync() { + public System.Threading.Tasks.Task> GetBase_UnitToSUBAsync() { return base.Channel.GetBase_UnitToSUBAsync(); } - public BLL.CNCECHSSEService.Information_UrgeReport[] GetInformation_UrgeReportToSUB(string unitId) { + public System.Collections.Generic.List GetInformation_UrgeReportToSUB(string unitId) { return base.Channel.GetInformation_UrgeReportToSUB(unitId); } - public System.Threading.Tasks.Task GetInformation_UrgeReportToSUBAsync(string unitId) { + public System.Threading.Tasks.Task> GetInformation_UrgeReportToSUBAsync(string unitId) { return base.Channel.GetInformation_UrgeReportToSUBAsync(unitId); } - public BLL.CNCECHSSEService.Law_LawRegulationList[] GetLaw_LawRegulationListToSUB() { + public System.Collections.Generic.List GetLaw_LawRegulationListToSUB() { return base.Channel.GetLaw_LawRegulationListToSUB(); } - public System.Threading.Tasks.Task GetLaw_LawRegulationListToSUBAsync() { + public System.Threading.Tasks.Task> GetLaw_LawRegulationListToSUBAsync() { return base.Channel.GetLaw_LawRegulationListToSUBAsync(); } - public BLL.CNCECHSSEService.Law_HSSEStandardsList[] GetLaw_HSSEStandardsListToSUB() { + public System.Collections.Generic.List GetLaw_HSSEStandardsListToSUB() { return base.Channel.GetLaw_HSSEStandardsListToSUB(); } - public System.Threading.Tasks.Task GetLaw_HSSEStandardsListToSUBAsync() { + public System.Threading.Tasks.Task> GetLaw_HSSEStandardsListToSUBAsync() { return base.Channel.GetLaw_HSSEStandardsListToSUBAsync(); } - public BLL.CNCECHSSEService.Law_RulesRegulations[] GetLaw_RulesRegulationsToSUB() { + public System.Collections.Generic.List GetLaw_RulesRegulationsToSUB() { return base.Channel.GetLaw_RulesRegulationsToSUB(); } - public System.Threading.Tasks.Task GetLaw_RulesRegulationsToSUBAsync() { + public System.Threading.Tasks.Task> GetLaw_RulesRegulationsToSUBAsync() { return base.Channel.GetLaw_RulesRegulationsToSUBAsync(); } - public BLL.CNCECHSSEService.Law_ManageRule[] GetLaw_ManageRuleToSUB() { + public System.Collections.Generic.List GetLaw_ManageRuleToSUB() { return base.Channel.GetLaw_ManageRuleToSUB(); } - public System.Threading.Tasks.Task GetLaw_ManageRuleToSUBAsync() { + public System.Threading.Tasks.Task> GetLaw_ManageRuleToSUBAsync() { return base.Channel.GetLaw_ManageRuleToSUBAsync(); } - public BLL.CNCECHSSEService.Technique_HAZOP[] GetTechnique_HAZOPToSUB() { + public System.Collections.Generic.List GetTechnique_HAZOPToSUB() { return base.Channel.GetTechnique_HAZOPToSUB(); } - public System.Threading.Tasks.Task GetTechnique_HAZOPToSUBAsync() { + public System.Threading.Tasks.Task> GetTechnique_HAZOPToSUBAsync() { return base.Channel.GetTechnique_HAZOPToSUBAsync(); } - public BLL.CNCECHSSEService.Technique_Appraise[] GetTechnique_AppraiseToSUB() { + public System.Collections.Generic.List GetTechnique_AppraiseToSUB() { return base.Channel.GetTechnique_AppraiseToSUB(); } - public System.Threading.Tasks.Task GetTechnique_AppraiseToSUBAsync() { + public System.Threading.Tasks.Task> GetTechnique_AppraiseToSUBAsync() { return base.Channel.GetTechnique_AppraiseToSUBAsync(); } - public BLL.CNCECHSSEService.Technique_Emergency[] GetTechnique_EmergencyToSUB() { + public System.Collections.Generic.List GetTechnique_EmergencyToSUB() { return base.Channel.GetTechnique_EmergencyToSUB(); } - public System.Threading.Tasks.Task GetTechnique_EmergencyToSUBAsync() { + public System.Threading.Tasks.Task> GetTechnique_EmergencyToSUBAsync() { return base.Channel.GetTechnique_EmergencyToSUBAsync(); } - public BLL.CNCECHSSEService.Technique_SpecialScheme[] GetTechnique_SpecialSchemeToSUB() { + public System.Collections.Generic.List GetTechnique_SpecialSchemeToSUB() { return base.Channel.GetTechnique_SpecialSchemeToSUB(); } - public System.Threading.Tasks.Task GetTechnique_SpecialSchemeToSUBAsync() { + public System.Threading.Tasks.Task> GetTechnique_SpecialSchemeToSUBAsync() { return base.Channel.GetTechnique_SpecialSchemeToSUBAsync(); } - public BLL.CNCECHSSEService.Training_Training[] GetTraining_TrainingListToSUB() { + public System.Collections.Generic.List GetTraining_TrainingListToSUB() { return base.Channel.GetTraining_TrainingListToSUB(); } - public System.Threading.Tasks.Task GetTraining_TrainingListToSUBAsync() { + public System.Threading.Tasks.Task> GetTraining_TrainingListToSUBAsync() { return base.Channel.GetTraining_TrainingListToSUBAsync(); } - public BLL.CNCECHSSEService.Training_TrainingItem[] GetTraining_TrainingItemListToSUB() { + public System.Collections.Generic.List GetTraining_TrainingItemListToSUB() { return base.Channel.GetTraining_TrainingItemListToSUB(); } - public System.Threading.Tasks.Task GetTraining_TrainingItemListToSUBAsync() { + public System.Threading.Tasks.Task> GetTraining_TrainingItemListToSUBAsync() { return base.Channel.GetTraining_TrainingItemListToSUBAsync(); } - public BLL.CNCECHSSEService.Training_TrainTestDB[] GetTraining_TrainTestDBListToSUB() { + public System.Collections.Generic.List GetTraining_TrainTestDBListToSUB() { return base.Channel.GetTraining_TrainTestDBListToSUB(); } - public System.Threading.Tasks.Task GetTraining_TrainTestDBListToSUBAsync() { + public System.Threading.Tasks.Task> GetTraining_TrainTestDBListToSUBAsync() { return base.Channel.GetTraining_TrainTestDBListToSUBAsync(); } - public BLL.CNCECHSSEService.Training_TrainTestDBItem[] GetTraining_TrainTestDBItemListToSUB() { + public System.Collections.Generic.List GetTraining_TrainTestDBItemListToSUB() { return base.Channel.GetTraining_TrainTestDBItemListToSUB(); } - public System.Threading.Tasks.Task GetTraining_TrainTestDBItemListToSUBAsync() { + public System.Threading.Tasks.Task> GetTraining_TrainTestDBItemListToSUBAsync() { return base.Channel.GetTraining_TrainTestDBItemListToSUBAsync(); } - public BLL.CNCECHSSEService.EduTrain_AccidentCase[] GetEduTrain_AccidentCaseListToSUB() { + public System.Collections.Generic.List GetEduTrain_AccidentCaseListToSUB() { return base.Channel.GetEduTrain_AccidentCaseListToSUB(); } - public System.Threading.Tasks.Task GetEduTrain_AccidentCaseListToSUBAsync() { + public System.Threading.Tasks.Task> GetEduTrain_AccidentCaseListToSUBAsync() { return base.Channel.GetEduTrain_AccidentCaseListToSUBAsync(); } - public BLL.CNCECHSSEService.EduTrain_AccidentCaseItem[] GetEduTrain_AccidentCaseItemListToSUB() { + public System.Collections.Generic.List GetEduTrain_AccidentCaseItemListToSUB() { return base.Channel.GetEduTrain_AccidentCaseItemListToSUB(); } - public System.Threading.Tasks.Task GetEduTrain_AccidentCaseItemListToSUBAsync() { + public System.Threading.Tasks.Task> GetEduTrain_AccidentCaseItemListToSUBAsync() { return base.Channel.GetEduTrain_AccidentCaseItemListToSUBAsync(); } - public BLL.CNCECHSSEService.Training_Knowledge[] GetTraining_KnowledgeListToSUB() { + public System.Collections.Generic.List GetTraining_KnowledgeListToSUB() { return base.Channel.GetTraining_KnowledgeListToSUB(); } - public System.Threading.Tasks.Task GetTraining_KnowledgeListToSUBAsync() { + public System.Threading.Tasks.Task> GetTraining_KnowledgeListToSUBAsync() { return base.Channel.GetTraining_KnowledgeListToSUBAsync(); } - public BLL.CNCECHSSEService.Training_KnowledgeItem[] GetTraining_KnowledgeItemListToSUB() { + public System.Collections.Generic.List GetTraining_KnowledgeItemListToSUB() { return base.Channel.GetTraining_KnowledgeItemListToSUB(); } - public System.Threading.Tasks.Task GetTraining_KnowledgeItemListToSUBAsync() { + public System.Threading.Tasks.Task> GetTraining_KnowledgeItemListToSUBAsync() { return base.Channel.GetTraining_KnowledgeItemListToSUBAsync(); } - public BLL.CNCECHSSEService.Technique_HazardListType[] GetTechnique_HazardListTypeListToSUB() { + public System.Collections.Generic.List GetTechnique_HazardListTypeListToSUB() { return base.Channel.GetTechnique_HazardListTypeListToSUB(); } - public System.Threading.Tasks.Task GetTechnique_HazardListTypeListToSUBAsync() { + public System.Threading.Tasks.Task> GetTechnique_HazardListTypeListToSUBAsync() { return base.Channel.GetTechnique_HazardListTypeListToSUBAsync(); } - public BLL.CNCECHSSEService.Technique_HazardList[] GetTechnique_HazardListListToSUB() { + public System.Collections.Generic.List GetTechnique_HazardListListToSUB() { return base.Channel.GetTechnique_HazardListListToSUB(); } - public System.Threading.Tasks.Task GetTechnique_HazardListListToSUBAsync() { + public System.Threading.Tasks.Task> GetTechnique_HazardListListToSUBAsync() { return base.Channel.GetTechnique_HazardListListToSUBAsync(); } - public BLL.CNCECHSSEService.Technique_Rectify[] GetTechnique_RectifyListToSUB() { + public System.Collections.Generic.List GetTechnique_RectifyListToSUB() { return base.Channel.GetTechnique_RectifyListToSUB(); } - public System.Threading.Tasks.Task GetTechnique_RectifyListToSUBAsync() { + public System.Threading.Tasks.Task> GetTechnique_RectifyListToSUBAsync() { return base.Channel.GetTechnique_RectifyListToSUBAsync(); } - public BLL.CNCECHSSEService.Technique_RectifyItem[] GetTechnique_RectifyItemListToSUB() { + public System.Collections.Generic.List GetTechnique_RectifyItemListToSUB() { return base.Channel.GetTechnique_RectifyItemListToSUB(); } - public System.Threading.Tasks.Task GetTechnique_RectifyItemListToSUBAsync() { + public System.Threading.Tasks.Task> GetTechnique_RectifyItemListToSUBAsync() { return base.Channel.GetTechnique_RectifyItemListToSUBAsync(); } - public BLL.CNCECHSSEService.Technique_Expert[] GetTechnique_ExpertListToSUB() { + public System.Collections.Generic.List GetTechnique_ExpertListToSUB() { return base.Channel.GetTechnique_ExpertListToSUB(); } - public System.Threading.Tasks.Task GetTechnique_ExpertListToSUBAsync() { + public System.Threading.Tasks.Task> GetTechnique_ExpertListToSUBAsync() { return base.Channel.GetTechnique_ExpertListToSUBAsync(); } - public BLL.CNCECHSSEService.Supervise_SuperviseCheckRectify[] GetSupervise_SuperviseCheckRectifyListToSUB(string unitId) { + public System.Collections.Generic.List GetSupervise_SuperviseCheckRectifyListToSUB(string unitId) { return base.Channel.GetSupervise_SuperviseCheckRectifyListToSUB(unitId); } - public System.Threading.Tasks.Task GetSupervise_SuperviseCheckRectifyListToSUBAsync(string unitId) { + public System.Threading.Tasks.Task> GetSupervise_SuperviseCheckRectifyListToSUBAsync(string unitId) { return base.Channel.GetSupervise_SuperviseCheckRectifyListToSUBAsync(unitId); } - public BLL.CNCECHSSEService.Supervise_SubUnitReport[] GetSupervise_SubUnitReportListToSUB() { + public System.Collections.Generic.List GetSupervise_SubUnitReportListToSUB() { return base.Channel.GetSupervise_SubUnitReportListToSUB(); } - public System.Threading.Tasks.Task GetSupervise_SubUnitReportListToSUBAsync() { + public System.Threading.Tasks.Task> GetSupervise_SubUnitReportListToSUBAsync() { return base.Channel.GetSupervise_SubUnitReportListToSUBAsync(); } - public BLL.CNCECHSSEService.Supervise_SubUnitReportItem[] GetSupervise_SubUnitReportItemListToSUB(string unitId) { + public System.Collections.Generic.List GetSupervise_SubUnitReportItemListToSUB(string unitId) { return base.Channel.GetSupervise_SubUnitReportItemListToSUB(unitId); } - public System.Threading.Tasks.Task GetSupervise_SubUnitReportItemListToSUBAsync(string unitId) { + public System.Threading.Tasks.Task> GetSupervise_SubUnitReportItemListToSUBAsync(string unitId) { return base.Channel.GetSupervise_SubUnitReportItemListToSUBAsync(unitId); } - public BLL.CNCECHSSEService.Check_CheckRectify[] GetCheck_CheckRectifyListToSUB(string unitId) { + public System.Collections.Generic.List GetCheck_CheckRectifyListToSUB(string unitId) { return base.Channel.GetCheck_CheckRectifyListToSUB(unitId); } - public System.Threading.Tasks.Task GetCheck_CheckRectifyListToSUBAsync(string unitId) { + public System.Threading.Tasks.Task> GetCheck_CheckRectifyListToSUBAsync(string unitId) { return base.Channel.GetCheck_CheckRectifyListToSUBAsync(unitId); } - public BLL.CNCECHSSEService.Check_CheckInfo_Table8Item[] GetCheck_CheckInfo_Table8ItemListToSUB(string unitId) { + public System.Collections.Generic.List GetCheck_CheckInfo_Table8ItemListToSUB(string unitId) { return base.Channel.GetCheck_CheckInfo_Table8ItemListToSUB(unitId); } - public System.Threading.Tasks.Task GetCheck_CheckInfo_Table8ItemListToSUBAsync(string unitId) { + public System.Threading.Tasks.Task> GetCheck_CheckInfo_Table8ItemListToSUBAsync(string unitId) { return base.Channel.GetCheck_CheckInfo_Table8ItemListToSUBAsync(unitId); } - public string[] DataInsertLaw_LawRegulationListTable(BLL.CNCECHSSEService.Law_LawRegulationList[] lawRegulationList) { + public System.Collections.Generic.List DataInsertLaw_LawRegulationListTable(System.Collections.Generic.List lawRegulationList) { return base.Channel.DataInsertLaw_LawRegulationListTable(lawRegulationList); } - public System.Threading.Tasks.Task DataInsertLaw_LawRegulationListTableAsync(BLL.CNCECHSSEService.Law_LawRegulationList[] lawRegulationList) { + public System.Threading.Tasks.Task> DataInsertLaw_LawRegulationListTableAsync(System.Collections.Generic.List lawRegulationList) { return base.Channel.DataInsertLaw_LawRegulationListTableAsync(lawRegulationList); } - public string[] DataInsertLaw_HSSEStandardsListTable(BLL.CNCECHSSEService.Law_HSSEStandardsList[] hsseStandardsList) { + public System.Collections.Generic.List DataInsertLaw_HSSEStandardsListTable(System.Collections.Generic.List hsseStandardsList) { return base.Channel.DataInsertLaw_HSSEStandardsListTable(hsseStandardsList); } - public System.Threading.Tasks.Task DataInsertLaw_HSSEStandardsListTableAsync(BLL.CNCECHSSEService.Law_HSSEStandardsList[] hsseStandardsList) { + public System.Threading.Tasks.Task> DataInsertLaw_HSSEStandardsListTableAsync(System.Collections.Generic.List hsseStandardsList) { return base.Channel.DataInsertLaw_HSSEStandardsListTableAsync(hsseStandardsList); } - public string[] DataInsertLaw_RulesRegulationsTable(BLL.CNCECHSSEService.Law_RulesRegulations[] rulesRegulations) { + public System.Collections.Generic.List DataInsertLaw_RulesRegulationsTable(System.Collections.Generic.List rulesRegulations) { return base.Channel.DataInsertLaw_RulesRegulationsTable(rulesRegulations); } - public System.Threading.Tasks.Task DataInsertLaw_RulesRegulationsTableAsync(BLL.CNCECHSSEService.Law_RulesRegulations[] rulesRegulations) { + public System.Threading.Tasks.Task> DataInsertLaw_RulesRegulationsTableAsync(System.Collections.Generic.List rulesRegulations) { return base.Channel.DataInsertLaw_RulesRegulationsTableAsync(rulesRegulations); } - public string[] DataInsertLaw_ManageRuleTable(BLL.CNCECHSSEService.Law_ManageRule[] manageRule) { + public System.Collections.Generic.List DataInsertLaw_ManageRuleTable(System.Collections.Generic.List manageRule) { return base.Channel.DataInsertLaw_ManageRuleTable(manageRule); } - public System.Threading.Tasks.Task DataInsertLaw_ManageRuleTableAsync(BLL.CNCECHSSEService.Law_ManageRule[] manageRule) { + public System.Threading.Tasks.Task> DataInsertLaw_ManageRuleTableAsync(System.Collections.Generic.List manageRule) { return base.Channel.DataInsertLaw_ManageRuleTableAsync(manageRule); } - public string[] DataInsertTechnique_HAZOPTable(BLL.CNCECHSSEService.Technique_HAZOP[] hazop) { + public System.Collections.Generic.List DataInsertTechnique_HAZOPTable(System.Collections.Generic.List hazop) { return base.Channel.DataInsertTechnique_HAZOPTable(hazop); } - public System.Threading.Tasks.Task DataInsertTechnique_HAZOPTableAsync(BLL.CNCECHSSEService.Technique_HAZOP[] hazop) { + public System.Threading.Tasks.Task> DataInsertTechnique_HAZOPTableAsync(System.Collections.Generic.List hazop) { return base.Channel.DataInsertTechnique_HAZOPTableAsync(hazop); } - public string[] DataInsertTechnique_AppraiseTable(BLL.CNCECHSSEService.Technique_Appraise[] appraise) { + public System.Collections.Generic.List DataInsertTechnique_AppraiseTable(System.Collections.Generic.List appraise) { return base.Channel.DataInsertTechnique_AppraiseTable(appraise); } - public System.Threading.Tasks.Task DataInsertTechnique_AppraiseTableAsync(BLL.CNCECHSSEService.Technique_Appraise[] appraise) { + public System.Threading.Tasks.Task> DataInsertTechnique_AppraiseTableAsync(System.Collections.Generic.List appraise) { return base.Channel.DataInsertTechnique_AppraiseTableAsync(appraise); } - public string[] DataInsertTechnique_EmergencyTable(BLL.CNCECHSSEService.Technique_Emergency[] emergency) { + public System.Collections.Generic.List DataInsertTechnique_EmergencyTable(System.Collections.Generic.List emergency) { return base.Channel.DataInsertTechnique_EmergencyTable(emergency); } - public System.Threading.Tasks.Task DataInsertTechnique_EmergencyTableAsync(BLL.CNCECHSSEService.Technique_Emergency[] emergency) { + public System.Threading.Tasks.Task> DataInsertTechnique_EmergencyTableAsync(System.Collections.Generic.List emergency) { return base.Channel.DataInsertTechnique_EmergencyTableAsync(emergency); } - public string[] DataInsertTechnique_SpecialSchemeTable(BLL.CNCECHSSEService.Technique_SpecialScheme[] specialScheme) { + public System.Collections.Generic.List DataInsertTechnique_SpecialSchemeTable(System.Collections.Generic.List specialScheme) { return base.Channel.DataInsertTechnique_SpecialSchemeTable(specialScheme); } - public System.Threading.Tasks.Task DataInsertTechnique_SpecialSchemeTableAsync(BLL.CNCECHSSEService.Technique_SpecialScheme[] specialScheme) { + public System.Threading.Tasks.Task> DataInsertTechnique_SpecialSchemeTableAsync(System.Collections.Generic.List specialScheme) { return base.Channel.DataInsertTechnique_SpecialSchemeTableAsync(specialScheme); } - public string[] DataInsertInformation_AccidentCauseReportTable(BLL.CNCECHSSEService.Information_AccidentCauseReport[] accidentCauseReportList, BLL.CNCECHSSEService.Information_AccidentCauseReportItem[] accidentCauseReportItemList) { + public System.Collections.Generic.List DataInsertInformation_AccidentCauseReportTable(System.Collections.Generic.List accidentCauseReportList, System.Collections.Generic.List accidentCauseReportItemList) { return base.Channel.DataInsertInformation_AccidentCauseReportTable(accidentCauseReportList, accidentCauseReportItemList); } - public System.Threading.Tasks.Task DataInsertInformation_AccidentCauseReportTableAsync(BLL.CNCECHSSEService.Information_AccidentCauseReport[] accidentCauseReportList, BLL.CNCECHSSEService.Information_AccidentCauseReportItem[] accidentCauseReportItemList) { + public System.Threading.Tasks.Task> DataInsertInformation_AccidentCauseReportTableAsync(System.Collections.Generic.List accidentCauseReportList, System.Collections.Generic.List accidentCauseReportItemList) { return base.Channel.DataInsertInformation_AccidentCauseReportTableAsync(accidentCauseReportList, accidentCauseReportItemList); } - public string[] DataInsertInformation_DrillConductedQuarterlyReportTable(BLL.CNCECHSSEService.Information_DrillConductedQuarterlyReport[] drillConductedQuarterlyReportList, BLL.CNCECHSSEService.Information_DrillConductedQuarterlyReportItem[] drillConductedQuarterlyReportItemList) { + public System.Collections.Generic.List DataInsertInformation_DrillConductedQuarterlyReportTable(System.Collections.Generic.List drillConductedQuarterlyReportList, System.Collections.Generic.List drillConductedQuarterlyReportItemList) { return base.Channel.DataInsertInformation_DrillConductedQuarterlyReportTable(drillConductedQuarterlyReportList, drillConductedQuarterlyReportItemList); } - public System.Threading.Tasks.Task DataInsertInformation_DrillConductedQuarterlyReportTableAsync(BLL.CNCECHSSEService.Information_DrillConductedQuarterlyReport[] drillConductedQuarterlyReportList, BLL.CNCECHSSEService.Information_DrillConductedQuarterlyReportItem[] drillConductedQuarterlyReportItemList) { + public System.Threading.Tasks.Task> DataInsertInformation_DrillConductedQuarterlyReportTableAsync(System.Collections.Generic.List drillConductedQuarterlyReportList, System.Collections.Generic.List drillConductedQuarterlyReportItemList) { return base.Channel.DataInsertInformation_DrillConductedQuarterlyReportTableAsync(drillConductedQuarterlyReportList, drillConductedQuarterlyReportItemList); } - public string[] DataInsertInformation_DrillPlanHalfYearReportTable(BLL.CNCECHSSEService.Information_DrillPlanHalfYearReport[] drillPlanHalfYearReportList, BLL.CNCECHSSEService.Information_DrillPlanHalfYearReportItem[] drillPlanHalfYearReportItemList) { + public System.Collections.Generic.List DataInsertInformation_DrillPlanHalfYearReportTable(System.Collections.Generic.List drillPlanHalfYearReportList, System.Collections.Generic.List drillPlanHalfYearReportItemList) { return base.Channel.DataInsertInformation_DrillPlanHalfYearReportTable(drillPlanHalfYearReportList, drillPlanHalfYearReportItemList); } - public System.Threading.Tasks.Task DataInsertInformation_DrillPlanHalfYearReportTableAsync(BLL.CNCECHSSEService.Information_DrillPlanHalfYearReport[] drillPlanHalfYearReportList, BLL.CNCECHSSEService.Information_DrillPlanHalfYearReportItem[] drillPlanHalfYearReportItemList) { + public System.Threading.Tasks.Task> DataInsertInformation_DrillPlanHalfYearReportTableAsync(System.Collections.Generic.List drillPlanHalfYearReportList, System.Collections.Generic.List drillPlanHalfYearReportItemList) { return base.Channel.DataInsertInformation_DrillPlanHalfYearReportTableAsync(drillPlanHalfYearReportList, drillPlanHalfYearReportItemList); } - public string[] DataInsertInformation_MillionsMonthlyReportTable(BLL.CNCECHSSEService.Information_MillionsMonthlyReport[] millionsMonthlyReportList, BLL.CNCECHSSEService.Information_MillionsMonthlyReportItem[] millionsMonthlyReportItemList) { + public System.Collections.Generic.List DataInsertInformation_MillionsMonthlyReportTable(System.Collections.Generic.List millionsMonthlyReportList, System.Collections.Generic.List millionsMonthlyReportItemList) { return base.Channel.DataInsertInformation_MillionsMonthlyReportTable(millionsMonthlyReportList, millionsMonthlyReportItemList); } - public System.Threading.Tasks.Task DataInsertInformation_MillionsMonthlyReportTableAsync(BLL.CNCECHSSEService.Information_MillionsMonthlyReport[] millionsMonthlyReportList, BLL.CNCECHSSEService.Information_MillionsMonthlyReportItem[] millionsMonthlyReportItemList) { + public System.Threading.Tasks.Task> DataInsertInformation_MillionsMonthlyReportTableAsync(System.Collections.Generic.List millionsMonthlyReportList, System.Collections.Generic.List millionsMonthlyReportItemList) { return base.Channel.DataInsertInformation_MillionsMonthlyReportTableAsync(millionsMonthlyReportList, millionsMonthlyReportItemList); } - public string[] DataInsertInformation_SafetyQuarterlyReportTable(BLL.CNCECHSSEService.Information_SafetyQuarterlyReport[] safetyQuarterlyReportList) { + public System.Collections.Generic.List DataInsertInformation_SafetyQuarterlyReportTable(System.Collections.Generic.List safetyQuarterlyReportList) { return base.Channel.DataInsertInformation_SafetyQuarterlyReportTable(safetyQuarterlyReportList); } - public System.Threading.Tasks.Task DataInsertInformation_SafetyQuarterlyReportTableAsync(BLL.CNCECHSSEService.Information_SafetyQuarterlyReport[] safetyQuarterlyReportList) { + public System.Threading.Tasks.Task> DataInsertInformation_SafetyQuarterlyReportTableAsync(System.Collections.Generic.List safetyQuarterlyReportList) { return base.Channel.DataInsertInformation_SafetyQuarterlyReportTableAsync(safetyQuarterlyReportList); } } diff --git a/SGGL/BLL/Service References/CNCECHSSEService/Reference.svcmap b/SGGL/BLL/Service References/CNCECHSSEService/Reference.svcmap index ce8df991..f87829f7 100644 --- a/SGGL/BLL/Service References/CNCECHSSEService/Reference.svcmap +++ b/SGGL/BLL/Service References/CNCECHSSEService/Reference.svcmap @@ -1,5 +1,5 @@ - + false true @@ -9,7 +9,9 @@ false false - + + + true Auto true @@ -22,13 +24,13 @@ - - - - - - - + + + + + + + diff --git a/SGGL/BLL/WebService/CNCECHSSEMonitorService.cs b/SGGL/BLL/WebService/CNCECHSSEMonitorService.cs new file mode 100644 index 00000000..d3d991b0 --- /dev/null +++ b/SGGL/BLL/WebService/CNCECHSSEMonitorService.cs @@ -0,0 +1,62 @@ +using System.Linq; +using System.Timers; +using System.Configuration; +using System; + +namespace BLL +{ + public class CNCECHSSEMonitorService + { + #region 启动监视器 系统启动5分钟 + /// + /// 监视组件 + /// + private static Timer messageTimer; + + /// + /// 启动监视器,不一定能成功,根据系统设置决定对监视器执行的操作 系统启动5分钟 + /// + public static void StartMonitor() + { + int adTimeJ = 120; + if (messageTimer != null) + { + messageTimer.Stop(); + messageTimer.Dispose(); + messageTimer = null; + } + if (adTimeJ > 0) + { + messageTimer = new Timer + { + AutoReset = true + }; + messageTimer.Elapsed += new ElapsedEventHandler(AdUserInProcess); + messageTimer.Interval = 1000 * 60 * adTimeJ;// 60000 * adTimeJ; + messageTimer.Start(); + } + } + + /// + /// 流程确认 定时执行 系统启动5分钟 + /// + /// Timer组件 + /// 事件参数 + private static void AdUserInProcess(object sender, ElapsedEventArgs e) + { + try + { + CNCECHSSEWebService.getSupervise_SubUnitReport(); + CNCECHSSEWebService.getCheck_CheckInfo_Table8Item(); + CNCECHSSEWebService.getCheck_CheckRectify(); + CNCECHSSEWebService.getInformation_UrgeReport(); + } + catch (Exception ex) + { + StartMonitor(); + ErrLogInfo.WriteLog(ex, "数据接口定时器", "RealNameMonitorService.AdUserInProcess"); + } + } + #endregion + } +} diff --git a/SGGL/BLL/WebService/CNCECHSSEWebService.cs b/SGGL/BLL/WebService/CNCECHSSEWebService.cs index ba1e8bda..f23eb737 100644 --- a/SGGL/BLL/WebService/CNCECHSSEWebService.cs +++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs @@ -2,17 +2,1087 @@ { using System; using System.Collections.Generic; + using System.Data; using System.Linq; - using System.Text; - using System.Threading.Tasks; public static class CNCECHSSEWebService { - public static void getLaw() + #region 上报数据到集团 + #region 百万工时上报 + /// + /// 百万工时上报 + /// + public static string UpMillionsMonthlyReport(string millionsMonthlyReportId, Model.Sys_User CurrUser) { - CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); - var getlaw = hsseC.GetLaw_LawRegulationListToSUB(); - // var getlaw= hsseC.GetLaw_LawRegulationListToSUBAsync(); + string code = "0"; + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upReport = from x in db.Information_MillionsMonthlyReport + where x.MillionsMonthlyReportId == millionsMonthlyReportId + select new CNCECHSSEService.Information_MillionsMonthlyReport + { + MillionsMonthlyReportId = x.MillionsMonthlyReportId, + UnitId = x.UnitId, + Year = x.Year, + Month = x.Month, + FillingMan = x.FillingMan, + FillingDate = x.FillingDate, + DutyPerson = x.DutyPerson, + RecordableIncidentRate = x.RecordableIncidentRate, + LostTimeRate = x.LostTimeRate, + LostTimeInjuryRate = x.LostTimeInjuryRate, + DeathAccidentFrequency = x.DeathAccidentFrequency, + AccidentMortality = x.AccidentMortality, + }; + + var upReportItem = from x in db.Information_MillionsMonthlyReportItem + where x.MillionsMonthlyReportId == millionsMonthlyReportId + select new CNCECHSSEService.Information_MillionsMonthlyReportItem + { + MillionsMonthlyReportItemId = x.MillionsMonthlyReportItemId, + MillionsMonthlyReportId = x.MillionsMonthlyReportId, + SortIndex = x.SortIndex, + Affiliation = x.Affiliation, + Name = x.Name, + PostPersonNum = x.PostPersonNum, + SnapPersonNum = x.SnapPersonNum, + ContractorNum = x.ContractorNum, + SumPersonNum = x.SumPersonNum, + TotalWorkNum = x.TotalWorkNum, + SeriousInjuriesNum = x.SeriousInjuriesNum, + SeriousInjuriesPersonNum = x.SeriousInjuriesPersonNum, + SeriousInjuriesLossHour = x.SeriousInjuriesLossHour, + MinorAccidentNum = x.MinorAccidentNum, + MinorAccidentPersonNum = x.MinorAccidentPersonNum, + MinorAccidentLossHour = x.MinorAccidentLossHour, + OtherAccidentNum = x.OtherAccidentNum, + OtherAccidentPersonNum = x.OtherAccidentPersonNum, + OtherAccidentLossHour = x.OtherAccidentLossHour, + RestrictedWorkPersonNum = x.RestrictedWorkPersonNum, + RestrictedWorkLossHour = x.RestrictedWorkLossHour, + MedicalTreatmentPersonNum = x.MedicalTreatmentPersonNum, + MedicalTreatmentLossHour = x.MedicalTreatmentLossHour, + FireNum = x.FireNum, + ExplosionNum = x.ExplosionNum, + TrafficNum = x.TrafficNum, + EquipmentNum = x.EquipmentNum, + QualityNum = x.QualityNum, + OtherNum = x.OtherNum, + FirstAidDressingsNum = x.FirstAidDressingsNum, + AttemptedEventNum = x.AttemptedEventNum, + LossDayNum = x.LossDayNum, + }; + + var getR = hsseC.DataInsertInformation_MillionsMonthlyReportTable(upReport.ToList(), upReportItem.ToList()); + foreach (var item in getR) + { + var report = db.Information_MillionsMonthlyReport.FirstOrDefault(e => e.MillionsMonthlyReportId == item); + if (report != null) + { + report.UpState = BLL.Const.UpState_3; + db.SubmitChanges(); + ////更新 当前人要处理的意见 + ProjectDataFlowSetService.CloseFlowOperate(Const.MillionsMonthlyReportMenuId, item, string.Empty); + // //更新催报信息 + UrgeReportService.SetComplete(report.UnitId, Const.ReportType_1, report.Year.ToString(), report.Month.ToString()); + } + } + code = "1"; + LogService.AddSys_Log(CurrUser, "【百万工时安全统计月报表】上传到服务器" + getR.Count.ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("【百万工时安全统计月报表】上传到服务器", ex); + LogService.AddSys_Log(CurrUser, "【百万工时安全统计月报表】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + return code; + } } + #endregion + + #region 职工伤亡事故原因分析报表上报 + /// + /// 职工伤亡事故原因分析报表上报 + /// + public static string UpAccidentCauseReport(string accidentCauseReportId, Model.Sys_User CurrUser) + { + string code = "0"; + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upReport = from x in db.Information_AccidentCauseReport + where x.AccidentCauseReportId == accidentCauseReportId + select new CNCECHSSEService.Information_AccidentCauseReport + { + AccidentCauseReportId = x.AccidentCauseReportId, + UnitId = x.UnitId, + AccidentCauseReportCode = x.AccidentCauseReportCode, + Year = x.Year, + Month = x.Month, + DeathAccident = x.DeathAccident, + DeathToll = x.DeathToll, + InjuredAccident = x.InjuredAccident, + InjuredToll = x.InjuredToll, + MinorWoundAccident = x.MinorWoundAccident, + MinorWoundToll = x.MinorWoundToll, + AverageTotalHours = x.AverageTotalHours, + AverageManHours = x.AverageManHours, + TotalLossMan = x.TotalLossMan, + LastMonthLossHoursTotal = x.LastMonthLossHoursTotal, + KnockOffTotal = x.KnockOffTotal, + DirectLoss = x.DirectLoss, + IndirectLosses = x.IndirectLosses, + TotalLoss = x.TotalLoss, + TotalLossTime = x.TotalLossTime, + FillCompanyPersonCharge = x.FillCompanyPersonCharge, + TabPeople = x.TabPeople, + AuditPerson = x.AuditPerson, + FillingDate = x.FillingDate, + }; + + var upReportItem = from x in db.Information_AccidentCauseReportItem + where x.AccidentCauseReportId == accidentCauseReportId + select new CNCECHSSEService.Information_AccidentCauseReportItem + { + AccidentCauseReportItemId = x.AccidentCauseReportItemId, + AccidentCauseReportId = x.AccidentCauseReportId, + AccidentType = x.AccidentType, + TotalDeath = x.TotalDeath, + TotalInjuries = x.TotalInjuries, + TotalMinorInjuries = x.TotalMinorInjuries, + Death1 = x.Death1, + Injuries1 = x.Injuries1, + MinorInjuries1 = x.MinorInjuries1, + Death2 = x.Death2, + Injuries2 = x.Injuries2, + MinorInjuries2 = x.MinorInjuries2, + Death3 = x.Death3, + Injuries3 = x.Injuries3, + MinorInjuries3 = x.MinorInjuries3, + Death4 = x.Death4, + Injuries4 = x.Injuries4, + MinorInjuries4 = x.MinorInjuries4, + Death5 = x.Death5, + Injuries5 = x.Injuries5, + MinorInjuries5 = x.MinorInjuries5, + Death6 = x.Death6, + Injuries6 = x.Injuries6, + MinorInjuries6 = x.MinorInjuries6, + Death7 = x.Death7, + Injuries7 = x.Injuries7, + MinorInjuries7 = x.MinorInjuries7, + Death8 = x.Death8, + Injuries8 = x.Injuries8, + MinorInjuries8 = x.MinorInjuries8, + Death9 = x.Death9, + Injuries9 = x.Injuries9, + MinorInjuries9 = x.MinorInjuries9, + Death10 = x.Death10, + Injuries10 = x.Injuries10, + MinorInjuries10 = x.MinorInjuries10, + Death11 = x.Death11, + Injuries11 = x.Injuries11, + MinorInjuries11 = x.MinorInjuries11, + }; + + var getR = hsseC.DataInsertInformation_AccidentCauseReportTable(upReport.ToList(), upReportItem.ToList()); + foreach (var item in getR) + { + var report = db.Information_AccidentCauseReport.FirstOrDefault(e => e.AccidentCauseReportId == item); + if (report != null) + { + report.UpState = BLL.Const.UpState_3; + db.SubmitChanges(); + ////更新 当前人要处理的意见 + ProjectDataFlowSetService.CloseFlowOperate(Const.MillionsMonthlyReportMenuId, item, string.Empty); + ////更新催报信息 + UrgeReportService.SetComplete(report.UnitId, Const.ReportType_2, report.Year.ToString(), report.Month.ToString()); + } + } + code = "1"; + LogService.AddSys_Log(CurrUser, "【职工伤亡事故原因分析报表】上传到服务器" + getR.Count.ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("【职工伤亡事故原因分析报表】上传到服务器", ex); + LogService.AddSys_Log(CurrUser, "【职工伤亡事故原因分析报表】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + + return code; + } + } + #endregion + + #region 安全生产数据季报上报 + /// + /// 安全生产数据季报上报 + /// + public static string UpSafetyQuarterlyReport(string safetyQuarterlyReportId, Model.Sys_User CurrUser) + { + string code = "0"; + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upReport = from x in db.Information_SafetyQuarterlyReport + where x.SafetyQuarterlyReportId == safetyQuarterlyReportId + select new CNCECHSSEService.Information_SafetyQuarterlyReport + { + SafetyQuarterlyReportId = x.SafetyQuarterlyReportId, + UnitId = x.UnitId, + YearId = x.YearId, + Quarters = x.Quarters, + TotalInWorkHours = x.TotalInWorkHours, + TotalInWorkHoursRemark = x.TotalInWorkHoursRemark, + TotalOutWorkHours = x.TotalOutWorkHours, + TotalOutWorkHoursRemark = x.TotalOutWorkHoursRemark, + WorkHoursLossRate = x.WorkHoursLossRate, + WorkHoursLossRateRemark = x.WorkHoursLossRateRemark, + WorkHoursAccuracy = x.WorkHoursAccuracy, + WorkHoursAccuracyRemark = x.WorkHoursAccuracyRemark, + MainBusinessIncome = x.MainBusinessIncome, + MainBusinessIncomeRemark = x.MainBusinessIncomeRemark, + ConstructionRevenue = x.ConstructionRevenue, + ConstructionRevenueRemark = x.ConstructionRevenueRemark, + UnitTimeIncome = x.UnitTimeIncome, + UnitTimeIncomeRemark = x.UnitTimeIncomeRemark, + BillionsOutputMortality = x.BillionsOutputMortality, + BillionsOutputMortalityRemark = x.BillionsOutputMortalityRemark, + MajorFireAccident = x.MajorFireAccident, + MajorFireAccidentRemark = x.MajorFireAccidentRemark, + MajorEquipAccident = x.MajorEquipAccident, + MajorEquipAccidentRemark = x.MajorEquipAccidentRemark, + AccidentFrequency = x.AccidentFrequency, + AccidentFrequencyRemark = x.AccidentFrequencyRemark, + SeriousInjuryAccident = x.SeriousInjuryAccident, + SeriousInjuryAccidentRemark = x.SeriousInjuryAccidentRemark, + FireAccident = x.FireAccident, + FireAccidentRemark = x.FireAccidentRemark, + EquipmentAccident = x.EquipmentAccident, + EquipmentAccidentRemark = x.EquipmentAccidentRemark, + PoisoningAndInjuries = x.PoisoningAndInjuries, + PoisoningAndInjuriesRemark = x.PoisoningAndInjuriesRemark, + ProductionSafetyInTotal = x.ProductionSafetyInTotal, + ProductionSafetyInTotalRemark = x.ProductionSafetyInTotalRemark, + ProtectionInput = x.ProtectionInput, + ProtectionInputRemark = x.ProtectionInputRemark, + LaboAndHealthIn = x.LaboAndHealthIn, + LaborAndHealthInRemark = x.LaborAndHealthInRemark, + TechnologyProgressIn = x.TechnologyProgressIn, + TechnologyProgressInRemark = x.TechnologyProgressInRemark, + EducationTrainIn = x.EducationTrainIn, + EducationTrainInRemark = x.EducationTrainInRemark, + ProjectCostRate = x.ProjectCostRate, + ProjectCostRateRemark = x.ProjectCostRateRemark, + ProductionInput = x.ProductionInput, + ProductionInputRemark = x.ProductionInputRemark, + Revenue = x.Revenue, + RevenueRemark = x.RevenueRemark, + FullTimeMan = x.FullTimeMan, + FullTimeManRemark = x.FullTimeManRemark, + FullTimeManAttachUrl = x.FullTimeManAttachUrl, + PMMan = x.PMMan, + PMManRemark = x.PMManRemark, + PMManAttachUrl = x.PMManAttachUrl, + CorporateDirectorEdu = x.CorporateDirectorEdu, + CorporateDirectorEduRemark = x.CorporateDirectorEduRemark, + ProjectLeaderEdu = x.ProjectLeaderEdu, + ProjectLeaderEduRemark = x.ProjectLeaderEduRemark, + FullTimeEdu = x.FullTimeEdu, + FullTimeEduRemark = x.FullTimeEduRemark, + ThreeKidsEduRate = x.ThreeKidsEduRate, + ThreeKidsEduRateRemark = x.ThreeKidsEduRateRemark, + UplinReportRate = x.UplinReportRate, + UplinReportRateRemark = x.UplinReportRateRemark, + Remarks = x.Remarks, + CompileMan = x.CompileMan, + ////附件转为字节传送 + FullTimeManAttachUrlFileContext = FileStructService.GetFileStructByAttachUrl(x.FullTimeManAttachUrl), + PMManAttachUrlFileContext = FileStructService.GetFileStructByAttachUrl(x.PMManAttachUrl), + KeyEquipmentTotal = x.KeyEquipmentTotal, + KeyEquipmentTotalRemark = x.KeyEquipmentTotalRemark, + KeyEquipmentReportCount = x.KeyEquipmentReportCount, + KeyEquipmentReportCountRemark = x.KeyEquipmentReportCountRemark, + ChemicalAreaProjectCount = x.ChemicalAreaProjectCount, + ChemicalAreaProjectCountRemark = x.ChemicalAreaProjectCountRemark, + HarmfulMediumCoverCount = x.HarmfulMediumCoverCount, + HarmfulMediumCoverCountRemark = x.HarmfulMediumCoverCountRemark, + HarmfulMediumCoverRate = x.HarmfulMediumCoverRate, + HarmfulMediumCoverRateRemark = x.HarmfulMediumCoverRateRemark + }; + + var getR = hsseC.DataInsertInformation_SafetyQuarterlyReportTable(upReport.ToList()); + foreach (var item in getR) + { + var report = db.Information_SafetyQuarterlyReport.FirstOrDefault(e => e.SafetyQuarterlyReportId == item); + if (report != null) + { + report.UpState = BLL.Const.UpState_3; + db.SubmitChanges(); + ////更新 当前人要处理的意见 + ProjectDataFlowSetService.CloseFlowOperate(Const.MillionsMonthlyReportMenuId, item, string.Empty); + ////更新催报信息 + UrgeReportService.SetComplete(report.UnitId, Const.ReportType_3, report.YearId.ToString(), report.Quarters.ToString()); + } + } + code = "1"; + LogService.AddSys_Log(CurrUser, "【安全生产数据季报上报】上传到服务器" + getR.Count.ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("【安全生产数据季报上报】上传到服务器", ex); + LogService.AddSys_Log(CurrUser, "【安全生产数据季报上报】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + + return code; + } + } + #endregion + + #region 应急演练开展情况季报表上报 + /// + /// 应急演练开展情况季报表上报 + /// + public static string UpDrillConductedQuarterlyReport(string drillConductedQuarterlyReportId, Model.Sys_User CurrUser) + { + string code = "0"; + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upReport = from x in db.Information_DrillConductedQuarterlyReport + where x.DrillConductedQuarterlyReportId == drillConductedQuarterlyReportId + select new CNCECHSSEService.Information_DrillConductedQuarterlyReport + { + DrillConductedQuarterlyReportId = x.DrillConductedQuarterlyReportId, + UnitId = x.UnitId, + ReportDate = x.ReportDate, + Quarter = x.Quarter, + YearId = x.YearId, + CompileMan = x.CompileMan, + }; + + var upReportItem = from x in db.Information_DrillConductedQuarterlyReportItem + where x.DrillConductedQuarterlyReportId == drillConductedQuarterlyReportId + select new CNCECHSSEService.Information_DrillConductedQuarterlyReportItem + { + DrillConductedQuarterlyReportItemId = x.DrillConductedQuarterlyReportItemId, + DrillConductedQuarterlyReportId = x.DrillConductedQuarterlyReportId, + IndustryType = x.IndustryType, + TotalConductCount = x.TotalConductCount, + TotalPeopleCount = x.TotalPeopleCount, + TotalInvestment = x.TotalInvestment, + HQConductCount = x.HQConductCount, + HQPeopleCount = x.HQPeopleCount, + HQInvestment = x.HQInvestment, + BasicConductCount = x.BasicConductCount, + BasicPeopleCount = x.BasicPeopleCount, + BasicInvestment = x.BasicInvestment, + ComprehensivePractice = x.ComprehensivePractice, + CPScene = x.CPScene, + CPDesktop = x.CPDesktop, + SpecialDrill = x.SpecialDrill, + SDScene = x.SDScene, + SDDesktop = x.SDDesktop, + SortIndex = x.SortIndex, + }; + + var getR = hsseC.DataInsertInformation_DrillConductedQuarterlyReportTable(upReport.ToList(), upReportItem.ToList()); + foreach (var item in getR) + { + var report = db.Information_DrillConductedQuarterlyReport.FirstOrDefault(e => e.DrillConductedQuarterlyReportId == item); + if (report != null) + { + report.UpState = BLL.Const.UpState_3; + db.SubmitChanges(); + ////更新 当前人要处理的意见 + ProjectDataFlowSetService.CloseFlowOperate(Const.MillionsMonthlyReportMenuId, item, string.Empty); + ////更新催报信息 + UrgeReportService.SetComplete(report.UnitId, Const.ReportType_4, report.YearId.ToString(), report.Quarter.ToString()); + } + } + code = "1"; + LogService.AddSys_Log(CurrUser, "【应急演练开展情况季报表上报】上传到服务器" + getR.Count.ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("【应急演练开展情况季报表上报】上传到服务器", ex); + LogService.AddSys_Log(CurrUser, "【应急演练开展情况季报表上报】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + + return code; + } + } + #endregion + + #region 应急演练工作计划半年报表 + /// + /// 应急演练工作计划半年报表 + /// + public static string UpDrillPlanHalfYearReport(string drillPlanHalfYearReportId, Model.Sys_User CurrUser) + { + string code = "0"; + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upReport = from x in db.Information_DrillPlanHalfYearReport + where x.DrillPlanHalfYearReportId == drillPlanHalfYearReportId + select new CNCECHSSEService.Information_DrillPlanHalfYearReport + { + DrillPlanHalfYearReportId = x.DrillPlanHalfYearReportId, + UnitId = x.UnitId, + CompileMan = x.CompileMan, + CompileDate = x.CompileDate, + YearId = x.YearId, + HalfYearId = x.HalfYearId, + Telephone = x.Telephone, + }; + + var upReportItem = from x in db.Information_DrillPlanHalfYearReportItem + where x.DrillPlanHalfYearReportId == drillPlanHalfYearReportId + select new CNCECHSSEService.Information_DrillPlanHalfYearReportItem + { + DrillPlanHalfYearReportItemId = x.DrillPlanHalfYearReportItemId, + DrillPlanHalfYearReportId = x.DrillPlanHalfYearReportId, + DrillPlanName = x.DrillPlanName, + OrganizationUnit = x.OrganizationUnit, + DrillPlanDate = x.DrillPlanDate, + AccidentScene = x.AccidentScene, + ExerciseWay = x.ExerciseWay, + SortIndex = x.SortIndex, + }; + + var getR = hsseC.DataInsertInformation_DrillPlanHalfYearReportTable(upReport.ToList(), upReportItem.ToList()); + foreach (var item in getR) + { + var report = db.Information_DrillPlanHalfYearReport.FirstOrDefault(e => e.DrillPlanHalfYearReportId == item); + if (report != null) + { + report.UpState = BLL.Const.UpState_3; + db.SubmitChanges(); + ////更新 当前人要处理的意见 + ProjectDataFlowSetService.CloseFlowOperate(Const.DrillPlanHalfYearReportMenuId, item, string.Empty); + ////更新催报信息 + UrgeReportService.SetComplete(report.UnitId, Const.ReportType_5, report.YearId.ToString(), report.HalfYearId.ToString()); + } + } + code = "1"; + LogService.AddSys_Log(CurrUser, "【应急演练工作计划半年报表】上传到服务器" + getR.Count.ToString() + "条数据;", null, BLL.Const.DrillPlanHalfYearReportMenuId, BLL.Const.BtnUploadResources); + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("【应急演练工作计划半年报表】上传到服务器", ex); + LogService.AddSys_Log(CurrUser, "【应急演练工作计划半年报表】上传到服务器失败;", null, BLL.Const.DrillPlanHalfYearReportMenuId, BLL.Const.BtnUploadResources); + } + return code; + } + } + #endregion + + #region 企业监督检查报告上报 + /// + /// 企业监督检查报告上报 + /// + public static string UpCheckReport(string upCheckReportId, Model.Sys_User CurrUser) + { + string code = "0"; + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upCheckReport = from x in db.Supervise_UpCheckReport + where x.UpCheckReportId == upCheckReportId + select new CNCECHSSEService.Supervise_UpCheckReport + { + UpCheckReportId = x.UpCheckReportId, + UnitId = x.UnitId, + CheckStartTime = x.CheckStartTime, + CheckEndTime = x.CheckEndTime, + Values1 = x.Values1, + Values2 = x.Values2, + Values3 = x.Values3, + Values4 = x.Values4, + Values5 = x.Values5, + Values6 = x.Values6, + Values7 = x.Values7, + CompileDate = x.CompileDate, + AuditDate = x.AuditDate, + }; + + var upCheckReportItem = from x in db.Supervise_UpCheckReportItem + where x.UpCheckReportId == upCheckReportId + select new CNCECHSSEService.Supervise_UpCheckReportItem + { + UpCheckReportItemId = x.UpCheckReportItemId, + UpCheckReportId = x.UpCheckReportId, + SortIndex = x.SortIndex, + Name = x.Name, + Sex = x.Sex, + UnitName = x.UnitName, + PostName = x.PostName, + WorkTitle = x.WorkTitle, + CheckPostName = x.CheckPostName, + CheckDate = x.CheckDate, + }; + var upCheckReportItem2 = from x in db.Supervise_UpCheckReportItem2 + where x.UpCheckReportId == upCheckReportId + select new CNCECHSSEService.Supervise_UpCheckReportItem2 + { + UpCheckReportItem2Id = x.UpCheckReportItem2Id, + UpCheckReportId = x.UpCheckReportId, + SortIndex = x.SortIndex, + SubjectObject = x.SubjectObject, + SubjectObjectInfo = x.SubjectObjectInfo, + UnitMan = x.UnitMan, + UnitManTel = x.UnitManTel, + UnitHSSEMan = x.UnitHSSEMan, + UnitHSSEManTel = x.UnitHSSEManTel, + CheckDate = x.CheckDate, + RectifyCount = x.RectifyCount, + CompRectifyCount = x.CompRectifyCount, + TotalGetScore = x.TotalGetScore, + ResultLevel = x.ResultLevel, + }; + + var getR = hsseC.DataInsertSupervise_UpCheckReportTable(upCheckReport.ToList(), upCheckReportItem.ToList(), upCheckReportItem2.ToList()); + foreach (var item in getR) + { + var report = db.Supervise_UpCheckReport.FirstOrDefault(e => e.UpCheckReportId == item); + if (report != null) + { + report.UpState = BLL.Const.UpState_3; + report.UpDateTime = System.DateTime.Now; + db.SubmitChanges(); + ////更新 当前人要处理的意见 + ProjectDataFlowSetService.CloseFlowOperate(Const.DrillPlanHalfYearReportMenuId, item, string.Empty); + } + } + code = "1"; + LogService.AddSys_Log(CurrUser, "【安全监督检查评价报告】上传到服务器" + getR.Count.ToString() + "条数据;", null, BLL.Const.UpCheckReportMenuId, BLL.Const.BtnUploadResources); + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("【安全监督检查评价报告】上传到服务器", ex); + LogService.AddSys_Log(CurrUser, "【安全监督检查评价报告】上传到服务器失败;", null, BLL.Const.UpCheckReportMenuId, BLL.Const.BtnUploadResources); + } + return code; + } + } + #endregion + + #region 安全监督检查整改上报 + /// + /// 企业监督检查报告上报 + /// + public static string UpCheck_CheckRectify(string checkRectifyId, Model.Sys_User CurrUser) + { + string code = "0"; + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upCheckReport = from x in Funs.DB.View_CheckRectifyListFromSUB + where x.RealEndDate.HasValue && x.CheckRectifyId == checkRectifyId + select new CNCECHSSEService.Check_CheckRectify + { + CheckRectifyId = x.CheckRectifyId, + CheckRectifyCode = x.CheckRectifyCode, + ProjectId = x.ProjectId, + UnitId = x.UnitId, + CheckDate = x.CheckDate, + IssueMan = x.IssueMan, + IssueDate = x.IssueDate, + HandleState = x.HandleState, + CheckRectifyItemId = x.CheckRectifyItemId, + ConfirmMan = x.ConfirmMan, + ConfirmDate = x.ConfirmDate, + OrderEndDate = x.OrderEndDate, + OrderEndPerson = x.OrderEndPerson, + RealEndDate = x.RealEndDate, + Verification = x.Verification, + AttachFileId = x.AttachFileId2, + ToKeyId = x.ToKeyId2, + AttachSource = x.AttachSource2, + AttachUrl = x.AttachUrl2, + ////附件转为字节传送 + FileContext = FileStructService.GetMoreFileStructByAttachUrl(x.AttachUrl2), + }; + + var getR = hsseC.DataInsertCheck_CheckRectifyTable(upCheckReport.ToList()); + foreach (var item in getR) + { + var newCheckRectify = db.Check_CheckRectify.FirstOrDefault(e => e.CheckRectifyId == item); + if (newCheckRectify != null) + { + newCheckRectify.HandleState = BLL.Const.State_3; //已完成 + db.SubmitChanges(); + } + } + code = "1"; + LogService.AddSys_Log(CurrUser, "【集团检查整改】上传到服务器" + getR.Count.ToString() + "条数据;", null, BLL.Const.UpCheckReportMenuId, BLL.Const.BtnUploadResources); + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("【集团检查整改】上传到服务器", ex); + LogService.AddSys_Log(CurrUser, "【集团检查整改】上传到服务器失败;", null, BLL.Const.UpCheckReportMenuId, BLL.Const.BtnUploadResources); + } + return code; + } + } + #endregion + + #region 企业安全文件上报 + /// + /// 企业安全文件上报 + /// + public static string UpSupervise_SubUnitReportItem(string subUnitReportId, Model.Sys_User CurrUser) + { + string code = "0"; + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upCheckReport = from x in db.View_Supervise_SubUnitReportItem + where x.SubUnitReportId == subUnitReportId && (x.UpState == BLL.Const.UpState_2 || x.UpState == BLL.Const.UpState_4 || x.UpState == null) + select new CNCECHSSEService.Supervise_SubUnitReportItem + { + SubUnitReportItemId = x.SubUnitReportItemId, + ReportTitle = x.ReportTitle, + ReportContent = x.ReportContent, + // AttachUrl = x.AttachUrl, + ReportDate = x.ReportDate, + State = x.State, + ////附件转为字节传送 + //FileContext = FileStructService.GetFileStructByAttachUrl(x.AttachUrl) + AttachFileId = x.AttachFileId, + ToKeyId = x.ToKeyId, + AttachSource = x.AttachSource, + AttachUrl = x.AttachUrl, + ////附件转为字节传送 + FileContext = FileStructService.GetMoreFileStructByAttachUrl(x.AttachUrl), + }; + if (upCheckReport.Count() > 0) + { + var getR = hsseC.DataInsertSupervise_SubUnitReportItemItemTable(upCheckReport.ToList()); + foreach (var item in getR) + { + var subUnitReportItem = db.Supervise_SubUnitReportItem.FirstOrDefault(e => e.SubUnitReportItemId == item); + if (subUnitReportItem != null) + { + subUnitReportItem.UpState = BLL.Const.UpState_3; + subUnitReportItem.State = BLL.Const.UpState_3; + db.SubmitChanges(); + } + } + } + code = "1"; + LogService.AddSys_Log(CurrUser, "【企业安全文件上报】上传到服务器" + upCheckReport.Count().ToString() + "条数据;", null, BLL.Const.UpCheckReportMenuId, BLL.Const.BtnUploadResources); + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("【企业安全文件上报】上传到服务器", ex); + LogService.AddSys_Log(CurrUser, "【企业安全文件上报】上传到服务器失败;", null, BLL.Const.UpCheckReportMenuId, BLL.Const.BtnUploadResources); + } + return code; + } + } + #endregion + #endregion + + #region 从集团获取数据 + #region 催报信息从集团公司提取到企业 + /// + /// 催报信息从集团公司提取到企业 + /// + /// + public static Model.ResponeData getInformation_UrgeReport() + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + var responeData = new Model.ResponeData(); + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var getData = hsseC.GetInformation_UrgeReportToSUB(Const.UnitId_CWCEC); + if (getData.Count() > 0) + { + foreach (var item in getData) + { + var urg = db.Information_UrgeReport.FirstOrDefault(x => x.UrgeReportId == item.UrgeReportId); + if (urg == null) + { + Model.Information_UrgeReport newUrgeReport = new Model.Information_UrgeReport + { + UrgeReportId = item.UrgeReportId, + UnitId = item.UnitId, + ReprotType = item.ReprotType, + YearId = item.YearId, + MonthId = item.MonthId, + QuarterId = item.QuarterId, + HalfYearId = item.HalfYearId, + UrgeDate = item.UrgeDate, + IsComplete = null, + IsCancel = item.IsCancel + }; + db.Information_UrgeReport.InsertOnSubmit(newUrgeReport); + db.SubmitChanges(); + } + else + { + urg.IsCancel = item.IsCancel; + db.SubmitChanges(); + } + } + } + responeData.message = "获取成功:记录" + getData.Count().ToString() + "条"; + } + catch (Exception ex) + { + responeData.code = 0; + responeData.message = "获取失败:" + ex.Message; + ErrLogInfo.WriteLog("催报信息从集团公司提取到企业!", ex); + } + return responeData; + } + } + #endregion + + #region 安全监督检查整改信息从集团公司提取 + /// + /// 安全监督检查整改信息从集团公司提取 + /// + /// + public static Model.ResponeData getCheck_CheckRectify() + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + var responeData = new Model.ResponeData(); + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var getData = hsseC.GetCheck_CheckRectifyListToSUB(Const.UnitId_CWCEC); + if (getData.Count() > 0) + { + List ids = new List(); + foreach (var item in getData) + { + if (!ids.Contains(item.CheckRectifyId)) + { + var newRectify = db.Check_CheckRectify.FirstOrDefault(e => e.CheckRectifyId == item.CheckRectifyId); + if (newRectify == null) + { + ids.Add(item.CheckRectifyId); + Model.Check_CheckRectify newCheckRectify = new Model.Check_CheckRectify + { + CheckRectifyId = item.CheckRectifyId, + CheckRectifyCode = item.CheckRectifyCode, + ProjectId = item.ProjectId, + UnitId = item.UnitId, + CheckDate = item.CheckDate, + IssueMan = item.IssueMan, + IssueDate = item.IssueDate, + HandleState = item.HandleState + }; + db.Check_CheckRectify.InsertOnSubmit(newCheckRectify); + db.SubmitChanges(); + + //获取对应主表主键的明细集合 + var table5Items = getData.Where(x => x.CheckRectifyId == item.CheckRectifyId); + foreach (var newItem in table5Items) + { + var oldItem5 = db.Check_CheckInfo_Table5Item.FirstOrDefault(x => x.ID == newItem.Table5ItemId); + if (oldItem5 == null) + { + Model.Check_CheckInfo_Table5Item newCheckRectifyItem = new Model.Check_CheckInfo_Table5Item + { + ID = newItem.Table5ItemId, + SortIndex = newItem.SortIndex, + WorkType = newItem.WorkType, + DangerPoint = newItem.DangerPoint, + RiskExists = newItem.RiskExists, + IsProject = newItem.IsProject, + CheckMan = newItem.CheckMan, + SubjectUnitMan = newItem.SubjectUnitMan + }; + db.Check_CheckInfo_Table5Item.InsertOnSubmit(newCheckRectifyItem); + db.SubmitChanges(); + + ////上传附件 + if (!string.IsNullOrEmpty(newItem.AttachFileId)) + { + BLL.FileInsertService.InsertAttachFile(newItem.AttachFileId, newItem.Table5ItemId, newItem.AttachSource, newItem.AttachUrl, newItem.FileContext); + } + } + + var oldItem = db.Check_CheckRectifyItem.FirstOrDefault(e => e.CheckRectifyItemId == newItem.CheckRectifyItemId); + if (oldItem == null) + { + Model.Check_CheckRectifyItem newCheckRectifyItem = new Model.Check_CheckRectifyItem + { + CheckRectifyItemId = newItem.CheckRectifyItemId, + CheckRectifyId = newItem.CheckRectifyId, + Table5ItemId = newItem.Table5ItemId, + ConfirmMan = newItem.ConfirmMan, + ConfirmDate = newItem.ConfirmDate, + OrderEndDate = newItem.OrderEndDate, + OrderEndPerson = newItem.OrderEndPerson, + RealEndDate = newItem.RealEndDate + }; + + db.Check_CheckRectifyItem.InsertOnSubmit(newCheckRectifyItem); + db.SubmitChanges(); + } + } + } + } + } + } + responeData.message = "获取成功:整改明细记录" + getData.Count().ToString() + "条"; + } + catch (Exception ex) + { + responeData.code = 0; + responeData.message = "获取失败:" + ex.Message; + ErrLogInfo.WriteLog("安全监督检查整改信息从集团公司提取!", ex); + } + return responeData; + } + } + #endregion + + #region 安全监督检查报告信息从集团公司提取 + /// + /// 安全监督检查报告信息从集团公司提取 + /// + /// + public static Model.ResponeData getCheck_CheckInfo_Table8Item() + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + var responeData = new Model.ResponeData(); + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var getData = hsseC.GetCheck_CheckInfo_Table8ItemListToSUB(Const.UnitId_CWCEC); + if (getData.Count() > 0) + { + List ids = new List(); + foreach (var item in getData) + { + if (!ids.Contains(item.CheckInfoId)) + { + var updateCheckInfo = db.Check_CheckInfo.FirstOrDefault(x => x.CheckInfoId == item.CheckInfoId); + if (updateCheckInfo == null) + { + ids.Add(item.CheckInfoId); + Model.Check_CheckInfo newCheckInfo = new Model.Check_CheckInfo + { + CheckInfoId = item.CheckInfoId, + CheckTypeName = item.CheckTypeName, + SubjectUnitId = item.SubjectUnitId, + SubjectUnitAdd = item.SubjectUnitAdd, + SubjectUnitMan = item.SubjectUnitMan, + SubjectUnitTel = item.SubjectUnitTel, + CheckStartTime = item.CheckStartTime, + CheckEndTime = item.CheckEndTime, + SubjectObject = item.SubjectObject + }; + db.Check_CheckInfo.InsertOnSubmit(newCheckInfo); + db.SubmitChanges(); + } + else + { + updateCheckInfo.CheckInfoId = item.CheckInfoId; + updateCheckInfo.CheckTypeName = item.CheckTypeName; + updateCheckInfo.SubjectUnitId = item.SubjectUnitId; + updateCheckInfo.SubjectUnitAdd = item.SubjectUnitAdd; + updateCheckInfo.SubjectUnitMan = item.SubjectUnitMan; + updateCheckInfo.SubjectUnitTel = item.SubjectUnitTel; + updateCheckInfo.CheckStartTime = item.CheckStartTime; + updateCheckInfo.CheckEndTime = item.CheckEndTime; + updateCheckInfo.SubjectObject = item.SubjectObject; + db.SubmitChanges(); + } + } + + var updateTable8 = db.Check_CheckInfo_Table8.FirstOrDefault(x => x.CheckItemId == item.CheckItemId); + if (updateTable8 == null) + { + Model.Check_CheckInfo_Table8 newTable8 = new Model.Check_CheckInfo_Table8 + { + CheckItemId = item.CheckItemId, + CheckInfoId = item.CheckInfoId, + Values1 = item.Values1, + Values2 = item.Values2, + Values3 = item.Values3, + Values4 = item.Values4, + Values5 = item.Values5, + Values6 = item.Values6, + Values7 = item.Values7, + Values8 = item.Values8 + }; + db.Check_CheckInfo_Table8.InsertOnSubmit(newTable8); + db.SubmitChanges(); + } + else + { + updateTable8.Values1 = item.Values1; + updateTable8.Values2 = item.Values2; + updateTable8.Values3 = item.Values3; + updateTable8.Values4 = item.Values4; + updateTable8.Values5 = item.Values5; + updateTable8.Values6 = item.Values6; + updateTable8.Values7 = item.Values7; + updateTable8.Values8 = item.Values8; + db.SubmitChanges(); + } + + var updateTable8Item = db.Check_CheckInfo_Table8Item.FirstOrDefault(x => x.ID == item.ID); + if (updateTable8Item == null) + { + Model.Check_CheckInfo_Table8Item newTable8Item = new Model.Check_CheckInfo_Table8Item + { + ID = item.ID, + CheckInfoId = item.CheckInfoId, + Name = item.Name, + Sex = item.Sex, + UnitName = item.UnitName, + PostName = item.PostName, + WorkTitle = item.WorkTitle, + CheckPostName = item.CheckPostName, + CheckDate = item.CheckDate, + SortIndex = item.SortIndex + }; + db.Check_CheckInfo_Table8Item.InsertOnSubmit(newTable8Item); + db.SubmitChanges(); + } + else + { + updateTable8Item.ID = item.ID; + updateTable8Item.CheckInfoId = item.CheckInfoId; + updateTable8Item.Name = item.Name; + updateTable8Item.Sex = item.Sex; + updateTable8Item.UnitName = item.UnitName; + updateTable8Item.PostName = item.PostName; + updateTable8Item.WorkTitle = item.WorkTitle; + updateTable8Item.CheckPostName = item.CheckPostName; + updateTable8Item.CheckDate = item.CheckDate; + updateTable8Item.SortIndex = item.SortIndex; + db.SubmitChanges(); + } + } + responeData.message = "获取成功:记录" + getData.Count().ToString() + "条"; + } + } + catch (Exception ex) + { + responeData.code = 0; + responeData.message = "获取失败:" + ex.Message; + ErrLogInfo.WriteLog("安全监督检查报告信息从集团公司提取!", ex); + } + return responeData; + } + } + #endregion + + #region 企业安全文件从集团获取 + /// + /// 企业安全文件上报 + /// + /// + public static Model.ResponeData getSupervise_SubUnitReport() + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + var responeData = new Model.ResponeData(); + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var getData = hsseC.GetSupervise_SubUnitReportListToSUB(); + if (getData.Count() > 0) + { + foreach (var item in getData) + { + var newSubUnitReport = db.Supervise_SubUnitReport.FirstOrDefault(e => e.SubUnitReportId == item.SubUnitReportId); + if (newSubUnitReport == null) + { + Model.Supervise_SubUnitReport newSubUnitReport1 = new Model.Supervise_SubUnitReport + { + SubUnitReportId = item.SubUnitReportId, + SubUnitReportCode = item.SubUnitReportCode, + SubUnitReportName = item.SubUnitReportName, + SupSubUnitReportId = item.SupSubUnitReportId, + IsEndLever = item.IsEndLever + }; + + db.Supervise_SubUnitReport.InsertOnSubmit(newSubUnitReport1); + db.SubmitChanges(); + } + else + { + newSubUnitReport.SubUnitReportCode = item.SubUnitReportCode; + newSubUnitReport.SubUnitReportName = item.SubUnitReportName; + newSubUnitReport.SupSubUnitReportId = item.SupSubUnitReportId; + newSubUnitReport.IsEndLever = item.IsEndLever; + db.SubmitChanges(); + } + } + } + + var getDataItem = hsseC.GetSupervise_SubUnitReportItemListToSUB(Const.UnitId_CWCEC); + foreach (var item in getDataItem) + { + var newItem = db.Supervise_SubUnitReportItem.FirstOrDefault(e => e.SubUnitReportItemId == item.SubUnitReportItemId); + if (newItem == null) + { + var newSubUnitReport = db.Supervise_SubUnitReport.FirstOrDefault(e => e.SubUnitReportId == item.SubUnitReportId); + if (newSubUnitReport != null) + { + Model.Supervise_SubUnitReportItem newItem1 = new Model.Supervise_SubUnitReportItem + { + SubUnitReportItemId = item.SubUnitReportItemId, + SubUnitReportId = item.SubUnitReportId, + UnitId = item.UnitId, + PlanReortDate = item.PlanReortDate, + State = item.State + }; + db.Supervise_SubUnitReportItem.InsertOnSubmit(newItem1); + db.SubmitChanges(); + } + } + else + { + newItem.SubUnitReportId = item.SubUnitReportId; + newItem.UnitId = item.UnitId; + newItem.PlanReortDate = item.PlanReortDate; + newItem.State = item.State; + db.SubmitChanges(); + } + } + responeData.message = "获取成功:类型记录" + getData.Count().ToString() + "条;明细记录" + getDataItem.Count().ToString() + "条"; + } + catch (Exception ex) + { + responeData.code = 0; + responeData.message = "获取失败:" + ex.Message; + ErrLogInfo.WriteLog("企业安全文件上报!", ex); + } + return responeData; + } + } + #endregion + #endregion } } diff --git a/SGGL/BLL/ZHGL/Information/UrgeReportService.cs b/SGGL/BLL/ZHGL/Information/UrgeReportService.cs new file mode 100644 index 00000000..274ceecb --- /dev/null +++ b/SGGL/BLL/ZHGL/Information/UrgeReportService.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// + /// + public static class UrgeReportService + { + /// + /// 更新催报完成 + /// + /// + /// + /// + /// + public static void SetComplete(string unitId, string reportType, string year, string value) + { + Model.Information_UrgeReport urgeReport = new Model.Information_UrgeReport(); + if (reportType == Const.ReportType_1 || reportType == Const.ReportType_2) + { + urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year && x.MonthId == value); + } + else if (reportType == Const.ReportType_3 || reportType == Const.ReportType_4) + { + urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year && x.QuarterId == value); + } + else if (reportType == Const.ReportType_5) + { + urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year && x.HalfYearId == value); + } + if (urgeReport != null) + { + urgeReport.IsComplete = true; + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/FineUIPro.Web/FileUpload/SafetyQuarterlyReport/202111300610056034~密码.txt b/SGGL/FineUIPro.Web/FileUpload/SafetyQuarterlyReport/202111300610056034~密码.txt new file mode 100644 index 00000000..a3855f54 --- /dev/null +++ b/SGGL/FineUIPro.Web/FileUpload/SafetyQuarterlyReport/202111300610056034~密码.txt @@ -0,0 +1 @@ +B59C67BF196A4758191E42F76670CEBA \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/FileUpload/SubUnitReport/2021-12/637739725689263027_微信图片_20210826151152.png b/SGGL/FineUIPro.Web/FileUpload/SubUnitReport/2021-12/637739725689263027_微信图片_20210826151152.png new file mode 100644 index 00000000..4cf58b2d Binary files /dev/null and b/SGGL/FineUIPro.Web/FileUpload/SubUnitReport/2021-12/637739725689263027_微信图片_20210826151152.png differ diff --git a/SGGL/FineUIPro.Web/FileUpload/SuperviseCheckReport/202112011048548342~无标题.png b/SGGL/FineUIPro.Web/FileUpload/SuperviseCheckReport/202112011048548342~无标题.png new file mode 100644 index 00000000..fad4af81 Binary files /dev/null and b/SGGL/FineUIPro.Web/FileUpload/SuperviseCheckReport/202112011048548342~无标题.png differ diff --git a/SGGL/FineUIPro.Web/Global.asax.cs b/SGGL/FineUIPro.Web/Global.asax.cs index 3bc99df7..5d3969c3 100644 --- a/SGGL/FineUIPro.Web/Global.asax.cs +++ b/SGGL/FineUIPro.Web/Global.asax.cs @@ -20,7 +20,6 @@ try { Funs.RootPath = Server.MapPath("~/"); - // 日志文件所在目录 ErrLogInfo.DefaultErrLogFullPath = Server.MapPath("~/ErrLog.txt"); Funs.ConnString = ConfigurationManager.AppSettings["ConnectionString"]; @@ -35,16 +34,6 @@ //AppDomain.Unload(AppDomain.CurrentDomain); } - //////得到集团服务器路径 - try - { - string address = ConfigurationManager.AppSettings["endpoint"]; - Funs.SystemVersion = ConfigurationManager.AppSettings["SystemVersion"]; - } - catch (Exception ex) - { - ErrLogInfo.WriteLog("得到集团服务器地址失败!", ex); - } ////实名制同步定时器 try { @@ -69,6 +58,15 @@ { ErrLogInfo.WriteLog("通用定时器!", ex); } + ////从集团获取数据定时器 + try + { + BLL.CNCECHSSEMonitorService.StartMonitor(); + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("从集团获取数据定时器!", ex); + } } protected void Session_Start(object sender, EventArgs e) diff --git a/SGGL/FineUIPro.Web/Login.aspx.cs b/SGGL/FineUIPro.Web/Login.aspx.cs index eb4a37ea..a4ede7cc 100644 --- a/SGGL/FineUIPro.Web/Login.aspx.cs +++ b/SGGL/FineUIPro.Web/Login.aspx.cs @@ -63,8 +63,8 @@ protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) - { - //BLL.MCSWebService.getPoDetails(3919); + { + BLL.CNCECHSSEWebService.getSupervise_SubUnitReport(); string userdata = Request.Params["basedata"]; if (!string.IsNullOrEmpty(userdata)) { diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx b/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx index 80ebd202..5ffe97d9 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx @@ -511,10 +511,9 @@ - diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx.cs index 474ed2ce..92530ce9 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx.cs @@ -428,7 +428,25 @@ namespace FineUIPro.Web.ZHGL.Information AddItems(accidentCauseReport.AccidentCauseReportId); if (type == "updata") //保存并上报 { - Update(accidentCauseReport.AccidentCauseReportId); + if (accidentCauseReport.UpState == BLL.Const.UpState_2) + { + string code = CNCECHSSEWebService.UpAccidentCauseReport(accidentCauseReport.AccidentCauseReportId, this.CurrUser); + if (code == "1") + { + ShowNotify("同步成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + return; + } + else + { + Alert.ShowInParent("同步异常,请退出后重试!", MessageBoxIcon.Error); + } + } + else + { + ShowNotify("当前单据状态不能同步!", MessageBoxIcon.Warning); + return; + } } if (type == "submit") { @@ -777,137 +795,7 @@ namespace FineUIPro.Web.ZHGL.Information } } #endregion - - #region 数据同步 - private void Update(string accidentCauseReportId) - { - // /////创建客户端服务 - // var poxy = Web.ServiceProxy.CreateServiceClient(); - // poxy.DataInsertInformation_AccidentCauseReportTableCompleted += new EventHandler(poxy_DataInsertInformation_AccidentCauseReportTableCompleted); - // var report = from x in Funs.DB.Information_AccidentCauseReport - // where x.AccidentCauseReportId == accidentCauseReportId - // && x.UpState == BLL.Const.UpState_2 - // select new HSSEService.Information_AccidentCauseReport - // { - // AccidentCauseReportId = x.AccidentCauseReportId, - // UnitId = x.UnitId, - // AccidentCauseReportCode = x.AccidentCauseReportCode, - // Year = x.Year, - // Month = x.Month, - // DeathAccident = x.DeathAccident, - // DeathToll = x.DeathToll, - // InjuredAccident = x.InjuredAccident, - // InjuredToll = x.InjuredToll, - // MinorWoundAccident = x.MinorWoundAccident, - // MinorWoundToll = x.MinorWoundToll, - // AverageTotalHours = x.AverageTotalHours, - // AverageManHours = x.AverageManHours, - // TotalLossMan = x.TotalLossMan, - // LastMonthLossHoursTotal = x.LastMonthLossHoursTotal, - // KnockOffTotal = x.KnockOffTotal, - // DirectLoss = x.DirectLoss, - // IndirectLosses = x.IndirectLosses, - // TotalLoss = x.TotalLoss, - // TotalLossTime = x.TotalLossTime, - // FillCompanyPersonCharge = x.FillCompanyPersonCharge, - // TabPeople = x.TabPeople, - // AuditPerson = x.AuditPerson, - // FillingDate = x.FillingDate, - // }; - - // var reportItem = from x in Funs.DB.Information_AccidentCauseReportItem - // where x.AccidentCauseReportId == accidentCauseReportId - // select new HSSEService.Information_AccidentCauseReportItem - // { - // AccidentCauseReportItemId = x.AccidentCauseReportItemId, - // AccidentCauseReportId = x.AccidentCauseReportId, - // AccidentType = x.AccidentType, - // TotalDeath = x.TotalDeath, - // TotalInjuries = x.TotalInjuries, - // TotalMinorInjuries = x.TotalMinorInjuries, - // Death1 = x.Death1, - // Injuries1 = x.Injuries1, - // MinorInjuries1 = x.MinorInjuries1, - // Death2 = x.Death2, - // Injuries2 = x.Injuries2, - // MinorInjuries2 = x.MinorInjuries2, - // Death3 = x.Death3, - // Injuries3 = x.Injuries3, - // MinorInjuries3 = x.MinorInjuries3, - // Death4 = x.Death4, - // Injuries4 = x.Injuries4, - // MinorInjuries4 = x.MinorInjuries4, - // Death5 = x.Death5, - // Injuries5 = x.Injuries5, - // MinorInjuries5 = x.MinorInjuries5, - // Death6 = x.Death6, - // Injuries6 = x.Injuries6, - // MinorInjuries6 = x.MinorInjuries6, - // Death7 = x.Death7, - // Injuries7 = x.Injuries7, - // MinorInjuries7 = x.MinorInjuries7, - // Death8 = x.Death8, - // Injuries8 = x.Injuries8, - // MinorInjuries8 = x.MinorInjuries8, - // Death9 = x.Death9, - // Injuries9 = x.Injuries9, - // MinorInjuries9 = x.MinorInjuries9, - // Death10 = x.Death10, - // Injuries10 = x.Injuries10, - // MinorInjuries10 = x.MinorInjuries10, - // Death11 = x.Death11, - // Injuries11 = x.Injuries11, - // MinorInjuries11 = x.MinorInjuries11, - // }; - // poxy.DataInsertInformation_AccidentCauseReportTableAsync(report.ToList(), reportItem.ToList()); - //} - - #region 职工伤亡事故原因分析报表 - /// - /// 职工伤亡事故原因分析报表 - /// - /// - /// - //private void poxy_DataInsertInformation_AccidentCauseReportTableCompleted(object sender, HSSEService.DataInsertInformation_AccidentCauseReportTableCompletedEventArgs e) - //{ - // if (e.Error == null) - // { - // var idList = e.Result; - // foreach (var item in idList) - // { - // var report = BLL.AccidentCauseReportService.GetAccidentCauseReportByAccidentCauseReportId(item); - // if (report != null) - // { - // report.UpState = BLL.Const.UpState_3; - // BLL.AccidentCauseReportService.UpdateAccidentCauseReport(report); - // ////更新 当前人要处理的意见 - // Model.ProjectData_FlowOperate updateUnFlowOperate = BLL.ProjectDataFlowSetService.GetFlowOperateOpinion(BLL.Const.AccidentCauseReportMenuId, item); - // if (updateUnFlowOperate != null) - // { - // updateUnFlowOperate.OperaterTime = System.DateTime.Now; - // updateUnFlowOperate.IsClosed = true; - // BLL.ProjectDataFlowSetService.UpdateFlowOperateOpinion(updateUnFlowOperate); - // } - // ////更新催报信息 - // var urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == report.UnitId && x.ReprotType == BLL.Const.ReportType_2 && x.YearId == report.Year.ToString() && x.MonthId == report.Month.ToString()); - // if (urgeReport != null) - // { - // urgeReport.IsComplete = true; - // Funs.DB.SubmitChanges(); - // } - // } - // } - // BLL.LogService.AddSys_Log(this.CurrUser, "【职工伤亡事故原因分析报表】上传到服务器" + idList.Count.ToString() + "条数据;", null, BLL.Const.AccidentCauseReportMenuId, BLL.Const.BtnUploadResources); - // } - // else - // { - // BLL.LogService.AddSys_Log(this.CurrUser, "【职工伤亡事故原因分析报表】上传到服务器失败;", null, BLL.Const.AccidentCauseReportMenuId, BLL.Const.BtnUploadResources); - // } - } - #endregion - - #endregion - + #region 复制上月数据 /// /// 复制上月报表数据 diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx b/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx index 79995295..884c4eeb 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx @@ -219,9 +219,9 @@ - diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx.cs index 20b45486..c8834f2b 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx.cs @@ -241,7 +241,7 @@ namespace FineUIPro.Web.ZHGL.Information return; } - Model.Information_DrillConductedQuarterlyReport drillConductedQuarterlyReport = new Model.Information_DrillConductedQuarterlyReport(); + var drillConductedQuarterlyReport = new Model.Information_DrillConductedQuarterlyReport(); if (this.ddlUnitId.SelectedValue != BLL.Const._Null) { drillConductedQuarterlyReport.UnitId = this.ddlUnitId.SelectedValue; @@ -285,7 +285,25 @@ namespace FineUIPro.Web.ZHGL.Information } if (type == "updata") //保存并上报 { - Update(drillConductedQuarterlyReport.DrillConductedQuarterlyReportId); + if (drillConductedQuarterlyReport.UpState == BLL.Const.UpState_2) + { + string code = CNCECHSSEWebService.UpDrillConductedQuarterlyReport(drillConductedQuarterlyReport.DrillConductedQuarterlyReportId, this.CurrUser); + if (code == "1") + { + ShowNotify("同步成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + return; + } + else + { + Alert.ShowInParent("同步异常,请退出后重试!", MessageBoxIcon.Error); + } + } + else + { + ShowNotify("当前单据状态不能同步!", MessageBoxIcon.Warning); + return; + } } if (type == "submit") { @@ -387,98 +405,7 @@ namespace FineUIPro.Web.ZHGL.Information } } #endregion - - #region 同步数据 - private void Update(string drillConductedQuarterlyReportId) - { - /////创建客户端服务 - //var poxy = Web.ServiceProxy.CreateServiceClient(); - //poxy.DataInsertInformation_DrillConductedQuarterlyReportTableCompleted += new EventHandler(poxy_DataInsertInformation_DrillConductedQuarterlyReportTableCompleted); - //var report = from x in Funs.DB.Information_DrillConductedQuarterlyReport - // where x.DrillConductedQuarterlyReportId == drillConductedQuarterlyReportId && x.UpState == BLL.Const.UpState_2 - // select new HSSEService.Information_DrillConductedQuarterlyReport - // { - // DrillConductedQuarterlyReportId = x.DrillConductedQuarterlyReportId, - // UnitId = x.UnitId, - // ReportDate = x.ReportDate, - // Quarter = x.Quarter, - // YearId = x.YearId, - // CompileMan = x.CompileMan, - // }; - - //var reportItem = from x in Funs.DB.Information_DrillConductedQuarterlyReportItem - // where x.DrillConductedQuarterlyReportId == drillConductedQuarterlyReportId - // select new HSSEService.Information_DrillConductedQuarterlyReportItem - // { - // DrillConductedQuarterlyReportItemId = x.DrillConductedQuarterlyReportItemId, - // DrillConductedQuarterlyReportId = x.DrillConductedQuarterlyReportId, - // IndustryType = x.IndustryType, - // TotalConductCount = x.TotalConductCount, - // TotalPeopleCount = x.TotalPeopleCount, - // TotalInvestment = x.TotalInvestment, - // HQConductCount = x.HQConductCount, - // HQPeopleCount = x.HQPeopleCount, - // HQInvestment = x.HQInvestment, - // BasicConductCount = x.BasicConductCount, - // BasicPeopleCount = x.BasicPeopleCount, - // BasicInvestment = x.BasicInvestment, - // ComprehensivePractice = x.ComprehensivePractice, - // CPScene = x.CPScene, - // CPDesktop = x.CPDesktop, - // SpecialDrill = x.SpecialDrill, - // SDScene = x.SDScene, - // SDDesktop = x.SDDesktop, - // SortIndex = x.SortIndex, - // }; - //poxy.DataInsertInformation_DrillConductedQuarterlyReportTableAsync(report.ToList(), reportItem.ToList()); - } - - #region 应急演练开展情况季报表 - /// - /// 应急演练开展情况季报表 - /// - /// - /// - //private void poxy_DataInsertInformation_DrillConductedQuarterlyReportTableCompleted(object sender, HSSEService.DataInsertInformation_DrillConductedQuarterlyReportTableCompletedEventArgs e) - //{ - // if (e.Error == null) - // { - // var idList = e.Result; - // foreach (var item in idList) - // { - // var report = BLL.DrillConductedQuarterlyReportService.GetDrillConductedQuarterlyReportById(item); - // if (report != null) - // { - // report.UpState = BLL.Const.UpState_3; - // BLL.DrillConductedQuarterlyReportService.UpdateDrillConductedQuarterlyReport(report); - // ////更新 当前人要处理的意见 - // Model.ProjectData_FlowOperate updateUnFlowOperate = BLL.ProjectDataFlowSetService.GetFlowOperateOpinion(BLL.Const.DrillConductedQuarterlyReportMenuId, item); - // if (updateUnFlowOperate != null) - // { - // updateUnFlowOperate.OperaterTime = System.DateTime.Now; - // updateUnFlowOperate.IsClosed = true; - // BLL.ProjectDataFlowSetService.UpdateFlowOperateOpinion(updateUnFlowOperate); - // } - // ////更新催报信息 - // var urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == report.UnitId && x.ReprotType == BLL.Const.ReportType_4 && x.YearId == report.YearId.ToString() && x.QuarterId == report.Quarter.ToString()); - // if (urgeReport != null) - // { - // urgeReport.IsComplete = true; - // Funs.DB.SubmitChanges(); - // } - // } - // } - - // BLL.LogService.AddSys_Log(this.CurrUser, "【应急演练开展情况季报表】上传到服务器" + idList.Count.ToString() + "条数据;", null, BLL.Const.DrillConductedQuarterlyReportMenuId, BLL.Const.BtnUploadResources); - // } - // else - // { - // BLL.LogService.AddSys_Log(this.CurrUser, "【应急演练开展情况季报表】上传到服务器失败;", null, BLL.Const.DrillConductedQuarterlyReportMenuId, BLL.Const.BtnUploadResources); - // } - //} - #endregion - #endregion - + #region 关闭办理流程窗口 /// /// 关闭办理流程窗口 diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx b/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx index bb5c6c20..733b1835 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx @@ -123,7 +123,7 @@ diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx.cs index e1baf3c2..84537c31 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx.cs @@ -244,7 +244,25 @@ namespace FineUIPro.Web.ZHGL.Information } if (type == "updata") //保存并上报 { - Update(drillPlanHalfYearReport.DrillPlanHalfYearReportId); + if (drillPlanHalfYearReport.UpState == BLL.Const.UpState_2) + { + string code = CNCECHSSEWebService.UpDrillPlanHalfYearReport(drillPlanHalfYearReport.DrillPlanHalfYearReportId, this.CurrUser); + if (code == "1") + { + ShowNotify("同步成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + return; + } + else + { + Alert.ShowInParent("同步异常,请退出后重试!", MessageBoxIcon.Error); + } + } + else + { + ShowNotify("当前单据状态不能同步!", MessageBoxIcon.Warning); + return; + } } if (type == "submit") { @@ -324,89 +342,8 @@ namespace FineUIPro.Web.ZHGL.Information { Save("submit"); } - #endregion - - #region 同步数据 - private void Update(string drillPlanHalfYearReportId) - { - /////创建客户端服务 - //var poxy = Web.ServiceProxy.CreateServiceClient(); - //poxy.DataInsertInformation_DrillPlanHalfYearReportTableCompleted += new EventHandler(poxy_DataInsertInformation_DrillPlanHalfYearReportTableCompleted); - //var report = from x in Funs.DB.Information_DrillPlanHalfYearReport - // where x.DrillPlanHalfYearReportId == drillPlanHalfYearReportId && x.UpState == BLL.Const.UpState_2 - // select new HSSEService.Information_DrillPlanHalfYearReport - // { - // DrillPlanHalfYearReportId = x.DrillPlanHalfYearReportId, - // UnitId = x.UnitId, - // CompileMan = x.CompileMan, - // CompileDate = x.CompileDate, - // YearId = x.YearId, - // HalfYearId = x.HalfYearId, - // Telephone = x.Telephone, - // }; - - //var reportItem = from x in Funs.DB.Information_DrillPlanHalfYearReportItem - // where x.DrillPlanHalfYearReportId == drillPlanHalfYearReportId - // select new HSSEService.Information_DrillPlanHalfYearReportItem - // { - // DrillPlanHalfYearReportItemId = x.DrillPlanHalfYearReportItemId, - // DrillPlanHalfYearReportId = x.DrillPlanHalfYearReportId, - // DrillPlanName = x.DrillPlanName, - // OrganizationUnit = x.OrganizationUnit, - // DrillPlanDate = x.DrillPlanDate, - // AccidentScene = x.AccidentScene, - // ExerciseWay = x.ExerciseWay, - // SortIndex = x.SortIndex, - // }; - //poxy.DataInsertInformation_DrillPlanHalfYearReportTableAsync(report.ToList(), reportItem.ToList()); - } - - #region 应急演练工作计划半年报表 - /// - /// 应急演练工作计划半年报表 - /// - /// - /// - //private void poxy_DataInsertInformation_DrillPlanHalfYearReportTableCompleted(object sender, HSSEService.DataInsertInformation_DrillPlanHalfYearReportTableCompletedEventArgs e) - //{ - // if (e.Error == null) - // { - // var idList = e.Result; - // foreach (var item in idList) - // { - // var report = BLL.DrillPlanHalfYearReportService.GetDrillPlanHalfYearReportById(item); - // if (report != null) - // { - // report.UpState = BLL.Const.UpState_3; - // BLL.DrillPlanHalfYearReportService.UpdateDrillPlanHalfYearReport(report); - // ////更新 当前人要处理的意见 - // Model.ProjectData_FlowOperate updateUnFlowOperate = BLL.ProjectDataFlowSetService.GetFlowOperateOpinion(BLL.Const.DrillPlanHalfYearReportMenuId, item); - // if (updateUnFlowOperate != null) - // { - // updateUnFlowOperate.OperaterTime = System.DateTime.Now; - // updateUnFlowOperate.IsClosed = true; - // BLL.ProjectDataFlowSetService.UpdateFlowOperateOpinion(updateUnFlowOperate); - // } - // ////更新催报信息 - // var urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == report.UnitId && x.ReprotType == BLL.Const.ReportType_5 && x.YearId == report.YearId.ToString() && x.HalfYearId == report.HalfYearId.ToString()); - // if (urgeReport != null) - // { - // urgeReport.IsComplete = true; - // Funs.DB.SubmitChanges(); - // } - // } - // } - // BLL.LogService.AddSys_Log(this.CurrUser, "【应急演练工作计划半年报表】上传到服务器" + idList.Count.ToString() + "条数据;", null, BLL.Const.DrillPlanHalfYearReportMenuId, BLL.Const.BtnUploadResources); - // } - // else - // { - // BLL.LogService.AddSys_Log(this.CurrUser, "【应急演练工作计划半年报表】上传到服务器失败;", null, BLL.Const.DrillPlanHalfYearReportMenuId, BLL.Const.BtnUploadResources); - // } - //} - #endregion - #endregion - + #region Grid1行点击事件 protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) { diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx.cs index 4d69496b..5842c684 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx.cs @@ -177,7 +177,7 @@ namespace FineUIPro.Web.ZHGL.Information /// protected void Window4_Close(object sender, WindowCloseEventArgs e) { - + GetValue(); } #endregion @@ -225,27 +225,31 @@ namespace FineUIPro.Web.ZHGL.Information { this.btnPrint.Hidden = false; } - Model.Information_MillionsMonthlyReport report = BLL.MillionsMonthlyReportService.GetMillionsMonthlyReportByUnitIdAndYearAndMonth(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpMonth.SelectedValue)); - this.btnAudit1.Hidden = true; - this.btnAudit2.Hidden = true; - this.btnUpdata.Hidden = true; - if (report != null) + } + + var getReport = BLL.MillionsMonthlyReportService.GetMillionsMonthlyReportByUnitIdAndYearAndMonth(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpMonth.SelectedValue)); + this.btnAudit1.Hidden = true; + this.btnAudit2.Hidden = true; + this.btnUpdata.Hidden = true; + if (getReport != null) + { + this.btnNew.Hidden = true; + if (getReport.HandleMan == this.CurrUser.UserId) //当前人是下一步办理入 { - this.btnNew.Hidden = true; - if (report.HandleMan == this.CurrUser.UserId) //当前人是下一步办理入 + if (getReport.HandleState == BLL.Const.HandleState_2) { - if (report.HandleState == BLL.Const.HandleState_2) - { - this.btnAudit1.Hidden = false; - } - else if (report.HandleState == BLL.Const.HandleState_3) - { - this.btnAudit2.Hidden = false; - } - else if (report.HandleState == BLL.Const.HandleState_4) - { - this.btnUpdata.Hidden = false; - } + this.btnAudit1.Hidden = false; + this.btnEdit.Hidden = true; + } + else if (getReport.HandleState == BLL.Const.HandleState_3) + { + this.btnAudit2.Hidden = false; + this.btnEdit.Hidden = true; + } + else if (getReport.HandleState == BLL.Const.HandleState_4) + { + this.btnUpdata.Hidden = false; + this.btnEdit.Hidden = true; } } } diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSave.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSave.aspx.cs index 99577fda..a8fcae3f 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSave.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSave.aspx.cs @@ -59,26 +59,9 @@ namespace FineUIPro.Web.ZHGL.Information if (!String.IsNullOrEmpty(MillionsMonthlyReportId)) { items = BLL.MillionsMonthlyReportItemService.GetItemsNoSum(MillionsMonthlyReportId); - //int i = items.Count * 10; - //int count = items.Count; - //if (items.Count < 10) - //{ - // for (int j = 0; j < (10 - count); j++) - // { - // i += 10; - // Model.Information_MillionsMonthlyReportItem newItem = new Information_MillionsMonthlyReportItem - // { - // MillionsMonthlyReportItemId = SQLHelper.GetNewID(typeof(Model.Information_MillionsMonthlyReportItem)), - // Affiliation = string.Empty, - // Name = string.Empty, - // SortIndex = i - // }; - // items.Add(newItem); - // } - //} this.Grid1.DataSource = items; this.Grid1.DataBind(); - Model.Information_MillionsMonthlyReport report = BLL.MillionsMonthlyReportService.GetMillionsMonthlyReportByMillionsMonthlyReportId(MillionsMonthlyReportId); + var report = BLL.MillionsMonthlyReportService.GetMillionsMonthlyReportByMillionsMonthlyReportId(MillionsMonthlyReportId); if (report != null) { this.btnSave.Hidden = true; @@ -216,7 +199,7 @@ namespace FineUIPro.Web.ZHGL.Information if (String.IsNullOrEmpty(MillionsMonthlyReportId)) { - Model.Information_MillionsMonthlyReport old = BLL.MillionsMonthlyReportService.GetMillionsMonthlyReportByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpMonth.SelectedValue)); + Information_MillionsMonthlyReport old = MillionsMonthlyReportService.GetMillionsMonthlyReportByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpMonth.SelectedValue)); if (old == null) { report.MillionsMonthlyReportId = SQLHelper.GetNewID(typeof(Model.Information_MillionsMonthlyReport)); @@ -248,6 +231,7 @@ namespace FineUIPro.Web.ZHGL.Information } MillionsMonthlyReportId = report.MillionsMonthlyReportId; BLL.MillionsMonthlyReportItemService.DeleteMillionsMonthlyReportItemByMillionsMonthlyReportId(report.MillionsMonthlyReportId); + List mReportItemList = new List(); GetItems(report.MillionsMonthlyReportId); foreach (var item in items) { @@ -255,25 +239,36 @@ namespace FineUIPro.Web.ZHGL.Information { item.Affiliation = System.Web.HttpUtility.HtmlDecode(item.Affiliation); item.Name = System.Web.HttpUtility.HtmlDecode(item.Name); - BLL.MillionsMonthlyReportItemService.AddMillionsMonthlyReportItem(item); + MillionsMonthlyReportItemService.AddMillionsMonthlyReportItem(item); + mReportItemList.Add(item); } } - if (type == "updata") //保存并上报 + if (type == "updata") //数据同步 { - Update(report.MillionsMonthlyReportId); + if (report.UpState == BLL.Const.UpState_2) + { + string code = CNCECHSSEWebService.UpMillionsMonthlyReport(report.MillionsMonthlyReportId, this.CurrUser); + if (code == "1") + { + ShowNotify("同步成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + return; + } + else + { + Alert.ShowInParent("同步异常,请退出后重试!", MessageBoxIcon.Error); + } + } + else + { + ShowNotify("当前单据状态不能同步!", MessageBoxIcon.Warning); + return; + } } if (type == "submit") { PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ReportSubmit.aspx?Type=MillionsMonthlyReport&Id={0}", report.MillionsMonthlyReportId, "编辑 - "))); } - // 2. 关闭本窗体,然后刷新父窗体 - // PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); - // 2. 关闭本窗体,然后回发父窗体 - //if (type != "submit") - //{ - // PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); - //} - //PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(wedId) + ActiveWindow.GetHideReference()); } protected void btnSave_Click(object sender, EventArgs e) @@ -291,120 +286,7 @@ namespace FineUIPro.Web.ZHGL.Information Save("submit"); } #endregion - - #region 数据同步 - /// - /// 同步数据 - /// - /// - private void Update(string millionsMonthlyReportId) - { - /////创建客户端服务 - //var poxy = Web.ServiceProxy.CreateServiceClient(); - //poxy.DataInsertInformation_MillionsMonthlyReportTableCompleted += new EventHandler(poxy_DataInsertInformation_MillionsMonthlyReportTableCompleted); - //var report = from x in Funs.DB.Information_MillionsMonthlyReport - // where x.MillionsMonthlyReportId == millionsMonthlyReportId && x.UpState == BLL.Const.UpState_2 - // select new HSSEService.Information_MillionsMonthlyReport - // { - // MillionsMonthlyReportId = x.MillionsMonthlyReportId, - // UnitId = x.UnitId, - // Year = x.Year, - // Month = x.Month, - // FillingMan = x.FillingMan, - // FillingDate = x.FillingDate, - // DutyPerson = x.DutyPerson, - // RecordableIncidentRate = x.RecordableIncidentRate, - // LostTimeRate = x.LostTimeRate, - // LostTimeInjuryRate = x.LostTimeInjuryRate, - // DeathAccidentFrequency = x.DeathAccidentFrequency, - // AccidentMortality = x.AccidentMortality, - // }; - - //var reportItem = from x in Funs.DB.Information_MillionsMonthlyReportItem - // where x.MillionsMonthlyReportId == millionsMonthlyReportId - // select new HSSEService.Information_MillionsMonthlyReportItem - // { - // MillionsMonthlyReportItemId = x.MillionsMonthlyReportItemId, - // MillionsMonthlyReportId = x.MillionsMonthlyReportId, - // SortIndex = x.SortIndex, - // Affiliation = x.Affiliation, - // Name = x.Name, - // PostPersonNum = x.PostPersonNum, - // SnapPersonNum = x.SnapPersonNum, - // ContractorNum = x.ContractorNum, - // SumPersonNum = x.SumPersonNum, - // TotalWorkNum = x.TotalWorkNum, - // SeriousInjuriesNum = x.SeriousInjuriesNum, - // SeriousInjuriesPersonNum = x.SeriousInjuriesPersonNum, - // SeriousInjuriesLossHour = x.SeriousInjuriesLossHour, - // MinorAccidentNum = x.MinorAccidentNum, - // MinorAccidentPersonNum = x.MinorAccidentPersonNum, - // MinorAccidentLossHour = x.MinorAccidentLossHour, - // OtherAccidentNum = x.OtherAccidentNum, - // OtherAccidentPersonNum = x.OtherAccidentPersonNum, - // OtherAccidentLossHour = x.OtherAccidentLossHour, - // RestrictedWorkPersonNum = x.RestrictedWorkPersonNum, - // RestrictedWorkLossHour = x.RestrictedWorkLossHour, - // MedicalTreatmentPersonNum = x.MedicalTreatmentPersonNum, - // MedicalTreatmentLossHour = x.MedicalTreatmentLossHour, - // FireNum = x.FireNum, - // ExplosionNum = x.ExplosionNum, - // TrafficNum = x.TrafficNum, - // EquipmentNum = x.EquipmentNum, - // QualityNum = x.QualityNum, - // OtherNum = x.OtherNum, - // FirstAidDressingsNum = x.FirstAidDressingsNum, - // AttemptedEventNum = x.AttemptedEventNum, - // LossDayNum = x.LossDayNum, - // }; - //poxy.DataInsertInformation_MillionsMonthlyReportTableAsync(report.ToList(), reportItem.ToList()); - } - - #region 百万工时安全统计月报表 - /// - /// 百万工时安全统计月报表 - /// - /// - /// - //private void poxy_DataInsertInformation_MillionsMonthlyReportTableCompleted(object sender, HSSEService.DataInsertInformation_MillionsMonthlyReportTableCompletedEventArgs e) - //{ - // if (e.Error == null) - // { - // var idList = e.Result; - // foreach (var item in idList) - // { - // var report = BLL.MillionsMonthlyReportService.GetMillionsMonthlyReportByMillionsMonthlyReportId(item); - // if (report != null) - // { - // report.UpState = BLL.Const.UpState_3; - // BLL.MillionsMonthlyReportService.UpdateMillionsMonthlyReport(report); - // ////更新 当前人要处理的意见 - // Model.ProjectData_FlowOperate updateUnFlowOperate = BLL.ProjectDataFlowSetService.GetFlowOperateOpinion(BLL.Const.MillionsMonthlyReportMenuId, item); - // if (updateUnFlowOperate != null) - // { - // updateUnFlowOperate.OperaterTime = System.DateTime.Now; - // updateUnFlowOperate.IsClosed = true; - // BLL.ProjectDataFlowSetService.UpdateFlowOperateOpinion(updateUnFlowOperate); - // } - // ////更新催报信息 - // var urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == report.UnitId && x.ReprotType == BLL.Const.ReportType_1 && x.YearId == report.Year.ToString() && x.MonthId == report.Month.ToString()); - // if (urgeReport != null) - // { - // urgeReport.IsComplete = true; - // Funs.DB.SubmitChanges(); - // } - // } - // } - // BLL.LogService.AddSys_Log(this.CurrUser, "【百万工时安全统计月报表】上传到服务器" + idList.Count.ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); - // } - // else - // { - // BLL.LogService.AddSys_Log(this.CurrUser, "【百万工时安全统计月报表】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); - // } - //} - #endregion - #endregion - + #region 增加本月明细 private void GetItems(string millionsMonthlyReportId) { @@ -673,7 +555,7 @@ namespace FineUIPro.Web.ZHGL.Information i += 10; } - Model.Information_MillionsMonthlyReportItem totalItem = new Information_MillionsMonthlyReportItem + Information_MillionsMonthlyReportItem totalItem = new Information_MillionsMonthlyReportItem { MillionsMonthlyReportItemId = SQLHelper.GetNewID(typeof(Model.Information_MillionsMonthlyReportItem)), MillionsMonthlyReportId = millionsMonthlyReportId, diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/ReportAuditSee.aspx b/SGGL/FineUIPro.Web/ZHGL/Information/ReportAuditSee.aspx index f5f20e06..dad25cf3 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/ReportAuditSee.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Information/ReportAuditSee.aspx @@ -1,12 +1,11 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportAuditSee.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Information.ReportAuditSee" %> - + - 查看审核信息 - +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +