diff --git a/DataBase/2023-01-04升级/5.HSE检查菜单.txt b/DataBase/2023-01-04升级/5.HSE检查菜单.txt deleted file mode 100644 index 80ffdc6a..00000000 --- a/DataBase/2023-01-04升级/5.HSE检查菜单.txt +++ /dev/null @@ -1,2 +0,0 @@ -delete from Sys_Menu -where SuperMenu ='467A0CB9-737D-4451-965E-869EBC3A4BD6' and MenuId not in ('2FC8AA2A-F421-4174-A05E-2711167AF141','1B08048F-93ED-4E84-AE65-DB7917EA2DFB','C198EBA8-9E23-4654-92E1-09C61105C522','80F786CB-E8CA-44AD-A08C-8E4D12BFDCA1','7B272C3F-39D2-496D-A87C-E2C89A20E4EF') \ No newline at end of file diff --git a/DataBase/2023-01-04升级/5.HSE检查菜单_2023-1-10.txt b/DataBase/2023-01-04升级/5.HSE检查菜单_2023-1-10.txt index 80ffdc6a..4a3ec4e9 100644 --- a/DataBase/2023-01-04升级/5.HSE检查菜单_2023-1-10.txt +++ b/DataBase/2023-01-04升级/5.HSE检查菜单_2023-1-10.txt @@ -1,2 +1,5 @@ delete from Sys_Menu -where SuperMenu ='467A0CB9-737D-4451-965E-869EBC3A4BD6' and MenuId not in ('2FC8AA2A-F421-4174-A05E-2711167AF141','1B08048F-93ED-4E84-AE65-DB7917EA2DFB','C198EBA8-9E23-4654-92E1-09C61105C522','80F786CB-E8CA-44AD-A08C-8E4D12BFDCA1','7B272C3F-39D2-496D-A87C-E2C89A20E4EF') \ No newline at end of file +where SuperMenu ='467A0CB9-737D-4451-965E-869EBC3A4BD6' and MenuId not in ('2FC8AA2A-F421-4174-A05E-2711167AF141','1B08048F-93ED-4E84-AE65-DB7917EA2DFB','C198EBA8-9E23-4654-92E1-09C61105C522','80F786CB-E8CA-44AD-A08C-8E4D12BFDCA1','7B272C3F-39D2-496D-A87C-E2C89A20E4EF') + +delete from Sys_Menu +where MenuId in('427AB060-2510-4568-B85B-AD6796EBE569','FF0D9166-4509-4411-8039-F035BC251114') \ No newline at end of file diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 4da35633..31434b9c 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -650,6 +650,8 @@ + + @@ -765,6 +767,7 @@ + @@ -792,6 +795,7 @@ + diff --git a/SGGL/BLL/Common/CommonService.cs b/SGGL/BLL/Common/CommonService.cs index be124dd8..c2d3e08b 100644 --- a/SGGL/BLL/Common/CommonService.cs +++ b/SGGL/BLL/Common/CommonService.cs @@ -540,7 +540,7 @@ namespace BLL } } #endregion - + #region 保存数据 /// /// 保存数据 diff --git a/SGGL/BLL/Common/ProjectDataFlowSetService.cs b/SGGL/BLL/Common/ProjectDataFlowSetService.cs index 22f9746d..3ae5acc2 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; @@ -311,5 +312,21 @@ where x.MenuId == menuId && x.DataId == dataId && (x.IsClosed == false || !x.IsClosed.HasValue) select x).FirstOrDefault(); } + + + /// + /// + /// + 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/HSSE/EduTrain/TestTrainingItemService.cs b/SGGL/BLL/HSSE/EduTrain/TestTrainingItemService.cs index b71677d4..7f1b10ac 100644 --- a/SGGL/BLL/HSSE/EduTrain/TestTrainingItemService.cs +++ b/SGGL/BLL/HSSE/EduTrain/TestTrainingItemService.cs @@ -17,7 +17,7 @@ namespace BLL /// public static Model.Training_TestTrainingItem GetTestTrainingItemById(string TrainingItemId) { - return Funs.DB.Training_TestTrainingItem.FirstOrDefault(e => e.TrainingItemId == TrainingItemId); + return Funs.DB.Training_TestTrainingItem.FirstOrDefault(e => e.TrainingItemId == TrainingItemId && e.DepartIds !=null); } /// diff --git a/SGGL/BLL/OpenService/FileInsertService.cs b/SGGL/BLL/OpenService/FileInsertService.cs new file mode 100644 index 00000000..3f19aac2 --- /dev/null +++ b/SGGL/BLL/OpenService/FileInsertService.cs @@ -0,0 +1,138 @@ +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 getAtt = Funs.DB.AttachFile.FirstOrDefault(x => x.AttachFileId == attachFileId); + if (getAtt != null) + { + Funs.DB.AttachFile.DeleteOnSubmit(getAtt); + Funs.DB.SubmitChanges(); + } + //多附件 + 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..e934d718 --- /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/WebService/CNCECHSSEWebService.cs b/SGGL/BLL/WebService/CNCECHSSEWebService.cs new file mode 100644 index 00000000..84922eaf --- /dev/null +++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs @@ -0,0 +1,627 @@ +namespace BLL +{ + + using Model; + using Newtonsoft.Json; + using NPOI.POIFS.Crypt.Dsig; + using System; + using System.Collections.Generic; + using System.Data; + using System.Linq; + + public static class CNCECHSSEWebService + { + #region 上报数据到集团 + #region 百万工时上报 + /// + /// 百万工时上报 + /// + public static string UpMillionsMonthlyReport(string millionsMonthlyReportId, 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_MillionsMonthlyReport + where x.MillionsMonthlyReportId == millionsMonthlyReportId + select new Model.HSSE.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 Model.HSSE.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, + }; + + //老接口Serveice + //var getR = hsseC.DataInsertInformation_MillionsMonthlyReportTable(upReport.ToList(), upReportItem.ToList()); + //新接口Api + code = UpApiMillionsMonthlyReport(upReport, upReportItem).ToString(); + if (code == "1") + { + foreach (var item in upReport.Select(p => p.MillionsMonthlyReportId)) + { + 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()); + } + } + LogService.AddSys_Log(CurrUser, "【百万工时安全统计月报表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + else + { + LogService.AddSys_Log(CurrUser, "【百万工时安全统计月报表】上传到服务器失败;", 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; + } + } + /// + /// UpApiMillionsMonthlyReportApi调用 + /// + /// 主表 + /// 明细表 + /// + private static int UpApiMillionsMonthlyReport(IQueryable upReport, IQueryable upReportItem) + { + string baseurl = "/api/InformationData/SaveMillionsMonthlyReport"; + //合并 + //var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem }); + var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault()); + var resultJsonReportItem = JsonConvert.SerializeObject(new { MillionsMonthlyReportItem = upReportItem }); + resultJsonReport = "{\"InformationDataItems\":[" + (resultJsonReport + resultJsonReportItem).Replace("}{", ",") + "]}"; + var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl); + return responeData.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 Model.HSSE.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 Model.HSSE.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, + }; + //老接口Serveice + // var getR = hsseC.DataInsertInformation_AccidentCauseReportTable(upReport.ToList(), upReportItem.ToList()); + //新接口Api + code = UpApiAccidentCauseReport(upReport, upReportItem).ToString(); + if (code == "1") + { + foreach (var item in upReport.Select(p => p.AccidentCauseReportId)) + { + 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()); + } + } + + LogService.AddSys_Log(CurrUser, "【职工伤亡事故原因分析报表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + else + { + LogService.AddSys_Log(CurrUser, "【职工伤亡事故原因分析报表】上传到服务器失败;", 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; + } + } + /// + /// AccidentCauseReportApi调用 + /// + /// 主表 + /// 明细表 + /// + private static int UpApiAccidentCauseReport(IQueryable upReport, IQueryable upReportItem) + { + string baseurl = "/api/InformationData/SaveAccidentCauseReport"; + //合并 + //var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem }); + var resultJson = JsonConvert.SerializeObject(upReport.FirstOrDefault()); + var resultJson1 = JsonConvert.SerializeObject(new { AccidentCauseReportItem = upReportItem }); + resultJson = "{\"InformationDataItems\":[" + (resultJson + resultJson1).Replace("}{", ",") + "]}"; + var responeData = BLL.ServerService.PushCNCEC(resultJson, baseurl); + + return responeData.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 Model.HSSE.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, + FillingDate = x.FillingDate, + 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 = BLL.FileStructService.GetFileStructByAttachUrl(x.FullTimeManAttachUrl), + PMManAttachUrlFileContext = BLL.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 + }; + //老接口Serveice + // var getR = hsseC.DataInsertInformation_SafetyQuarterlyReportTable(upReport.ToList()); + //新接口Api + code = UpApiSaveSafetyQuarterlyReport(upReport).ToString(); + if (code == "1") + { + foreach (var item in upReport.Select(p => p.SafetyQuarterlyReportId)) + { + 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()); + } + }; + LogService.AddSys_Log(CurrUser, "【安全生产数据季报上报】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + + } + else + { + LogService.AddSys_Log(CurrUser, "【安全生产数据季报上报】上传到服务器失败;", 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; + } + } + /// + /// DrillConductedQuarterlyReportApi调用 + /// + /// 主表 + /// 明细表 + /// + private static int UpApiSaveSafetyQuarterlyReport(IQueryable upReport) + { + string baseurl = "/api/InformationData/SaveSafetyQuarterlyReport"; + var resultJson = JsonConvert.SerializeObject(new { InformationDataItems = upReport }); + var responeData = BLL.ServerService.PushCNCEC(resultJson, baseurl); + + return responeData.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 Model.HSSE.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 Model.HSSE.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, + }; + //老接口Serveice + //var getR = hsseC.DataInsertInformation_DrillConductedQuarterlyReportTable(upReport.ToList(), upReportItem.ToList()); + //新接口Api + code = UpApiSaveDrillConductedQuarterlyReport(upReport, upReportItem).ToString(); + if (code == "1") + { + foreach (var item in upReport.Select(p => p.DrillConductedQuarterlyReportId)) + { + 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()); + } + } + LogService.AddSys_Log(CurrUser, "【应急演练开展情况季报表上报】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + else + { + LogService.AddSys_Log(CurrUser, "【应急演练开展情况季报表上报】上传到服务器失败;", 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; + } + } + /// + /// DrillConductedQuarterlyReportApi调用 + /// + /// 主表 + /// 明细表 + /// + private static int UpApiSaveDrillConductedQuarterlyReport(IQueryable upReport, IQueryable upReportItem) + { + string baseurl = "/api/InformationData/SaveDrillConductedQuarterlyReport"; + //合并 + //var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem }); + var resultJson = JsonConvert.SerializeObject(upReport.FirstOrDefault()); + var resultJson1 = JsonConvert.SerializeObject(new { drillConductedQuarterlyReportItem = upReportItem }); + resultJson = "{\"InformationDataItems\":[" + (resultJson + resultJson1).Replace("}{", ",") + "]}"; + var responeData = BLL.ServerService.PushCNCEC(resultJson, baseurl); + return responeData.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 Model.HSSE.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 Model.HSSE.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, + }; + //老接口Serveice + // var getR = hsseC.DataInsertInformation_DrillPlanHalfYearReportTable(upReport.ToList(), upReportItem.ToList()); + //新接口Api + code = UpApiDrillPlanHalfYearReport(upReport, upReportItem).ToString(); + if (code == "1") + { + foreach (var item in upReport.Select(p => p.DrillPlanHalfYearReportId)) + { + 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()); + } + } + + LogService.AddSys_Log(CurrUser, "【应急演练工作计划半年报表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.DrillPlanHalfYearReportMenuId, BLL.Const.BtnUploadResources); + } + else + { + LogService.AddSys_Log(CurrUser, "【应急演练工作计划半年报表】上传到服务器失败;", 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; + } + } + /// + /// DrillPlanHalfYearReportApi调用 + /// + /// 主表 + /// 明细表 + /// + private static int UpApiDrillPlanHalfYearReport(IQueryable upReport, IQueryable upReportItem) + { + string baseurl = "/api/InformationData/SaveDrillPlanHalfYearReport"; + //合并 + //var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem }); + var resultJson = JsonConvert.SerializeObject(upReport.FirstOrDefault()); + var resultJson1 = JsonConvert.SerializeObject(new { drillPlanHalfYearReportItem = upReportItem }); + resultJson = "{\"InformationDataItems\":[" + (resultJson + resultJson1).Replace("}{", ",") + "]}"; + + var responeData = BLL.ServerService.PushCNCEC(resultJson, baseurl); + return responeData.code; + } + #endregion + + #endregion + } + +} diff --git a/SGGL/BLL/ZHGL/Information/UrgeReportService.cs b/SGGL/BLL/ZHGL/Information/UrgeReportService.cs new file mode 100644 index 00000000..354206fd --- /dev/null +++ b/SGGL/BLL/ZHGL/Information/UrgeReportService.cs @@ -0,0 +1,42 @@ +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/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index 2b6db7c2..62f0d0af 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -1156,3 +1156,485 @@ IP地址:::1 出错时间:01/02/2023 08:31:38 + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/common/indexProject.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:12:03 +出错文件:http://localhost:8119/common/indexProject.aspx?projectId=b11a16ea-148c-4bae-a5a1-32158b599482 +IP地址:::1 + +出错时间:01/06/2023 15:12:04 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:17:15 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:17:15 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:17:23 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:17:23 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:17:33 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:17:33 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:17:40 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:17:40 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:17:44 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:17:44 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:20:21 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:20:21 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:22:11 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:22:11 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:23:03 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:23:03 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:23:53 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:23:53 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:24:25 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:24:25 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/default.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 15:25:41 +出错文件:http://localhost:8119/default.aspx +IP地址:::1 + +出错时间:01/06/2023 15:25:41 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/~/HSSE/HiddenInspection/HiddenRectificationList.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 16:56:13 +出错文件:http://localhost:8119/~/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:01/06/2023 16:56:13 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/~/HSSE/HiddenInspection/HiddenRectificationList.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/06/2023 16:56:21 +出错文件:http://localhost:8119/~/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:01/06/2023 16:56:21 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:d:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\ZHGL\ManagementReport\CheckDaily.aspx(88): error CS1061: “ASP.zhgl_managementreport_checkdaily_aspx”不包含“btnNew_Click”的定义,并且找不到可接受类型为“ASP.zhgl_managementreport_checkdaily_aspx”的第一个参数的扩展方法“btnNew_Click”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/10/2023 18:12:22 +出错文件:http://localhost:8119/ZHGL/ManagementReport/CheckDaily.aspx +IP地址:::1 + +出错时间:01/10/2023 18:12:22 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:d:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\ZHGL\ManagementReport\CheckDaily.aspx(187): error CS1061: “ASP.zhgl_managementreport_checkdaily_aspx”不包含“ddlPageSize_SelectedIndexChanged”的定义,并且找不到可接受类型为“ASP.zhgl_managementreport_checkdaily_aspx”的第一个参数的扩展方法“ddlPageSize_SelectedIndexChanged”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/10/2023 18:12:41 +出错文件:http://localhost:8119/ZHGL/ManagementReport/CheckDaily.aspx +IP地址:::1 + +出错时间:01/10/2023 18:12:41 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/ZHGL/ManagementReport/HiddenRectificationView.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/10/2023 18:24:00 +出错文件:http://localhost:8119/ZHGL/ManagementReport/HiddenRectificationView.aspx?HazardRegisterId=7a25186d-4d08-4254-b3f1-97a06afdaa8d +IP地址:::1 + +出错时间:01/10/2023 18:24:00 + + +错误信息开始=====> +错误类型:JsonReaderException +错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0. +错误堆栈: + 在 Newtonsoft.Json.JsonTextReader.ParseValue() + 在 Newtonsoft.Json.JsonTextReader.Read() + 在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) + 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) + 在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) + 在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) + 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) + 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) + 在 BLL.WeatherService.GetWeather(String projectId) 位置 D:\project\vs\gitee\sggl_cd\SGGL\BLL\Common\WeatherService.cs:行号 96 +出错时间:01/11/2023 15:26:47 +出错时间:01/11/2023 15:26:47 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Manager.ManagerMonthC.btnNew_Click(Object sender, EventArgs e) 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\HSSE\Manager\ManagerMonthC.aspx.cs:行号 430 + 在 FineUIPro.Button.OnClick(EventArgs e) + 在 (Button , EventArgs ) + 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:01/27/2023 19:42:48 +出错文件:http://localhost:8119/HSSE/Manager/ManagerMonthC.aspx +IP地址:::1 +操作人员:JT + +出错时间:01/27/2023 19:42:48 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.MenuSwitchMethod(String type) 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 598 + 在 FineUIPro.Web.indexProject.btnHSSE_Click(Object sender, EventArgs e) 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 711 + 在 FineUIPro.Button.OnClick(EventArgs e) + 在 (Button , EventArgs ) + 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:01/27/2023 19:45:38 +出错文件:http://localhost:8119/indexProject.aspx?projectId= +IP地址:::1 + +出错时间:01/27/2023 19:45:38 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 353 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 在 System.EventHandler.Invoke(Object sender, EventArgs e) + 在 System.Web.UI.Control.OnLoad(EventArgs e) + 在 System.Web.UI.Control.LoadRecursive() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:01/27/2023 19:46:05 +出错文件:http://localhost:8119/indexProject.aspx?projectId= +IP地址:::1 + +出错时间:01/27/2023 19:46:05 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Manager.ManagerMonthC.GetButtonPower() 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\HSSE\Manager\ManagerMonthC.aspx.cs:行号 715 + 在 FineUIPro.Web.HSSE.Manager.ManagerMonthC.Page_Load(Object sender, EventArgs e) 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\HSSE\Manager\ManagerMonthC.aspx.cs:行号 27 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 在 System.EventHandler.Invoke(Object sender, EventArgs e) + 在 System.Web.UI.Control.OnLoad(EventArgs e) + 在 System.Web.UI.Control.LoadRecursive() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:01/13/2023 09:06:57 +出错文件:http://localhost:8119/HSSE/Manager/ManagerMonthC.aspx +IP地址:::1 + +出错时间:01/13/2023 09:06:57 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Manager.ManagerMonthC.GetButtonPower() 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\HSSE\Manager\ManagerMonthC.aspx.cs:行号 715 + 在 FineUIPro.Web.HSSE.Manager.ManagerMonthC.Page_Load(Object sender, EventArgs e) 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\HSSE\Manager\ManagerMonthC.aspx.cs:行号 27 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 在 System.EventHandler.Invoke(Object sender, EventArgs e) + 在 System.Web.UI.Control.OnLoad(EventArgs e) + 在 System.Web.UI.Control.LoadRecursive() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:01/13/2023 09:07:04 +出错文件:http://localhost:8119/HSSE/Manager/ManagerMonthC.aspx +IP地址:::1 + +出错时间:01/13/2023 09:07:04 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 353 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 在 System.EventHandler.Invoke(Object sender, EventArgs e) + 在 System.Web.UI.Control.OnLoad(EventArgs e) + 在 System.Web.UI.Control.LoadRecursive() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:01/13/2023 09:07:08 +出错文件:http://localhost:8119/indexProject.aspx?projectId=b11a16ea-148c-4bae-a5a1-32158b599482 +IP地址:::1 + +出错时间:01/13/2023 09:07:08 + diff --git a/SGGL/FineUIPro.Web/FileUpload/QRCodeFile/person/20230110/20230110031257963.jpg b/SGGL/FineUIPro.Web/FileUpload/QRCodeFile/person/20230110/20230110031257963.jpg new file mode 100644 index 00000000..42e9ef2e Binary files /dev/null and b/SGGL/FineUIPro.Web/FileUpload/QRCodeFile/person/20230110/20230110031257963.jpg differ diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 9df47d68..c97f9722 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -1873,6 +1873,7 @@ + @@ -15840,6 +15841,13 @@ CheckSpecial.aspx + + HiddenRectificationView.aspx + ASPXCodeBehind + + + HiddenRectificationView.aspx + HSSEMonthReportProjectSum.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/HSSE/ActionPlan/EditManagerRuleTemplate.aspx b/SGGL/FineUIPro.Web/HSSE/ActionPlan/EditManagerRuleTemplate.aspx index 90912395..5c0b27cf 100644 --- a/SGGL/FineUIPro.Web/HSSE/ActionPlan/EditManagerRuleTemplate.aspx +++ b/SGGL/FineUIPro.Web/HSSE/ActionPlan/EditManagerRuleTemplate.aspx @@ -68,6 +68,9 @@ + + @@ -85,6 +88,10 @@ + diff --git a/SGGL/FineUIPro.Web/HSSE/ActionPlan/EditManagerRuleTemplate.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/ActionPlan/EditManagerRuleTemplate.aspx.designer.cs index ca290982..7da7cacc 100644 --- a/SGGL/FineUIPro.Web/HSSE/ActionPlan/EditManagerRuleTemplate.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/ActionPlan/EditManagerRuleTemplate.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HSSE.ActionPlan { - - - public partial class EditManagerRuleTemplate { - +namespace FineUIPro.Web.HSSE.ActionPlan +{ + + + public partial class EditManagerRuleTemplate + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// txtManageRuleCode 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtManageRuleCode; - + /// /// txtManageRuleName 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtManageRuleName; - + /// /// txtManageRuleTypeName 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtManageRuleTypeName; - + /// /// ToolbarFill1 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnSave 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// lblManageRuleCode 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblManageRuleCode; - + /// /// lblManageRuleName 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblManageRuleName; - + /// /// lblManageRuleTypeName 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblManageRuleTypeName; - + /// /// lblRemark 控件。 /// @@ -137,7 +139,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblRemark; - + /// /// ToolbarSeparator1 控件。 /// @@ -146,7 +148,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -155,7 +157,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -164,7 +166,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// ContentPanel1 控件。 /// @@ -173,7 +175,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ContentPanel ContentPanel1; - + /// /// ctlAuditFlow 控件。 /// @@ -182,5 +184,14 @@ namespace FineUIPro.Web.HSSE.ActionPlan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; } } diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthC.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthC.aspx.cs index 42e324c2..dd9308b4 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthC.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthC.aspx.cs @@ -169,7 +169,7 @@ namespace FineUIPro.Web.HSSE.Manager { e.Values[month.ColumnIndex] = dayReports.First().DayWorkTime; } - else + else if (e.Values[month.ColumnIndex].ToString() == "") { e.Values[month.ColumnIndex] = 0; } diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonIn.aspx.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonIn.aspx.cs index 74a8ea65..e94095c4 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonIn.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonIn.aspx.cs @@ -1014,6 +1014,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { person.IsCardUsedName = col35; } + person.PersonId = SQLHelper.GetNewID(typeof(Model.SitePerson_Person)); persons.Add(person); @@ -1090,7 +1091,8 @@ namespace FineUIPro.Web.HSSE.SitePerson newPerson.OutResult = persons[i].OutResult; newPerson.IsForeign = persons[i].IsForeign; newPerson.IsOutside = persons[i].IsOutside; - newPerson.IsUsed = persons[i].IsUsedName == "是" ? 1 : 0; + + newPerson.IsUsed = persons[i].IsUsedName == "是" ? 2 : 0; newPerson.IsCardUsed = persons[i].IsCardUsedName == "是" ? true : false; BLL.PersonService.AddPerson(newPerson); diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx.cs index 474ed2ce..1d0bdfec 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/AccidentCauseReportSave.aspx.cs @@ -428,7 +428,26 @@ namespace FineUIPro.Web.ZHGL.Information AddItems(accidentCauseReport.AccidentCauseReportId); if (type == "updata") //保存并上报 { - Update(accidentCauseReport.AccidentCauseReportId); + // 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") { diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx.cs index 20b45486..d1a97723 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/DrillConductedQuarterlyReportAdd.aspx.cs @@ -285,7 +285,28 @@ namespace FineUIPro.Web.ZHGL.Information } if (type == "updata") //保存并上报 { - Update(drillConductedQuarterlyReport.DrillConductedQuarterlyReportId); + // 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") { diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx.cs index e1baf3c2..c34fed3f 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/DrillPlanHalfYearReportAdd.aspx.cs @@ -244,7 +244,26 @@ namespace FineUIPro.Web.ZHGL.Information } if (type == "updata") //保存并上报 { - Update(drillPlanHalfYearReport.DrillPlanHalfYearReportId); + //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") { diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSave.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSave.aspx.cs index 1786453e..974ea92e 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSave.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReportSave.aspx.cs @@ -260,7 +260,26 @@ namespace FineUIPro.Web.ZHGL.Information } if (type == "updata") //保存并上报 { - Update(report.MillionsMonthlyReportId); + // 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") { diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/SafetyQuarterlyReportEdit.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/SafetyQuarterlyReportEdit.aspx.cs index ef383f40..b16d4d64 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/SafetyQuarterlyReportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/SafetyQuarterlyReportEdit.aspx.cs @@ -931,7 +931,27 @@ namespace FineUIPro.Web.ZHGL.Information } if (type == "updata") //保存并上报 { - Update(safetyQuarterlyReport.SafetyQuarterlyReportId); + //Update(safetyQuarterlyReport.SafetyQuarterlyReportId); + + if (safetyQuarterlyReport.UpState == BLL.Const.UpState_2) + { + string code = CNCECHSSEWebService.UpSafetyQuarterlyReport(safetyQuarterlyReport.SafetyQuarterlyReportId, 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") { diff --git a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx index 1285f0cf..94f88587 100644 --- a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx @@ -27,109 +27,179 @@ Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" AutoScroll="true"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + - - - - + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + --%> + + <%-- + + + + --%> + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx.cs index 97972a6b..6fbcbbaf 100644 --- a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx.cs @@ -1,10 +1,12 @@ -using System; +using BLL; +using System; using System.Collections.Generic; +using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; -using BLL; +using AspNet = System.Web.UI.WebControls; namespace FineUIPro.Web.ZHGL.ManagementReport { @@ -16,7 +18,40 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { ////权限按钮方法 this.GetButtonPower(); - + Funs.DropDownPageSize(this.ddlPageSize); + GetButtonPower(); + this.ItemSelectedList = new List(); + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + this.drpStates.DataValueField = "Id"; + this.drpStates.DataTextField = "Name"; + List handleSteps = new List(); + Model.HandleStep handleStep1 = new Model.HandleStep(); + handleStep1.Id = "1"; + handleStep1.Name = "待整改"; + handleSteps.Add(handleStep1); + Model.HandleStep handleStep2 = new Model.HandleStep(); + handleStep2.Id = "2"; + handleStep2.Name = "已整改-待复查验收"; + handleSteps.Add(handleStep2); + Model.HandleStep handleStep3 = new Model.HandleStep(); + handleStep3.Id = "3"; + handleStep3.Name = "已闭环"; + handleSteps.Add(handleStep3); + //Model.HandleStep handleStep4 = new Model.HandleStep(); + //handleStep4.Id = "4"; + //handleStep4.Name = "已作废"; + //handleSteps.Add(handleStep4); + this.drpStates.DataSource = handleSteps; ; + this.drpStates.DataBind(); + Funs.FineUIPleaseSelect(this.drpStates, "按状态"); + ListItem[] ProblemTypes = new ListItem[2]; + ProblemTypes[0] = new ListItem("日常巡检", "1"); + ProblemTypes[1] = new ListItem("专项巡检", "2"); + this.drpProblemTypes.DataValueField = "Value"; + this.drpProblemTypes.DataTextField = "Text"; + this.drpProblemTypes.DataSource = ProblemTypes; + this.drpProblemTypes.DataBind(); + Funs.FineUIPleaseSelect(this.drpProblemTypes, "按检查类型"); // 绑定表格 //BindGrid(); InitTreeMenu(); @@ -54,63 +89,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport BindGrid(); } - #region - private void BindGrid() - { - SqlParameter[] parameter = new SqlParameter[] - { - new SqlParameter("@ProjectId", tvControlItem.SelectedNodeID), - new SqlParameter("@StartTime", !string.IsNullOrEmpty(this.txtStartTime.Text)?this.txtStartTime.Text:null), - new SqlParameter("@EndTime", !string.IsNullOrEmpty(this.txtEndTime.Text)?this.txtEndTime.Text:null), - new SqlParameter("@States", !string.IsNullOrEmpty(Request.Params["projectId"])?BLL.Const.State_2:null), - new SqlParameter("@UnitName", !string.IsNullOrEmpty(this.txtUnitName.Text)?this.txtUnitName.Text:null), - new SqlParameter("@WorkAreaName", !string.IsNullOrEmpty(this.txtWorkAreaName.Text)?this.txtWorkAreaName.Text:null) - }; - DataTable tb = SQLHelper.GetDataTableRunProc("SpCheckDayStatistic", parameter); - // 2.获取当前分页数据 - //var table = this.GetPagedDataTable(Grid1, tb1); - - Grid1.RecordCount = tb.Rows.Count; - tb = GetFilteredTable(Grid1.FilteredData, tb); - var table = this.GetPagedDataTable(Grid1, tb); - - Grid1.DataSource = table; - Grid1.DataBind(); - for (int i = 0; i < Grid1.Rows.Count; i++) - { - string[] rowID = Grid1.Rows[i].DataKeys[0].ToString().Split(','); - if (rowID.Count() > 0) - { - var checkDay = BLL.Check_CheckDayService.GetCheckDayByCheckDayId(rowID[0]); - if (checkDay != null) - { - if (checkDay.States == BLL.Const.State_2) - { - if (rowID.Count() > 1) - { - Model.Check_CheckDayDetail detail = BLL.Check_CheckDayDetailService.GetCheckDayDetailByCheckDayDetailId(rowID[1]); - if (detail != null) - { - if (!detail.CompletedDate.HasValue) - { - Grid1.Rows[i].RowCssClass = "Yellow"; - } - } - //else - //{ - // Grid1.Rows[i].RowCssClass = "Red"; - //} - } - } - else - { - Grid1.Rows[i].RowCssClass = "Green"; - } - } - } - } - } - #endregion + #region 查询 /// @@ -130,22 +109,9 @@ namespace FineUIPro.Web.ZHGL.ManagementReport /// /// /// - protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) - { - Grid1.PageIndex = e.NewPageIndex; - BindGrid(); - } + - /// - /// 分页显示条数下拉框 - /// - /// - /// - protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) - { - Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); - BindGrid(); - } + /// /// 排序 @@ -179,12 +145,365 @@ namespace FineUIPro.Web.ZHGL.ManagementReport private string SubStr(string str) { - string reStr = string.Empty; + string reStr = str; if (!string.IsNullOrEmpty(str) && str.Length > 16) { - reStr = str.Substring(0, 16) + ".."; + reStr = str.Substring(0, 14) + ".."; } return reStr; } + + + #region 定义项 + /// + /// GV被选择项列表 + /// + public List ItemSelectedList + { + get + { + return (List)ViewState["ItemSelectedList"]; + } + set + { + ViewState["ItemSelectedList"] = value; + } + } + #endregion + + + + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = "SELECT * FROM View_Hazard_HazardRegister WHERE ProblemTypes ='1' "; //ProblemTypes in ('1' ,'2') + List listStr = new List(); + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + strSql += " AND ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", tvControlItem.SelectedNodeID)); + } + if (!string.IsNullOrEmpty(this.txtCheckMan.Text.Trim())) + { + strSql += " AND CheckManName LIKE @CheckMan"; + listStr.Add(new SqlParameter("@CheckMan", "%" + this.txtCheckMan.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtType.Text.Trim())) + { + strSql += " AND RegisterTypesName LIKE @Type"; + listStr.Add(new SqlParameter("@Type", "%" + this.txtType.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtWorkAreaName.Text.Trim())) + { + strSql += " AND WorkAreaName LIKE @WorkAreaName"; + listStr.Add(new SqlParameter("@WorkAreaName", "%" + this.txtWorkAreaName.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.dpRiskLevel.SelectedValue.Trim())) + { + strSql += " AND Risk_Level = @Risk_Level"; + listStr.Add(new SqlParameter("@Risk_Level", this.dpRiskLevel.SelectedText)); + } + if (!string.IsNullOrEmpty(this.drpType.SelectedValue.Trim())) + { + strSql += " AND CheckCycle=@CheckCycle"; + listStr.Add(new SqlParameter("@CheckCycle", this.drpType.SelectedValue)); + } + if (!string.IsNullOrEmpty(this.txtResponsibilityUnitName.Text.Trim())) + { + strSql += " AND ResponsibilityUnitName LIKE @ResponsibilityUnitName"; + listStr.Add(new SqlParameter("@ResponsibilityUnitName", "%" + this.txtResponsibilityUnitName.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtStartTime.Text.Trim())) + { + strSql += " AND CheckTime >= @StartTime"; + listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim())); + } + if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim())) + { + strSql += " AND CheckTime <= @EndTime"; + listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim())); + } + if (!string.IsNullOrEmpty(txtStartRectificationTime.Text.Trim())) + { + strSql += " AND RectificationTime >= @StartRectificationTime"; + listStr.Add(new SqlParameter("@StartRectificationTime", this.txtStartRectificationTime.Text.Trim())); + } + if (!string.IsNullOrEmpty(this.txtEndRectificationTime.Text.Trim())) + { + strSql += " AND RectificationTime <= @EndRectificationTime"; + listStr.Add(new SqlParameter("@EndRectificationTime", this.txtEndRectificationTime.Text.Trim())); + } + if (this.drpProblemTypes.SelectedValue != BLL.Const._Null) + { + strSql += " and ProblemTypes ='" + this.drpProblemTypes.SelectedValue + "' "; + } + if (this.drpStates.SelectedValue != BLL.Const._Null) + { + strSql += " AND States LIKE @States"; + listStr.Add(new SqlParameter("@States", "%" + this.drpStates.SelectedValue + "%")); + } + if (!CommonService.IsMainUnitOrAdmin(this.CurrUser.UserId)) + { + strSql += " AND (ResponsibleUnit =@ResponsibleUnit OR SendUnitId=@SendUnitId)"; + listStr.Add(new SqlParameter("@ResponsibleUnit", this.CurrUser.UnitId)); + listStr.Add(new SqlParameter("@SendUnitId", this.CurrUser.UnitId)); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + + + #region 表排序、分页、关闭窗口 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + + + + + /// + /// 关闭弹出窗 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region Grid双击事件 + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + btnMenuSee_Click(null, null); + } + #endregion + + #region 查看 + /// + /// 查看按钮 + /// + /// + /// + protected void btnMenuSee_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string RegistrationId = Grid1.SelectedRowID; + var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(RegistrationId); + if (registration != null) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HiddenRectificationView.aspx?HazardRegisterId={0}", RegistrationId, "查看 - "))); + } + } + #endregion + + #region 格式化字符串 + /// + /// 获取整改前图片 + /// + /// + /// + protected string ConvertImageUrl(object registrationId) + { + string url = string.Empty; + if (registrationId != null) + { + var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); + if (registration != null) + { + url = BLL.UploadAttachmentService.ShowAttachment("../../", registration.ImageUrl); + } + } + return url; + } + protected string ConvertProblemTypes(object registrationId) + { + string url = string.Empty; + if (registrationId != null) + { + if (registrationId.ToString() == "1") + { + return "日常巡检"; + } + else if (registrationId.ToString() == "2") + { + return "专项检查"; + } + + } + return url; + } + + + /// + /// 获取整改前图片(放于Img中) + /// + /// + /// + protected string ConvertImageUrlByImage(object registrationId) + { + string url = string.Empty; + if (registrationId != null) + { + var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); + if (registration != null) + { + url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["SGGLUrl"], registration.ImageUrl); + } + } + return url; + } + + /// + /// 获取整改后图片 + /// + /// + /// + protected string ConvertImgUrl(object registrationId) + { + string url = string.Empty; + if (registrationId != null) + { + var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); + if (registration != null) + { + url = BLL.UploadAttachmentService.ShowAttachment(ConfigurationManager.AppSettings["SGGLUrl"], registration.RectificationImageUrl); + } + } + return url; + } + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + /// + /// 获取整改后图片(放于Img中) + /// + /// + /// + protected string ConvertImgUrlByImage(object registrationId) + { + string url = string.Empty; + if (registrationId != null) + { + var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); + if (registration != null) + { + url = BLL.UploadAttachmentService.ShowImage("../../", registration.RectificationImageUrl); + } + } + return url; + } + #endregion + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + Response.ClearContent(); + string filename = Funs.GetNewFileName(); + Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("日常巡检" + filename, System.Text.Encoding.UTF8) + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = System.Text.Encoding.UTF8; + this.Grid1.PageSize = 100000; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) + { + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnID != "ckbIsSelected" && column.ColumnID != "tfImageUrl1" && column.ColumnID != "tfImageUrl2" && column.ColumnID != "Punish" && column.ColumnID != "Del") + { + sb.AppendFormat("", column.HeaderText); + } + } + sb.Append(""); + foreach (GridRow row in grid.Rows) + { + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnID != "ckbIsSelected" && column.ColumnID != "tfImageUrl1" && column.ColumnID != "tfImageUrl2" && column.ColumnID != "Punish" && column.ColumnID != "Del") + { + string html = row.Values[column.ColumnIndex].ToString(); + if (column.ColumnID == "tfPageIndex") + { + html = (row.FindControl("lblPageIndex") as AspNet.Label).Text; + } + if (column.ColumnID == "tfImageUrl") + { + html = (row.FindControl("lbtnImageUrl") as AspNet.LinkButton).Text; + } + if (column.ColumnID == "tfRectificationImageUrl") + { + html = (row.FindControl("lbtnRectificationImageUrl") as AspNet.LinkButton).Text; + } + if (column.ColumnID == "ProblemTypes") + { + html = (row.FindControl("lbProblemTypes") as AspNet.Label).Text; + } + //if (column.ColumnID == "tfCutPayment") + //{ + // html = (row.FindControl("lbtnCutPayment") as AspNet.LinkButton).Text; + //} + sb.AppendFormat("", html); + } + } + sb.Append(""); + } + sb.Append("
{0}
{0}
"); + + return sb.ToString(); + } + #endregion + + + + + + + } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx.designer.cs index b09b9cfe..14fb029f 100644 --- a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckDaily.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.ZHGL.ManagementReport { - - - public partial class CheckDaily { - +namespace FineUIPro.Web.ZHGL.ManagementReport +{ + + + public partial class CheckDaily + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelLeftRegion 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelLeftRegion; - + /// /// tvControlItem 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree tvControlItem; - + /// /// panelCenterRegion 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Grid1 控件。 /// @@ -74,25 +76,34 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// - /// Toolbar2 控件。 + /// Toolbar1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Toolbar Toolbar2; - + protected global::FineUIPro.Toolbar Toolbar1; + /// - /// txtUnitName 控件。 + /// txtCheckMan 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtUnitName; - + protected global::FineUIPro.TextBox txtCheckMan; + + /// + /// txtType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtType; + /// /// txtWorkAreaName 控件。 /// @@ -101,7 +112,16 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtWorkAreaName; - + + /// + /// txtResponsibilityUnitName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtResponsibilityUnitName; + /// /// txtStartTime 控件。 /// @@ -110,7 +130,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtStartTime; - + /// /// txtEndTime 控件。 /// @@ -119,7 +139,61 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtEndTime; - + + /// + /// txtStartRectificationTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartRectificationTime; + + /// + /// txtEndRectificationTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndRectificationTime; + + /// + /// drpType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpType; + + /// + /// drpStates 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpStates; + + /// + /// drpProblemTypes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProblemTypes; + + /// + /// dpRiskLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpRiskLevel; + /// /// ToolbarFill1 控件。 /// @@ -128,7 +202,25 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + + /// + /// hdRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdRemark; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + /// /// lblPageIndex 控件。 /// @@ -137,7 +229,34 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblPageIndex; - + + /// + /// lbProblemTypes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbProblemTypes; + + /// + /// lbImageUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbImageUrl; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + /// /// ToolbarSeparator1 控件。 /// @@ -146,7 +265,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -155,7 +274,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -164,23 +283,14 @@ namespace FineUIPro.Web.ZHGL.ManagementReport { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// - /// ToolbarFill2 控件。 + /// Window1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.ToolbarFill ToolbarFill2; - - /// - /// Label2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label2; + protected global::FineUIPro.Window Window1; } } diff --git a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckSpecial.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckSpecial.aspx.cs index 494fd583..7c14656c 100644 --- a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckSpecial.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/CheckSpecial.aspx.cs @@ -198,7 +198,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport private string SubStr(string str) { - string reStr = string.Empty; + string reStr = str; if (!string.IsNullOrEmpty(str) && str.Length > 16) { reStr = str.Substring(0, 16) + ".."; diff --git a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx new file mode 100644 index 00000000..600b520c --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx @@ -0,0 +1,136 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HiddenRectificationView.aspx.cs" Inherits="FineUIPro.Web.ZHGL.ManagementReport.HiddenRectificationView" %> + + + + + + 查看日常巡检 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ + + + + + + + + +
+
+
+
+
+
+
+
+ + + + + + + + + + +
+ + + diff --git a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx.cs new file mode 100644 index 00000000..7a337460 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx.cs @@ -0,0 +1,110 @@ +using BLL; +using System; +using System.Data; +using System.Linq; + +namespace FineUIPro.Web.ZHGL.ManagementReport +{ + public partial class HiddenRectificationView : PageBase + { + #region 定义项 + /// + /// 主键 + /// + private string HazardRegisterId + { + get + { + return (string)ViewState["HazardRegisterId"]; + } + set + { + ViewState["HazardRegisterId"] = value; + } + } + + /// + /// 图片路径 + /// + public string ImageUrl + { + get + { + return (string)ViewState["ImageUrl"]; + } + set + { + ViewState["ImageUrl"] = value; + } + } + + /// + /// 整改后附件路径 + /// + public string RectificationImageUrl + { + get + { + return (string)ViewState["RectificationImageUrl"]; + } + set + { + ViewState["RectificationImageUrl"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.HazardRegisterId = Request.Params["HazardRegisterId"]; + if (!string.IsNullOrEmpty(this.HazardRegisterId)) + { + Model.View_Hazard_HazardRegister registration = (from x in Funs.DB.View_Hazard_HazardRegister where x.HazardRegisterId == HazardRegisterId select x).FirstOrDefault(); + if (registration != null) + { + this.txtWorkAreaName.Text = registration.WorkAreaName; + this.txtResponsibilityUnitName.Text = registration.ResponsibilityUnitName; + this.txtRegisterTypesName.Text = registration.RegisterTypesName; + this.txtProblemDescription.Text = registration.RegisterDef; + this.txtTakeSteps.Text = registration.Rectification; + this.txtResponsibilityManName.Text = registration.ResponsibilityManName; + this.txtRectificationPeriod.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", registration.RectificationPeriod); + this.txtCheckManName.Text = registration.CheckManName; + this.txtCheckTime.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", registration.CheckTime); + this.txtRectificationTime.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", registration.RectificationTime); + this.txtStates.Text = registration.StatesStr; + this.ImageUrl = registration.ImageUrl; + this.txtRequirements.Text = registration.Requirements; + this.RectificationImageUrl = registration.RectificationImageUrl; + this.divImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../../", this.ImageUrl); + this.divRectificationImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../../", this.RectificationImageUrl); + if (!string.IsNullOrEmpty(registration.CheckCycle)) + { + this.ckType.SelectedValue = registration.CheckCycle ?? "D"; + } + if (!string.IsNullOrEmpty(registration.Risk_Level)) + { + this.dpRiskLevel.SelectedValue = registration.Risk_Level ?? "1"; + } + //var punishRecords = (from x in Funs.DB.View_Common_PunishRecord + // where x.HazardRegisterId == this.HazardRegisterId + // orderby x.PunishDate descending + // select x).ToList(); + //Grid1.DataSource = punishRecords; + //Grid1.DataBind(); + } + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx.designer.cs new file mode 100644 index 00000000..190673cc --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx.designer.cs @@ -0,0 +1,251 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.ManagementReport +{ + + + public partial class HiddenRectificationView + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// ckType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList ckType; + + /// + /// txtProblemDescription 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtProblemDescription; + + /// + /// txtRegisterTypesName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRegisterTypesName; + + /// + /// txtWorkAreaName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWorkAreaName; + + /// + /// txtResponsibilityUnitName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtResponsibilityUnitName; + + /// + /// txtResponsibilityManName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtResponsibilityManName; + + /// + /// txtRequirements 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRequirements; + + /// + /// dpRiskLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpRiskLevel; + + /// + /// txtRectificationPeriod 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRectificationPeriod; + + /// + /// txtTakeSteps 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtTakeSteps; + + /// + /// txtCheckManName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckManName; + + /// + /// txtCheckTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckTime; + + /// + /// txtRectificationTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRectificationTime; + + /// + /// txtStates 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtStates; + + /// + /// lblImageUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblImageUrl; + + /// + /// ContentPanel2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel2; + + /// + /// divImageUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divImageUrl; + + /// + /// lblRectificationImageUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblRectificationImageUrl; + + /// + /// ContentPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel1; + + /// + /// divRectificationImageUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divRectificationImageUrl; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/TestRecord.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/TestRecord.aspx.cs index 87d37e7c..31c0bd17 100644 --- a/SGGL/FineUIPro.Web/ZHGL/ManagementReport/TestRecord.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/ManagementReport/TestRecord.aspx.cs @@ -200,10 +200,10 @@ namespace FineUIPro.Web.ZHGL.ManagementReport private string SubStr(string str) { - string reStr = string.Empty; + string reStr = str; if (!string.IsNullOrEmpty(str) && str.Length > 16) { - reStr = str.Substring(0, 16) + ".."; + reStr = str.Substring(0, 14) + ".."; } return reStr; } diff --git a/SGGL/FineUIPro.Web/common/Menu_DigData.xml b/SGGL/FineUIPro.Web/common/Menu_DigData.xml index 211313fe..c90a4c4d 100644 --- a/SGGL/FineUIPro.Web/common/Menu_DigData.xml +++ b/SGGL/FineUIPro.Web/common/Menu_DigData.xml @@ -39,7 +39,5 @@ - - \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml index 811887a3..46fe15c8 100644 --- a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml +++ b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml @@ -23,7 +23,8 @@ - + + @@ -31,7 +32,6 @@ - @@ -42,12 +42,8 @@ - - - - diff --git a/SGGL/FineUIPro.Web/common/mainProject.aspx b/SGGL/FineUIPro.Web/common/mainProject.aspx index 14b2d694..1a2836e6 100644 --- a/SGGL/FineUIPro.Web/common/mainProject.aspx +++ b/SGGL/FineUIPro.Web/common/mainProject.aspx @@ -32,24 +32,24 @@
安全检查
-
+
-
0
+
0
-
总数(个)
+
总数(个)
-
0
+
0
-
已闭环(个)
+
已闭环(个)
-
0
+
0
-
未闭环(个)
+
未闭环(个)
@@ -409,8 +409,8 @@