推送数据
This commit is contained in:
parent
354f0ef6fe
commit
5c4b481651
|
@ -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')
|
|
@ -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')
|
||||
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')
|
|
@ -650,6 +650,8 @@
|
|||
<Compile Include="OfficeCheck\Check\ProjectSupervision_RectifyItemService.cs" />
|
||||
<Compile Include="OfficeCheck\Check\ProjectSupervision_RectifyService.cs" />
|
||||
<Compile Include="OfficeCheck\ProjectEvaluation\ProjectEvaluationService.cs" />
|
||||
<Compile Include="OpenService\FileInsertService.cs" />
|
||||
<Compile Include="OpenService\FileStructService.cs" />
|
||||
<Compile Include="OpenService\MonitorService.cs" />
|
||||
<Compile Include="DynamicTHeaderHepler.cs" />
|
||||
<Compile Include="OpenService\GetDataService.cs" />
|
||||
|
@ -765,6 +767,7 @@
|
|||
<Compile Include="TestRun\ProduceTestRun\TestRunRecordService.cs" />
|
||||
<Compile Include="TestRun\ProduceTestRun\TestRunReportService.cs" />
|
||||
<Compile Include="TestRun\TestRunService.cs" />
|
||||
<Compile Include="WebService\CNCECHSSEWebService.cs" />
|
||||
<Compile Include="ZHGL\DataStatistics\DataStatisticsService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\CQMSDataService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\HJGLData_DefectService.cs" />
|
||||
|
@ -792,6 +795,7 @@
|
|||
<Compile Include="ZHGL\Information\MillionsMonthlyReportItemService.cs" />
|
||||
<Compile Include="ZHGL\Information\MillionsMonthlyReportService.cs" />
|
||||
<Compile Include="ZHGL\Information\SafetyQuarterlyReportService.cs" />
|
||||
<Compile Include="ZHGL\Information\UrgeReportService.cs" />
|
||||
<Compile Include="ZHGL\ProjectAccident\AccidentAnalysisItemService.cs" />
|
||||
<Compile Include="ZHGL\ProjectAccident\AccidentAnalysisService.cs" />
|
||||
<Compile Include="ZHGL\ProjectAccident\AccidentStatisticsService.cs" />
|
||||
|
|
|
@ -540,7 +540,7 @@ namespace BLL
|
|||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 保存数据
|
||||
/// <summary>
|
||||
/// 保存数据
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace BLL
|
|||
/// <returns></returns>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取附件数据流类
|
||||
/// </summary>
|
||||
/// <param name="attachUrl">附件路径</param>
|
||||
/// <returns></returns>
|
||||
public static void FileInsert(List<byte[]> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取多附件数据流类
|
||||
/// </summary>
|
||||
/// <param name="attachUrl">附件路径</param>
|
||||
/// <returns></returns>
|
||||
public static void FileMoreInsert(List<byte[]> 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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据和附件插入到多附件表
|
||||
/// </summary>
|
||||
public static void InsertAttachFile(string attachFileId, string dataId, string attachSource, string attachUrl, List<byte[]> 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取附件数据流类
|
||||
/// </summary>
|
||||
/// <param name="attachUrl">附件路径</param>
|
||||
/// <returns></returns>
|
||||
public static List<byte[]> GetFileStructByAttachUrl(string attachUrl)
|
||||
{
|
||||
List<byte[]> fileContext = new List<byte[]>();
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取附件数据流类 多附件的情况
|
||||
/// </summary>
|
||||
/// <param name="attachUrl">附件路径</param>
|
||||
/// <returns></returns>
|
||||
public static List<byte[]> GetMoreFileStructByAttachUrl(string attachUrl)
|
||||
{
|
||||
List<byte[]> fileContext = new List<byte[]>();
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 百万工时上报
|
||||
/// <summary>
|
||||
/// 百万工时上报
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// UpApiMillionsMonthlyReportApi调用
|
||||
/// </summary>
|
||||
/// <param name="upReport">主表</param>
|
||||
/// <param name="upReportItem">明细表</param>
|
||||
/// <returns></returns>
|
||||
private static int UpApiMillionsMonthlyReport(IQueryable<Model.HSSE.Information_MillionsMonthlyReport> upReport, IQueryable<Model.HSSE.Information_MillionsMonthlyReportItem> 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 职工伤亡事故原因分析报表上报
|
||||
/// <summary>
|
||||
/// 职工伤亡事故原因分析报表上报
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// AccidentCauseReportApi调用
|
||||
/// </summary>
|
||||
/// <param name="upReport">主表</param>
|
||||
/// <param name="upReportItem">明细表</param>
|
||||
/// <returns></returns>
|
||||
private static int UpApiAccidentCauseReport(IQueryable<Model.HSSE.Information_AccidentCauseReport> upReport, IQueryable<Model.HSSE.Information_AccidentCauseReportItem> 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 安全生产数据季报上报
|
||||
/// <summary>
|
||||
/// 安全生产数据季报上报
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// DrillConductedQuarterlyReportApi调用
|
||||
/// </summary>
|
||||
/// <param name="upReport">主表</param>
|
||||
/// <param name="upReportItem">明细表</param>
|
||||
/// <returns></returns>
|
||||
private static int UpApiSaveSafetyQuarterlyReport(IQueryable<Model.HSSE.Information_SafetyQuarterlyReport> 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 应急演练开展情况季报表上报
|
||||
/// <summary>
|
||||
/// 应急演练开展情况季报表上报
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// DrillConductedQuarterlyReportApi调用
|
||||
/// </summary>
|
||||
/// <param name="upReport">主表</param>
|
||||
/// <param name="upReportItem">明细表</param>
|
||||
/// <returns></returns>
|
||||
private static int UpApiSaveDrillConductedQuarterlyReport(IQueryable<Model.HSSE.Information_DrillConductedQuarterlyReport> upReport, IQueryable<Model.HSSE.Information_DrillConductedQuarterlyReportItem> 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 应急演练工作计划半年报表
|
||||
/// <summary>
|
||||
/// 应急演练工作计划半年报表
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// DrillPlanHalfYearReportApi调用
|
||||
/// </summary>
|
||||
/// <param name="upReport">主表</param>
|
||||
/// <param name="upReportItem">明细表</param>
|
||||
/// <returns></returns>
|
||||
private static int UpApiDrillPlanHalfYearReport(IQueryable<Model.HSSE.Information_DrillPlanHalfYearReport> upReport, IQueryable<Model.HSSE.Information_DrillPlanHalfYearReportItem> 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
|
||||
}
|
||||
|
||||
}
|
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 更新催报完成
|
||||
/// </summary>
|
||||
/// <param name="unitId"></param>
|
||||
/// <param name="reportType"></param>
|
||||
/// <param name="Year"></param>
|
||||
/// <param name="Month"></param>
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -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
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
|
@ -1873,6 +1873,7 @@
|
|||
<Content Include="ZHGL\Information\SafetyQuarterlyReportEdit.aspx" />
|
||||
<Content Include="ZHGL\ManagementReport\CheckDaily.aspx" />
|
||||
<Content Include="ZHGL\ManagementReport\CheckSpecial.aspx" />
|
||||
<Content Include="ZHGL\ManagementReport\HiddenRectificationView.aspx" />
|
||||
<Content Include="ZHGL\ManagementReport\HSSEMonthReportProjectSum.aspx" />
|
||||
<Content Include="ZHGL\ManagementReport\HSSEMonthReport.aspx" />
|
||||
<Content Include="ZHGL\ManagementReport\ReportRemind.aspx" />
|
||||
|
@ -15840,6 +15841,13 @@
|
|||
<Compile Include="ZHGL\ManagementReport\CheckSpecial.aspx.designer.cs">
|
||||
<DependentUpon>CheckSpecial.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\ManagementReport\HiddenRectificationView.aspx.cs">
|
||||
<DependentUpon>HiddenRectificationView.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\ManagementReport\HiddenRectificationView.aspx.designer.cs">
|
||||
<DependentUpon>HiddenRectificationView.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\ManagementReport\HSSEMonthReportProjectSum.aspx.cs">
|
||||
<DependentUpon>HSSEMonthReportProjectSum.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
@ -68,6 +68,9 @@
|
|||
<asp:Label ID="lblRemark" runat="server" Text='<%# Bind("Remark") %>' ToolTip='<%#Bind("Remark") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:WindowField TextAlign="Center" Width="80px" WindowID="WindowAtt"
|
||||
Text="附件" ToolTip="附件上传查看" DataIFrameUrlFields="ManageRuleId" DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&type=-1&path=FileUpload/LawRegulation&menuId=775EFCF4-DE5C-46E9-8EA3-B16270E2F6A6">
|
||||
</f:WindowField>
|
||||
</Columns>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
|
@ -85,6 +88,10 @@
|
|||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.ActionPlan {
|
||||
|
||||
|
||||
public partial class EditManagerRuleTemplate {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
{
|
||||
|
||||
|
||||
public partial class EditManagerRuleTemplate
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtManageRuleCode 控件。
|
||||
/// </summary>
|
||||
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtManageRuleCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtManageRuleName 控件。
|
||||
/// </summary>
|
||||
|
@ -74,7 +76,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtManageRuleName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtManageRuleTypeName 控件。
|
||||
/// </summary>
|
||||
|
@ -83,7 +85,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtManageRuleTypeName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
@ -92,7 +94,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblManageRuleCode 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +112,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblManageRuleCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblManageRuleName 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +121,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblManageRuleName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblManageRuleTypeName 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +130,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblManageRuleTypeName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblRemark 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +139,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblRemark;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +148,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +157,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
|
@ -164,7 +166,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
|
@ -173,7 +175,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ctlAuditFlow 控件。
|
||||
/// </summary>
|
||||
|
@ -182,5 +184,14 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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")
|
||||
{
|
||||
|
|
|
@ -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")
|
||||
{
|
||||
|
|
|
@ -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")
|
||||
{
|
||||
|
|
|
@ -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")
|
||||
{
|
||||
|
|
|
@ -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")
|
||||
{
|
||||
|
|
|
@ -27,109 +27,179 @@
|
|||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle"
|
||||
AutoScroll="true">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="日常巡检(公司)" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="NewChcekId" AllowSorting="true" SortField="CheckTime"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true"
|
||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox runat="server" Label="单位" ID="txtUnitName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="50px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="区域" ID="txtWorkAreaName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="50px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="开始日期" ID="txtStartTime"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="180px"
|
||||
LabelWidth="80px">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="结束日期" ID="txtEndTime"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="180px"
|
||||
LabelWidth="80px">
|
||||
</f:DatePicker>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="50px" HeaderText="序号" HeaderTextAlign="Center"
|
||||
TextAlign="Center" EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="160px" ColumnID="CheckDayCode" DataField="CheckDayCode" SortField="CheckDayCode"
|
||||
FieldType="String" HeaderText="检查编号" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" ColumnID="CheckCount" DataField="CheckCount" SortField="CheckCount"
|
||||
FieldType="Int" HeaderText="不合格数" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="WorkArea" DataField="WorkArea" SortField="WorkArea"
|
||||
FieldType="String" HeaderText="检查区域" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="250px" ColumnID="Unqualified" DataField="Unqualified" SortField="Unqualified"
|
||||
FieldType="String" HeaderText="隐患内容" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="CheckTime" DataField="CheckTime" SortField="CheckTime"
|
||||
FieldType="String" HeaderText="检查日期" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="HiddenDangerType" DataField="HiddenDangerType"
|
||||
SortField="HiddenDangerType" FieldType="String" HeaderText="隐患类型" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="HiddenDangerLevel" DataField="HiddenDangerLevel"
|
||||
SortField="HiddenDangerLevel" FieldType="String" HeaderText="隐患级别" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="220px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
|
||||
FieldType="String" HeaderText="责任单位" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="PersonName" DataField="PersonName" SortField="PersonName"
|
||||
FieldType="String" HeaderText="责任人" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="LimitedDate" DataField="LimitedDate" SortField="LimitedDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="整改限时"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="FlowOperateName" DataField="FlowOperateName"
|
||||
SortField="FlowOperateName" FieldType="String" HeaderText="状态" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="10" Value="10" />
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
<f:ListItem Text="所有行" Value="100000" />
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="HSE巡检" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="HazardRegisterId" DataIDField="HazardRegisterId"
|
||||
AllowSorting="true" SortField="RectificationTime" SortDirection="DESC" OnSort="Grid1_Sort"
|
||||
EnableColumnLines="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
|
||||
OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox runat="server" ID="txtCheckMan" EmptyText="按检查人查询" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="150px">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtType" EmptyText="按检查项查询" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="150px">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtWorkAreaName" EmptyText="按单位工程查询" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="150px">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtResponsibilityUnitName" EmptyText="按责任单位查询"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="150px">
|
||||
</f:TextBox>
|
||||
<f:DatePicker ID="txtStartTime" runat="server" LabelAlign="Right" EmptyText="检查开始时间"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="150px">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker ID="txtEndTime" runat="server" EmptyText="检查结束时间"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="150px">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker ID="txtStartRectificationTime" runat="server" EmptyText="整改开始时间" LabelAlign="Right"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="150px">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker ID="txtEndRectificationTime" runat="server" EmptyText="整改结束时间"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged"
|
||||
Width="150px">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" EmptyText="按巡检周期" ID="drpType" LabelAlign="Right" Width="150px"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
<f:ListItem Text="按巡检周期" Value="" />
|
||||
<f:ListItem Text="日检" Value="D" />
|
||||
<f:ListItem Text="周检" Value="W" />
|
||||
<f:ListItem Text="月检" Value="M" />
|
||||
</f:DropDownList>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
<f:DropDownList ID="drpStates" runat="server" EmptyText="按状态" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"
|
||||
LabelAlign="Right" Width="150px">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpProblemTypes" runat="server" EmptyText="按检查类型" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"
|
||||
LabelAlign="Right" Width="150px" Hidden="true">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList runat="server" EmptyText="按级别" ID="dpRiskLevel" LabelAlign="Right" Width="150px"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
<f:ListItem Text="按级别" Value="" />
|
||||
<f:ListItem Text="一般" Value="1" />
|
||||
<f:ListItem Text="较大" Value="2" />
|
||||
<f:ListItem Text="重大" Value="3" />
|
||||
</f:DropDownList>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Label ID="Label2" runat="server" Text="说明:绿色-未审核完成;黄色-未闭环;白色-已闭环。" CssClass="LabelColor">
|
||||
</f:Label>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
<f:HiddenField runat="server" ID="hdRemark">
|
||||
</f:HiddenField>
|
||||
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<%-- <f:CheckBoxField ColumnID="ckbIsSelected" Width="50px" RenderAsStaticField="false"
|
||||
AutoPostBack="true" CommandName="IsSelected" HeaderText="选择" HeaderTextAlign="Center" />--%>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
|
||||
TextAlign="Center" EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="80px" ColumnID="CheckCycleName" DataField="CheckCycleName" SortField="CheckCycleName"
|
||||
HeaderText="巡检周期" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="ProblemTypes" Width="90px" HeaderText="检查类型" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Hidden="true">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbProblemTypes" runat="server" Text='<%# ConvertProblemTypes(Eval("ProblemTypes")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="150px" ColumnID="CheckTime" DataField="CheckTime" SortField="CheckTime"
|
||||
HeaderText="检查时间" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="WorkAreaName" DataField="WorkAreaName" SortField="WorkAreaName"
|
||||
FieldType="String" HeaderText="区域" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="RegisterTypesName" DataField="RegisterTypesName"
|
||||
SortField="RegisterTypesName" FieldType="String" HeaderText="问题类型" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="tfImageUrl1" Width="120px" HeaderText="整改前" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbImageUrl" runat="server" Text='<%# ConvertImageUrlByImage(Eval("HazardRegisterId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="tfImageUrl2" Width="120px" HeaderText="整改后" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# ConvertImgUrlByImage(Eval("HazardRegisterId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="200px" ColumnID="RegisterDef" DataField="RegisterDef" SortField="RegisterDef"
|
||||
FieldType="String" HeaderText="问题描述" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="Rectification" DataField="Rectification" SortField="Rectification"
|
||||
FieldType="String" HeaderText="采取措施" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="ResponsibilityUnitName" DataField="ResponsibilityUnitName"
|
||||
SortField="ResponsibilityUnitName" FieldType="String" HeaderText="责任单位" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="ResponsibilityManName" DataField="ResponsibilityManName"
|
||||
SortField="ResponsibilityManName" FieldType="String" HeaderText="责任人" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="RectificationPeriod" DataField="RectificationPeriod"
|
||||
SortField="RectificationPeriod" FieldType="Date" Renderer="Date" HeaderText="整改期限"
|
||||
TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="RectificationTime" DataField="RectificationTime"
|
||||
SortField="RectificationTime" HeaderText="整改时间" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="CheckManName" DataField="CheckManName" SortField="CheckManName"
|
||||
FieldType="String" HeaderText="检查人" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="StatesStr" DataField="StatesStr" SortField="StatesStr"
|
||||
FieldType="String" HeaderText="状态" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="Risk_LevelName" DataField="Risk_LevelName" SortField="Risk_LevelName"
|
||||
FieldType="String" HeaderText="级别" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<%--<f:TemplateField ColumnID="tfImageUrl" Width="280px" HeaderText="整改前图片" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtnImageUrl" runat="server" Text='<%# ConvertImageUrl(Eval("HazardRegisterId")) %>'></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>--%>
|
||||
|
||||
<%--<f:TemplateField ColumnID="tfRectificationImageUrl" Width="280px" HeaderText="整改后图片"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtnRectificationImageUrl" runat="server" Text='<%#ConvertImgUrl(Eval("HazardRegisterId")) %>'></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>--%>
|
||||
<f:LinkButtonField Width="50px" HeaderText="删除" ConfirmText="确定要删除此条信息吗?" ConfirmTarget="Parent" ColumnID="Del"
|
||||
CommandName="del" TextAlign="Center" ToolTip="删除" Icon="Delete" Hidden="true" />
|
||||
</Columns>
|
||||
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="HSE巡检" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="900px" Height="580px">
|
||||
</f:Window>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
function onGridDataLoad(event) {
|
||||
this.mergeColumns(['CheckDayCode', 'CheckCount', 'FlowOperateName'], { depends: true });
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -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<string>();
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
this.drpStates.DataValueField = "Id";
|
||||
this.drpStates.DataTextField = "Name";
|
||||
List<Model.HandleStep> handleSteps = new List<Model.HandleStep>();
|
||||
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 查询
|
||||
/// <summary>
|
||||
|
@ -130,22 +109,9 @@ namespace FineUIPro.Web.ZHGL.ManagementReport
|
|||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
Grid1.PageIndex = e.NewPageIndex;
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 分页显示条数下拉框
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
|
@ -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 定义项
|
||||
/// <summary>
|
||||
/// GV被选择项列表
|
||||
/// </summary>
|
||||
public List<string> ItemSelectedList
|
||||
{
|
||||
get
|
||||
{
|
||||
return (List<string>)ViewState["ItemSelectedList"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ItemSelectedList"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = "SELECT * FROM View_Hazard_HazardRegister WHERE ProblemTypes ='1' "; //ProblemTypes in ('1' ,'2')
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
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 表排序、分页、关闭窗口
|
||||
/// <summary>
|
||||
/// 分页
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
Grid1.PageIndex = e.NewPageIndex;
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 关闭弹出窗
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Grid双击事件
|
||||
/// <summary>
|
||||
/// Grid行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
btnMenuSee_Click(null, null);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查看
|
||||
/// <summary>
|
||||
/// 查看按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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 格式化字符串
|
||||
/// <summary>
|
||||
/// 获取整改前图片
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取整改前图片(放于Img中)
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取整改后图片
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
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();
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取整改后图片(放于Img中)
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
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 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导出方法
|
||||
/// </summary>
|
||||
/// <param name="grid"></param>
|
||||
/// <returns></returns>
|
||||
private string GetGridTableHtml(Grid grid)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/>");
|
||||
sb.Append("<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">");
|
||||
sb.Append("<tr>");
|
||||
foreach (GridColumn column in grid.Columns)
|
||||
{
|
||||
if (column.ColumnID != "ckbIsSelected" && column.ColumnID != "tfImageUrl1" && column.ColumnID != "tfImageUrl2" && column.ColumnID != "Punish" && column.ColumnID != "Del")
|
||||
{
|
||||
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
|
||||
}
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
foreach (GridRow row in grid.Rows)
|
||||
{
|
||||
sb.Append("<tr>");
|
||||
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("<td>{0}</td>", html);
|
||||
}
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
}
|
||||
sb.Append("</table>");
|
||||
|
||||
return sb.ToString();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.ManagementReport {
|
||||
|
||||
|
||||
public partial class CheckDaily {
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.ManagementReport
|
||||
{
|
||||
|
||||
|
||||
public partial class CheckDaily
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
@ -74,25 +76,34 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// txtCheckMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
protected global::FineUIPro.TextBox txtCheckMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtType;
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkAreaName 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +112,16 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkAreaName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibilityUnitName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtResponsibilityUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartTime 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +130,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartTime;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +139,61 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtStartRectificationTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartRectificationTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndRectificationTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndRectificationTime;
|
||||
|
||||
/// <summary>
|
||||
/// drpType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpType;
|
||||
|
||||
/// <summary>
|
||||
/// drpStates 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpStates;
|
||||
|
||||
/// <summary>
|
||||
/// drpProblemTypes 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProblemTypes;
|
||||
|
||||
/// <summary>
|
||||
/// dpRiskLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList dpRiskLevel;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +202,25 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdRemark;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +229,34 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbProblemTypes 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lbProblemTypes;
|
||||
|
||||
/// <summary>
|
||||
/// lbImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lbImageUrl;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +265,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +274,7 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
|
@ -164,23 +283,14 @@ namespace FineUIPro.Web.ZHGL.ManagementReport {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label2;
|
||||
protected global::FineUIPro.Window Window1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) + "..";
|
||||
|
|
|
@ -0,0 +1,136 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HiddenRectificationView.aspx.cs" Inherits="FineUIPro.Web.ZHGL.ManagementReport.HiddenRectificationView" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>查看日常巡检</title>
|
||||
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:RadioButtonList ID="ckType" runat="server" Label="巡检周期" Readonly="true">
|
||||
<f:RadioItem Value="D" Selected="True" Text="日检" />
|
||||
<f:RadioItem Value="W" Text="周检" />
|
||||
<f:RadioItem Value="M" Text="月检" />
|
||||
</f:RadioButtonList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtProblemDescription" runat="server" Label="问题描述" Readonly="true" Height="64px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtRegisterTypesName" runat="server" Label="问题类型" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtWorkAreaName" runat="server" Label="受检区域区域" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtResponsibilityUnitName" runat="server" Label="责任单位" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtResponsibilityManName" runat="server" Label="责任人" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRequirements" runat="server" Label="整改要求" Height="50px"
|
||||
MaxLength="400" Readonly="true">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList runat="server" Label="问题级别" ID="dpRiskLevel" LabelAlign="Right" Readonly="true">
|
||||
<f:ListItem Text="一般" Value="1" Selected="true" />
|
||||
<f:ListItem Text="较大" Value="2" />
|
||||
<f:ListItem Text="重大" Value="3" />
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtRectificationPeriod" runat="server" Label="整改期限" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtTakeSteps" runat="server" Label="采取措施" Readonly="true" Height="50px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckManName" runat="server" Label="检查人" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtCheckTime" runat="server" Label="检查时间" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtRectificationTime" runat="server" Label="整改时间" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtStates" runat="server" Label="状态" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="8% 92%">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lblImageUrl" Label="整改前图片">
|
||||
</f:Label>
|
||||
<f:ContentPanel ID="ContentPanel2" runat="server" ShowHeader="false" ShowBorder="false"
|
||||
Title="整改前图片">
|
||||
<table style="width">
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="divImageUrl" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="8% 92%">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lblRectificationImageUrl" Label="整改后图片">
|
||||
</f:Label>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" ShowBorder="false"
|
||||
Title="整改后图片">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="divRectificationImageUrl" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -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 定义项
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string HazardRegisterId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["HazardRegisterId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["HazardRegisterId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 图片路径
|
||||
/// </summary>
|
||||
public string ImageUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ImageUrl"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ImageUrl"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 整改后附件路径
|
||||
/// </summary>
|
||||
public string RectificationImageUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["RectificationImageUrl"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["RectificationImageUrl"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
}
|
||||
}
|
251
SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx.designer.cs
generated
Normal file
251
SGGL/FineUIPro.Web/ZHGL/ManagementReport/HiddenRectificationView.aspx.designer.cs
generated
Normal file
|
@ -0,0 +1,251 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.ManagementReport
|
||||
{
|
||||
|
||||
|
||||
public partial class HiddenRectificationView
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// ckType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList ckType;
|
||||
|
||||
/// <summary>
|
||||
/// txtProblemDescription 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtProblemDescription;
|
||||
|
||||
/// <summary>
|
||||
/// txtRegisterTypesName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRegisterTypesName;
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkAreaName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkAreaName;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibilityUnitName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtResponsibilityUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibilityManName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtResponsibilityManName;
|
||||
|
||||
/// <summary>
|
||||
/// txtRequirements 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRequirements;
|
||||
|
||||
/// <summary>
|
||||
/// dpRiskLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList dpRiskLevel;
|
||||
|
||||
/// <summary>
|
||||
/// txtRectificationPeriod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRectificationPeriod;
|
||||
|
||||
/// <summary>
|
||||
/// txtTakeSteps 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtTakeSteps;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckManName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckManName;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtRectificationTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRectificationTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtStates 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtStates;
|
||||
|
||||
/// <summary>
|
||||
/// lblImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblImageUrl;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel2;
|
||||
|
||||
/// <summary>
|
||||
/// divImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divImageUrl;
|
||||
|
||||
/// <summary>
|
||||
/// lblRectificationImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblRectificationImageUrl;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// divRectificationImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divRectificationImageUrl;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,5 @@
|
|||
<TreeNode id="03F098CA-265B-42E2-9908-AF25EA3707B4" Text="进度公共资源库" NavigateUrl=""><TreeNode id="854B35DC-8EE8-4E30-2222-BC750F325A01" Text="WBS库维护" NavigateUrl="JDGL/WBS/WBSSet.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="FF0D9166-4509-4411-8039-F035BC251114" Text="数据库" NavigateUrl=""><TreeNode id="427AB060-2510-4568-B85B-AD6796EBE569" Text="项目HSE数据汇总" NavigateUrl="DigData/HSEDataCollect.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE" Text="数据作战室" NavigateUrl=""></TreeNode>
|
||||
</Tree>
|
|
@ -23,7 +23,8 @@
|
|||
<TreeNode id="874B4232-E0AD-41CD-8C66-8A7FF2D79358" Text="项目安全协议清单" NavigateUrl="HSSE/QualityAudit/ProjectRecord.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="EE260447-028F-46AF-8864-9A5DC9DAA5BD" Text="人员培训" NavigateUrl=""><TreeNode id="1182E353-FAB9-4DB1-A1EC-F41A00892128" Text="培训记录" NavigateUrl="HSSE/EduTrain/TrainRecord.aspx"></TreeNode>
|
||||
<TreeNode id="EE260447-028F-46AF-8864-9A5DC9DAA5BD" Text="人员培训" NavigateUrl=""><TreeNode id="AD6FC259-CF40-41C7-BA3F-15AC50C1DD20" Text="人员信息档案" NavigateUrl="HSSE/SitePerson/PersonList.aspx"></TreeNode>
|
||||
<TreeNode id="1182E353-FAB9-4DB1-A1EC-F41A00892128" Text="培训记录" NavigateUrl="HSSE/EduTrain/TrainRecord.aspx"></TreeNode>
|
||||
<TreeNode id="F81E3F54-B3A9-4DDB-9C8C-1574317E040F" Text="人员培训查询" NavigateUrl="HSSE/EduTrain/TrainFind.aspx"></TreeNode>
|
||||
<TreeNode id="B782A26B-D85C-4F84-8B45-F7AA47B3159E" Text="培训计划" NavigateUrl="HSSE/EduTrain/Plan.aspx"></TreeNode>
|
||||
<TreeNode id="E108F75D-89D0-4DCA-8356-A156C328805C" Text="培训任务" NavigateUrl="HSSE/EduTrain/Task.aspx"></TreeNode>
|
||||
|
@ -31,7 +32,6 @@
|
|||
<TreeNode id="FAF7F4A4-A4BC-4D94-9E88-0CF5A380DB34" Text="考试计划" NavigateUrl="HSSE/EduTrain/TestPlan.aspx"></TreeNode>
|
||||
<TreeNode id="0EEB138D-84F9-4686-8CBB-CAEAA6CF1B2A" Text="考试记录" NavigateUrl="HSSE/EduTrain/TestRecord.aspx"></TreeNode>
|
||||
<TreeNode id="6FF941C1-8A00-4A74-8111-C892FC30A8DA" Text="考试统计" NavigateUrl="HSSE/EduTrain/TestStatistics.aspx"></TreeNode>
|
||||
<TreeNode id="AD6FC259-CF40-41C7-BA3F-15AC50C1DD20" Text="人员信息档案" NavigateUrl="HSSE/SitePerson/PersonList.aspx"></TreeNode>
|
||||
<TreeNode id="8F15D3BE-BE21-4A6F-AD5C-2BBECEE46149" Text="人工时日报" NavigateUrl="HSSE/SitePerson/DayReport.aspx"></TreeNode>
|
||||
<TreeNode id="6C97E014-AF13-46E5-ADB2-03D327C560EC" Text="人工时月报" NavigateUrl="HSSE/SitePerson/MonthReport.aspx"></TreeNode>
|
||||
<TreeNode id="7ACB0CB1-15D8-4E8E-A54D-0CDC5F69B39A" Text="发卡管理" NavigateUrl="HSSE/SitePerson/SendCard.aspx"></TreeNode>
|
||||
|
@ -42,12 +42,8 @@
|
|||
<TreeNode id="750F5074-45B9-470E-AE1E-6204957421E6" Text="安管人员资质" NavigateUrl="HSSE/QualityAudit/SafePersonQuality.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="467A0CB9-737D-4451-965E-869EBC3A4BD6" Text="HSE检查" NavigateUrl=""><TreeNode id="2FC8AA2A-F421-4174-A05E-2711167AF141" Text="安全巡检" NavigateUrl="HSSE/HiddenInspection/HiddenRectificationList.aspx"></TreeNode>
|
||||
<TreeNode id="0E30F917-0C51-4C45-BD19-981039CA44F5" Text="日常巡检" NavigateUrl="HSSE/Check/CheckDayWH.aspx"></TreeNode>
|
||||
<TreeNode id="1B08048F-93ED-4E84-AE65-DB7917EA2DFB" Text="专项检查" NavigateUrl="HSSE/Check/CheckSpecial.aspx"></TreeNode>
|
||||
<TreeNode id="C198EBA8-9E23-4654-92E1-09C61105C522" Text="综合检查" NavigateUrl="HSSE/Check/CheckColligation.aspx"></TreeNode>
|
||||
<TreeNode id="9212291A-FBC5-4F6D-A5F6-60BFF4E30F6F" Text="开工前检查" NavigateUrl="HSSE/Check/CheckWork.aspx"></TreeNode>
|
||||
<TreeNode id="0D23A707-ADA0-4C2B-9665-611134243529" Text="季节性/节假日检查" NavigateUrl="HSSE/Check/CheckHoliday.aspx"></TreeNode>
|
||||
<TreeNode id="F910062E-98B0-486F-A8BD-D5B0035F808F" Text="监理整改通知单" NavigateUrl="HSSE/Check/SupervisionNotice.aspx"></TreeNode>
|
||||
<TreeNode id="80F786CB-E8CA-44AD-A08C-8E4D12BFDCA1" Text="总部检查" NavigateUrl="HSSE/Check/OfficeCheck.aspx"></TreeNode>
|
||||
<TreeNode id="7B272C3F-39D2-496D-A87C-E2C89A20E4EF" Text="HSE巡检统计(图表)" NavigateUrl="HSSE/HiddenInspection/RiskAnalysisChart.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
|
|
|
@ -32,24 +32,24 @@
|
|||
</div>
|
||||
<div class="sd-security-calc">
|
||||
<div class="sd-security-menus-label">安全检查</div>
|
||||
<div class="sd-security-menus" onclick="toHsse()">
|
||||
<div class="sd-security-menus" >
|
||||
<div class="sd-security-menu">
|
||||
<div class="sd-security-menu-img">
|
||||
<div class="sd-security-menu-value" runat="server" id="divAllRectify">0</div>
|
||||
<div class="sd-security-menu-value" onclick="toHsse()" runat="server" id="divAllRectify">0</div>
|
||||
</div>
|
||||
<div class="sd-security-menu-name">总数(个)</div>
|
||||
<div class="sd-security-menu-name" onclick="toHsse()" >总数(个)</div>
|
||||
</div>
|
||||
<div class="sd-security-menu">
|
||||
<div class="sd-security-menu-img">
|
||||
<div class="sd-security-menu-value" runat="server" id="divCRectify">0</div>
|
||||
<div class="sd-security-menu-value" onclick="toHsse()" runat="server" id="divCRectify">0</div>
|
||||
</div>
|
||||
<div class="sd-security-menu-name">已闭环(个)</div>
|
||||
<div class="sd-security-menu-name" onclick="toHsse()" >已闭环(个)</div>
|
||||
</div>
|
||||
<div class="sd-security-menu">
|
||||
<div class="sd-security-menu-img">
|
||||
<div class="sd-security-menu-value" runat="server" id="divUCRectify">0</div>
|
||||
<div class="sd-security-menu-value" onclick="toHsse()" runat="server" id="divUCRectify">0</div>
|
||||
</div>
|
||||
<div class="sd-security-menu-name">未闭环(个)</div>
|
||||
<div class="sd-security-menu-name" onclick="toHsse()" >未闭环(个)</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -409,8 +409,8 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
function toHsse() {
|
||||
top.window.location.href = "indexProject.aspx?projectId="+<%=CurrUser.LoginProjectId%>;
|
||||
function toHsse(){
|
||||
top.window.location.href = "../indexProject.aspx?detailmenu=HiddenRectificationList&menuType=Menu_HSSE&projectId=<%=CurrUser.LoginProjectId%>";
|
||||
}
|
||||
|
||||
function initOutPutEchart() {
|
||||
|
|
|
@ -3,6 +3,7 @@ using Newtonsoft.Json;
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
|
@ -71,7 +72,7 @@ namespace FineUIPro.Web.common
|
|||
var ProjectTotal = (from x in Funs.DB.HSSE_MonthReportItem
|
||||
join y in Funs.DB.HSSE_MonthReport on x.MonthReportId equals y.MonthReportId
|
||||
where y.ProjectId == this.ProjectId && "安全生产人工时数" == x.ReportItem
|
||||
select x.ProjectTotal).Sum();
|
||||
select x.YearTotal).Sum();
|
||||
|
||||
if (ProjectTotal.HasValue)
|
||||
{
|
||||
|
@ -117,19 +118,33 @@ namespace FineUIPro.Web.common
|
|||
/// </summary>
|
||||
private void getSitePerson()
|
||||
{
|
||||
int AllCount = 0;
|
||||
int MCount = 0;
|
||||
var getallin = APIPageDataService.getPersonInOutNum(this.ProjectId, DateTime.Now.AddDays(-1));
|
||||
AllCount = getallin.Count();
|
||||
if (AllCount > 0)
|
||||
|
||||
string sql = @"select c.ConstText,b.PostType,count( *) num from SitePerson_Person a left join Base_WorkPost b on a.WorkPostId=b.WorkPostId
|
||||
LEFT JOIN Sys_Const AS c ON c.ConstValue = b.PostType and c.GroupId = 'PostType' and IsUsed =1 and InTime<='" + DateTime.Now.ToString("yyyy-MM-dd") + "' and (OutTime is null or OutTime>'" + DateTime.Now.ToString("yyyy-MM-dd") + @"' )
|
||||
where ProjectId='" + this.ProjectId + @"'
|
||||
group by c.ConstText,b.PostType ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(sql, parameter);
|
||||
int allcount = 0;
|
||||
int mcount = 0;
|
||||
if (tb != null)
|
||||
{
|
||||
this.divALLPerson.InnerHtml = AllCount.ToString();
|
||||
MCount = getallin.Where(x => x.PostType == Const.PostType_1).Count();
|
||||
/////管理人数
|
||||
this.divGLPerson.InnerHtml = MCount.ToString();
|
||||
/////作业人数
|
||||
this.divZYPerson.InnerHtml = (AllCount - MCount).ToString();
|
||||
foreach (DataRow row in tb.Rows)
|
||||
{
|
||||
allcount += int.Parse(row["num"].ToString());
|
||||
if (!string.IsNullOrEmpty(row["ConstText"].ToString()) && row["ConstText"].ToString().Contains("管理"))
|
||||
{
|
||||
mcount += int.Parse(row["num"].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.divALLPerson.InnerHtml = allcount.ToString();
|
||||
this.divGLPerson.InnerHtml = mcount.ToString();
|
||||
this.divZYPerson.InnerHtml = (allcount - mcount).ToString();
|
||||
|
||||
|
||||
var getallin = APIPageDataService.getPersonInOutNum(this.ProjectId, DateTime.Now.AddDays(-1));
|
||||
|
||||
WorkPostS = "[]";
|
||||
InPostCounts = "[]";
|
||||
|
@ -138,7 +153,7 @@ namespace FineUIPro.Web.common
|
|||
List<int> InDutyCountList = new List<int>();
|
||||
List<string> worksList = new List<string>();
|
||||
var getPersons = Funs.DB.SitePerson_Person.Where(x => x.ProjectId == this.ProjectId && x.IsUsed == 1 && x.InTime <= DateTime.Now
|
||||
&& !x.OutTime.HasValue && x.CardNo.Length > 1);
|
||||
&& !x.OutTime.HasValue);
|
||||
if (getPersons.Count() > 0)
|
||||
{
|
||||
var getWorkIds = getPersons.Where(x => x.WorkPostId != null).Select(x => x.WorkPostId).Distinct();
|
||||
|
|
|
@ -17,7 +17,12 @@
|
|||
html {
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
body>.f-panel-border, body>.f-panel-border>div {
|
||||
background: #ffffff;
|
||||
}
|
||||
.f-messagebox-messagect {
|
||||
color: #fff;
|
||||
}
|
||||
.sd-index1-body {
|
||||
background-image: none;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,12 @@
|
|||
width: 100%;
|
||||
height: 35px;
|
||||
}
|
||||
|
||||
body>.f-panel-border, body>.f-panel-border>div {
|
||||
background: #ffffff;
|
||||
}
|
||||
.f-messagebox-messagect {
|
||||
color: #fff;
|
||||
}
|
||||
.up-wrap {
|
||||
height: 55px;
|
||||
padding: 0 10px;
|
||||
|
|
|
@ -21,6 +21,7 @@ namespace FineUIPro.Web
|
|||
// private bool _compactMode = false;
|
||||
private int _examplesCount = 0;
|
||||
private string _searchText = "";
|
||||
private string detailmenu = "";
|
||||
#region Page_Init
|
||||
|
||||
/// <summary>
|
||||
|
@ -53,7 +54,7 @@ namespace FineUIPro.Web
|
|||
Response.Cookies.Add(cookie);
|
||||
}
|
||||
|
||||
PageContext.Redirect("~/default.aspx");
|
||||
PageContext.Redirect("~/indexProject.aspx");
|
||||
return;
|
||||
}
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
@ -292,6 +293,7 @@ namespace FineUIPro.Web
|
|||
if (!IsPostBack)
|
||||
{
|
||||
//string userData = "localhost/hsse/indexProject.aspx?account=sysgly&projectcode=E21009&module=1";
|
||||
detailmenu = Request.Params["detailmenu"];
|
||||
if (!string.IsNullOrEmpty(Request.Params["account"]))
|
||||
{
|
||||
Session[SessionName.CurrUser] = new Model.Sys_User();
|
||||
|
@ -372,7 +374,14 @@ namespace FineUIPro.Web
|
|||
this.InitMenuStyleButton();
|
||||
this.InitMenuModeButton();
|
||||
this.InitLangMenuButton();
|
||||
this.userName.InnerText = this.CurrUser.UserName;
|
||||
this.userName.InnerText = this.CurrUser.UserName;
|
||||
|
||||
if (!string.IsNullOrEmpty(detailmenu))
|
||||
{
|
||||
this.mainTabStrip.ShowTabHeader = true;
|
||||
PageContext.RegisterStartupScript("parent.addExampleTab('3', 'HSSE/HiddenInspection/HiddenRectificationList.aspx', '安全巡检', null, true);");
|
||||
}
|
||||
|
||||
if (this.CurrUser.Password == Const.MD5pwd)
|
||||
{
|
||||
Alert.ShowInTop("当前密码不安全,请尽快更改!", MessageBoxIcon.Warning);
|
||||
|
|
|
@ -0,0 +1,69 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model.HSSE
|
||||
{
|
||||
public class Information_AccidentCauseReport
|
||||
{
|
||||
|
||||
|
||||
|
||||
public string AccidentCauseReportCode{get;set;}
|
||||
|
||||
public string AccidentCauseReportId{get;set;}
|
||||
|
||||
public string AuditPerson{get;set;}
|
||||
|
||||
public System.Nullable<int> AverageManHours{get;set;}
|
||||
|
||||
public System.Nullable<decimal> AverageTotalHours{get;set;}
|
||||
|
||||
public System.Nullable<int> DeathAccident{get;set;}
|
||||
|
||||
public System.Nullable<int> DeathToll{get;set;}
|
||||
|
||||
public System.Nullable<int> DirectLoss{get;set;}
|
||||
|
||||
public string FillCompanyPersonCharge{get;set;}
|
||||
|
||||
public System.Nullable<System.DateTime> FillingDate{get;set;}
|
||||
|
||||
public System.Nullable<int> IndirectLosses{get;set;}
|
||||
|
||||
public System.Nullable<int> InjuredAccident{get;set;}
|
||||
|
||||
public System.Nullable<int> InjuredToll{get;set;}
|
||||
|
||||
public System.Nullable<int> KnockOffTotal{get;set;}
|
||||
|
||||
public System.Nullable<int> LastMonthLossHoursTotal{get;set;}
|
||||
|
||||
public System.Nullable<int> MinorWoundAccident{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> MinorWoundToll{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> Month{get;set;}
|
||||
|
||||
|
||||
public string TabPeople{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> TotalLoss{get;set;}
|
||||
|
||||
public System.Nullable<int> TotalLossMan{get;set;}
|
||||
|
||||
public System.Nullable<int> TotalLossTime{get;set;}
|
||||
|
||||
public string UnitId{get;set;}
|
||||
|
||||
public System.Nullable<int> Year{get;set;}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model.HSSE
|
||||
{
|
||||
public class Information_AccidentCauseReportItem
|
||||
{
|
||||
|
||||
|
||||
public string AccidentCauseReportId { get; set; }
|
||||
|
||||
public string AccidentCauseReportItemId { get; set; }
|
||||
|
||||
public string AccidentType { get; set; }
|
||||
|
||||
public System.Nullable<int> Death1 { get; set; }
|
||||
|
||||
public System.Nullable<int> Death10 { get; set; }
|
||||
|
||||
public System.Nullable<int> Death11 { get; set; }
|
||||
|
||||
public System.Nullable<int> Death2 { get; set; }
|
||||
|
||||
public System.Nullable<int> Death3 { get; set; }
|
||||
|
||||
public System.Nullable<int> Death4 { get; set; }
|
||||
|
||||
public System.Nullable<int> Death5 { get; set; }
|
||||
|
||||
public System.Nullable<int> Death6 { get; set; }
|
||||
|
||||
public System.Nullable<int> Death7 { get; set; }
|
||||
|
||||
public System.Nullable<int> Death8 { get; set; }
|
||||
|
||||
public System.Nullable<int> Death9 { get; set; }
|
||||
|
||||
public System.Nullable<int> Injuries1 { get; set; }
|
||||
|
||||
public System.Nullable<int> Injuries10 { get; set; }
|
||||
|
||||
public System.Nullable<int> Injuries11 { get; set; }
|
||||
|
||||
public System.Nullable<int> Injuries2 { get; set; }
|
||||
|
||||
public System.Nullable<int> Injuries3 { get; set; }
|
||||
|
||||
public System.Nullable<int> Injuries4 { get; set; }
|
||||
|
||||
|
||||
public System.Nullable<int> Injuries5 { get; set; }
|
||||
|
||||
public System.Nullable<int> Injuries6 { get; set; }
|
||||
|
||||
|
||||
public System.Nullable<int> Injuries7 { get; set; }
|
||||
|
||||
|
||||
public System.Nullable<int> Injuries8 { get; set; }
|
||||
|
||||
|
||||
public System.Nullable<int> Injuries9 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries1 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries10 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries11 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries2 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries3 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries4 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries5 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries6 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries7 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries8 { get; set; }
|
||||
|
||||
public System.Nullable<int> MinorInjuries9 { get; set; }
|
||||
|
||||
public System.Nullable<int> TotalDeath { get; set; }
|
||||
|
||||
public System.Nullable<int> TotalInjuries { get; set; }
|
||||
|
||||
public System.Nullable<int> TotalMinorInjuries { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model.HSSE
|
||||
{
|
||||
public class Information_DrillConductedQuarterlyReport
|
||||
{
|
||||
|
||||
|
||||
public string CompileMan { get; set; }
|
||||
|
||||
public string DrillConductedQuarterlyReportId { get; set; }
|
||||
|
||||
public System.Nullable<int> Quarter { get; set; }
|
||||
|
||||
public System.Nullable<System.DateTime> ReportDate { get; set; }
|
||||
|
||||
public string UnitId { get; set; }
|
||||
|
||||
public System.Nullable<int> YearId { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model.HSSE
|
||||
{
|
||||
public class Information_DrillConductedQuarterlyReportItem
|
||||
{
|
||||
|
||||
|
||||
public System.Nullable<int> BasicConductCount{get;set;}
|
||||
|
||||
public System.Nullable<decimal> BasicInvestment{get;set;}
|
||||
|
||||
public System.Nullable<int> BasicPeopleCount{get;set;}
|
||||
|
||||
public System.Nullable<int> CPDesktop{get;set;}
|
||||
|
||||
public System.Nullable<int> CPScene{get;set;}
|
||||
|
||||
public System.Nullable<int> ComprehensivePractice{get;set;}
|
||||
|
||||
public string DrillConductedQuarterlyReportId{get;set;}
|
||||
|
||||
public string DrillConductedQuarterlyReportItemId{get;set;}
|
||||
|
||||
public System.Nullable<int> HQConductCount{get;set;}
|
||||
|
||||
public System.Nullable<decimal> HQInvestment{get;set;}
|
||||
|
||||
public System.Nullable<int> HQPeopleCount{get;set;}
|
||||
|
||||
public string IndustryType{get;set;}
|
||||
|
||||
public System.Nullable<int> SDDesktop{get;set;}
|
||||
|
||||
public System.Nullable<int> SDScene{get;set;}
|
||||
|
||||
public System.Nullable<int> SortIndex{get;set;}
|
||||
|
||||
public System.Nullable<int> SpecialDrill{get;set;}
|
||||
|
||||
public System.Nullable<int> TotalConductCount{get;set;}
|
||||
|
||||
public System.Nullable<decimal> TotalInvestment{get;set;}
|
||||
|
||||
public System.Nullable<int> TotalPeopleCount{get;set;}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model.HSSE
|
||||
{
|
||||
public class Information_DrillPlanHalfYearReport
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
public System.Nullable<System.DateTime> CompileDate{get;set;}
|
||||
|
||||
|
||||
public string CompileMan{get;set;}
|
||||
|
||||
public string DrillPlanHalfYearReportId{get;set;}
|
||||
|
||||
public System.Nullable<int> HalfYearId{get;set;}
|
||||
|
||||
public string Telephone{get;set;}
|
||||
|
||||
public string UnitId{get;set;}
|
||||
|
||||
public System.Nullable<int> YearId{get;set;}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model.HSSE
|
||||
{
|
||||
public class Information_DrillPlanHalfYearReportItem
|
||||
{
|
||||
|
||||
|
||||
public string AccidentScene{get;set;}
|
||||
|
||||
public string DrillPlanDate{get;set;}
|
||||
|
||||
public string DrillPlanHalfYearReportId{get;set;}
|
||||
|
||||
public string DrillPlanHalfYearReportItemId{get;set;}
|
||||
|
||||
public string DrillPlanName{get;set;}
|
||||
|
||||
public string ExerciseWay{get;set;}
|
||||
|
||||
public string OrganizationUnit{get;set;}
|
||||
|
||||
public System.Nullable<int> SortIndex{get;set;}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model.HSSE
|
||||
{
|
||||
public class Information_MillionsMonthlyReport
|
||||
{
|
||||
|
||||
|
||||
public System.Nullable<decimal> AccidentMortality { get; set; }
|
||||
|
||||
public System.Nullable<decimal> DeathAccidentFrequency { get; set; }
|
||||
|
||||
public string DutyPerson { get; set; }
|
||||
|
||||
|
||||
public System.Nullable<System.DateTime> FillingDate{ get; set; }
|
||||
|
||||
|
||||
public string FillingMan{ get; set; }
|
||||
|
||||
|
||||
public System.Nullable<decimal> LostTimeInjuryRate{ get; set; }
|
||||
|
||||
|
||||
public System.Nullable<decimal> LostTimeRate{ get; set; }
|
||||
|
||||
|
||||
public string MillionsMonthlyReportId{ get; set; }
|
||||
|
||||
|
||||
public System.Nullable<int> Month{ get; set; }
|
||||
|
||||
|
||||
public System.Nullable<decimal> RecordableIncidentRate{ get; set; }
|
||||
|
||||
|
||||
public string UnitId{ get; set; }
|
||||
|
||||
|
||||
public System.Nullable<int> Year{ get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,112 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model.HSSE
|
||||
{
|
||||
public class Information_MillionsMonthlyReportItem
|
||||
{
|
||||
|
||||
|
||||
|
||||
public string Affiliation{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> AttemptedEventNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> ContractorNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> EquipmentNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> ExplosionNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> FireNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> FirstAidDressingsNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> LossDayNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> MedicalTreatmentLossHour{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> MedicalTreatmentPersonNum{get;set;}
|
||||
|
||||
|
||||
public string MillionsMonthlyReportId{get;set;}
|
||||
|
||||
|
||||
public string MillionsMonthlyReportItemId{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> MinorAccidentLossHour{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> MinorAccidentNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> MinorAccidentPersonNum{get;set;}
|
||||
|
||||
|
||||
public string Name{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> OtherAccidentLossHour{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> OtherAccidentNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> OtherAccidentPersonNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> OtherNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> PostPersonNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> QualityNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> RestrictedWorkLossHour{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> RestrictedWorkPersonNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> SeriousInjuriesLossHour{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> SeriousInjuriesNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> SeriousInjuriesPersonNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> SnapPersonNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> SortIndex{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> SumPersonNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<decimal> TotalWorkNum{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> TrafficNum{get;set;}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,208 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model.HSSE
|
||||
{
|
||||
public class Information_SafetyQuarterlyReport
|
||||
{
|
||||
|
||||
|
||||
public System.Nullable<decimal> AccidentFrequency{get;set;}
|
||||
|
||||
public string AccidentFrequencyRemark{get;set;}
|
||||
|
||||
public System.Nullable<decimal> BillionsOutputMortality{get;set;}
|
||||
|
||||
public string BillionsOutputMortalityRemark{get;set;}
|
||||
|
||||
public System.Nullable<int> ChemicalAreaProjectCount{get;set;}
|
||||
|
||||
public string ChemicalAreaProjectCountRemark{get;set;}
|
||||
|
||||
public string CompileMan{get;set;}
|
||||
|
||||
public System.Nullable<decimal> ConstructionRevenue{get;set;}
|
||||
|
||||
public string ConstructionRevenueRemark{get;set;}
|
||||
|
||||
public System.Nullable<int> CorporateDirectorEdu{get;set;}
|
||||
|
||||
public string CorporateDirectorEduRemark{get;set;}
|
||||
|
||||
public System.Nullable<decimal> EducationTrainIn{get;set;}
|
||||
|
||||
public string EducationTrainInRemark{get;set;}
|
||||
|
||||
public System.Nullable<int> EquipmentAccident{get;set;}
|
||||
|
||||
public string EquipmentAccidentRemark{get;set;}
|
||||
|
||||
public System.Nullable<System.DateTime> FillingDate{get;set;}
|
||||
|
||||
public System.Nullable<int> FireAccident{get;set;}
|
||||
|
||||
public string FireAccidentRemark{get;set;}
|
||||
|
||||
public System.Nullable<int> FullTimeEdu{get;set;}
|
||||
|
||||
public string FullTimeEduRemark{get;set;}
|
||||
|
||||
public System.Nullable<int> FullTimeMan{get;set;}
|
||||
|
||||
public string FullTimeManAttachUrl{get;set;}
|
||||
|
||||
public System.Collections.Generic.List<byte[]> FullTimeManAttachUrlFileContext{get;set;}
|
||||
|
||||
public string FullTimeManRemark{get;set;}
|
||||
|
||||
public System.Nullable<int> HarmfulMediumCoverCount{get;set;}
|
||||
|
||||
public string HarmfulMediumCoverCountRemark{get;set;}
|
||||
|
||||
public System.Nullable<decimal> HarmfulMediumCoverRate{get;set;}
|
||||
|
||||
public string HarmfulMediumCoverRateRemark{get;set;}
|
||||
|
||||
public System.Nullable<int> KeyEquipmentReportCount{get;set;}
|
||||
|
||||
public string KeyEquipmentReportCountRemark{get;set;}
|
||||
|
||||
public System.Nullable<int> KeyEquipmentTotal{get;set;}
|
||||
|
||||
|
||||
public string KeyEquipmentTotalRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<decimal> LaboAndHealthIn{get;set;}
|
||||
|
||||
|
||||
public string LaborAndHealthInRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<decimal> MainBusinessIncome{get;set;}
|
||||
|
||||
|
||||
public string MainBusinessIncomeRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> MajorEquipAccident{get;set;}
|
||||
|
||||
|
||||
public string MajorEquipAccidentRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> MajorFireAccident{get;set;}
|
||||
|
||||
|
||||
public string MajorFireAccidentRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> PMMan{get;set;}
|
||||
|
||||
|
||||
public string PMManAttachUrl{get;set;}
|
||||
|
||||
|
||||
public System.Collections.Generic.List<byte[]> PMManAttachUrlFileContext{get;set;}
|
||||
|
||||
|
||||
public string PMManRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> PoisoningAndInjuries{get;set;}
|
||||
|
||||
|
||||
public string PoisoningAndInjuriesRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<decimal> ProductionInput{get;set;}
|
||||
|
||||
|
||||
public string ProductionInputRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> ProductionSafetyInTotal{get;set;}
|
||||
|
||||
|
||||
public string ProductionSafetyInTotalRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<decimal> ProjectCostRate{get;set;}
|
||||
|
||||
|
||||
public string ProjectCostRateRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> ProjectLeaderEdu{get;set;}
|
||||
|
||||
|
||||
public string ProjectLeaderEduRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<decimal> ProtectionInput{get;set;}
|
||||
|
||||
|
||||
public string ProtectionInputRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> Quarters{get;set;}
|
||||
|
||||
|
||||
public string Remarks{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<decimal> Revenue{get;set;}
|
||||
|
||||
|
||||
public string RevenueRemark{get;set;}
|
||||
|
||||
public string SafetyQuarterlyReportId{get;set;}
|
||||
|
||||
public System.Nullable<int> SeriousInjuryAccident{get;set;}
|
||||
|
||||
public string SeriousInjuryAccidentRemark{get;set;}
|
||||
|
||||
public System.Nullable<decimal> TechnologyProgressIn{get;set;}
|
||||
|
||||
public string TechnologyProgressInRemark{get;set;}
|
||||
|
||||
public System.Nullable<decimal> ThreeKidsEduRate{get;set;}
|
||||
|
||||
public string ThreeKidsEduRateRemark{get;set;}
|
||||
|
||||
public System.Nullable<int> TotalInWorkHours{get;set;}
|
||||
|
||||
public string TotalInWorkHoursRemark{get;set;}
|
||||
|
||||
public System.Nullable<int> TotalOutWorkHours{get;set;}
|
||||
|
||||
public string TotalOutWorkHoursRemark{get;set;}
|
||||
|
||||
public string UnitId{get;set;}
|
||||
|
||||
public System.Nullable<decimal> UnitTimeIncome{get;set;}
|
||||
|
||||
public string UnitTimeIncomeRemark{get;set;}
|
||||
|
||||
public System.Nullable<decimal> UplinReportRate{get;set;}
|
||||
|
||||
public string UplinReportRateRemark{get;set;}
|
||||
|
||||
public System.Nullable<decimal> WorkHoursAccuracy{get;set;}
|
||||
|
||||
public string WorkHoursAccuracyRemark{get;set;}
|
||||
|
||||
public System.Nullable<decimal> WorkHoursLossRate{get;set;}
|
||||
|
||||
public string WorkHoursLossRateRemark{get;set;}
|
||||
|
||||
|
||||
public System.Nullable<int> YearId{get;set;}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1127,6 +1127,9 @@ namespace Model
|
|||
partial void InsertInformation_SafetyQuarterlyReport(Information_SafetyQuarterlyReport instance);
|
||||
partial void UpdateInformation_SafetyQuarterlyReport(Information_SafetyQuarterlyReport instance);
|
||||
partial void DeleteInformation_SafetyQuarterlyReport(Information_SafetyQuarterlyReport instance);
|
||||
partial void InsertInformation_UrgeReport(Information_UrgeReport instance);
|
||||
partial void UpdateInformation_UrgeReport(Information_UrgeReport instance);
|
||||
partial void DeleteInformation_UrgeReport(Information_UrgeReport instance);
|
||||
partial void InsertInformationProject_AccidentCauseReport(InformationProject_AccidentCauseReport instance);
|
||||
partial void UpdateInformationProject_AccidentCauseReport(InformationProject_AccidentCauseReport instance);
|
||||
partial void DeleteInformationProject_AccidentCauseReport(InformationProject_AccidentCauseReport instance);
|
||||
|
@ -5251,6 +5254,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Information_UrgeReport> Information_UrgeReport
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<Information_UrgeReport>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<InformationProject_AccidentCauseReport> InformationProject_AccidentCauseReport
|
||||
{
|
||||
get
|
||||
|
@ -36108,6 +36119,8 @@ namespace Model
|
|||
|
||||
private EntitySet<Information_SafetyQuarterlyReport> _Information_SafetyQuarterlyReport;
|
||||
|
||||
private EntitySet<Information_UrgeReport> _Information_UrgeReport;
|
||||
|
||||
private EntitySet<InformationProject_AccidentCauseReport> _InformationProject_AccidentCauseReport;
|
||||
|
||||
private EntitySet<InformationProject_DrillConductedQuarterlyReport> _InformationProject_DrillConductedQuarterlyReport;
|
||||
|
@ -36406,6 +36419,7 @@ namespace Model
|
|||
this._Information_DrillPlanHalfYearReport = new EntitySet<Information_DrillPlanHalfYearReport>(new Action<Information_DrillPlanHalfYearReport>(this.attach_Information_DrillPlanHalfYearReport), new Action<Information_DrillPlanHalfYearReport>(this.detach_Information_DrillPlanHalfYearReport));
|
||||
this._Information_MillionsMonthlyReport = new EntitySet<Information_MillionsMonthlyReport>(new Action<Information_MillionsMonthlyReport>(this.attach_Information_MillionsMonthlyReport), new Action<Information_MillionsMonthlyReport>(this.detach_Information_MillionsMonthlyReport));
|
||||
this._Information_SafetyQuarterlyReport = new EntitySet<Information_SafetyQuarterlyReport>(new Action<Information_SafetyQuarterlyReport>(this.attach_Information_SafetyQuarterlyReport), new Action<Information_SafetyQuarterlyReport>(this.detach_Information_SafetyQuarterlyReport));
|
||||
this._Information_UrgeReport = new EntitySet<Information_UrgeReport>(new Action<Information_UrgeReport>(this.attach_Information_UrgeReport), new Action<Information_UrgeReport>(this.detach_Information_UrgeReport));
|
||||
this._InformationProject_AccidentCauseReport = new EntitySet<InformationProject_AccidentCauseReport>(new Action<InformationProject_AccidentCauseReport>(this.attach_InformationProject_AccidentCauseReport), new Action<InformationProject_AccidentCauseReport>(this.detach_InformationProject_AccidentCauseReport));
|
||||
this._InformationProject_DrillConductedQuarterlyReport = new EntitySet<InformationProject_DrillConductedQuarterlyReport>(new Action<InformationProject_DrillConductedQuarterlyReport>(this.attach_InformationProject_DrillConductedQuarterlyReport), new Action<InformationProject_DrillConductedQuarterlyReport>(this.detach_InformationProject_DrillConductedQuarterlyReport));
|
||||
this._InformationProject_DrillPlanHalfYearReport = new EntitySet<InformationProject_DrillPlanHalfYearReport>(new Action<InformationProject_DrillPlanHalfYearReport>(this.attach_InformationProject_DrillPlanHalfYearReport), new Action<InformationProject_DrillPlanHalfYearReport>(this.detach_InformationProject_DrillPlanHalfYearReport));
|
||||
|
@ -38179,6 +38193,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Information_UrgeReport_Base_Unit", Storage="_Information_UrgeReport", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Information_UrgeReport> Information_UrgeReport
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Information_UrgeReport;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Information_UrgeReport.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_InformationProject_AccidentCauseReport_Base_Unit", Storage="_InformationProject_AccidentCauseReport", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<InformationProject_AccidentCauseReport> InformationProject_AccidentCauseReport
|
||||
{
|
||||
|
@ -40265,6 +40292,18 @@ namespace Model
|
|||
entity.Base_Unit = null;
|
||||
}
|
||||
|
||||
private void attach_Information_UrgeReport(Information_UrgeReport entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Unit = this;
|
||||
}
|
||||
|
||||
private void detach_Information_UrgeReport(Information_UrgeReport entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Unit = null;
|
||||
}
|
||||
|
||||
private void attach_InformationProject_AccidentCauseReport(InformationProject_AccidentCauseReport entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
@ -180971,6 +181010,325 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Information_UrgeReport")]
|
||||
public partial class Information_UrgeReport : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _UrgeReportId;
|
||||
|
||||
private string _UnitId;
|
||||
|
||||
private string _ReprotType;
|
||||
|
||||
private string _YearId;
|
||||
|
||||
private string _MonthId;
|
||||
|
||||
private string _QuarterId;
|
||||
|
||||
private string _HalfYearId;
|
||||
|
||||
private System.Nullable<System.DateTime> _UrgeDate;
|
||||
|
||||
private System.Nullable<bool> _IsComplete;
|
||||
|
||||
private System.Nullable<bool> _IsCancel;
|
||||
|
||||
private EntityRef<Base_Unit> _Base_Unit;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnUrgeReportIdChanging(string value);
|
||||
partial void OnUrgeReportIdChanged();
|
||||
partial void OnUnitIdChanging(string value);
|
||||
partial void OnUnitIdChanged();
|
||||
partial void OnReprotTypeChanging(string value);
|
||||
partial void OnReprotTypeChanged();
|
||||
partial void OnYearIdChanging(string value);
|
||||
partial void OnYearIdChanged();
|
||||
partial void OnMonthIdChanging(string value);
|
||||
partial void OnMonthIdChanged();
|
||||
partial void OnQuarterIdChanging(string value);
|
||||
partial void OnQuarterIdChanged();
|
||||
partial void OnHalfYearIdChanging(string value);
|
||||
partial void OnHalfYearIdChanged();
|
||||
partial void OnUrgeDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnUrgeDateChanged();
|
||||
partial void OnIsCompleteChanging(System.Nullable<bool> value);
|
||||
partial void OnIsCompleteChanged();
|
||||
partial void OnIsCancelChanging(System.Nullable<bool> value);
|
||||
partial void OnIsCancelChanged();
|
||||
#endregion
|
||||
|
||||
public Information_UrgeReport()
|
||||
{
|
||||
this._Base_Unit = default(EntityRef<Base_Unit>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UrgeReportId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string UrgeReportId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UrgeReportId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UrgeReportId != value))
|
||||
{
|
||||
this.OnUrgeReportIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UrgeReportId = value;
|
||||
this.SendPropertyChanged("UrgeReportId");
|
||||
this.OnUrgeReportIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
|
||||
public string UnitId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UnitId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UnitId != value))
|
||||
{
|
||||
if (this._Base_Unit.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnUnitIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UnitId = value;
|
||||
this.SendPropertyChanged("UnitId");
|
||||
this.OnUnitIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReprotType", DbType="NVarChar(50)")]
|
||||
public string ReprotType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ReprotType;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ReprotType != value))
|
||||
{
|
||||
this.OnReprotTypeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ReprotType = value;
|
||||
this.SendPropertyChanged("ReprotType");
|
||||
this.OnReprotTypeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YearId", DbType="NVarChar(50)")]
|
||||
public string YearId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._YearId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._YearId != value))
|
||||
{
|
||||
this.OnYearIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._YearId = value;
|
||||
this.SendPropertyChanged("YearId");
|
||||
this.OnYearIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthId", DbType="NVarChar(50)")]
|
||||
public string MonthId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._MonthId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._MonthId != value))
|
||||
{
|
||||
this.OnMonthIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._MonthId = value;
|
||||
this.SendPropertyChanged("MonthId");
|
||||
this.OnMonthIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QuarterId", DbType="NVarChar(50)")]
|
||||
public string QuarterId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._QuarterId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._QuarterId != value))
|
||||
{
|
||||
this.OnQuarterIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._QuarterId = value;
|
||||
this.SendPropertyChanged("QuarterId");
|
||||
this.OnQuarterIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HalfYearId", DbType="NVarChar(50)")]
|
||||
public string HalfYearId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HalfYearId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HalfYearId != value))
|
||||
{
|
||||
this.OnHalfYearIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HalfYearId = value;
|
||||
this.SendPropertyChanged("HalfYearId");
|
||||
this.OnHalfYearIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UrgeDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> UrgeDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UrgeDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UrgeDate != value))
|
||||
{
|
||||
this.OnUrgeDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UrgeDate = value;
|
||||
this.SendPropertyChanged("UrgeDate");
|
||||
this.OnUrgeDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsComplete", DbType="Bit")]
|
||||
public System.Nullable<bool> IsComplete
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._IsComplete;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._IsComplete != value))
|
||||
{
|
||||
this.OnIsCompleteChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._IsComplete = value;
|
||||
this.SendPropertyChanged("IsComplete");
|
||||
this.OnIsCompleteChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCancel", DbType="Bit")]
|
||||
public System.Nullable<bool> IsCancel
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._IsCancel;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._IsCancel != value))
|
||||
{
|
||||
this.OnIsCancelChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._IsCancel = value;
|
||||
this.SendPropertyChanged("IsCancel");
|
||||
this.OnIsCancelChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Information_UrgeReport_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)]
|
||||
public Base_Unit Base_Unit
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Base_Unit.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Base_Unit previousValue = this._Base_Unit.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Base_Unit.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Base_Unit.Entity = null;
|
||||
previousValue.Information_UrgeReport.Remove(this);
|
||||
}
|
||||
this._Base_Unit.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Information_UrgeReport.Add(this);
|
||||
this._UnitId = value.UnitId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._UnitId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Unit");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void SendPropertyChanging()
|
||||
{
|
||||
if ((this.PropertyChanging != null))
|
||||
{
|
||||
this.PropertyChanging(this, emptyChangingEventArgs);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SendPropertyChanged(String propertyName)
|
||||
{
|
||||
if ((this.PropertyChanged != null))
|
||||
{
|
||||
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.InformationProject_AccidentCauseReport")]
|
||||
public partial class InformationProject_AccidentCauseReport : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
|
|
@ -181,6 +181,15 @@
|
|||
<Compile Include="HJGL\SpRpNDTWeekReport.cs" />
|
||||
<Compile Include="HJGL\SpWeldingDailyItem.cs" />
|
||||
<Compile Include="HJGL\WelderEntrance.cs" />
|
||||
<Compile Include="HSSE\Information_AccidentCauseReport.cs" />
|
||||
<Compile Include="HSSE\Information_AccidentCauseReportItem.cs" />
|
||||
<Compile Include="HSSE\Information_DrillConductedQuarterlyReport.cs" />
|
||||
<Compile Include="HSSE\Information_DrillConductedQuarterlyReportItem.cs" />
|
||||
<Compile Include="HSSE\Information_DrillPlanHalfYearReport.cs" />
|
||||
<Compile Include="HSSE\Information_DrillPlanHalfYearReportItem.cs" />
|
||||
<Compile Include="HSSE\Information_MillionsMonthlyReport.cs" />
|
||||
<Compile Include="HSSE\Information_MillionsMonthlyReportItem.cs" />
|
||||
<Compile Include="HSSE\Information_SafetyQuarterlyReport.cs" />
|
||||
<Compile Include="HSSE\MonthReportCHSEDay.cs" />
|
||||
<Compile Include="HSSE\PageDataPersonInOutItem.cs" />
|
||||
<Compile Include="HSSE\SpResourceCollection.cs" />
|
||||
|
|
|
@ -117,19 +117,19 @@ namespace WebAPI.Controllers
|
|||
public Model.ResponeData SaveTestPlan([FromBody] Model.TestPlanItem testPlan)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
//try
|
||||
//{
|
||||
responeData.message = APITestPlanService.SaveTestPlan(testPlan);
|
||||
if (!string.IsNullOrEmpty(responeData.message))
|
||||
{
|
||||
responeData.code = 2;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// responeData.code = 0;
|
||||
// responeData.message = ex.Message;
|
||||
//}
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
|
|
Loading…
Reference in New Issue