From b7053ec8c27cddacd8e47d134d8d1890d6501441 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Wed, 3 Jan 2024 14:46:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBase/版本日志/SGGLDB_V2024-01-03.sql | 236 +++ .../1-3安全管理(Menu_HSSE).sql | 13 + SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 24 + .../HJGL/InfoQuery/PipelineQuery.aspx.cs | 3 +- .../HSSE/Emergency/DrillRecordList.aspx | 131 ++ .../HSSE/Emergency/DrillRecordList.aspx.cs | 319 ++++ .../DrillRecordList.aspx.designer.cs | 186 ++ .../HSSE/Emergency/DrillRecordListEdit.aspx | 92 + .../Emergency/DrillRecordListEdit.aspx.cs | 226 +++ .../DrillRecordListEdit.aspx.designer.cs | 186 ++ .../HSSE/Emergency/DrillRecordListView.aspx | 79 + .../Emergency/DrillRecordListView.aspx.cs | 90 + .../DrillRecordListView.aspx.designer.cs | 168 ++ .../ZHGL/DataSync/DataStatistics.aspx.cs | 4 +- SGGL/FineUIPro.Web/common/Menu_HSSE.xml | 1 + SGGL/FineUIPro.Web/common/Menu_ZHGL.xml | 1 + SGGL/Model/Model.cs | 1655 +++++++++++++++++ 17 files changed, 3411 insertions(+), 3 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2024-01-03.sql create mode 100644 SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx.designer.cs diff --git a/DataBase/版本日志/SGGLDB_V2024-01-03.sql b/DataBase/版本日志/SGGLDB_V2024-01-03.sql new file mode 100644 index 00000000..2e374eca --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2024-01-03.sql @@ -0,0 +1,236 @@ + +ALTER View [dbo].[View_DataStatistics] +AS +/*ݻ*/ +select ShortName, +(select COUNT(*) from SitePerson_Person Person where InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) AND Person.ProjectId=p.ProjectId and Person.WorkPostId='8A7C2CDF-AFB5-4826-9951-343253342DAC') as CommissionerPersonNum, +(select COUNT(*) from SitePerson_Person Person LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId =WorkPost.WorkPostId where InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) AND Person.ProjectId=p.ProjectId and WorkPost.IsHsse=1) as FullTimePersonNum, +(select COUNT(*) from SitePerson_Person Person where InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) AND Person.ProjectId=p.ProjectId and Person.IsSafetyMonitoring=1) as SafetySupervisionPersonNum, +(select COUNT(*) from SitePerson_Person Person where InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) AND Person.ProjectId=p.ProjectId and (SELECT COUNT(*) FROM QualityAudit_PersonQuality AS Q LEFT JOIN Base_Certificate AS Cer ON Q.CertificateId =Cer.CertificateId WHERE Q.PersonId = Person.PersonId AND IsRegisterHSSE=1)>0) as InjectionSafetyEngineerPersonNum, +(select COUNT(*) from SitePerson_Person Person where InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) AND Person.ProjectId=p.ProjectId and (SELECT COUNT(*) FROM QualityAudit_PersonQuality AS Q LEFT JOIN Base_Certificate AS Cer ON Q.CertificateId =Cer.CertificateId WHERE Q.PersonId = Person.PersonId AND CertificateType='A')> 0) as ACertificatePersonNum, +(select COUNT(*) from SitePerson_Person Person where InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) AND Person.ProjectId=p.ProjectId and (SELECT COUNT(*) FROM QualityAudit_PersonQuality AS Q LEFT JOIN Base_Certificate AS Cer ON Q.CertificateId =Cer.CertificateId WHERE Q.PersonId = Person.PersonId AND CertificateType='B')> 0) as BCertificatePersonNum, +(select COUNT(*) from SitePerson_Person Person where InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) AND Person.ProjectId=p.ProjectId and (SELECT COUNT(*) FROM QualityAudit_PersonQuality AS Q LEFT JOIN Base_Certificate AS Cer ON Q.CertificateId =Cer.CertificateId WHERE Q.PersonId = Person.PersonId AND CertificateType='C')> 0) as CCertificatePersonNum, +isnull((select top 1 ProjectWorkTime from SeDin_MonthReport2 a left join SeDin_MonthReport b on a.MonthReportId=b.MonthReportId where b.ProjectId=p.ProjectId order by ReporMonth desc),0) as TotalWorkingHours, +cast(isnull(((select sum(isnull(WorkHoursLoss,0)) from Accident_AccidentHandle a where a.ProjectId=p.ProjectId) ++(select sum(isnull(WorkingHoursLoss,0)) from Accident_AccidentReport a where a.ProjectId=p.ProjectId)),0) as int) as LostWorkingHours, +(isnull((select top 1 ProjectWorkTime from SeDin_MonthReport2 a left join SeDin_MonthReport b on a.MonthReportId=b.MonthReportId where b.ProjectId=p.ProjectId order by ReporMonth desc),0)- +cast(isnull(((select sum(isnull(WorkHoursLoss,0)) from Accident_AccidentHandle a where a.ProjectId=p.ProjectId) ++(select sum(isnull(WorkingHoursLoss,0)) from Accident_AccidentReport a where a.ProjectId=p.ProjectId)),0) as int)) as SafeWorkingHours, +(select COUNT(*) from EduTrain_TrainRecord r left join Base_TrainType t on r.TrainTypeId=t.TrainTypeId where r.ProjectId=p.ProjectId and t.TrainType='1' and r.TrainStartDate>'2023-01-01') as SafeTrainNum, +(select COUNT(*) from EduTrain_TrainRecord r left join Base_TrainType t on r.TrainTypeId=t.TrainTypeId where r.ProjectId=p.ProjectId and t.TrainType='2' and r.TrainStartDate>'2023-01-01') as SpecialTrainNum, +(select COUNT(*) from EduTrain_TrainRecord r left join Base_TrainType t on r.TrainTypeId=t.TrainTypeId where r.ProjectId=p.ProjectId and t.TrainType='3' and r.TrainStartDate>'2023-01-01') as SpecialOperationTrainNum, +(select COUNT(*) from Meeting_SafetyLeaderGroupMeeting r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01') as ProjectSafetyLeadingGroupMeetingNum, +((select COUNT(*) from Meeting_WeekMeeting r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01')+(select COUNT(*) from Meeting_MonthMeeting r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01')) as ProjectSafetyMeetingNum, +(select COUNT(*) from Check_ProjectLeaderCheck r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01') as ProjectLeadShiftCheckNum, +(select COUNT(*) from Check_CheckSpecial r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01') as ProjectSpecialCheckNum, +(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01') as ProjectMajorCheckNum, +(select COUNT(*) from Accident_AccidentPersonRecord r where r.ProjectId=p.ProjectId and r.IsAttempt='1' and r.CompileDate>'2023-01-01') as NearMissNum, +(select COUNT(*) from Accident_AccidentPersonRecord r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01') as RecordableEventNum, +(select COUNT(*) from Accident_AccidentReport r where r.ProjectId=p.ProjectId and r.AccidentDegree='1' and r.CompileDate>'2023-01-01') as GeneralAccidentNum, +(select COUNT(*) from Accident_AccidentReport r where r.ProjectId=p.ProjectId and r.AccidentDegree='2' and r.CompileDate>'2023-01-01') as MajorAccidentNum, +(select COUNT(*) from Accident_AccidentReport r where r.ProjectId=p.ProjectId and r.AccidentDegree='3' and r.CompileDate>'2023-01-01') as SeriousAccidentNum, +(select COUNT(*) from Accident_AccidentReport r where r.ProjectId=p.ProjectId and r.AccidentDegree='4' and r.CompileDate>'2023-01-01') as SpecialSeriousAccidentNum, +(select COUNT(*) from Emergency_EmergencyList r left join Base_EmergencyType t on r.EmergencyTypeId=t.EmergencyTypeId where r.ProjectId=p.ProjectId and t.EmergencyTypeName like '%ۺ%' and r.CompileDate>'2023-01-01') as ProjectComprehensivePlanNum, +(select COUNT(*) from Emergency_EmergencyList r left join Base_EmergencyType t on r.EmergencyTypeId=t.EmergencyTypeId where r.ProjectId=p.ProjectId and t.EmergencyTypeName like '%ר%' and r.CompileDate>'2023-01-01') as ProjectSpecialPlanNum, +(select COUNT(*) from Emergency_EmergencyList r left join Base_EmergencyType t on r.EmergencyTypeId=t.EmergencyTypeId where r.ProjectId=p.ProjectId and t.EmergencyTypeName like '%ֳ%' and r.CompileDate>'2023-01-01') as ProjectOnSiteDisposalPlanNum, +(select COUNT(*) from Emergency_DrillRecordList r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01') as ProjectDrillNum, +cast(ISNULL((select sum(PriceMoney) from CostGoods_CostManageItem r left join CostGoods_CostManage t on r.CostManageId=t.CostManageId where t.ProjectId=p.ProjectId and t.CompileDate>'2023-01-01'),0) as decimal(18,2)) as CostUse, +((select COUNT(*) from InApproveManager_EquipmentInItem r left join InApproveManager_EquipmentIn t on r.EquipmentInId=t.EquipmentInId where t.ProjectId=p.ProjectId) ++(select COUNT(*) from InApproveManager_GeneralEquipmentInItem r left join InApproveManager_GeneralEquipmentIn t on r.GeneralEquipmentInId=t.GeneralEquipmentInId where t.ProjectId=p.ProjectId)) as UseEquipmentNum, +(select COUNT(*) from InApproveManager_EquipmentInItem r left join InApproveManager_EquipmentIn t on r.EquipmentInId=t.EquipmentInId where t.ProjectId=p.ProjectId) as SpecialEquipmentNum, +((select COUNT(*) from License_LicenseManager r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01') ++(select COUNT(*) from License_BreakGround r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01') ++(select COUNT(*) from License_FireWork r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01') ++(select COUNT(*) from License_HeightWork r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01') ++(select COUNT(*) from License_LiftingWork r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01') ++(select COUNT(*) from License_LimitedSpace r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01') ++(select COUNT(*) from License_NightWork r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01') ++(select COUNT(*) from License_OpenCircuit r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01') ++(select COUNT(*) from License_RadialWork r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01')) as LicensesNum, +((select COUNT(*) from License_LicenseManager r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01' and WorkStates='3') ++(select COUNT(*) from License_BreakGround r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01' and States='3') ++(select COUNT(*) from License_FireWork r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01' and States='3') ++(select COUNT(*) from License_HeightWork r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01' and States='3') ++(select COUNT(*) from License_LiftingWork r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01' and States='3') ++(select COUNT(*) from License_LimitedSpace r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01' and States='3') ++(select COUNT(*) from License_NightWork r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01' and States='3') ++(select COUNT(*) from License_OpenCircuit r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01' and States='3') ++(select COUNT(*) from License_RadialWork r where r.ProjectId=p.ProjectId and r.ValidityStartTime>'2023-01-01' and States='3')) as LicensesCloseNum, +(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States='3' and (r.HazardValue='0.3' or r.HazardValue='1' or r.HazardValue is null)) as GeneralClosedNum, +(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States!='3' and (r.HazardValue='0.3' or r.HazardValue='1' or r.HazardValue is null)) as GeneralNotClosedNum, +(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States='3' and r.HazardValue='3') as MajorClosedNum, +(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States!='3' and r.HazardValue='3') as MajorNotClosedNum, +case when (select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States='3' and (r.HazardValue='0.3' or r.HazardValue='1' or r.HazardValue is null)) ++(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States!='3' and (r.HazardValue='0.3' or r.HazardValue='1' or r.HazardValue is null))>0 +then cast(cast(cast(1.0*(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States='3' and (r.HazardValue='0.3' or r.HazardValue='1' or r.HazardValue is null)) +/(1.0 *((select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States='3' and (r.HazardValue='0.3' or r.HazardValue='1' or r.HazardValue is null)) ++(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States!='3' and (r.HazardValue='0.3' or r.HazardValue='1' or r.HazardValue is null))))*100 as decimal(9,2)) as float) as nvarchar(10))+'%' +else '/' end as GeneralRate, +case when (select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States='3' and r.HazardValue='3') ++(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States!='3' and r.HazardValue='3')>0 +then cast(cast(cast(1.0*(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States='3' and r.HazardValue='3') +/(1.0 *((select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States='3' and r.HazardValue='3') ++(select COUNT(*) from HSSE_Hazard_HazardRegister r where r.ProjectId=p.ProjectId and r.CheckTime>'2023-01-01' and States!='3' and r.HazardValue='3')))*100 as decimal(9,2)) as float) as nvarchar(10))+'%' +else '/' end as MajorRate, +(select COUNT(*) from Hazard_HazardSelectedItem r left join Base_RiskLevel t on r.HazardLevel=t.RiskLevelId where r.ProjectId=p.ProjectId and t.RiskLevel=1 and r.IsStart=1) as LowRiskNum, +(select COUNT(*) from Hazard_HazardSelectedItem r left join Base_RiskLevel t on r.HazardLevel=t.RiskLevelId where r.ProjectId=p.ProjectId and t.RiskLevel=2 and r.IsStart=1) as GeneralRiskNum, +(select COUNT(*) from Hazard_HazardSelectedItem r left join Base_RiskLevel t on r.HazardLevel=t.RiskLevelId where r.ProjectId=p.ProjectId and t.RiskLevel=3 and r.IsStart=1) as MediumRiskNum, +(select COUNT(*) from Hazard_HazardSelectedItem r left join Base_RiskLevel t on r.HazardLevel=t.RiskLevelId where r.ProjectId=p.ProjectId and t.RiskLevel=4 and r.IsStart=1) as HighRiskNum, +(select COUNT(*) from Solution_LargerHazard r where r.ProjectId=p.ProjectId and r.States='1' and r.RecordTime>'2023-01-01' and r.IsSuperLargerHazard=0) as CompletedNum, +isnull((select sum(TrainPersonNum) from Solution_LargerHazard r where r.ProjectId=p.ProjectId and r.RecordTime>'2023-01-01' and r.IsSuperLargerHazard=0),0) as TrainPersonNum, +(select COUNT(*) from Solution_LargerHazard r where r.ProjectId=p.ProjectId and r.States='2' and r.RecordTime>'2023-01-01' and r.IsSuperLargerHazard=0) as ConstructionNum, +(select COUNT(*) from Solution_LargerHazard r where r.ProjectId=p.ProjectId and r.States='3' and r.RecordTime>'2023-01-01' and r.IsSuperLargerHazard=0) as FinishedNum, +(select COUNT(*) from Solution_LargerHazard r where r.ProjectId=p.ProjectId and r.States='1' and r.RecordTime>'2023-01-01' and r.IsSuperLargerHazard=1) as SuperCompletedNum, +isnull((select sum(TrainPersonNum) from Solution_LargerHazard r where r.ProjectId=p.ProjectId and r.RecordTime>'2023-01-01' and r.IsSuperLargerHazard=1),0) as SuperTrainPersonNum, +(select COUNT(*) from Solution_LargerHazard r where r.ProjectId=p.ProjectId and r.States='2' and r.RecordTime>'2023-01-01' and r.IsSuperLargerHazard=1) as SuperConstructionNum, +(select COUNT(*) from Solution_LargerHazard r where r.ProjectId=p.ProjectId and r.States='3' and r.RecordTime>'2023-01-01' and r.IsSuperLargerHazard=1) as SuperFinishedNum, +isnull((select sum(TrainPersonNum) from Train_TrainPlan r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01'),0) as QTrainPersonNum, +isnull((select sum(JoinPersonNum) from Comprehensive_DesignDetails r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01'),0) as TechnicalDisclosePersonNum, +(select COUNT(*) from Check_CheckEquipment r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01') as UseNum, +(select COUNT(*) from Check_CheckEquipment r where r.ProjectId=p.ProjectId and r.CompileDate>'2023-01-01') as OKNum, +(select COUNT(*) from SitePerson_Person Person LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId =WorkPost.WorkPostId where InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) AND Person.ProjectId=p.ProjectId and WorkPost.IsCQMS=1) as ProjectPersonNum, +(select COUNT(*) from Check_CheckControl r where r.ProjectId=p.ProjectId and r.CheckDate>'2023-01-01') as ProblemNum, +(select COUNT(*) from Check_CheckControl r where r.ProjectId=p.ProjectId and r.CheckDate>'2023-01-01' and r.State='7') as ProblemCompletedNum, +(select COUNT(*) from Check_CheckControl r where r.ProjectId=p.ProjectId and r.CheckDate>'2023-01-01' and r.State!='7') as ProblemNotCompletedNum, +case when (select COUNT(*) from Check_CheckControl r where r.ProjectId=p.ProjectId and r.CheckDate>'2023-01-01')>0 +then cast(cast(cast(1.0*(select COUNT(*) from Check_CheckControl r where r.ProjectId=p.ProjectId and r.CheckDate>'2023-01-01' and r.State='7') +/(1.0 *((select COUNT(*) from Check_CheckControl r where r.ProjectId=p.ProjectId and r.CheckDate>'2023-01-01')))*100 as decimal(9,2)) as float) as nvarchar(10))+'%' +else '/' end as ProblemRate, +(select COUNT(*) from WBS_ControlItemAndCycle r where r.ProjectId=p.ProjectId and r.ControlPoint like '%A%' and r.IsApprove=1) as ANum, +(select COUNT(*) from WBS_ControlItemAndCycle r where r.ProjectId=p.ProjectId and r.ControlPoint like '%B%' and r.IsApprove=1) as BNum, +(select COUNT(*) from WBS_ControlItemAndCycle r where r.ProjectId=p.ProjectId and r.ControlPoint like '%C%' and r.IsApprove=1) as CNum, +(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='1' and t.SpotCheckDate>'2023-01-01') as KeyProcessNum, +(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='1' and r.IsOK=1 and t.SpotCheckDate>'2023-01-01') as KeyProcessOkNum, +case when (select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='1' and t.SpotCheckDate>'2023-01-01')>0 +then cast(cast(cast(1.0*(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='1' and r.IsOK=1 and t.SpotCheckDate>'2023-01-01') +/(1.0 *((select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='1' and t.SpotCheckDate>'2023-01-01')))*100 as decimal(9,2)) as float) as nvarchar(10))+'%' +else '/' end as KeyProcessRate, +(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='2' and t.SpotCheckDate>'2023-01-01') as SpecialProcessNum, +(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='2' and r.IsOK=1 and t.SpotCheckDate>'2023-01-01') as SpecialProcessOkNum, +case when (select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='2' and t.SpotCheckDate>'2023-01-01')>0 +then cast(cast(cast(1.0*(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='2' and r.IsOK=1 and t.SpotCheckDate>'2023-01-01') +/(1.0 *((select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='2' and t.SpotCheckDate>'2023-01-01')))*100 as decimal(9,2)) as float) as nvarchar(10))+'%' +else '/' end as SpecialProcessRate, +(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='3' and t.SpotCheckDate>'2023-01-01') as ConcealedWorksNum, +(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='3' and r.IsOK=1 and t.SpotCheckDate>'2023-01-01') as ConcealedWorksOkNum, +case when (select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='3' and t.SpotCheckDate>'2023-01-01')>0 +then cast(cast(cast(1.0*(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='3' and r.IsOK=1 and t.SpotCheckDate>'2023-01-01') +/(1.0 *((select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='3' and t.SpotCheckDate>'2023-01-01')))*100 as decimal(9,2)) as float) as nvarchar(10))+'%' +else '/' end as ConcealedWorksRate, +(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='4' and t.SpotCheckDate>'2023-01-01') as UnitProjectOnesNum, +(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='4' and r.IsOK=1 and t.SpotCheckDate>'2023-01-01') as UnitProjectOnesOKNum, +case when (select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='4' and t.SpotCheckDate>'2023-01-01')>0 +then cast(cast(cast(1.0*(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='4' and r.IsOK=1 and t.SpotCheckDate>'2023-01-01') +/(1.0 *((select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='4' and t.SpotCheckDate>'2023-01-01')))*100 as decimal(9,2)) as float) as nvarchar(10))+'%' +else '/' end as UnitProjectOnesRate, +(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='5' and t.SpotCheckDate>'2023-01-01') as MaterialInRecheckNum, +(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='5' and r.IsOK=1 and t.SpotCheckDate>'2023-01-01') as MaterialInRecheckOKNum, +case when (select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='5' and t.SpotCheckDate>'2023-01-01')>0 +then cast(cast(cast(1.0*(select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='5' and r.IsOK=1 and t.SpotCheckDate>'2023-01-01') +/(1.0 *((select COUNT(*) from Check_SpotCheckDetail r left join Check_SpotCheck t on r.SpotCheckCode=t.SpotCheckCode left join WBS_ControlItemAndCycle c on c.ControlItemAndCycleId=r.ControlItemAndCycleId where t.ProjectId=p.ProjectId and c.CheckAcceptType='5' and t.SpotCheckDate>'2023-01-01')))*100 as decimal(9,2)) as float) as nvarchar(10))+'%' +else '/' end as MaterialInRecheckRate, +(select COUNT(*) from WBS_UnitWork r where r.ProjectId=p.ProjectId) as SingleProjectNum, +(select COUNT(*) from WBS_UnitWork r where r.ProjectId=p.ProjectId) as UnitProjectNum, +(select COUNT(*) from WBS_WorkPackage r where r.ProjectId=p.ProjectId and r.SubItemType='1' and r.IsApprove=1) as SubProjectNum, +(select COUNT(*) from WBS_WorkPackage r where r.ProjectId=p.ProjectId and r.SubItemType='3' and r.IsApprove=1) as SubdivisionalWorksNum, +(select COUNT(*) from WBS_ControlItemAndCycle r where r.ProjectId=p.ProjectId and r.IsApprove=1) as InspectionLotNum, +(select COUNT(*) from SitePerson_Person Person where InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) AND Person.ProjectId=p.ProjectId and Person.WorkPostId='19B8F2A9-28D3-4F20-867A-1B2237C2E228') as WelderNum, +(select CAST((SELECT ISNULL(SUM(ISNULL(Size,0)),0) FROM dbo.HJGL_WeldJoint w WHERE w.ProjectId=p.ProjectId) AS DECIMAL(12,3))) AS TotalDineNum, +CAST((SELECT ISNULL(SUM(ISNULL(jot.Size,0)),0) FROM dbo.HJGL_WeldJoint jot left join dbo.HJGL_WeldingDaily d on d.WeldingDailyId=jot.WeldingDailyId WHERE jot.ProjectId=p.ProjectId AND jot.WeldingDailyId IS NOT NULL and d.WeldingDate<=GETDATE()) AS DECIMAL(12,3)) AS CompleteDineNum, +isnull((select sum(TotalFilm) from HJGL_Batch_NDEItem r left join HJGL_Batch_NDE t on t.NDEID=r.NDEID where t.ProjectId=p.ProjectId),0) as TotalFilmNum, +isnull((select sum(PassFilm) from HJGL_Batch_NDEItem r left join HJGL_Batch_NDE t on t.NDEID=r.NDEID where t.ProjectId=p.ProjectId),0) as OKFilmNum, +p.ProjectId +from Base_Project p +where IsCNCECShow=1 + + + + + + +GO + + + INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('CF5516F7-0735-44EF-9A6D-46FABF8EBC6E','Ӧչ','HSSE/Emergency/DrillRecordList.aspx',50,'B6FBD6B6-F9A0-49B1-87F9-160748162131','Menu_HSSE',0,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('5621C1B0-AE75-467C-801E-7D776BDB9F0F','CF5516F7-0735-44EF-9A6D-46FABF8EBC6E','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('628DA0F7-2952-48A4-947E-E42A92EDCD4F','CF5516F7-0735-44EF-9A6D-46FABF8EBC6E','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('DEA0EDC8-4ACE-4E12-9506-4E993678FA76','CF5516F7-0735-44EF-9A6D-46FABF8EBC6E','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('E2736506-C222-4194-A279-DD92FA9976AE','CF5516F7-0735-44EF-9A6D-46FABF8EBC6E','',4) + GO + + +ALTER VIEW [dbo].[View_HJGL_Pipeline] +AS +/*************ͼ*****************/ +SELECT pipeline.PipelineId, +pipeline.ProjectId, +pipeline.UnitId, +pipeline.UnitWorkId, +pipeline.PipelineCode, +pipeline.SingleName, +pipeline.SingleNumber, +pipeline.PipingClassId, +pipeline.MediumId, +pipingClass.PipingClassCode, +pipeline.DetectionRateId, +rate.DetectionRateCode, +pipeline.DetectionType, +pipeline.TestPressure, +pipeline.TestMedium, +pipeline.PressurePipingClassId, +pc.PressurePipingClassCode, +pipeline.PipeLenth, +pipeline.DesignPress, +pipeline.DesignTemperature, +pipeline.Remark, +pipeline.LeakPressure, +pipeline.LeakMedium, +pipeline.VacuumPressure, +pipeline.PCMedium , +pipeline.PCtype, +pipeline.MaterialId, +pipeline.PipeArea, +pipeline.FlowingSection, +mat.MaterialCode, +dType.DetectionTypeCode, +lea.MediumName AS LeakMediumName, +pur.PurgeMethodName AS PCMediumName, +CAST((SELECT SUM(ISNULL(Size,0)) FROM dbo.HJGL_WeldJoint WHERE PipelineId=pipeline.PipelineId) AS DECIMAL(8,3)) AS TotalDin, +CAST((SELECT ISNULL(SUM(ISNULL(jot.Size,0)),0) FROM dbo.HJGL_WeldJoint jot WHERE jot.PipelineId=pipeline.PipelineId AND jot.WeldingDailyId IS NOT NULL) AS DECIMAL(8,3)) AS FinishSize, +(SELECT COUNT(WeldJointId) FROM dbo.HJGL_WeldJoint WHERE PipelineId=pipeline.PipelineId and IsTwoJoint is null) AS JointCount, +(SELECT COUNT(WeldJointId) FROM dbo.HJGL_WeldJoint WHERE PipelineId=pipeline.PipelineId and IsTwoJoint is null and WeldingDailyId IS NOT NULL) AS FinishJointCount, +unit.UnitName, +workArea.UnitWorkCode, +medium.MediumCode, +medium.MediumName AS MediumName, +testMedium.MediumCode AS TestMediumCode, +pipeline.ActEndDate AS FinishedDate, +pipeline.IsFinished +FROM dbo.HJGL_Pipeline AS pipeline +LEFT JOIN Base_PipingClass AS pipingClass ON pipingClass.PipingClassId=pipeline.PipingClassId +LEFT JOIN dbo.Base_Unit AS unit ON unit.UnitId=pipeline.UnitId +LEFT JOIN WBS_UnitWork AS workArea ON workArea.UnitWorkId=pipeline.UnitWorkId +LEFT JOIN Base_Medium AS medium ON medium.MediumId=pipeline.MediumId +LEFT JOIN dbo.Base_TestMedium AS testMedium ON testMedium.TestMediumId=pipeline.TestMedium +LEFT JOIN dbo.Base_DetectionRate rate ON rate.DetectionRateId = pipeline.DetectionRateId +LEFT JOIN dbo.Base_PressurePipingClass pc ON pc.PressurePipingClassId = pipeline.PressurePipingClassId +LEFT JOIN dbo.Base_TestMedium AS lea ON lea.TestMediumId=pipeline.LeakMedium +LEFT JOIN dbo.Base_PurgeMethod AS pur ON pur.PurgeMethodId=pipeline.PCMedium +LEFT JOIN dbo.Base_Material AS mat ON mat.MaterialId=pipeline.MaterialId +LEFT JOIN dbo.Base_DetectionType dType on dType.DetectionTypeId=pipeline.DetectionType + + + + + + + +GO + + diff --git a/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql b/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql index 88d645b9..ac632a3a 100644 --- a/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql +++ b/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql @@ -1002,6 +1002,19 @@ GO VALUES('E81F86B1-ADC6-4567-834A-46CC96E09198','A5D0287B-2410-4DB1-8BD4-E0534EBAE308','ɾ',3) INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('D2A08B2D-C954-4E9D-85E9-27CF0476A3D9','A5D0287B-2410-4DB1-8BD4-E0534EBAE308','',4) + GO + + INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('CF5516F7-0735-44EF-9A6D-46FABF8EBC6E','Ӧչ','HSSE/Emergency/DrillRecordList.aspx',50,'B6FBD6B6-F9A0-49B1-87F9-160748162131','Menu_HSSE',0,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('5621C1B0-AE75-467C-801E-7D776BDB9F0F','CF5516F7-0735-44EF-9A6D-46FABF8EBC6E','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('628DA0F7-2952-48A4-947E-E42A92EDCD4F','CF5516F7-0735-44EF-9A6D-46FABF8EBC6E','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('DEA0EDC8-4ACE-4E12-9506-4E993678FA76','CF5516F7-0735-44EF-9A6D-46FABF8EBC6E','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('E2736506-C222-4194-A279-DD92FA9976AE','CF5516F7-0735-44EF-9A6D-46FABF8EBC6E','',4) GO --HSSE diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 7ccfde7c..a85d8861 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -861,6 +861,9 @@ + + + @@ -9965,6 +9968,27 @@ TrainTestView.aspx + + DrillRecordList.aspx + ASPXCodeBehind + + + DrillRecordList.aspx + + + DrillRecordListEdit.aspx + ASPXCodeBehind + + + DrillRecordListEdit.aspx + + + DrillRecordListView.aspx + ASPXCodeBehind + + + DrillRecordListView.aspx + EmergencyList.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx.cs b/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx.cs index 78d1f9b6..ab5246b4 100644 --- a/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx.cs @@ -318,7 +318,8 @@ namespace FineUIPro.Web.HJGL.InfoQuery 总达因数 =x.TotalDin, 总焊口量=x.JointCount, 单位名称=x.UnitName, - 探伤比例=x.DetectionRateCode, + 无损检测类型=x.DetectionTypeCode, + 探伤比例 =x.DetectionRateCode, 介质名称=x.MediumName, 管道等级=x.PipingClassCode, 图纸名称=x.SingleName, diff --git a/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx new file mode 100644 index 00000000..9db924df --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx @@ -0,0 +1,131 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DrillRecordList.aspx.cs" Inherits="FineUIPro.Web.HSSE.Emergency.DrillRecordList" %> + + + + + + + 应急演练 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx.cs new file mode 100644 index 00000000..284f6e5c --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx.cs @@ -0,0 +1,319 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +using System.Text; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.HSSE.Emergency +{ + public partial class DrillRecordList : PageBase + { + #region 定义项 + /// + /// 项目id + /// + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ////权限按钮方法 + this.GetButtonPower(); + this.ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.ProjectId) + { + this.ProjectId = Request.Params["projectId"]; + } + BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true); + if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId)) + { + this.drpUnitId.SelectedValue = this.CurrUser.UnitId; + this.drpUnitId.Enabled = false; + } + this.btnNew.OnClientClick = Window1.GetShowReference("DrillRecordListEdit.aspx") + "return false;"; + this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + } + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT DrillRecordList.DrillRecordListId,DrillRecordList.ProjectId,DrillRecordType.ConstText AS DrillRecordTypeName,DrillRecordList.JointPersonNum,DrillRecordList.DrillCost,CodeRecords.Code AS DrillRecordCode,DrillRecordList.DrillRecordName,DrillRecordList.DrillRecordDate,DrillRecordList.CompileMan,Users.PersonName AS CompileManName,DrillRecordList.UnitIds,DrillRecordList.UnitNames,DrillRecordList.UserNames,DrillRecordList.States " + + @" ,(CASE WHEN DrillRecordList.States = " + BLL.Const.State_0 + " OR DrillRecordList.States IS NULL THEN '待['+OperateUser.PersonName+']提交' WHEN DrillRecordList.States = " + BLL.Const.State_2 + " THEN '审核/审批完成' ELSE '待['+OperateUser.PersonName+']办理' END) AS FlowOperateName" + + @" FROM Emergency_DrillRecordList AS DrillRecordList " + + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON DrillRecordList.DrillRecordListId=CodeRecords.DataId " + + @" LEFT JOIN Sys_FlowOperate AS FlowOperate ON DrillRecordList.DrillRecordListId=FlowOperate.DataId AND FlowOperate.IsClosed <> 1" + + @" LEFT JOIN Sys_Const AS DrillRecordType ON DrillRecordType.ConstValue = DrillRecordList.DrillRecordType and DrillRecordType.GroupId='DrillRecordType'" + + @" LEFT JOIN Person_Persons AS OperateUser ON FlowOperate.OperaterId=OperateUser.PersonId" + + @" LEFT JOIN Person_Persons AS Users ON DrillRecordList.CompileMan=Users.PersonId WHERE 1=1 "; + List listStr = new List(); + strSql += " AND DrillRecordList.ProjectId = @ProjectId"; + if (!string.IsNullOrEmpty(Request.Params["projectId"])) ///是否文件柜查看页面传项目值 + { + listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"])); + strSql += " AND DrillRecordList.States = @States"; ///状态为已完成 + listStr.Add(new SqlParameter("@States", BLL.Const.State_2)); + } + else + { + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + } + + if (!string.IsNullOrEmpty(this.txtDrillRecordCode.Text.Trim())) + { + strSql += " AND DrillRecordCode LIKE @DrillRecordCode"; + listStr.Add(new SqlParameter("@DrillRecordCode", "%" + this.txtDrillRecordCode.Text.Trim() + "%")); + } + if (this.drpUnitId.SelectedValue != BLL.Const._Null) + { + strSql += " AND DrillRecordList.UnitIds LIKE @UnitId"; + listStr.Add(new SqlParameter("@UnitId", "%" + this.drpUnitId.SelectedValue.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtDrillRecordName.Text.Trim())) + { + strSql += " AND DrillRecordList.DrillRecordName LIKE @DrillRecordName"; + listStr.Add(new SqlParameter("@DrillRecordName", "%" + this.txtDrillRecordName.Text.Trim() + "%")); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + + #region 分页 排序 + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 编辑 + /// + /// 双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + this.EditData(); + } + + /// + /// 右键编辑事件 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + this.EditData(); + } + + /// + /// 编辑数据方法 + /// + private void EditData() + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + var DrillRecord = BLL.DrillRecordListService.GetDrillRecordListById(id); + if (DrillRecord != null) + { + if (this.btnMenuEdit.Hidden || DrillRecord.States == BLL.Const.State_2) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DrillRecordListView.aspx?DrillRecordListId={0}", id, "查看 - "))); + } + else + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DrillRecordListEdit.aspx?DrillRecordListId={0}", id, "编辑 - "))); + } + } + } + #endregion + + #region 删除 + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + var DrillRecordList = BLL.DrillRecordListService.GetDrillRecordListById(rowID); + if (DrillRecordList != null) + { + BLL.LogService.AddSys_Log(this.CurrUser, DrillRecordList.DrillRecordCode, DrillRecordList.DrillRecordListId, BLL.Const.ProjectDrillRecordListMenuId, BLL.Const.BtnDelete); + + BLL.DrillRecordListService.DeleteDrillRecordListById(rowID); + } + } + + this.BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + Response.ClearContent(); + string filename = Funs.GetNewFileName(); + Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("应急演练" + filename, System.Text.Encoding.UTF8) + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = System.Text.Encoding.UTF8; + this.Grid1.PageSize = 500; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) + { + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + sb.AppendFormat("", column.HeaderText); + } + sb.Append(""); + foreach (GridRow row in grid.Rows) + { + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + string html = row.Values[column.ColumnIndex].ToString(); + if (column.ColumnID == "tfNumber") + { + html = (row.FindControl("lblNumber") as AspNet.Label).Text; + } + sb.AppendFormat("", html); + } + + sb.Append(""); + } + + sb.Append("
{0}
{0}
"); + + return sb.ToString(); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.ProjectDrillRecordListMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnMenuEdit.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDelete.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx.designer.cs new file mode 100644 index 00000000..fcf32342 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordList.aspx.designer.cs @@ -0,0 +1,186 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Emergency { + + + public partial class DrillRecordList { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// txtDrillRecordCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDrillRecordCode; + + /// + /// drpUnitId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitId; + + /// + /// txtDrillRecordName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDrillRecordName; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// lblNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx new file mode 100644 index 00000000..c8e8e4fa --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx @@ -0,0 +1,92 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DrillRecordListEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.Emergency.DrillRecordListEdit" ValidateRequest="false" %> + +<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" TagPrefix="uc1" %> + + + + + + 编辑应急演练 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx.cs new file mode 100644 index 00000000..dd91a921 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx.cs @@ -0,0 +1,226 @@ +using BLL; +using System; +using System.Web; + +namespace FineUIPro.Web.HSSE.Emergency +{ + public partial class DrillRecordListEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string DrillRecordListId + { + get + { + return (string)ViewState["DrillRecordListId"]; + } + set + { + ViewState["DrillRecordListId"] = value; + } + } + /// + /// 项目主键 + /// + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ProjectId = this.CurrUser.LoginProjectId; + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.InitDropDownList(); + this.DrillRecordListId = Request.Params["DrillRecordListId"]; + if (!string.IsNullOrEmpty(this.DrillRecordListId)) + { + Model.Emergency_DrillRecordList DrillRecordList = BLL.DrillRecordListService.GetDrillRecordListById(this.DrillRecordListId); + if (DrillRecordList != null) + { + this.ProjectId = DrillRecordList.ProjectId; + if (this.ProjectId != this.CurrUser.LoginProjectId) + { + this.InitDropDownList(); + } + ///读取编号 + this.txtDrillRecordCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.DrillRecordListId); + this.txtDrillRecordName.Text = DrillRecordList.DrillRecordName; + if (!string.IsNullOrEmpty(DrillRecordList.UnitIds)) + { + this.drpUnits.SelectedValueArray = DrillRecordList.UnitIds.Split(','); + } + if (!string.IsNullOrEmpty(DrillRecordList.DrillRecordType)) + { + this.drpDrillRecordType.SelectedValue = DrillRecordList.DrillRecordType; + } + this.txtDrillRecordDate.Text = string.Format("{0:yyyy-MM-dd}", DrillRecordList.DrillRecordDate); + if (DrillRecordList.JointPersonNum != null) + { + this.txtJointPersonNum.Text = DrillRecordList.JointPersonNum.ToString(); + } + if (DrillRecordList.DrillCost != null) + { + this.txtDrillCost.Text = DrillRecordList.DrillCost.ToString(); + } + this.txtDrillRecordContents.Text = HttpUtility.HtmlDecode(DrillRecordList.DrillRecordContents); + } + } + else + { + if (!string.IsNullOrEmpty(this.CurrUser.UnitId)) + { + this.drpUnits.SelectedValue = this.CurrUser.UnitId; + } + this.txtDrillRecordDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + var codeTemplateRule = BLL.ProjectData_CodeTemplateRuleService.GetProjectData_CodeTemplateRuleByMenuIdProjectId(BLL.Const.ProjectDrillRecordListMenuId, this.ProjectId); + if (codeTemplateRule != null) + { + this.txtDrillRecordContents.Text = HttpUtility.HtmlDecode(codeTemplateRule.Template); + } + + ////自动生成编码 + this.txtDrillRecordCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectDrillRecordListMenuId, this.ProjectId, this.CurrUser.UnitId); + this.txtDrillRecordName.Text = this.SimpleForm1.Title; + } + + ///初始化审核菜单 + this.ctlAuditFlow.MenuId = BLL.Const.ProjectDrillRecordListMenuId; + this.ctlAuditFlow.DataId = this.DrillRecordListId; + this.ctlAuditFlow.ProjectId = this.ProjectId; + this.ctlAuditFlow.UnitId = this.CurrUser.UnitId; + } + } + + /// + /// 初始化下拉框 + /// + private void InitDropDownList() + { + BLL.UnitService.InitUnitDropDownList(this.drpUnits, this.ProjectId, false); + BLL.ConstValue.InitConstValueDropDownList(this.drpDrillRecordType, BLL.ConstValue.Group_DrillRecordType, false); + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + this.SaveData(BLL.Const.BtnSave); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + /// + /// 提交按钮 + /// + /// + /// + protected void btnSubmit_Click(object sender, EventArgs e) + { + if (this.ctlAuditFlow.NextStep == BLL.Const.State_1 && this.ctlAuditFlow.NextPerson == BLL.Const._Null) + { + ShowNotify("请选择下一步办理人!", MessageBoxIcon.Warning); + return; + } + this.SaveData(BLL.Const.BtnSubmit); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + /// + /// 保存数据 + /// + /// + private void SaveData(string type) + { + Model.Emergency_DrillRecordList DrillRecordList = new Model.Emergency_DrillRecordList + { + ProjectId = this.ProjectId, + DrillRecordCode = this.txtDrillRecordCode.Text.Trim(), + DrillRecordName = this.txtDrillRecordName.Text.Trim(), + DrillRecordDate = Funs.GetNewDateTime(this.txtDrillRecordDate.Text.Trim()), + DrillRecordType = this.drpDrillRecordType.SelectedValue, + DrillRecordContents = HttpUtility.HtmlEncode(this.txtDrillRecordContents.Text), + JointPersonNum = Funs.GetNewIntOrZero(this.txtJointPersonNum.Text.Trim()), + DrillCost = Funs.GetNewDecimalOrZero(this.txtDrillCost.Text.Trim()) + }; + //参与单位 + string unitIds = string.Empty; + string unitNames = string.Empty; + foreach (var item in this.drpUnits.SelectedValueArray) + { + var unit = BLL.UnitService.GetUnitByUnitId(item); + if (unit != null) + { + unitIds += unit.UnitId + ","; + unitNames += unit.UnitName + ","; + } + } + if (!string.IsNullOrEmpty(unitIds)) + { + DrillRecordList.UnitIds = unitIds.Substring(0, unitIds.LastIndexOf(",")); + DrillRecordList.UnitNames = unitNames.Substring(0, unitNames.LastIndexOf(",")); + } + ////单据状态 + DrillRecordList.States = BLL.Const.State_0; + if (type == BLL.Const.BtnSubmit) + { + DrillRecordList.States = this.ctlAuditFlow.NextStep; + } + if (!string.IsNullOrEmpty(this.DrillRecordListId)) + { + DrillRecordList.DrillRecordListId = this.DrillRecordListId; + BLL.DrillRecordListService.UpdateDrillRecordList(DrillRecordList); + BLL.LogService.AddSys_Log(this.CurrUser, DrillRecordList.DrillRecordCode, DrillRecordList.DrillRecordListId, BLL.Const.ProjectDrillRecordListMenuId, BLL.Const.BtnModify); + } + else + { + this.DrillRecordListId = SQLHelper.GetNewID(typeof(Model.Emergency_DrillRecordList)); + DrillRecordList.CompileMan = this.CurrUser.PersonId; + DrillRecordList.DrillRecordListId = this.DrillRecordListId; + BLL.DrillRecordListService.AddDrillRecordList(DrillRecordList); + BLL.LogService.AddSys_Log(this.CurrUser, DrillRecordList.DrillRecordCode, DrillRecordList.DrillRecordListId, BLL.Const.ProjectDrillRecordListMenuId, BLL.Const.BtnAdd); + } + ////保存流程审核数据 + this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.ProjectDrillRecordListMenuId, this.DrillRecordListId, (type == BLL.Const.BtnSubmit ? true : false), DrillRecordList.DrillRecordName, "../Emergency/DrillRecordListView.aspx?DrillRecordListId={0}"); + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.DrillRecordListId)) + { + SaveData(BLL.Const.BtnSave); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/DrillRecordListAttachUrl&menuId={1}", DrillRecordListId, BLL.Const.ProjectDrillRecordListMenuId))); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx.designer.cs new file mode 100644 index 00000000..9520f78a --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListEdit.aspx.designer.cs @@ -0,0 +1,186 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Emergency { + + + public partial class DrillRecordListEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtDrillRecordCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDrillRecordCode; + + /// + /// txtDrillRecordName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDrillRecordName; + + /// + /// txtDrillRecordDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtDrillRecordDate; + + /// + /// drpUnits 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnits; + + /// + /// drpDrillRecordType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpDrillRecordType; + + /// + /// txtJointPersonNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtJointPersonNum; + + /// + /// txtDrillCost 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtDrillCost; + + /// + /// txtDrillRecordContents 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HtmlEditor txtDrillRecordContents; + + /// + /// ContentPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel1; + + /// + /// ctlAuditFlow 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnSubmit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSubmit; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx new file mode 100644 index 00000000..80a387de --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx @@ -0,0 +1,79 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DrillRecordListView.aspx.cs" Inherits="FineUIPro.Web.HSSE.Emergency.DrillRecordListView" ValidateRequest="false" %> + +<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" TagPrefix="uc1" %> + + + + + + 查看应急演练 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx.cs new file mode 100644 index 00000000..53952c47 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx.cs @@ -0,0 +1,90 @@ +using System; +using System.Linq; +using System.Web; + +namespace FineUIPro.Web.HSSE.Emergency +{ + public partial class DrillRecordListView : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string DrillRecordListId + { + get + { + return (string)ViewState["DrillRecordListId"]; + } + set + { + ViewState["DrillRecordListId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.DrillRecordListId = Request.Params["DrillRecordListId"]; + if (!string.IsNullOrEmpty(this.DrillRecordListId)) + { + Model.Emergency_DrillRecordList DrillRecordList = BLL.DrillRecordListService.GetDrillRecordListById(this.DrillRecordListId); + if (DrillRecordList != null) + { + ///读取编号 + this.txtDrillRecordCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.DrillRecordListId); + this.txtDrillRecordName.Text = DrillRecordList.DrillRecordName; + this.txtDrillRecordDate.Text = string.Format("{0:yyyy-MM-dd}", DrillRecordList.DrillRecordDate); + this.txtUnits.Text = DrillRecordList.UnitNames; + if (!string.IsNullOrEmpty(DrillRecordList.DrillRecordType)) + { + Model.Sys_Const c = BLL.ConstValue.drpConstItemList(BLL.ConstValue.Group_DrillRecordType).FirstOrDefault(x => x.ConstValue == DrillRecordList.DrillRecordType); + if (c != null) + { + this.txtDrillRecordType.Text = c.ConstText; + } + } + if (DrillRecordList.JointPersonNum != null) + { + this.txtJointPersonNum.Text = DrillRecordList.JointPersonNum.ToString(); + } + if (DrillRecordList.DrillCost != null) + { + this.txtDrillCost.Text = DrillRecordList.DrillCost.ToString(); + } + this.txtDrillRecordContents.Text = HttpUtility.HtmlDecode(DrillRecordList.DrillRecordContents); + } + } + + ///初始化审核菜单 + this.ctlAuditFlow.MenuId = BLL.Const.ProjectDrillRecordListMenuId; + this.ctlAuditFlow.DataId = this.DrillRecordListId; + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.DrillRecordListId)) + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/DrillRecordListAttachUrl&menuId={1}&type=-1", DrillRecordListId, BLL.Const.ProjectDrillRecordListMenuId))); + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx.designer.cs new file mode 100644 index 00000000..f29d64e6 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Emergency/DrillRecordListView.aspx.designer.cs @@ -0,0 +1,168 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Emergency { + + + public partial class DrillRecordListView { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtDrillRecordCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDrillRecordCode; + + /// + /// txtDrillRecordName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDrillRecordName; + + /// + /// txtDrillRecordDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDrillRecordDate; + + /// + /// txtUnits 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtUnits; + + /// + /// txtDrillRecordType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDrillRecordType; + + /// + /// txtJointPersonNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtJointPersonNum; + + /// + /// txtDrillCost 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDrillCost; + + /// + /// txtDrillRecordContents 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HtmlEditor txtDrillRecordContents; + + /// + /// ContentPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel1; + + /// + /// ctlAuditFlow 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/DataStatistics.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/DataSync/DataStatistics.aspx.cs index 9570939b..44d15022 100644 --- a/SGGL/FineUIPro.Web/ZHGL/DataSync/DataStatistics.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/DataStatistics.aspx.cs @@ -80,7 +80,7 @@ namespace FineUIPro.Web.ZHGL.DataSync int ProjectSpecialPlanNum = 0; int ProjectOnSiteDisposalPlanNum = 0; int ProjectDrillNum = 0; - int CostUse = 0; + decimal CostUse = 0; int UseEquipmentNum = 0; int SpecialEquipmentNum = 0; int LicensesNum = 0; @@ -170,7 +170,7 @@ namespace FineUIPro.Web.ZHGL.DataSync ProjectSpecialPlanNum += Funs.GetNewIntOrZero(row["ProjectSpecialPlanNum"].ToString()); ProjectOnSiteDisposalPlanNum += Funs.GetNewIntOrZero(row["ProjectOnSiteDisposalPlanNum"].ToString()); ProjectDrillNum += Funs.GetNewIntOrZero(row["ProjectDrillNum"].ToString()); - CostUse += Funs.GetNewIntOrZero(row["CostUse"].ToString()); + CostUse += Funs.GetNewDecimalOrZero(row["CostUse"].ToString()); UseEquipmentNum += Funs.GetNewIntOrZero(row["UseEquipmentNum"].ToString()); SpecialEquipmentNum += Funs.GetNewIntOrZero(row["SpecialEquipmentNum"].ToString()); LicensesNum += Funs.GetNewIntOrZero(row["LicensesNum"].ToString()); diff --git a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml index 2edfbe00..c4548b8a 100644 --- a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml +++ b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml @@ -93,6 +93,7 @@ + diff --git a/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml b/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml index 91287096..ac07e539 100644 --- a/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml +++ b/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml @@ -84,6 +84,7 @@ + diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 482ac9bb..48344a03 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -6303,6 +6303,14 @@ namespace Model } } + public System.Data.Linq.Table View_DataStatistics + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table View_DayRportView { get @@ -263811,6 +263819,1635 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_DataStatistics")] + public partial class View_DataStatistics + { + + private string _ShortName; + + private System.Nullable _CommissionerPersonNum; + + private System.Nullable _FullTimePersonNum; + + private System.Nullable _SafetySupervisionPersonNum; + + private System.Nullable _InjectionSafetyEngineerPersonNum; + + private System.Nullable _ACertificatePersonNum; + + private System.Nullable _BCertificatePersonNum; + + private System.Nullable _CCertificatePersonNum; + + private decimal _TotalWorkingHours; + + private System.Nullable _LostWorkingHours; + + private System.Nullable _SafeWorkingHours; + + private System.Nullable _SafeTrainNum; + + private System.Nullable _SpecialTrainNum; + + private System.Nullable _SpecialOperationTrainNum; + + private System.Nullable _ProjectSafetyLeadingGroupMeetingNum; + + private System.Nullable _ProjectSafetyMeetingNum; + + private System.Nullable _ProjectLeadShiftCheckNum; + + private System.Nullable _ProjectSpecialCheckNum; + + private System.Nullable _ProjectMajorCheckNum; + + private System.Nullable _NearMissNum; + + private System.Nullable _RecordableEventNum; + + private System.Nullable _GeneralAccidentNum; + + private System.Nullable _MajorAccidentNum; + + private System.Nullable _SeriousAccidentNum; + + private System.Nullable _SpecialSeriousAccidentNum; + + private System.Nullable _ProjectComprehensivePlanNum; + + private System.Nullable _ProjectSpecialPlanNum; + + private System.Nullable _ProjectOnSiteDisposalPlanNum; + + private System.Nullable _ProjectDrillNum; + + private System.Nullable _CostUse; + + private System.Nullable _UseEquipmentNum; + + private System.Nullable _SpecialEquipmentNum; + + private System.Nullable _LicensesNum; + + private System.Nullable _LicensesCloseNum; + + private System.Nullable _GeneralClosedNum; + + private System.Nullable _GeneralNotClosedNum; + + private System.Nullable _MajorClosedNum; + + private System.Nullable _MajorNotClosedNum; + + private string _GeneralRate; + + private string _MajorRate; + + private System.Nullable _LowRiskNum; + + private System.Nullable _GeneralRiskNum; + + private System.Nullable _MediumRiskNum; + + private System.Nullable _HighRiskNum; + + private System.Nullable _CompletedNum; + + private int _TrainPersonNum; + + private System.Nullable _ConstructionNum; + + private System.Nullable _FinishedNum; + + private System.Nullable _SuperCompletedNum; + + private int _SuperTrainPersonNum; + + private System.Nullable _SuperConstructionNum; + + private System.Nullable _SuperFinishedNum; + + private int _QTrainPersonNum; + + private int _TechnicalDisclosePersonNum; + + private System.Nullable _UseNum; + + private System.Nullable _OKNum; + + private System.Nullable _ProjectPersonNum; + + private System.Nullable _ProblemNum; + + private System.Nullable _ProblemCompletedNum; + + private System.Nullable _ProblemNotCompletedNum; + + private string _ProblemRate; + + private System.Nullable _ANum; + + private System.Nullable _BNum; + + private System.Nullable _CNum; + + private System.Nullable _KeyProcessNum; + + private System.Nullable _KeyProcessOkNum; + + private string _KeyProcessRate; + + private System.Nullable _SpecialProcessNum; + + private System.Nullable _SpecialProcessOkNum; + + private string _SpecialProcessRate; + + private System.Nullable _ConcealedWorksNum; + + private System.Nullable _ConcealedWorksOkNum; + + private string _ConcealedWorksRate; + + private System.Nullable _UnitProjectOnesNum; + + private System.Nullable _UnitProjectOnesOKNum; + + private string _UnitProjectOnesRate; + + private System.Nullable _MaterialInRecheckNum; + + private System.Nullable _MaterialInRecheckOKNum; + + private string _MaterialInRecheckRate; + + private System.Nullable _SingleProjectNum; + + private System.Nullable _UnitProjectNum; + + private System.Nullable _SubProjectNum; + + private System.Nullable _SubdivisionalWorksNum; + + private System.Nullable _InspectionLotNum; + + private System.Nullable _WelderNum; + + private System.Nullable _TotalDineNum; + + private System.Nullable _CompleteDineNum; + + private int _TotalFilmNum; + + private int _OKFilmNum; + + private string _ProjectId; + + public View_DataStatistics() + { + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShortName", DbType="NVarChar(200)")] + public string ShortName + { + get + { + return this._ShortName; + } + set + { + if ((this._ShortName != value)) + { + this._ShortName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CommissionerPersonNum", DbType="Int")] + public System.Nullable CommissionerPersonNum + { + get + { + return this._CommissionerPersonNum; + } + set + { + if ((this._CommissionerPersonNum != value)) + { + this._CommissionerPersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FullTimePersonNum", DbType="Int")] + public System.Nullable FullTimePersonNum + { + get + { + return this._FullTimePersonNum; + } + set + { + if ((this._FullTimePersonNum != value)) + { + this._FullTimePersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetySupervisionPersonNum", DbType="Int")] + public System.Nullable SafetySupervisionPersonNum + { + get + { + return this._SafetySupervisionPersonNum; + } + set + { + if ((this._SafetySupervisionPersonNum != value)) + { + this._SafetySupervisionPersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InjectionSafetyEngineerPersonNum", DbType="Int")] + public System.Nullable InjectionSafetyEngineerPersonNum + { + get + { + return this._InjectionSafetyEngineerPersonNum; + } + set + { + if ((this._InjectionSafetyEngineerPersonNum != value)) + { + this._InjectionSafetyEngineerPersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ACertificatePersonNum", DbType="Int")] + public System.Nullable ACertificatePersonNum + { + get + { + return this._ACertificatePersonNum; + } + set + { + if ((this._ACertificatePersonNum != value)) + { + this._ACertificatePersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BCertificatePersonNum", DbType="Int")] + public System.Nullable BCertificatePersonNum + { + get + { + return this._BCertificatePersonNum; + } + set + { + if ((this._BCertificatePersonNum != value)) + { + this._BCertificatePersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CCertificatePersonNum", DbType="Int")] + public System.Nullable CCertificatePersonNum + { + get + { + return this._CCertificatePersonNum; + } + set + { + if ((this._CCertificatePersonNum != value)) + { + this._CCertificatePersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalWorkingHours", DbType="Decimal(18,2) NOT NULL")] + public decimal TotalWorkingHours + { + get + { + return this._TotalWorkingHours; + } + set + { + if ((this._TotalWorkingHours != value)) + { + this._TotalWorkingHours = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LostWorkingHours", DbType="Int")] + public System.Nullable LostWorkingHours + { + get + { + return this._LostWorkingHours; + } + set + { + if ((this._LostWorkingHours != value)) + { + this._LostWorkingHours = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeWorkingHours", DbType="Decimal(19,2)")] + public System.Nullable SafeWorkingHours + { + get + { + return this._SafeWorkingHours; + } + set + { + if ((this._SafeWorkingHours != value)) + { + this._SafeWorkingHours = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeTrainNum", DbType="Int")] + public System.Nullable SafeTrainNum + { + get + { + return this._SafeTrainNum; + } + set + { + if ((this._SafeTrainNum != value)) + { + this._SafeTrainNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialTrainNum", DbType="Int")] + public System.Nullable SpecialTrainNum + { + get + { + return this._SpecialTrainNum; + } + set + { + if ((this._SpecialTrainNum != value)) + { + this._SpecialTrainNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialOperationTrainNum", DbType="Int")] + public System.Nullable SpecialOperationTrainNum + { + get + { + return this._SpecialOperationTrainNum; + } + set + { + if ((this._SpecialOperationTrainNum != value)) + { + this._SpecialOperationTrainNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSafetyLeadingGroupMeetingNum", DbType="Int")] + public System.Nullable ProjectSafetyLeadingGroupMeetingNum + { + get + { + return this._ProjectSafetyLeadingGroupMeetingNum; + } + set + { + if ((this._ProjectSafetyLeadingGroupMeetingNum != value)) + { + this._ProjectSafetyLeadingGroupMeetingNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSafetyMeetingNum", DbType="Int")] + public System.Nullable ProjectSafetyMeetingNum + { + get + { + return this._ProjectSafetyMeetingNum; + } + set + { + if ((this._ProjectSafetyMeetingNum != value)) + { + this._ProjectSafetyMeetingNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectLeadShiftCheckNum", DbType="Int")] + public System.Nullable ProjectLeadShiftCheckNum + { + get + { + return this._ProjectLeadShiftCheckNum; + } + set + { + if ((this._ProjectLeadShiftCheckNum != value)) + { + this._ProjectLeadShiftCheckNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSpecialCheckNum", DbType="Int")] + public System.Nullable ProjectSpecialCheckNum + { + get + { + return this._ProjectSpecialCheckNum; + } + set + { + if ((this._ProjectSpecialCheckNum != value)) + { + this._ProjectSpecialCheckNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectMajorCheckNum", DbType="Int")] + public System.Nullable ProjectMajorCheckNum + { + get + { + return this._ProjectMajorCheckNum; + } + set + { + if ((this._ProjectMajorCheckNum != value)) + { + this._ProjectMajorCheckNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NearMissNum", DbType="Int")] + public System.Nullable NearMissNum + { + get + { + return this._NearMissNum; + } + set + { + if ((this._NearMissNum != value)) + { + this._NearMissNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordableEventNum", DbType="Int")] + public System.Nullable RecordableEventNum + { + get + { + return this._RecordableEventNum; + } + set + { + if ((this._RecordableEventNum != value)) + { + this._RecordableEventNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GeneralAccidentNum", DbType="Int")] + public System.Nullable GeneralAccidentNum + { + get + { + return this._GeneralAccidentNum; + } + set + { + if ((this._GeneralAccidentNum != value)) + { + this._GeneralAccidentNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MajorAccidentNum", DbType="Int")] + public System.Nullable MajorAccidentNum + { + get + { + return this._MajorAccidentNum; + } + set + { + if ((this._MajorAccidentNum != value)) + { + this._MajorAccidentNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SeriousAccidentNum", DbType="Int")] + public System.Nullable SeriousAccidentNum + { + get + { + return this._SeriousAccidentNum; + } + set + { + if ((this._SeriousAccidentNum != value)) + { + this._SeriousAccidentNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialSeriousAccidentNum", DbType="Int")] + public System.Nullable SpecialSeriousAccidentNum + { + get + { + return this._SpecialSeriousAccidentNum; + } + set + { + if ((this._SpecialSeriousAccidentNum != value)) + { + this._SpecialSeriousAccidentNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectComprehensivePlanNum", DbType="Int")] + public System.Nullable ProjectComprehensivePlanNum + { + get + { + return this._ProjectComprehensivePlanNum; + } + set + { + if ((this._ProjectComprehensivePlanNum != value)) + { + this._ProjectComprehensivePlanNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSpecialPlanNum", DbType="Int")] + public System.Nullable ProjectSpecialPlanNum + { + get + { + return this._ProjectSpecialPlanNum; + } + set + { + if ((this._ProjectSpecialPlanNum != value)) + { + this._ProjectSpecialPlanNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectOnSiteDisposalPlanNum", DbType="Int")] + public System.Nullable ProjectOnSiteDisposalPlanNum + { + get + { + return this._ProjectOnSiteDisposalPlanNum; + } + set + { + if ((this._ProjectOnSiteDisposalPlanNum != value)) + { + this._ProjectOnSiteDisposalPlanNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectDrillNum", DbType="Int")] + public System.Nullable ProjectDrillNum + { + get + { + return this._ProjectDrillNum; + } + set + { + if ((this._ProjectDrillNum != value)) + { + this._ProjectDrillNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostUse", DbType="Decimal(18,2)")] + public System.Nullable CostUse + { + get + { + return this._CostUse; + } + set + { + if ((this._CostUse != value)) + { + this._CostUse = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UseEquipmentNum", DbType="Int")] + public System.Nullable UseEquipmentNum + { + get + { + return this._UseEquipmentNum; + } + set + { + if ((this._UseEquipmentNum != value)) + { + this._UseEquipmentNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialEquipmentNum", DbType="Int")] + public System.Nullable SpecialEquipmentNum + { + get + { + return this._SpecialEquipmentNum; + } + set + { + if ((this._SpecialEquipmentNum != value)) + { + this._SpecialEquipmentNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LicensesNum", DbType="Int")] + public System.Nullable LicensesNum + { + get + { + return this._LicensesNum; + } + set + { + if ((this._LicensesNum != value)) + { + this._LicensesNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LicensesCloseNum", DbType="Int")] + public System.Nullable LicensesCloseNum + { + get + { + return this._LicensesCloseNum; + } + set + { + if ((this._LicensesCloseNum != value)) + { + this._LicensesCloseNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GeneralClosedNum", DbType="Int")] + public System.Nullable GeneralClosedNum + { + get + { + return this._GeneralClosedNum; + } + set + { + if ((this._GeneralClosedNum != value)) + { + this._GeneralClosedNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GeneralNotClosedNum", DbType="Int")] + public System.Nullable GeneralNotClosedNum + { + get + { + return this._GeneralNotClosedNum; + } + set + { + if ((this._GeneralNotClosedNum != value)) + { + this._GeneralNotClosedNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MajorClosedNum", DbType="Int")] + public System.Nullable MajorClosedNum + { + get + { + return this._MajorClosedNum; + } + set + { + if ((this._MajorClosedNum != value)) + { + this._MajorClosedNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MajorNotClosedNum", DbType="Int")] + public System.Nullable MajorNotClosedNum + { + get + { + return this._MajorNotClosedNum; + } + set + { + if ((this._MajorNotClosedNum != value)) + { + this._MajorNotClosedNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GeneralRate", DbType="NVarChar(11)")] + public string GeneralRate + { + get + { + return this._GeneralRate; + } + set + { + if ((this._GeneralRate != value)) + { + this._GeneralRate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MajorRate", DbType="NVarChar(11)")] + public string MajorRate + { + get + { + return this._MajorRate; + } + set + { + if ((this._MajorRate != value)) + { + this._MajorRate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LowRiskNum", DbType="Int")] + public System.Nullable LowRiskNum + { + get + { + return this._LowRiskNum; + } + set + { + if ((this._LowRiskNum != value)) + { + this._LowRiskNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GeneralRiskNum", DbType="Int")] + public System.Nullable GeneralRiskNum + { + get + { + return this._GeneralRiskNum; + } + set + { + if ((this._GeneralRiskNum != value)) + { + this._GeneralRiskNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MediumRiskNum", DbType="Int")] + public System.Nullable MediumRiskNum + { + get + { + return this._MediumRiskNum; + } + set + { + if ((this._MediumRiskNum != value)) + { + this._MediumRiskNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HighRiskNum", DbType="Int")] + public System.Nullable HighRiskNum + { + get + { + return this._HighRiskNum; + } + set + { + if ((this._HighRiskNum != value)) + { + this._HighRiskNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompletedNum", DbType="Int")] + public System.Nullable CompletedNum + { + get + { + return this._CompletedNum; + } + set + { + if ((this._CompletedNum != value)) + { + this._CompletedNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainPersonNum", DbType="Int NOT NULL")] + public int TrainPersonNum + { + get + { + return this._TrainPersonNum; + } + set + { + if ((this._TrainPersonNum != value)) + { + this._TrainPersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionNum", DbType="Int")] + public System.Nullable ConstructionNum + { + get + { + return this._ConstructionNum; + } + set + { + if ((this._ConstructionNum != value)) + { + this._ConstructionNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FinishedNum", DbType="Int")] + public System.Nullable FinishedNum + { + get + { + return this._FinishedNum; + } + set + { + if ((this._FinishedNum != value)) + { + this._FinishedNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperCompletedNum", DbType="Int")] + public System.Nullable SuperCompletedNum + { + get + { + return this._SuperCompletedNum; + } + set + { + if ((this._SuperCompletedNum != value)) + { + this._SuperCompletedNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperTrainPersonNum", DbType="Int NOT NULL")] + public int SuperTrainPersonNum + { + get + { + return this._SuperTrainPersonNum; + } + set + { + if ((this._SuperTrainPersonNum != value)) + { + this._SuperTrainPersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperConstructionNum", DbType="Int")] + public System.Nullable SuperConstructionNum + { + get + { + return this._SuperConstructionNum; + } + set + { + if ((this._SuperConstructionNum != value)) + { + this._SuperConstructionNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperFinishedNum", DbType="Int")] + public System.Nullable SuperFinishedNum + { + get + { + return this._SuperFinishedNum; + } + set + { + if ((this._SuperFinishedNum != value)) + { + this._SuperFinishedNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QTrainPersonNum", DbType="Int NOT NULL")] + public int QTrainPersonNum + { + get + { + return this._QTrainPersonNum; + } + set + { + if ((this._QTrainPersonNum != value)) + { + this._QTrainPersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalDisclosePersonNum", DbType="Int NOT NULL")] + public int TechnicalDisclosePersonNum + { + get + { + return this._TechnicalDisclosePersonNum; + } + set + { + if ((this._TechnicalDisclosePersonNum != value)) + { + this._TechnicalDisclosePersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UseNum", DbType="Int")] + public System.Nullable UseNum + { + get + { + return this._UseNum; + } + set + { + if ((this._UseNum != value)) + { + this._UseNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OKNum", DbType="Int")] + public System.Nullable OKNum + { + get + { + return this._OKNum; + } + set + { + if ((this._OKNum != value)) + { + this._OKNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectPersonNum", DbType="Int")] + public System.Nullable ProjectPersonNum + { + get + { + return this._ProjectPersonNum; + } + set + { + if ((this._ProjectPersonNum != value)) + { + this._ProjectPersonNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemNum", DbType="Int")] + public System.Nullable ProblemNum + { + get + { + return this._ProblemNum; + } + set + { + if ((this._ProblemNum != value)) + { + this._ProblemNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemCompletedNum", DbType="Int")] + public System.Nullable ProblemCompletedNum + { + get + { + return this._ProblemCompletedNum; + } + set + { + if ((this._ProblemCompletedNum != value)) + { + this._ProblemCompletedNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemNotCompletedNum", DbType="Int")] + public System.Nullable ProblemNotCompletedNum + { + get + { + return this._ProblemNotCompletedNum; + } + set + { + if ((this._ProblemNotCompletedNum != value)) + { + this._ProblemNotCompletedNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemRate", DbType="NVarChar(11)")] + public string ProblemRate + { + get + { + return this._ProblemRate; + } + set + { + if ((this._ProblemRate != value)) + { + this._ProblemRate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ANum", DbType="Int")] + public System.Nullable ANum + { + get + { + return this._ANum; + } + set + { + if ((this._ANum != value)) + { + this._ANum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BNum", DbType="Int")] + public System.Nullable BNum + { + get + { + return this._BNum; + } + set + { + if ((this._BNum != value)) + { + this._BNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNum", DbType="Int")] + public System.Nullable CNum + { + get + { + return this._CNum; + } + set + { + if ((this._CNum != value)) + { + this._CNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProcessNum", DbType="Int")] + public System.Nullable KeyProcessNum + { + get + { + return this._KeyProcessNum; + } + set + { + if ((this._KeyProcessNum != value)) + { + this._KeyProcessNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProcessOkNum", DbType="Int")] + public System.Nullable KeyProcessOkNum + { + get + { + return this._KeyProcessOkNum; + } + set + { + if ((this._KeyProcessOkNum != value)) + { + this._KeyProcessOkNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProcessRate", DbType="NVarChar(11)")] + public string KeyProcessRate + { + get + { + return this._KeyProcessRate; + } + set + { + if ((this._KeyProcessRate != value)) + { + this._KeyProcessRate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialProcessNum", DbType="Int")] + public System.Nullable SpecialProcessNum + { + get + { + return this._SpecialProcessNum; + } + set + { + if ((this._SpecialProcessNum != value)) + { + this._SpecialProcessNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialProcessOkNum", DbType="Int")] + public System.Nullable SpecialProcessOkNum + { + get + { + return this._SpecialProcessOkNum; + } + set + { + if ((this._SpecialProcessOkNum != value)) + { + this._SpecialProcessOkNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialProcessRate", DbType="NVarChar(11)")] + public string SpecialProcessRate + { + get + { + return this._SpecialProcessRate; + } + set + { + if ((this._SpecialProcessRate != value)) + { + this._SpecialProcessRate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConcealedWorksNum", DbType="Int")] + public System.Nullable ConcealedWorksNum + { + get + { + return this._ConcealedWorksNum; + } + set + { + if ((this._ConcealedWorksNum != value)) + { + this._ConcealedWorksNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConcealedWorksOkNum", DbType="Int")] + public System.Nullable ConcealedWorksOkNum + { + get + { + return this._ConcealedWorksOkNum; + } + set + { + if ((this._ConcealedWorksOkNum != value)) + { + this._ConcealedWorksOkNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConcealedWorksRate", DbType="NVarChar(11)")] + public string ConcealedWorksRate + { + get + { + return this._ConcealedWorksRate; + } + set + { + if ((this._ConcealedWorksRate != value)) + { + this._ConcealedWorksRate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectOnesNum", DbType="Int")] + public System.Nullable UnitProjectOnesNum + { + get + { + return this._UnitProjectOnesNum; + } + set + { + if ((this._UnitProjectOnesNum != value)) + { + this._UnitProjectOnesNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectOnesOKNum", DbType="Int")] + public System.Nullable UnitProjectOnesOKNum + { + get + { + return this._UnitProjectOnesOKNum; + } + set + { + if ((this._UnitProjectOnesOKNum != value)) + { + this._UnitProjectOnesOKNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectOnesRate", DbType="NVarChar(11)")] + public string UnitProjectOnesRate + { + get + { + return this._UnitProjectOnesRate; + } + set + { + if ((this._UnitProjectOnesRate != value)) + { + this._UnitProjectOnesRate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialInRecheckNum", DbType="Int")] + public System.Nullable MaterialInRecheckNum + { + get + { + return this._MaterialInRecheckNum; + } + set + { + if ((this._MaterialInRecheckNum != value)) + { + this._MaterialInRecheckNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialInRecheckOKNum", DbType="Int")] + public System.Nullable MaterialInRecheckOKNum + { + get + { + return this._MaterialInRecheckOKNum; + } + set + { + if ((this._MaterialInRecheckOKNum != value)) + { + this._MaterialInRecheckOKNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialInRecheckRate", DbType="NVarChar(11)")] + public string MaterialInRecheckRate + { + get + { + return this._MaterialInRecheckRate; + } + set + { + if ((this._MaterialInRecheckRate != value)) + { + this._MaterialInRecheckRate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleProjectNum", DbType="Int")] + public System.Nullable SingleProjectNum + { + get + { + return this._SingleProjectNum; + } + set + { + if ((this._SingleProjectNum != value)) + { + this._SingleProjectNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectNum", DbType="Int")] + public System.Nullable UnitProjectNum + { + get + { + return this._UnitProjectNum; + } + set + { + if ((this._UnitProjectNum != value)) + { + this._UnitProjectNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubProjectNum", DbType="Int")] + public System.Nullable SubProjectNum + { + get + { + return this._SubProjectNum; + } + set + { + if ((this._SubProjectNum != value)) + { + this._SubProjectNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubdivisionalWorksNum", DbType="Int")] + public System.Nullable SubdivisionalWorksNum + { + get + { + return this._SubdivisionalWorksNum; + } + set + { + if ((this._SubdivisionalWorksNum != value)) + { + this._SubdivisionalWorksNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionLotNum", DbType="Int")] + public System.Nullable InspectionLotNum + { + get + { + return this._InspectionLotNum; + } + set + { + if ((this._InspectionLotNum != value)) + { + this._InspectionLotNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WelderNum", DbType="Int")] + public System.Nullable WelderNum + { + get + { + return this._WelderNum; + } + set + { + if ((this._WelderNum != value)) + { + this._WelderNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalDineNum", DbType="Decimal(12,3)")] + public System.Nullable TotalDineNum + { + get + { + return this._TotalDineNum; + } + set + { + if ((this._TotalDineNum != value)) + { + this._TotalDineNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompleteDineNum", DbType="Decimal(12,3)")] + public System.Nullable CompleteDineNum + { + get + { + return this._CompleteDineNum; + } + set + { + if ((this._CompleteDineNum != value)) + { + this._CompleteDineNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalFilmNum", DbType="Int NOT NULL")] + public int TotalFilmNum + { + get + { + return this._TotalFilmNum; + } + set + { + if ((this._TotalFilmNum != value)) + { + this._TotalFilmNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OKFilmNum", DbType="Int NOT NULL")] + public int OKFilmNum + { + get + { + return this._OKFilmNum; + } + set + { + if ((this._OKFilmNum != value)) + { + this._OKFilmNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this._ProjectId = value; + } + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_DayRportView")] public partial class View_DayRportView { @@ -272380,6 +274017,8 @@ namespace Model private string _MaterialCode; + private string _DetectionTypeCode; + private string _LeakMediumName; private string _PCMediumName; @@ -272890,6 +274529,22 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DetectionTypeCode", DbType="NVarChar(50)")] + public string DetectionTypeCode + { + get + { + return this._DetectionTypeCode; + } + set + { + if ((this._DetectionTypeCode != value)) + { + this._DetectionTypeCode = value; + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeakMediumName", DbType="NVarChar(50)")] public string LeakMediumName {