namespace BLL
{
using System;
using System.Collections.Generic;
using System.Data;
using Newtonsoft.Json;
using System.Linq;
using RestSharp;
using System.IO;
public static class CNCECHSSEWebService
{
public static string UploadFile(string file)
{
string result = string.Empty;
try
{
string CNCECPath = SysConstSetService.CNCECPath;
string baseurl = CNCECPath + "/api/FileUpload/Post";
var client = new RestClient(baseurl);
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "multipart/form-data");//注意头部必须是form-data
// client.UserAgent = "apifox/1.0.0 (https://www.apifox.cn)";
//request.AddFile("file", @"E:\微信\WeChat\WeChat Files\wxid_9140361403112\FileStorage\File\2022-08\焊接管理尾项20220809.docx");
var filelist = file.Split(',');
foreach (var item in filelist)
{
if (File.Exists(item))
{
request.AddFile("file", item);
}
}
request.AddParameter("typeName", "SafetyQuarterlyReport");
var tokenItem = BLL.ServerService.GetToken();
request.AddHeader("token", tokenItem.Token);
IRestResponse response = client.Execute(request);
var contentPost = response.Content.Replace('"', ' ');
result = contentPost;
}
catch (System.Exception)
{
result = "";
}
return result;
}
#region 上报数据到集团
#region 百万工时上报
///
/// 百万工时上报
///
public static string UpMillionsMonthlyReport(string millionsMonthlyReportId, Model.Person_Persons CurrUser)
{
string code = "0";
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
try
{
var upReport = from x in db.Information_MillionsMonthlyReport
where x.MillionsMonthlyReportId == millionsMonthlyReportId
select new 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 Information_MillionsMonthlyReportItem
{
MillionsMonthlyReportItemId = x.MillionsMonthlyReportItemId,
MillionsMonthlyReportId = x.MillionsMonthlyReportId,
SortIndex = x.SortIndex,
Affiliation = x.Affiliation,
Name = x.Name,
PostPersonNum = x.PostPersonNum,
SnapPersonNum = x.SnapPersonNum,
ContractorNum = x.ContractorNum,
SumPersonNum = x.SumPersonNum,
TotalWorkNum = x.TotalWorkNum,
SeriousInjuriesNum = x.SeriousInjuriesNum,
SeriousInjuriesPersonNum = x.SeriousInjuriesPersonNum,
SeriousInjuriesLossHour = x.SeriousInjuriesLossHour,
MinorAccidentNum = x.MinorAccidentNum,
MinorAccidentPersonNum = x.MinorAccidentPersonNum,
MinorAccidentLossHour = x.MinorAccidentLossHour,
OtherAccidentNum = x.OtherAccidentNum,
OtherAccidentPersonNum = x.OtherAccidentPersonNum,
OtherAccidentLossHour = x.OtherAccidentLossHour,
RestrictedWorkPersonNum = x.RestrictedWorkPersonNum,
RestrictedWorkLossHour = x.RestrictedWorkLossHour,
MedicalTreatmentPersonNum = x.MedicalTreatmentPersonNum,
MedicalTreatmentLossHour = x.MedicalTreatmentLossHour,
FireNum = x.FireNum,
ExplosionNum = x.ExplosionNum,
TrafficNum = x.TrafficNum,
EquipmentNum = x.EquipmentNum,
QualityNum = x.QualityNum,
OtherNum = x.OtherNum,
FirstAidDressingsNum = x.FirstAidDressingsNum,
AttemptedEventNum = x.AttemptedEventNum,
LossDayNum = x.LossDayNum,
};
//老接口Serveice
//var getR = hsseC.DataInsertInformation_MillionsMonthlyReportTable(upReport.ToList(), upReportItem.ToList());
//新接口Api
code = UpApiMillionsMonthlyReport(upReport, upReportItem).ToString();
if (code == "1")
{
foreach (var item in upReport.Select(p => p.MillionsMonthlyReportId))
{
var report = db.Information_MillionsMonthlyReport.FirstOrDefault(e => e.MillionsMonthlyReportId == item);
if (report != null)
{
report.UpState = BLL.Const.UpState_3;
db.SubmitChanges();
////更新 当前人要处理的意见
ProjectDataFlowSetService.CloseFlowOperate(Const.MillionsMonthlyReportMenuId, item, string.Empty);
// //更新催报信息
UrgeReportService.SetComplete(report.UnitId, Const.ReportType_1, report.Year.ToString(), report.Month.ToString());
}
}
LogService.AddSys_Log(CurrUser, "【百万工时安全统计月报表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
else
{
LogService.AddSys_Log(CurrUser, "【百万工时安全统计月报表】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog("【百万工时安全统计月报表】上传到服务器", ex);
LogService.AddSys_Log(CurrUser, "【百万工时安全统计月报表】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
return code;
}
}
///
/// UpApiMillionsMonthlyReportApi调用
///
/// 主表
/// 明细表
///
private static int UpApiMillionsMonthlyReport(IQueryable upReport, IQueryable upReportItem)
{
string baseurl = "/api/InformationData/SaveMillionsMonthlyReport";
//合并
//var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem });
var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
var resultJsonReportItem = JsonConvert.SerializeObject(new { MillionsMonthlyReportItem = upReportItem });
resultJsonReport = "{\"InformationDataItems\":[" + (resultJsonReport + resultJsonReportItem).Replace("}{", ",") + "]}";
var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
return responeData.code;
}
#endregion
#region 职工伤亡事故原因分析报表上报
///
/// 职工伤亡事故原因分析报表上报
///
public static string UpAccidentCauseReport(string accidentCauseReportId, Model.Person_Persons CurrUser)
{
string code = "0";
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
try
{
var upReport = from x in db.Information_AccidentCauseReport
where x.AccidentCauseReportId == accidentCauseReportId
select new 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 Information_AccidentCauseReportItem
{
AccidentCauseReportItemId = x.AccidentCauseReportItemId,
AccidentCauseReportId = x.AccidentCauseReportId,
AccidentType = x.AccidentType,
TotalDeath = x.TotalDeath,
TotalInjuries = x.TotalInjuries,
TotalMinorInjuries = x.TotalMinorInjuries,
Death1 = x.Death1,
Injuries1 = x.Injuries1,
MinorInjuries1 = x.MinorInjuries1,
Death2 = x.Death2,
Injuries2 = x.Injuries2,
MinorInjuries2 = x.MinorInjuries2,
Death3 = x.Death3,
Injuries3 = x.Injuries3,
MinorInjuries3 = x.MinorInjuries3,
Death4 = x.Death4,
Injuries4 = x.Injuries4,
MinorInjuries4 = x.MinorInjuries4,
Death5 = x.Death5,
Injuries5 = x.Injuries5,
MinorInjuries5 = x.MinorInjuries5,
Death6 = x.Death6,
Injuries6 = x.Injuries6,
MinorInjuries6 = x.MinorInjuries6,
Death7 = x.Death7,
Injuries7 = x.Injuries7,
MinorInjuries7 = x.MinorInjuries7,
Death8 = x.Death8,
Injuries8 = x.Injuries8,
MinorInjuries8 = x.MinorInjuries8,
Death9 = x.Death9,
Injuries9 = x.Injuries9,
MinorInjuries9 = x.MinorInjuries9,
Death10 = x.Death10,
Injuries10 = x.Injuries10,
MinorInjuries10 = x.MinorInjuries10,
Death11 = x.Death11,
Injuries11 = x.Injuries11,
MinorInjuries11 = x.MinorInjuries11,
};
//老接口Serveice
// var getR = hsseC.DataInsertInformation_AccidentCauseReportTable(upReport.ToList(), upReportItem.ToList());
//新接口Api
code = UpApiAccidentCauseReport(upReport, upReportItem).ToString();
if (code == "1")
{
foreach (var item in upReport.Select(p => p.AccidentCauseReportId))
{
var report = db.Information_AccidentCauseReport.FirstOrDefault(e => e.AccidentCauseReportId == item);
if (report != null)
{
report.UpState = BLL.Const.UpState_3;
db.SubmitChanges();
////更新 当前人要处理的意见
ProjectDataFlowSetService.CloseFlowOperate(Const.MillionsMonthlyReportMenuId, item, string.Empty);
////更新催报信息
UrgeReportService.SetComplete(report.UnitId, Const.ReportType_2, report.Year.ToString(), report.Month.ToString());
}
}
LogService.AddSys_Log(CurrUser, "【职工伤亡事故原因分析报表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
else
{
LogService.AddSys_Log(CurrUser, "【职工伤亡事故原因分析报表】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog("【职工伤亡事故原因分析报表】上传到服务器", ex);
LogService.AddSys_Log(CurrUser, "【职工伤亡事故原因分析报表】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
return code;
}
}
///
/// AccidentCauseReportApi调用
///
/// 主表
/// 明细表
///
private static int UpApiAccidentCauseReport(IQueryable upReport, IQueryable upReportItem)
{
string baseurl = "/api/InformationData/SaveAccidentCauseReport";
//合并
//var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem });
var resultJson = JsonConvert.SerializeObject(upReport.FirstOrDefault());
var resultJson1 = JsonConvert.SerializeObject(new { AccidentCauseReportItem = upReportItem });
resultJson = "{\"InformationDataItems\":[" + (resultJson + resultJson1).Replace("}{", ",") + "]}";
var responeData = BLL.ServerService.PushCNCEC(resultJson, baseurl);
return responeData.code;
}
#endregion
#region 安全生产数据季报上报
///
/// 安全生产数据季报上报
///
public static string UpSafetyQuarterlyReport(string safetyQuarterlyReportId, Model.Person_Persons 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 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 = FileStructService.GetFileStructByAttachUrl(x.FullTimeManAttachUrl),
// PMManAttachUrlFileContext = FileStructService.GetFileStructByAttachUrl(x.PMManAttachUrl),
KeyEquipmentTotal = x.KeyEquipmentTotal,
KeyEquipmentTotalRemark = x.KeyEquipmentTotalRemark,
KeyEquipmentReportCount = x.KeyEquipmentReportCount,
KeyEquipmentReportCountRemark = x.KeyEquipmentReportCountRemark,
ChemicalAreaProjectCount = x.ChemicalAreaProjectCount,
ChemicalAreaProjectCountRemark = x.ChemicalAreaProjectCountRemark,
HarmfulMediumCoverCount = x.HarmfulMediumCoverCount,
HarmfulMediumCoverCountRemark = x.HarmfulMediumCoverCountRemark,
HarmfulMediumCoverRate = x.HarmfulMediumCoverRate,
HarmfulMediumCoverRateRemark = x.HarmfulMediumCoverRateRemark
};
//老接口Serveice
// var getR = hsseC.DataInsertInformation_SafetyQuarterlyReportTable(upReport.ToList());
//新接口Api
string FullTimeManAttachUrl = string.Empty;
string PMManAttachUrl = string.Empty;
string physicalpath = Funs.RootPath;
FullTimeManAttachUrl = physicalpath + upReport.FirstOrDefault().FullTimeManAttachUrl;
PMManAttachUrl = physicalpath + upReport.FirstOrDefault().PMManAttachUrl;
FullTimeManAttachUrl = UploadFile(FullTimeManAttachUrl);
PMManAttachUrl = UploadFile(PMManAttachUrl);
upReport = from x in upReport
select new 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 = FullTimeManAttachUrl,
PMMan = x.PMMan,
PMManRemark = x.PMManRemark,
PMManAttachUrl = 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,
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
};
code = UpApiSaveSafetyQuarterlyReport(upReport).ToString();
; LogService.AddSys_Log(CurrUser, "【安全生产数据季报上报】上传", code, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
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, "【安全生产数据季报上报】上传到服务器失败err;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
return code;
}
}
///
/// DrillConductedQuarterlyReportApi调用
///
/// 主表
/// 明细表
///
private static int UpApiSaveSafetyQuarterlyReport(IQueryable upReport)
{
string baseurl = "/api/InformationData/SaveSafetyQuarterlyReport";
var resultJson = JsonConvert.SerializeObject(new { InformationDataItems = upReport });
APICommonService.SaveSysHttpLog("api_In", baseurl, resultJson);
var responeData = BLL.ServerService.PushCNCEC(resultJson, baseurl);
return responeData.code;
}
#endregion
#region 应急演练开展情况季报表上报
///
/// 应急演练开展情况季报表上报
///
public static string UpDrillConductedQuarterlyReport(string drillConductedQuarterlyReportId, Model.Person_Persons CurrUser)
{
string code = "0";
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
try
{
var upReport = from x in db.Information_DrillConductedQuarterlyReport
where x.DrillConductedQuarterlyReportId == drillConductedQuarterlyReportId
select new 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 Information_DrillConductedQuarterlyReportItem
{
DrillConductedQuarterlyReportItemId = x.DrillConductedQuarterlyReportItemId,
DrillConductedQuarterlyReportId = x.DrillConductedQuarterlyReportId,
IndustryType = x.IndustryType,
TotalConductCount = x.TotalConductCount,
TotalPeopleCount = x.TotalPeopleCount,
TotalInvestment = x.TotalInvestment,
HQConductCount = x.HQConductCount,
HQPeopleCount = x.HQPeopleCount,
HQInvestment = x.HQInvestment,
BasicConductCount = x.BasicConductCount,
BasicPeopleCount = x.BasicPeopleCount,
BasicInvestment = x.BasicInvestment,
ComprehensivePractice = x.ComprehensivePractice,
CPScene = x.CPScene,
CPDesktop = x.CPDesktop,
SpecialDrill = x.SpecialDrill,
SDScene = x.SDScene,
SDDesktop = x.SDDesktop,
SortIndex = x.SortIndex,
};
//老接口Serveice
//var getR = hsseC.DataInsertInformation_DrillConductedQuarterlyReportTable(upReport.ToList(), upReportItem.ToList());
//新接口Api
code = UpApiSaveDrillConductedQuarterlyReport(upReport, upReportItem).ToString();
if (code == "1")
{
foreach (var item in upReport.Select(p => p.DrillConductedQuarterlyReportId))
{
var report = db.Information_DrillConductedQuarterlyReport.FirstOrDefault(e => e.DrillConductedQuarterlyReportId == item);
if (report != null)
{
report.UpState = BLL.Const.UpState_3;
db.SubmitChanges();
////更新 当前人要处理的意见
ProjectDataFlowSetService.CloseFlowOperate(Const.MillionsMonthlyReportMenuId, item, string.Empty);
////更新催报信息
UrgeReportService.SetComplete(report.UnitId, Const.ReportType_4, report.YearId.ToString(), report.Quarter.ToString());
}
}
LogService.AddSys_Log(CurrUser, "【应急演练开展情况季报表上报】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
else
{
LogService.AddSys_Log(CurrUser, "【应急演练开展情况季报表上报】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog("【应急演练开展情况季报表上报】上传到服务器", ex);
LogService.AddSys_Log(CurrUser, "【应急演练开展情况季报表上报】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
return code;
}
}
///
/// DrillConductedQuarterlyReportApi调用
///
/// 主表
/// 明细表
///
private static int UpApiSaveDrillConductedQuarterlyReport(IQueryable upReport, IQueryable upReportItem)
{
string baseurl = "/api/InformationData/SaveDrillConductedQuarterlyReport";
//合并
//var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem });
var resultJson = JsonConvert.SerializeObject(upReport.FirstOrDefault());
var resultJson1 = JsonConvert.SerializeObject(new { drillConductedQuarterlyReportItem = upReportItem });
resultJson = "{\"InformationDataItems\":[" + (resultJson + resultJson1).Replace("}{", ",") + "]}";
var responeData = BLL.ServerService.PushCNCEC(resultJson, baseurl);
return responeData.code;
}
#endregion
#region 应急演练工作计划半年报表
///
/// 应急演练工作计划半年报表
///
public static string UpDrillPlanHalfYearReport(string drillPlanHalfYearReportId, Model.Person_Persons CurrUser)
{
string code = "0";
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
try
{
var upReport = from x in db.Information_DrillPlanHalfYearReport
where x.DrillPlanHalfYearReportId == drillPlanHalfYearReportId
select new 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 Information_DrillPlanHalfYearReportItem
{
DrillPlanHalfYearReportItemId = x.DrillPlanHalfYearReportItemId,
DrillPlanHalfYearReportId = x.DrillPlanHalfYearReportId,
DrillPlanName = x.DrillPlanName,
OrganizationUnit = x.OrganizationUnit,
DrillPlanDate = x.DrillPlanDate,
AccidentScene = x.AccidentScene,
ExerciseWay = x.ExerciseWay,
SortIndex = x.SortIndex,
};
//老接口Serveice
// var getR = hsseC.DataInsertInformation_DrillPlanHalfYearReportTable(upReport.ToList(), upReportItem.ToList());
//新接口Api
code = UpApiDrillPlanHalfYearReport(upReport, upReportItem).ToString();
if (code == "1")
{
foreach (var item in upReport.Select(p => p.DrillPlanHalfYearReportId))
{
var report = db.Information_DrillPlanHalfYearReport.FirstOrDefault(e => e.DrillPlanHalfYearReportId == item);
if (report != null)
{
report.UpState = BLL.Const.UpState_3;
db.SubmitChanges();
////更新 当前人要处理的意见
ProjectDataFlowSetService.CloseFlowOperate(Const.DrillPlanHalfYearReportMenuId, item, string.Empty);
////更新催报信息
UrgeReportService.SetComplete(report.UnitId, Const.ReportType_5, report.YearId.ToString(), report.HalfYearId.ToString());
}
}
LogService.AddSys_Log(CurrUser, "【应急演练工作计划半年报表】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.DrillPlanHalfYearReportMenuId, BLL.Const.BtnUploadResources);
}
else
{
LogService.AddSys_Log(CurrUser, "【应急演练工作计划半年报表】上传到服务器失败;", null, BLL.Const.DrillPlanHalfYearReportMenuId, BLL.Const.BtnUploadResources);
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog("【应急演练工作计划半年报表】上传到服务器", ex);
LogService.AddSys_Log(CurrUser, "【应急演练工作计划半年报表】上传到服务器失败;", null, BLL.Const.DrillPlanHalfYearReportMenuId, BLL.Const.BtnUploadResources);
}
return code;
}
}
///
/// DrillPlanHalfYearReportApi调用
///
/// 主表
/// 明细表
///
private static int UpApiDrillPlanHalfYearReport(IQueryable upReport, IQueryable upReportItem)
{
string baseurl = "/api/InformationData/SaveDrillPlanHalfYearReport";
//合并
//var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem });
var resultJson = JsonConvert.SerializeObject(upReport.FirstOrDefault());
var resultJson1 = JsonConvert.SerializeObject(new { drillPlanHalfYearReportItem = upReportItem });
resultJson = "{\"InformationDataItems\":[" + (resultJson + resultJson1).Replace("}{", ",") + "]}";
var responeData = BLL.ServerService.PushCNCEC(resultJson, baseurl);
return responeData.code;
}
#endregion
#endregion
public partial class Information_MillionsMonthlyReport : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged
{
[System.NonSerializedAttribute()]
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable AccidentMortalityField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable DeathAccidentFrequencyField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string DutyPersonField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable FillingDateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string FillingManField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable LostTimeInjuryRateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable LostTimeRateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string MillionsMonthlyReportIdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MonthField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable RecordableIncidentRateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string UnitIdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable YearField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData
{
get
{
return this.extensionDataField;
}
set
{
this.extensionDataField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable AccidentMortality
{
get
{
return this.AccidentMortalityField;
}
set
{
if ((this.AccidentMortalityField.Equals(value) != true))
{
this.AccidentMortalityField = value;
this.RaisePropertyChanged("AccidentMortality");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable DeathAccidentFrequency
{
get
{
return this.DeathAccidentFrequencyField;
}
set
{
if ((this.DeathAccidentFrequencyField.Equals(value) != true))
{
this.DeathAccidentFrequencyField = value;
this.RaisePropertyChanged("DeathAccidentFrequency");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string DutyPerson
{
get
{
return this.DutyPersonField;
}
set
{
if ((object.ReferenceEquals(this.DutyPersonField, value) != true))
{
this.DutyPersonField = value;
this.RaisePropertyChanged("DutyPerson");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable FillingDate
{
get
{
return this.FillingDateField;
}
set
{
if ((this.FillingDateField.Equals(value) != true))
{
this.FillingDateField = value;
this.RaisePropertyChanged("FillingDate");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string FillingMan
{
get
{
return this.FillingManField;
}
set
{
if ((object.ReferenceEquals(this.FillingManField, value) != true))
{
this.FillingManField = value;
this.RaisePropertyChanged("FillingMan");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable LostTimeInjuryRate
{
get
{
return this.LostTimeInjuryRateField;
}
set
{
if ((this.LostTimeInjuryRateField.Equals(value) != true))
{
this.LostTimeInjuryRateField = value;
this.RaisePropertyChanged("LostTimeInjuryRate");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable LostTimeRate
{
get
{
return this.LostTimeRateField;
}
set
{
if ((this.LostTimeRateField.Equals(value) != true))
{
this.LostTimeRateField = value;
this.RaisePropertyChanged("LostTimeRate");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string MillionsMonthlyReportId
{
get
{
return this.MillionsMonthlyReportIdField;
}
set
{
if ((object.ReferenceEquals(this.MillionsMonthlyReportIdField, value) != true))
{
this.MillionsMonthlyReportIdField = value;
this.RaisePropertyChanged("MillionsMonthlyReportId");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Month
{
get
{
return this.MonthField;
}
set
{
if ((this.MonthField.Equals(value) != true))
{
this.MonthField = value;
this.RaisePropertyChanged("Month");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable RecordableIncidentRate
{
get
{
return this.RecordableIncidentRateField;
}
set
{
if ((this.RecordableIncidentRateField.Equals(value) != true))
{
this.RecordableIncidentRateField = value;
this.RaisePropertyChanged("RecordableIncidentRate");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string UnitId
{
get
{
return this.UnitIdField;
}
set
{
if ((object.ReferenceEquals(this.UnitIdField, value) != true))
{
this.UnitIdField = value;
this.RaisePropertyChanged("UnitId");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Year
{
get
{
return this.YearField;
}
set
{
if ((this.YearField.Equals(value) != true))
{
this.YearField = value;
this.RaisePropertyChanged("Year");
}
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null))
{
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
public partial class Information_MillionsMonthlyReportItem : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged
{
[System.NonSerializedAttribute()]
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string AffiliationField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable AttemptedEventNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable ContractorNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable EquipmentNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable ExplosionNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable FireNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable FirstAidDressingsNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable LossDayNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MedicalTreatmentLossHourField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MedicalTreatmentPersonNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string MillionsMonthlyReportIdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string MillionsMonthlyReportItemIdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorAccidentLossHourField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorAccidentNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorAccidentPersonNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string NameField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable OtherAccidentLossHourField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable OtherAccidentNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable OtherAccidentPersonNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable OtherNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable PostPersonNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable QualityNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable RestrictedWorkLossHourField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable RestrictedWorkPersonNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable SeriousInjuriesLossHourField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable SeriousInjuriesNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable SeriousInjuriesPersonNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable SnapPersonNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable SortIndexField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable SumPersonNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TotalWorkNumField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TrafficNumField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData
{
get
{
return this.extensionDataField;
}
set
{
this.extensionDataField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Affiliation
{
get
{
return this.AffiliationField;
}
set
{
if ((object.ReferenceEquals(this.AffiliationField, value) != true))
{
this.AffiliationField = value;
this.RaisePropertyChanged("Affiliation");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable AttemptedEventNum
{
get
{
return this.AttemptedEventNumField;
}
set
{
if ((this.AttemptedEventNumField.Equals(value) != true))
{
this.AttemptedEventNumField = value;
this.RaisePropertyChanged("AttemptedEventNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable ContractorNum
{
get
{
return this.ContractorNumField;
}
set
{
if ((this.ContractorNumField.Equals(value) != true))
{
this.ContractorNumField = value;
this.RaisePropertyChanged("ContractorNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable EquipmentNum
{
get
{
return this.EquipmentNumField;
}
set
{
if ((this.EquipmentNumField.Equals(value) != true))
{
this.EquipmentNumField = value;
this.RaisePropertyChanged("EquipmentNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable ExplosionNum
{
get
{
return this.ExplosionNumField;
}
set
{
if ((this.ExplosionNumField.Equals(value) != true))
{
this.ExplosionNumField = value;
this.RaisePropertyChanged("ExplosionNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable FireNum
{
get
{
return this.FireNumField;
}
set
{
if ((this.FireNumField.Equals(value) != true))
{
this.FireNumField = value;
this.RaisePropertyChanged("FireNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable FirstAidDressingsNum
{
get
{
return this.FirstAidDressingsNumField;
}
set
{
if ((this.FirstAidDressingsNumField.Equals(value) != true))
{
this.FirstAidDressingsNumField = value;
this.RaisePropertyChanged("FirstAidDressingsNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable LossDayNum
{
get
{
return this.LossDayNumField;
}
set
{
if ((this.LossDayNumField.Equals(value) != true))
{
this.LossDayNumField = value;
this.RaisePropertyChanged("LossDayNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MedicalTreatmentLossHour
{
get
{
return this.MedicalTreatmentLossHourField;
}
set
{
if ((this.MedicalTreatmentLossHourField.Equals(value) != true))
{
this.MedicalTreatmentLossHourField = value;
this.RaisePropertyChanged("MedicalTreatmentLossHour");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MedicalTreatmentPersonNum
{
get
{
return this.MedicalTreatmentPersonNumField;
}
set
{
if ((this.MedicalTreatmentPersonNumField.Equals(value) != true))
{
this.MedicalTreatmentPersonNumField = value;
this.RaisePropertyChanged("MedicalTreatmentPersonNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string MillionsMonthlyReportId
{
get
{
return this.MillionsMonthlyReportIdField;
}
set
{
if ((object.ReferenceEquals(this.MillionsMonthlyReportIdField, value) != true))
{
this.MillionsMonthlyReportIdField = value;
this.RaisePropertyChanged("MillionsMonthlyReportId");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string MillionsMonthlyReportItemId
{
get
{
return this.MillionsMonthlyReportItemIdField;
}
set
{
if ((object.ReferenceEquals(this.MillionsMonthlyReportItemIdField, value) != true))
{
this.MillionsMonthlyReportItemIdField = value;
this.RaisePropertyChanged("MillionsMonthlyReportItemId");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorAccidentLossHour
{
get
{
return this.MinorAccidentLossHourField;
}
set
{
if ((this.MinorAccidentLossHourField.Equals(value) != true))
{
this.MinorAccidentLossHourField = value;
this.RaisePropertyChanged("MinorAccidentLossHour");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorAccidentNum
{
get
{
return this.MinorAccidentNumField;
}
set
{
if ((this.MinorAccidentNumField.Equals(value) != true))
{
this.MinorAccidentNumField = value;
this.RaisePropertyChanged("MinorAccidentNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorAccidentPersonNum
{
get
{
return this.MinorAccidentPersonNumField;
}
set
{
if ((this.MinorAccidentPersonNumField.Equals(value) != true))
{
this.MinorAccidentPersonNumField = value;
this.RaisePropertyChanged("MinorAccidentPersonNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Name
{
get
{
return this.NameField;
}
set
{
if ((object.ReferenceEquals(this.NameField, value) != true))
{
this.NameField = value;
this.RaisePropertyChanged("Name");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable OtherAccidentLossHour
{
get
{
return this.OtherAccidentLossHourField;
}
set
{
if ((this.OtherAccidentLossHourField.Equals(value) != true))
{
this.OtherAccidentLossHourField = value;
this.RaisePropertyChanged("OtherAccidentLossHour");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable OtherAccidentNum
{
get
{
return this.OtherAccidentNumField;
}
set
{
if ((this.OtherAccidentNumField.Equals(value) != true))
{
this.OtherAccidentNumField = value;
this.RaisePropertyChanged("OtherAccidentNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable OtherAccidentPersonNum
{
get
{
return this.OtherAccidentPersonNumField;
}
set
{
if ((this.OtherAccidentPersonNumField.Equals(value) != true))
{
this.OtherAccidentPersonNumField = value;
this.RaisePropertyChanged("OtherAccidentPersonNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable OtherNum
{
get
{
return this.OtherNumField;
}
set
{
if ((this.OtherNumField.Equals(value) != true))
{
this.OtherNumField = value;
this.RaisePropertyChanged("OtherNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable PostPersonNum
{
get
{
return this.PostPersonNumField;
}
set
{
if ((this.PostPersonNumField.Equals(value) != true))
{
this.PostPersonNumField = value;
this.RaisePropertyChanged("PostPersonNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable QualityNum
{
get
{
return this.QualityNumField;
}
set
{
if ((this.QualityNumField.Equals(value) != true))
{
this.QualityNumField = value;
this.RaisePropertyChanged("QualityNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable RestrictedWorkLossHour
{
get
{
return this.RestrictedWorkLossHourField;
}
set
{
if ((this.RestrictedWorkLossHourField.Equals(value) != true))
{
this.RestrictedWorkLossHourField = value;
this.RaisePropertyChanged("RestrictedWorkLossHour");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable RestrictedWorkPersonNum
{
get
{
return this.RestrictedWorkPersonNumField;
}
set
{
if ((this.RestrictedWorkPersonNumField.Equals(value) != true))
{
this.RestrictedWorkPersonNumField = value;
this.RaisePropertyChanged("RestrictedWorkPersonNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable SeriousInjuriesLossHour
{
get
{
return this.SeriousInjuriesLossHourField;
}
set
{
if ((this.SeriousInjuriesLossHourField.Equals(value) != true))
{
this.SeriousInjuriesLossHourField = value;
this.RaisePropertyChanged("SeriousInjuriesLossHour");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable SeriousInjuriesNum
{
get
{
return this.SeriousInjuriesNumField;
}
set
{
if ((this.SeriousInjuriesNumField.Equals(value) != true))
{
this.SeriousInjuriesNumField = value;
this.RaisePropertyChanged("SeriousInjuriesNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable SeriousInjuriesPersonNum
{
get
{
return this.SeriousInjuriesPersonNumField;
}
set
{
if ((this.SeriousInjuriesPersonNumField.Equals(value) != true))
{
this.SeriousInjuriesPersonNumField = value;
this.RaisePropertyChanged("SeriousInjuriesPersonNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable SnapPersonNum
{
get
{
return this.SnapPersonNumField;
}
set
{
if ((this.SnapPersonNumField.Equals(value) != true))
{
this.SnapPersonNumField = value;
this.RaisePropertyChanged("SnapPersonNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable SortIndex
{
get
{
return this.SortIndexField;
}
set
{
if ((this.SortIndexField.Equals(value) != true))
{
this.SortIndexField = value;
this.RaisePropertyChanged("SortIndex");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable SumPersonNum
{
get
{
return this.SumPersonNumField;
}
set
{
if ((this.SumPersonNumField.Equals(value) != true))
{
this.SumPersonNumField = value;
this.RaisePropertyChanged("SumPersonNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable TotalWorkNum
{
get
{
return this.TotalWorkNumField;
}
set
{
if ((this.TotalWorkNumField.Equals(value) != true))
{
this.TotalWorkNumField = value;
this.RaisePropertyChanged("TotalWorkNum");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable TrafficNum
{
get
{
return this.TrafficNumField;
}
set
{
if ((this.TrafficNumField.Equals(value) != true))
{
this.TrafficNumField = value;
this.RaisePropertyChanged("TrafficNum");
}
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null))
{
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
public partial class Information_AccidentCauseReport : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged
{
[System.NonSerializedAttribute()]
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string AccidentCauseReportCodeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string AccidentCauseReportIdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string AuditPersonField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable AverageManHoursField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable AverageTotalHoursField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable DeathAccidentField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable DeathTollField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable DirectLossField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string FillCompanyPersonChargeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable FillingDateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable IndirectLossesField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable InjuredAccidentField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable InjuredTollField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable KnockOffTotalField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable LastMonthLossHoursTotalField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorWoundAccidentField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorWoundTollField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MonthField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string TabPeopleField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TotalLossField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TotalLossManField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TotalLossTimeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string UnitIdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable YearField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData
{
get
{
return this.extensionDataField;
}
set
{
this.extensionDataField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string AccidentCauseReportCode
{
get
{
return this.AccidentCauseReportCodeField;
}
set
{
if ((object.ReferenceEquals(this.AccidentCauseReportCodeField, value) != true))
{
this.AccidentCauseReportCodeField = value;
this.RaisePropertyChanged("AccidentCauseReportCode");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string AccidentCauseReportId
{
get
{
return this.AccidentCauseReportIdField;
}
set
{
if ((object.ReferenceEquals(this.AccidentCauseReportIdField, value) != true))
{
this.AccidentCauseReportIdField = value;
this.RaisePropertyChanged("AccidentCauseReportId");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string AuditPerson
{
get
{
return this.AuditPersonField;
}
set
{
if ((object.ReferenceEquals(this.AuditPersonField, value) != true))
{
this.AuditPersonField = value;
this.RaisePropertyChanged("AuditPerson");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable AverageManHours
{
get
{
return this.AverageManHoursField;
}
set
{
if ((this.AverageManHoursField.Equals(value) != true))
{
this.AverageManHoursField = value;
this.RaisePropertyChanged("AverageManHours");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable AverageTotalHours
{
get
{
return this.AverageTotalHoursField;
}
set
{
if ((this.AverageTotalHoursField.Equals(value) != true))
{
this.AverageTotalHoursField = value;
this.RaisePropertyChanged("AverageTotalHours");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable DeathAccident
{
get
{
return this.DeathAccidentField;
}
set
{
if ((this.DeathAccidentField.Equals(value) != true))
{
this.DeathAccidentField = value;
this.RaisePropertyChanged("DeathAccident");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable DeathToll
{
get
{
return this.DeathTollField;
}
set
{
if ((this.DeathTollField.Equals(value) != true))
{
this.DeathTollField = value;
this.RaisePropertyChanged("DeathToll");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable DirectLoss
{
get
{
return this.DirectLossField;
}
set
{
if ((this.DirectLossField.Equals(value) != true))
{
this.DirectLossField = value;
this.RaisePropertyChanged("DirectLoss");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string FillCompanyPersonCharge
{
get
{
return this.FillCompanyPersonChargeField;
}
set
{
if ((object.ReferenceEquals(this.FillCompanyPersonChargeField, value) != true))
{
this.FillCompanyPersonChargeField = value;
this.RaisePropertyChanged("FillCompanyPersonCharge");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable FillingDate
{
get
{
return this.FillingDateField;
}
set
{
if ((this.FillingDateField.Equals(value) != true))
{
this.FillingDateField = value;
this.RaisePropertyChanged("FillingDate");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable IndirectLosses
{
get
{
return this.IndirectLossesField;
}
set
{
if ((this.IndirectLossesField.Equals(value) != true))
{
this.IndirectLossesField = value;
this.RaisePropertyChanged("IndirectLosses");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable InjuredAccident
{
get
{
return this.InjuredAccidentField;
}
set
{
if ((this.InjuredAccidentField.Equals(value) != true))
{
this.InjuredAccidentField = value;
this.RaisePropertyChanged("InjuredAccident");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable InjuredToll
{
get
{
return this.InjuredTollField;
}
set
{
if ((this.InjuredTollField.Equals(value) != true))
{
this.InjuredTollField = value;
this.RaisePropertyChanged("InjuredToll");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable KnockOffTotal
{
get
{
return this.KnockOffTotalField;
}
set
{
if ((this.KnockOffTotalField.Equals(value) != true))
{
this.KnockOffTotalField = value;
this.RaisePropertyChanged("KnockOffTotal");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable LastMonthLossHoursTotal
{
get
{
return this.LastMonthLossHoursTotalField;
}
set
{
if ((this.LastMonthLossHoursTotalField.Equals(value) != true))
{
this.LastMonthLossHoursTotalField = value;
this.RaisePropertyChanged("LastMonthLossHoursTotal");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorWoundAccident
{
get
{
return this.MinorWoundAccidentField;
}
set
{
if ((this.MinorWoundAccidentField.Equals(value) != true))
{
this.MinorWoundAccidentField = value;
this.RaisePropertyChanged("MinorWoundAccident");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorWoundToll
{
get
{
return this.MinorWoundTollField;
}
set
{
if ((this.MinorWoundTollField.Equals(value) != true))
{
this.MinorWoundTollField = value;
this.RaisePropertyChanged("MinorWoundToll");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Month
{
get
{
return this.MonthField;
}
set
{
if ((this.MonthField.Equals(value) != true))
{
this.MonthField = value;
this.RaisePropertyChanged("Month");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string TabPeople
{
get
{
return this.TabPeopleField;
}
set
{
if ((object.ReferenceEquals(this.TabPeopleField, value) != true))
{
this.TabPeopleField = value;
this.RaisePropertyChanged("TabPeople");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable TotalLoss
{
get
{
return this.TotalLossField;
}
set
{
if ((this.TotalLossField.Equals(value) != true))
{
this.TotalLossField = value;
this.RaisePropertyChanged("TotalLoss");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable TotalLossMan
{
get
{
return this.TotalLossManField;
}
set
{
if ((this.TotalLossManField.Equals(value) != true))
{
this.TotalLossManField = value;
this.RaisePropertyChanged("TotalLossMan");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable TotalLossTime
{
get
{
return this.TotalLossTimeField;
}
set
{
if ((this.TotalLossTimeField.Equals(value) != true))
{
this.TotalLossTimeField = value;
this.RaisePropertyChanged("TotalLossTime");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string UnitId
{
get
{
return this.UnitIdField;
}
set
{
if ((object.ReferenceEquals(this.UnitIdField, value) != true))
{
this.UnitIdField = value;
this.RaisePropertyChanged("UnitId");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Year
{
get
{
return this.YearField;
}
set
{
if ((this.YearField.Equals(value) != true))
{
this.YearField = value;
this.RaisePropertyChanged("Year");
}
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null))
{
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
public partial class Information_AccidentCauseReportItem : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged
{
[System.NonSerializedAttribute()]
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string AccidentCauseReportIdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string AccidentCauseReportItemIdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string AccidentTypeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death1Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death10Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death11Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death2Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death3Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death4Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death5Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death6Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death7Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death8Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Death9Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries1Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries10Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries11Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries2Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries3Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries4Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries5Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries6Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries7Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries8Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable Injuries9Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries1Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries10Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries11Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries2Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries3Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries4Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries5Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries6Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries7Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries8Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MinorInjuries9Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TotalDeathField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TotalInjuriesField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TotalMinorInjuriesField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData
{
get
{
return this.extensionDataField;
}
set
{
this.extensionDataField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string AccidentCauseReportId
{
get
{
return this.AccidentCauseReportIdField;
}
set
{
if ((object.ReferenceEquals(this.AccidentCauseReportIdField, value) != true))
{
this.AccidentCauseReportIdField = value;
this.RaisePropertyChanged("AccidentCauseReportId");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string AccidentCauseReportItemId
{
get
{
return this.AccidentCauseReportItemIdField;
}
set
{
if ((object.ReferenceEquals(this.AccidentCauseReportItemIdField, value) != true))
{
this.AccidentCauseReportItemIdField = value;
this.RaisePropertyChanged("AccidentCauseReportItemId");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string AccidentType
{
get
{
return this.AccidentTypeField;
}
set
{
if ((object.ReferenceEquals(this.AccidentTypeField, value) != true))
{
this.AccidentTypeField = value;
this.RaisePropertyChanged("AccidentType");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death1
{
get
{
return this.Death1Field;
}
set
{
if ((this.Death1Field.Equals(value) != true))
{
this.Death1Field = value;
this.RaisePropertyChanged("Death1");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death10
{
get
{
return this.Death10Field;
}
set
{
if ((this.Death10Field.Equals(value) != true))
{
this.Death10Field = value;
this.RaisePropertyChanged("Death10");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death11
{
get
{
return this.Death11Field;
}
set
{
if ((this.Death11Field.Equals(value) != true))
{
this.Death11Field = value;
this.RaisePropertyChanged("Death11");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death2
{
get
{
return this.Death2Field;
}
set
{
if ((this.Death2Field.Equals(value) != true))
{
this.Death2Field = value;
this.RaisePropertyChanged("Death2");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death3
{
get
{
return this.Death3Field;
}
set
{
if ((this.Death3Field.Equals(value) != true))
{
this.Death3Field = value;
this.RaisePropertyChanged("Death3");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death4
{
get
{
return this.Death4Field;
}
set
{
if ((this.Death4Field.Equals(value) != true))
{
this.Death4Field = value;
this.RaisePropertyChanged("Death4");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death5
{
get
{
return this.Death5Field;
}
set
{
if ((this.Death5Field.Equals(value) != true))
{
this.Death5Field = value;
this.RaisePropertyChanged("Death5");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death6
{
get
{
return this.Death6Field;
}
set
{
if ((this.Death6Field.Equals(value) != true))
{
this.Death6Field = value;
this.RaisePropertyChanged("Death6");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death7
{
get
{
return this.Death7Field;
}
set
{
if ((this.Death7Field.Equals(value) != true))
{
this.Death7Field = value;
this.RaisePropertyChanged("Death7");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death8
{
get
{
return this.Death8Field;
}
set
{
if ((this.Death8Field.Equals(value) != true))
{
this.Death8Field = value;
this.RaisePropertyChanged("Death8");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Death9
{
get
{
return this.Death9Field;
}
set
{
if ((this.Death9Field.Equals(value) != true))
{
this.Death9Field = value;
this.RaisePropertyChanged("Death9");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries1
{
get
{
return this.Injuries1Field;
}
set
{
if ((this.Injuries1Field.Equals(value) != true))
{
this.Injuries1Field = value;
this.RaisePropertyChanged("Injuries1");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries10
{
get
{
return this.Injuries10Field;
}
set
{
if ((this.Injuries10Field.Equals(value) != true))
{
this.Injuries10Field = value;
this.RaisePropertyChanged("Injuries10");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries11
{
get
{
return this.Injuries11Field;
}
set
{
if ((this.Injuries11Field.Equals(value) != true))
{
this.Injuries11Field = value;
this.RaisePropertyChanged("Injuries11");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries2
{
get
{
return this.Injuries2Field;
}
set
{
if ((this.Injuries2Field.Equals(value) != true))
{
this.Injuries2Field = value;
this.RaisePropertyChanged("Injuries2");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries3
{
get
{
return this.Injuries3Field;
}
set
{
if ((this.Injuries3Field.Equals(value) != true))
{
this.Injuries3Field = value;
this.RaisePropertyChanged("Injuries3");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries4
{
get
{
return this.Injuries4Field;
}
set
{
if ((this.Injuries4Field.Equals(value) != true))
{
this.Injuries4Field = value;
this.RaisePropertyChanged("Injuries4");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries5
{
get
{
return this.Injuries5Field;
}
set
{
if ((this.Injuries5Field.Equals(value) != true))
{
this.Injuries5Field = value;
this.RaisePropertyChanged("Injuries5");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries6
{
get
{
return this.Injuries6Field;
}
set
{
if ((this.Injuries6Field.Equals(value) != true))
{
this.Injuries6Field = value;
this.RaisePropertyChanged("Injuries6");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries7
{
get
{
return this.Injuries7Field;
}
set
{
if ((this.Injuries7Field.Equals(value) != true))
{
this.Injuries7Field = value;
this.RaisePropertyChanged("Injuries7");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries8
{
get
{
return this.Injuries8Field;
}
set
{
if ((this.Injuries8Field.Equals(value) != true))
{
this.Injuries8Field = value;
this.RaisePropertyChanged("Injuries8");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable Injuries9
{
get
{
return this.Injuries9Field;
}
set
{
if ((this.Injuries9Field.Equals(value) != true))
{
this.Injuries9Field = value;
this.RaisePropertyChanged("Injuries9");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries1
{
get
{
return this.MinorInjuries1Field;
}
set
{
if ((this.MinorInjuries1Field.Equals(value) != true))
{
this.MinorInjuries1Field = value;
this.RaisePropertyChanged("MinorInjuries1");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries10
{
get
{
return this.MinorInjuries10Field;
}
set
{
if ((this.MinorInjuries10Field.Equals(value) != true))
{
this.MinorInjuries10Field = value;
this.RaisePropertyChanged("MinorInjuries10");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries11
{
get
{
return this.MinorInjuries11Field;
}
set
{
if ((this.MinorInjuries11Field.Equals(value) != true))
{
this.MinorInjuries11Field = value;
this.RaisePropertyChanged("MinorInjuries11");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries2
{
get
{
return this.MinorInjuries2Field;
}
set
{
if ((this.MinorInjuries2Field.Equals(value) != true))
{
this.MinorInjuries2Field = value;
this.RaisePropertyChanged("MinorInjuries2");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries3
{
get
{
return this.MinorInjuries3Field;
}
set
{
if ((this.MinorInjuries3Field.Equals(value) != true))
{
this.MinorInjuries3Field = value;
this.RaisePropertyChanged("MinorInjuries3");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries4
{
get
{
return this.MinorInjuries4Field;
}
set
{
if ((this.MinorInjuries4Field.Equals(value) != true))
{
this.MinorInjuries4Field = value;
this.RaisePropertyChanged("MinorInjuries4");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries5
{
get
{
return this.MinorInjuries5Field;
}
set
{
if ((this.MinorInjuries5Field.Equals(value) != true))
{
this.MinorInjuries5Field = value;
this.RaisePropertyChanged("MinorInjuries5");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries6
{
get
{
return this.MinorInjuries6Field;
}
set
{
if ((this.MinorInjuries6Field.Equals(value) != true))
{
this.MinorInjuries6Field = value;
this.RaisePropertyChanged("MinorInjuries6");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries7
{
get
{
return this.MinorInjuries7Field;
}
set
{
if ((this.MinorInjuries7Field.Equals(value) != true))
{
this.MinorInjuries7Field = value;
this.RaisePropertyChanged("MinorInjuries7");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries8
{
get
{
return this.MinorInjuries8Field;
}
set
{
if ((this.MinorInjuries8Field.Equals(value) != true))
{
this.MinorInjuries8Field = value;
this.RaisePropertyChanged("MinorInjuries8");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MinorInjuries9
{
get
{
return this.MinorInjuries9Field;
}
set
{
if ((this.MinorInjuries9Field.Equals(value) != true))
{
this.MinorInjuries9Field = value;
this.RaisePropertyChanged("MinorInjuries9");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable TotalDeath
{
get
{
return this.TotalDeathField;
}
set
{
if ((this.TotalDeathField.Equals(value) != true))
{
this.TotalDeathField = value;
this.RaisePropertyChanged("TotalDeath");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable TotalInjuries
{
get
{
return this.TotalInjuriesField;
}
set
{
if ((this.TotalInjuriesField.Equals(value) != true))
{
this.TotalInjuriesField = value;
this.RaisePropertyChanged("TotalInjuries");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable TotalMinorInjuries
{
get
{
return this.TotalMinorInjuriesField;
}
set
{
if ((this.TotalMinorInjuriesField.Equals(value) != true))
{
this.TotalMinorInjuriesField = value;
this.RaisePropertyChanged("TotalMinorInjuries");
}
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null))
{
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
public partial class Information_SafetyQuarterlyReport : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged
{
[System.NonSerializedAttribute()]
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable AccidentFrequencyField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string AccidentFrequencyRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable BillionsOutputMortalityField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string BillionsOutputMortalityRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable ChemicalAreaProjectCountField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string ChemicalAreaProjectCountRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string CompileManField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable ConstructionRevenueField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string ConstructionRevenueRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable CorporateDirectorEduField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string CorporateDirectorEduRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable EducationTrainInField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string EducationTrainInRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable EquipmentAccidentField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string EquipmentAccidentRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable FillingDateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable FireAccidentField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string FireAccidentRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable FullTimeEduField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string FullTimeEduRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable FullTimeManField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string FullTimeManAttachUrlField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Collections.Generic.List FullTimeManAttachUrlFileContextField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string FullTimeManRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable HarmfulMediumCoverCountField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string HarmfulMediumCoverCountRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable HarmfulMediumCoverRateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string HarmfulMediumCoverRateRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable KeyEquipmentReportCountField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string KeyEquipmentReportCountRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable KeyEquipmentTotalField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string KeyEquipmentTotalRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable LaboAndHealthInField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string LaborAndHealthInRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MainBusinessIncomeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string MainBusinessIncomeRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MajorEquipAccidentField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string MajorEquipAccidentRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable MajorFireAccidentField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string MajorFireAccidentRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable PMManField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string PMManAttachUrlField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Collections.Generic.List PMManAttachUrlFileContextField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string PMManRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable PoisoningAndInjuriesField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string PoisoningAndInjuriesRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable ProductionInputField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string ProductionInputRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable ProductionSafetyInTotalField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string ProductionSafetyInTotalRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable ProjectCostRateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string ProjectCostRateRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable ProjectLeaderEduField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string ProjectLeaderEduRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable ProtectionInputField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string ProtectionInputRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable QuartersField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string RemarksField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable RevenueField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string RevenueRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string SafetyQuarterlyReportIdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable SeriousInjuryAccidentField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string SeriousInjuryAccidentRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TechnologyProgressInField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string TechnologyProgressInRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable ThreeKidsEduRateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string ThreeKidsEduRateRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TotalInWorkHoursField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string TotalInWorkHoursRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable TotalOutWorkHoursField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string TotalOutWorkHoursRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string UnitIdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable UnitTimeIncomeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string UnitTimeIncomeRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable UplinReportRateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string UplinReportRateRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable WorkHoursAccuracyField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string WorkHoursAccuracyRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable WorkHoursLossRateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string WorkHoursLossRateRemarkField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.Nullable YearIdField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData
{
get
{
return this.extensionDataField;
}
set
{
this.extensionDataField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable AccidentFrequency
{
get
{
return this.AccidentFrequencyField;
}
set
{
if ((this.AccidentFrequencyField.Equals(value) != true))
{
this.AccidentFrequencyField = value;
this.RaisePropertyChanged("AccidentFrequency");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string AccidentFrequencyRemark
{
get
{
return this.AccidentFrequencyRemarkField;
}
set
{
if ((object.ReferenceEquals(this.AccidentFrequencyRemarkField, value) != true))
{
this.AccidentFrequencyRemarkField = value;
this.RaisePropertyChanged("AccidentFrequencyRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable BillionsOutputMortality
{
get
{
return this.BillionsOutputMortalityField;
}
set
{
if ((this.BillionsOutputMortalityField.Equals(value) != true))
{
this.BillionsOutputMortalityField = value;
this.RaisePropertyChanged("BillionsOutputMortality");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string BillionsOutputMortalityRemark
{
get
{
return this.BillionsOutputMortalityRemarkField;
}
set
{
if ((object.ReferenceEquals(this.BillionsOutputMortalityRemarkField, value) != true))
{
this.BillionsOutputMortalityRemarkField = value;
this.RaisePropertyChanged("BillionsOutputMortalityRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable ChemicalAreaProjectCount
{
get
{
return this.ChemicalAreaProjectCountField;
}
set
{
if ((this.ChemicalAreaProjectCountField.Equals(value) != true))
{
this.ChemicalAreaProjectCountField = value;
this.RaisePropertyChanged("ChemicalAreaProjectCount");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string ChemicalAreaProjectCountRemark
{
get
{
return this.ChemicalAreaProjectCountRemarkField;
}
set
{
if ((object.ReferenceEquals(this.ChemicalAreaProjectCountRemarkField, value) != true))
{
this.ChemicalAreaProjectCountRemarkField = value;
this.RaisePropertyChanged("ChemicalAreaProjectCountRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string CompileMan
{
get
{
return this.CompileManField;
}
set
{
if ((object.ReferenceEquals(this.CompileManField, value) != true))
{
this.CompileManField = value;
this.RaisePropertyChanged("CompileMan");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable ConstructionRevenue
{
get
{
return this.ConstructionRevenueField;
}
set
{
if ((this.ConstructionRevenueField.Equals(value) != true))
{
this.ConstructionRevenueField = value;
this.RaisePropertyChanged("ConstructionRevenue");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string ConstructionRevenueRemark
{
get
{
return this.ConstructionRevenueRemarkField;
}
set
{
if ((object.ReferenceEquals(this.ConstructionRevenueRemarkField, value) != true))
{
this.ConstructionRevenueRemarkField = value;
this.RaisePropertyChanged("ConstructionRevenueRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable CorporateDirectorEdu
{
get
{
return this.CorporateDirectorEduField;
}
set
{
if ((this.CorporateDirectorEduField.Equals(value) != true))
{
this.CorporateDirectorEduField = value;
this.RaisePropertyChanged("CorporateDirectorEdu");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string CorporateDirectorEduRemark
{
get
{
return this.CorporateDirectorEduRemarkField;
}
set
{
if ((object.ReferenceEquals(this.CorporateDirectorEduRemarkField, value) != true))
{
this.CorporateDirectorEduRemarkField = value;
this.RaisePropertyChanged("CorporateDirectorEduRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable EducationTrainIn
{
get
{
return this.EducationTrainInField;
}
set
{
if ((this.EducationTrainInField.Equals(value) != true))
{
this.EducationTrainInField = value;
this.RaisePropertyChanged("EducationTrainIn");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string EducationTrainInRemark
{
get
{
return this.EducationTrainInRemarkField;
}
set
{
if ((object.ReferenceEquals(this.EducationTrainInRemarkField, value) != true))
{
this.EducationTrainInRemarkField = value;
this.RaisePropertyChanged("EducationTrainInRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable EquipmentAccident
{
get
{
return this.EquipmentAccidentField;
}
set
{
if ((this.EquipmentAccidentField.Equals(value) != true))
{
this.EquipmentAccidentField = value;
this.RaisePropertyChanged("EquipmentAccident");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string EquipmentAccidentRemark
{
get
{
return this.EquipmentAccidentRemarkField;
}
set
{
if ((object.ReferenceEquals(this.EquipmentAccidentRemarkField, value) != true))
{
this.EquipmentAccidentRemarkField = value;
this.RaisePropertyChanged("EquipmentAccidentRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable FillingDate
{
get
{
return this.FillingDateField;
}
set
{
if ((this.FillingDateField.Equals(value) != true))
{
this.FillingDateField = value;
this.RaisePropertyChanged("FillingDate");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable FireAccident
{
get
{
return this.FireAccidentField;
}
set
{
if ((this.FireAccidentField.Equals(value) != true))
{
this.FireAccidentField = value;
this.RaisePropertyChanged("FireAccident");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string FireAccidentRemark
{
get
{
return this.FireAccidentRemarkField;
}
set
{
if ((object.ReferenceEquals(this.FireAccidentRemarkField, value) != true))
{
this.FireAccidentRemarkField = value;
this.RaisePropertyChanged("FireAccidentRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable FullTimeEdu
{
get
{
return this.FullTimeEduField;
}
set
{
if ((this.FullTimeEduField.Equals(value) != true))
{
this.FullTimeEduField = value;
this.RaisePropertyChanged("FullTimeEdu");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string FullTimeEduRemark
{
get
{
return this.FullTimeEduRemarkField;
}
set
{
if ((object.ReferenceEquals(this.FullTimeEduRemarkField, value) != true))
{
this.FullTimeEduRemarkField = value;
this.RaisePropertyChanged("FullTimeEduRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable FullTimeMan
{
get
{
return this.FullTimeManField;
}
set
{
if ((this.FullTimeManField.Equals(value) != true))
{
this.FullTimeManField = value;
this.RaisePropertyChanged("FullTimeMan");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string FullTimeManAttachUrl
{
get
{
return this.FullTimeManAttachUrlField;
}
set
{
if ((object.ReferenceEquals(this.FullTimeManAttachUrlField, value) != true))
{
this.FullTimeManAttachUrlField = value;
this.RaisePropertyChanged("FullTimeManAttachUrl");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Collections.Generic.List FullTimeManAttachUrlFileContext
{
get
{
return this.FullTimeManAttachUrlFileContextField;
}
set
{
if ((object.ReferenceEquals(this.FullTimeManAttachUrlFileContextField, value) != true))
{
this.FullTimeManAttachUrlFileContextField = value;
this.RaisePropertyChanged("FullTimeManAttachUrlFileContext");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string FullTimeManRemark
{
get
{
return this.FullTimeManRemarkField;
}
set
{
if ((object.ReferenceEquals(this.FullTimeManRemarkField, value) != true))
{
this.FullTimeManRemarkField = value;
this.RaisePropertyChanged("FullTimeManRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable HarmfulMediumCoverCount
{
get
{
return this.HarmfulMediumCoverCountField;
}
set
{
if ((this.HarmfulMediumCoverCountField.Equals(value) != true))
{
this.HarmfulMediumCoverCountField = value;
this.RaisePropertyChanged("HarmfulMediumCoverCount");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string HarmfulMediumCoverCountRemark
{
get
{
return this.HarmfulMediumCoverCountRemarkField;
}
set
{
if ((object.ReferenceEquals(this.HarmfulMediumCoverCountRemarkField, value) != true))
{
this.HarmfulMediumCoverCountRemarkField = value;
this.RaisePropertyChanged("HarmfulMediumCoverCountRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable HarmfulMediumCoverRate
{
get
{
return this.HarmfulMediumCoverRateField;
}
set
{
if ((this.HarmfulMediumCoverRateField.Equals(value) != true))
{
this.HarmfulMediumCoverRateField = value;
this.RaisePropertyChanged("HarmfulMediumCoverRate");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string HarmfulMediumCoverRateRemark
{
get
{
return this.HarmfulMediumCoverRateRemarkField;
}
set
{
if ((object.ReferenceEquals(this.HarmfulMediumCoverRateRemarkField, value) != true))
{
this.HarmfulMediumCoverRateRemarkField = value;
this.RaisePropertyChanged("HarmfulMediumCoverRateRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable KeyEquipmentReportCount
{
get
{
return this.KeyEquipmentReportCountField;
}
set
{
if ((this.KeyEquipmentReportCountField.Equals(value) != true))
{
this.KeyEquipmentReportCountField = value;
this.RaisePropertyChanged("KeyEquipmentReportCount");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string KeyEquipmentReportCountRemark
{
get
{
return this.KeyEquipmentReportCountRemarkField;
}
set
{
if ((object.ReferenceEquals(this.KeyEquipmentReportCountRemarkField, value) != true))
{
this.KeyEquipmentReportCountRemarkField = value;
this.RaisePropertyChanged("KeyEquipmentReportCountRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable KeyEquipmentTotal
{
get
{
return this.KeyEquipmentTotalField;
}
set
{
if ((this.KeyEquipmentTotalField.Equals(value) != true))
{
this.KeyEquipmentTotalField = value;
this.RaisePropertyChanged("KeyEquipmentTotal");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string KeyEquipmentTotalRemark
{
get
{
return this.KeyEquipmentTotalRemarkField;
}
set
{
if ((object.ReferenceEquals(this.KeyEquipmentTotalRemarkField, value) != true))
{
this.KeyEquipmentTotalRemarkField = value;
this.RaisePropertyChanged("KeyEquipmentTotalRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable LaboAndHealthIn
{
get
{
return this.LaboAndHealthInField;
}
set
{
if ((this.LaboAndHealthInField.Equals(value) != true))
{
this.LaboAndHealthInField = value;
this.RaisePropertyChanged("LaboAndHealthIn");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string LaborAndHealthInRemark
{
get
{
return this.LaborAndHealthInRemarkField;
}
set
{
if ((object.ReferenceEquals(this.LaborAndHealthInRemarkField, value) != true))
{
this.LaborAndHealthInRemarkField = value;
this.RaisePropertyChanged("LaborAndHealthInRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MainBusinessIncome
{
get
{
return this.MainBusinessIncomeField;
}
set
{
if ((this.MainBusinessIncomeField.Equals(value) != true))
{
this.MainBusinessIncomeField = value;
this.RaisePropertyChanged("MainBusinessIncome");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string MainBusinessIncomeRemark
{
get
{
return this.MainBusinessIncomeRemarkField;
}
set
{
if ((object.ReferenceEquals(this.MainBusinessIncomeRemarkField, value) != true))
{
this.MainBusinessIncomeRemarkField = value;
this.RaisePropertyChanged("MainBusinessIncomeRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MajorEquipAccident
{
get
{
return this.MajorEquipAccidentField;
}
set
{
if ((this.MajorEquipAccidentField.Equals(value) != true))
{
this.MajorEquipAccidentField = value;
this.RaisePropertyChanged("MajorEquipAccident");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string MajorEquipAccidentRemark
{
get
{
return this.MajorEquipAccidentRemarkField;
}
set
{
if ((object.ReferenceEquals(this.MajorEquipAccidentRemarkField, value) != true))
{
this.MajorEquipAccidentRemarkField = value;
this.RaisePropertyChanged("MajorEquipAccidentRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable MajorFireAccident
{
get
{
return this.MajorFireAccidentField;
}
set
{
if ((this.MajorFireAccidentField.Equals(value) != true))
{
this.MajorFireAccidentField = value;
this.RaisePropertyChanged("MajorFireAccident");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string MajorFireAccidentRemark
{
get
{
return this.MajorFireAccidentRemarkField;
}
set
{
if ((object.ReferenceEquals(this.MajorFireAccidentRemarkField, value) != true))
{
this.MajorFireAccidentRemarkField = value;
this.RaisePropertyChanged("MajorFireAccidentRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable PMMan
{
get
{
return this.PMManField;
}
set
{
if ((this.PMManField.Equals(value) != true))
{
this.PMManField = value;
this.RaisePropertyChanged("PMMan");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string PMManAttachUrl
{
get
{
return this.PMManAttachUrlField;
}
set
{
if ((object.ReferenceEquals(this.PMManAttachUrlField, value) != true))
{
this.PMManAttachUrlField = value;
this.RaisePropertyChanged("PMManAttachUrl");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Collections.Generic.List PMManAttachUrlFileContext
{
get
{
return this.PMManAttachUrlFileContextField;
}
set
{
if ((object.ReferenceEquals(this.PMManAttachUrlFileContextField, value) != true))
{
this.PMManAttachUrlFileContextField = value;
this.RaisePropertyChanged("PMManAttachUrlFileContext");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string PMManRemark
{
get
{
return this.PMManRemarkField;
}
set
{
if ((object.ReferenceEquals(this.PMManRemarkField, value) != true))
{
this.PMManRemarkField = value;
this.RaisePropertyChanged("PMManRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable PoisoningAndInjuries
{
get
{
return this.PoisoningAndInjuriesField;
}
set
{
if ((this.PoisoningAndInjuriesField.Equals(value) != true))
{
this.PoisoningAndInjuriesField = value;
this.RaisePropertyChanged("PoisoningAndInjuries");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string PoisoningAndInjuriesRemark
{
get
{
return this.PoisoningAndInjuriesRemarkField;
}
set
{
if ((object.ReferenceEquals(this.PoisoningAndInjuriesRemarkField, value) != true))
{
this.PoisoningAndInjuriesRemarkField = value;
this.RaisePropertyChanged("PoisoningAndInjuriesRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable ProductionInput
{
get
{
return this.ProductionInputField;
}
set
{
if ((this.ProductionInputField.Equals(value) != true))
{
this.ProductionInputField = value;
this.RaisePropertyChanged("ProductionInput");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string ProductionInputRemark
{
get
{
return this.ProductionInputRemarkField;
}
set
{
if ((object.ReferenceEquals(this.ProductionInputRemarkField, value) != true))
{
this.ProductionInputRemarkField = value;
this.RaisePropertyChanged("ProductionInputRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable ProductionSafetyInTotal
{
get
{
return this.ProductionSafetyInTotalField;
}
set
{
if ((this.ProductionSafetyInTotalField.Equals(value) != true))
{
this.ProductionSafetyInTotalField = value;
this.RaisePropertyChanged("ProductionSafetyInTotal");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string ProductionSafetyInTotalRemark
{
get
{
return this.ProductionSafetyInTotalRemarkField;
}
set
{
if ((object.ReferenceEquals(this.ProductionSafetyInTotalRemarkField, value) != true))
{
this.ProductionSafetyInTotalRemarkField = value;
this.RaisePropertyChanged("ProductionSafetyInTotalRemark");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public System.Nullable