From b592ccfe5e260fef8be0b39c4501a4e2f56d817c Mon Sep 17 00:00:00 2001 From: gaofei <181547018@qq.com> Date: Wed, 7 Jun 2023 18:55:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE=E7=A9=BF?= =?UTF-8?q?=E9=80=8F=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + DataBase/版本日志/SGGLDB_WH_2023-06-07.sql | 586 +++ .../0-8综合管理(Menu_ZHGL).sql | 102 + .../1-3安全管理(Menu_HSSE).sql | 26 + SGGL/BLL/BLL.csproj | 11 + SGGL/BLL/BaseInfo/CertificateService.cs | 4 + SGGL/BLL/BaseInfo/RiskLevelService.cs | 122 + SGGL/BLL/BaseInfo/WorkPostService.cs | 2 + .../Comprehensive/DesignDetailsService.cs | 3 +- .../Comprehensive/InspectionMachineService.cs | 4 +- .../Comprehensive/InspectionPersonService.cs | 2 + SGGL/BLL/Common/Const.cs | 75 + SGGL/BLL/Common/IDCardValid.cs | 45 + .../Accident/AccidentPersonRecordService.cs | 4 +- .../HSSE/Accident/AccidentReportService.cs | 2 + .../Check/Check_ProjectLeaderCheckService.cs | 214 + .../Hazard_HazardSelectedItemService.cs | 44 +- .../HSSE/Hazard/Hazard_PatrolPlanService.cs | 96 + .../Hazard/Hazard_RoutingInspectionService.cs | 95 + .../Hazard/RiskEvaluationRecordService.cs | 109 + .../HSSE_Hazard_HazardRegisterService.cs | 1 + .../EquipmentInItemService.cs | 4 +- .../GeneralEquipmentInItemService.cs | 4 +- .../SafetyLeaderGroupMeetingService.cs | 152 + SGGL/BLL/HSSE/SitePerson/PersonService.cs | 89 + SGGL/BLL/HSSE/Solution/LargerHazardService.cs | 4 + SGGL/BLL/ProjectData/ProjectService.cs | 23 + SGGL/BLL/SysManage/UnitService.cs | 35 +- SGGL/BLL/SysManage/UserService.cs | 10 + .../Emergency/UnitDrillRecordListService.cs | 155 + .../Emergency/UnitEmergencyListService.cs | 150 + .../Meeting/CompanySafetyMeetingService.cs | 142 + .../Meeting/CompanySpecialMeetingService.cs | 142 + .../ZHGL/Person/CompanyBranchPersonService.cs | 117 + .../Supervise/SuperviseCheckReportService.cs | 2 + SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx | 181 +- .../BaseInfo/Certificate.aspx.cs | 14 + .../BaseInfo/Certificate.aspx.designer.cs | 18 + SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx | 100 + SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx.cs | 240 ++ .../BaseInfo/RiskLevel.aspx.designer.cs | 143 + .../FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx | 73 + .../BaseInfo/RiskLevelEdit.aspx.cs | 118 + .../BaseInfo/RiskLevelEdit.aspx.designer.cs | 143 + SGGL/FineUIPro.Web/BaseInfo/WorkPost.aspx | 206 +- SGGL/FineUIPro.Web/BaseInfo/WorkPost.aspx.cs | 7 +- .../BaseInfo/WorkPost.aspx.designer.cs | 9 + .../CQMS/Comprehensive/DesignDetails.aspx | 2 +- .../CQMS/Comprehensive/DesignDetailsEdit.aspx | 6 + .../Comprehensive/DesignDetailsEdit.aspx.cs | 6 + .../DesignDetailsEdit.aspx.designer.cs | 72 +- .../CQMS/Comprehensive/InspectionMachine.aspx | 2 +- .../Comprehensive/InspectionMachineEdit.aspx | 48 +- .../InspectionMachineEdit.aspx.cs | 5 +- .../InspectionMachineEdit.aspx.designer.cs | 77 +- .../Comprehensive/InspectionPersonEdit.aspx | 4 + .../InspectionPersonEdit.aspx.cs | 19 +- .../InspectionPersonEdit.aspx.designer.cs | 79 +- .../Controls/UnitProjectTControl.ascx | 23 + .../Controls/UnitProjectTControl.ascx.cs | 190 + .../UnitProjectTControl.ascx.designer.cs | 53 + SGGL/FineUIPro.Web/DataShow/Accident.aspx | 6 +- SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs | 10 +- SGGL/FineUIPro.Web/DataShow/Check.aspx | 2 +- SGGL/FineUIPro.Web/DataShow/Check.aspx.cs | 1 + .../FineUIPro.Web/DataShow/CompanyPerson.aspx | 2 +- .../DataShow/CompanyPerson.aspx.cs | 5 +- .../DataShow/ConstructionEquipment.aspx | 4 +- .../DataShow/ConstructionEquipment.aspx.cs | 1 + SGGL/FineUIPro.Web/DataShow/EduTrain.aspx | 2 +- SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs | 1 + SGGL/FineUIPro.Web/DataShow/Emergency.aspx | 2 +- SGGL/FineUIPro.Web/DataShow/Emergency.aspx.cs | 1 + .../FineUIPro.Web/DataShow/Environmental.aspx | 6 +- .../DataShow/Environmental.aspx.cs | 9 +- SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx | 2 +- .../FineUIPro.Web/DataShow/HJGLDefect.aspx.cs | 1 + SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx | 2 +- .../FineUIPro.Web/DataShow/HJGLWelder.aspx.cs | 1 + SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx | 2 +- .../DataShow/HJGLWelding.aspx.cs | 5 +- .../DataShow/HJGLWeldingItem.aspx | 2 +- .../DataShow/HJGLWeldingItem.aspx.cs | 1 + .../DataShow/HiddenRectification.aspx | 2 +- .../DataShow/HiddenRectification.aspx.cs | 1 + .../DataShow/HiddenRectificationItem.aspx | 2 +- .../DataShow/HiddenRectificationItem.aspx.cs | 1 + .../DataShow/LargeEngineering.aspx | 2 +- .../DataShow/LargeEngineering.aspx.cs | 1 + .../DataShow/LargeEngineeringItem.aspx | 2 +- .../DataShow/LargeEngineeringItem.aspx.cs | 1 + SGGL/FineUIPro.Web/DataShow/License.aspx | 2 +- SGGL/FineUIPro.Web/DataShow/License.aspx.cs | 1 + SGGL/FineUIPro.Web/DataShow/Meeting.aspx | 4 +- SGGL/FineUIPro.Web/DataShow/Meeting.aspx.cs | 1 + SGGL/FineUIPro.Web/DataShow/Project.aspx | 2 +- SGGL/FineUIPro.Web/DataShow/Project.aspx.cs | 1 + .../DataShow/ProjectDivision.aspx | 2 +- .../DataShow/ProjectDivision.aspx.cs | 1 + .../FineUIPro.Web/DataShow/ProjectPerson.aspx | 2 +- .../DataShow/ProjectPerson.aspx.cs | 1 + .../DataShow/QualityAcceptance.aspx | 2 +- .../DataShow/QualityAcceptance.aspx.cs | 3 +- .../DataShow/QualityControlPoint.aspx | 2 +- .../DataShow/QualityControlPoint.aspx.cs | 1 + .../DataShow/QualityInstruments.aspx | 2 +- .../DataShow/QualityInstruments.aspx.cs | 1 + .../DataShow/QualityInstrumentsItem.aspx | 2 +- .../DataShow/QualityInstrumentsItem.aspx.cs | 1 + .../FineUIPro.Web/DataShow/QualityPerson.aspx | 2 +- .../DataShow/QualityPerson.aspx.cs | 3 +- .../DataShow/QualityProblem.aspx | 34 +- .../DataShow/QualityProblem.aspx.cs | 150 +- .../DataShow/QualityProblem.aspx.designer.cs | 36 + .../DataShow/QualityProblemItem.aspx | 2 +- .../DataShow/QualityProblemItem.aspx.cs | 1 + .../DataShow/QualityTraining.aspx | 2 +- .../DataShow/QualityTraining.aspx.cs | 1 + .../DataShow/QualityTrainingItem1.aspx | 2 +- .../DataShow/QualityTrainingItem1.aspx.cs | 1 + .../DataShow/QualityTrainingItem2.aspx | 2 +- .../DataShow/QualityTrainingItem2.aspx.cs | 1 + SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx | 2 +- .../DataShow/SecurityCost.aspx.cs | 1 + SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx | 7 +- .../DataShow/SecurityRisk.aspx.cs | 19 +- .../DataShow/SecurityRisk.aspx.designer.cs | 46 +- .../DataShow/SecurityRiskItem.aspx | 2 +- .../DataShow/SecurityRiskItem.aspx.cs | 3 +- SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx | 2 +- .../DataShow/WorkingHours.aspx.cs | 88 +- .../DataShow/WorkingHoursItem.aspx | 4 +- .../DataShow/WorkingHoursItem.aspx.cs | 7 +- SGGL/FineUIPro.Web/ErrLog.txt | 3755 +++++++++++++++++ .../Excel/DataIn/企业总部人员信息模版.xls | Bin 0 -> 31232 bytes .../Excel/DataIn/分支机构人员信息模版.xls | Bin 0 -> 26624 bytes SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 304 ++ .../HSSE/Accident/AccidentPersonRecord.aspx | 8 +- .../Accident/AccidentPersonRecord.aspx.cs | 4 +- .../Accident/AccidentPersonRecordEdit.aspx | 22 +- .../Accident/AccidentPersonRecordEdit.aspx.cs | 70 +- .../AccidentPersonRecordEdit.aspx.designer.cs | 90 +- .../Accident/AccidentPersonRecordView.aspx | 12 +- .../Accident/AccidentPersonRecordView.aspx.cs | 3 - .../AccidentPersonRecordView.aspx.designer.cs | 18 - .../HSSE/Accident/AccidentReport.aspx | 10 +- .../HSSE/Accident/AccidentReport.aspx.cs | 6 +- .../HSSE/Accident/AccidentReportEdit.aspx | 368 +- .../HSSE/Accident/AccidentReportEdit.aspx.cs | 71 +- .../AccidentReportEdit.aspx.designer.cs | 85 +- .../HSSE/Accident/AccidentReportView.aspx | 6 +- .../HSSE/Accident/AccidentReportView.aspx.cs | 10 - .../AccidentReportView.aspx.designer.cs | 9 - .../HSSE/Check/ProjectLeaderCheck.aspx | 141 + .../HSSE/Check/ProjectLeaderCheck.aspx.cs | 326 ++ .../Check/ProjectLeaderCheck.aspx.designer.cs | 222 + .../HSSE/Check/ProjectLeaderCheckEdit.aspx | 90 + .../HSSE/Check/ProjectLeaderCheckEdit.aspx.cs | 204 + .../ProjectLeaderCheckEdit.aspx.designer.cs | 159 + .../HSSE/Check/ProjectLeaderCheckView.aspx | 83 + .../HSSE/Check/ProjectLeaderCheckView.aspx.cs | 110 + .../ProjectLeaderCheckView.aspx.designer.cs | 152 + .../Hazard/EnvironmentalRiskItemEdit.aspx | 4 +- .../HSSE/Hazard/EnvironmentalRiskList.aspx | 9 +- .../HSSE/Hazard/EnvironmentalRiskList.aspx.cs | 2 +- .../Hazard/EnvironmentalRiskListEdit.aspx | 17 +- .../Hazard/EnvironmentalRiskListEdit.aspx.cs | 32 +- ...EnvironmentalRiskListEdit.aspx.designer.cs | 27 - .../Hazard/EnvironmentalRiskListView.aspx | 11 +- .../Hazard/EnvironmentalRiskListView.aspx.cs | 4 - ...EnvironmentalRiskListView.aspx.designer.cs | 18 - .../FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx | 182 + .../HSSE/Hazard/HazardInfo.aspx.cs | 436 ++ .../HSSE/Hazard/HazardInfo.aspx.designer.cs | 213 + .../HSSE/Hazard/HazardInfoEdit.aspx | 102 + .../HSSE/Hazard/HazardInfoEdit.aspx.cs | 239 ++ .../Hazard/HazardInfoEdit.aspx.designer.cs | 213 + .../FineUIPro.Web/HSSE/Hazard/HazardList.aspx | 20 +- .../HSSE/Hazard/HazardList.aspx.cs | 12 +- .../HSSE/Hazard/HazardListEdit.aspx | 72 +- .../HSSE/Hazard/HazardListEdit.aspx.cs | 115 +- .../Hazard/HazardListEdit.aspx.designer.cs | 29 +- .../HSSE/Hazard/HazardListView.aspx | 18 +- .../HSSE/Hazard/HazardListView.aspx.cs | 17 +- .../Hazard/HazardListView.aspx.designer.cs | 20 +- .../HSSE/Hazard/HazardReEvaluator.aspx | 102 + .../HSSE/Hazard/HazardReEvaluator.aspx.cs | 285 ++ .../Hazard/HazardReEvaluator.aspx.designer.cs | 213 + .../HSSE/Hazard/HazardTemplate.aspx | 6 +- .../HSSE/Hazard/HazardTemplate.aspx.cs | 4 +- .../HSSE/Hazard/MajorHazardList.aspx | 6 +- .../HSSE/Hazard/MajorHazardList.aspx.cs | 1 + .../HSSE/Hazard/OtherHazard.aspx | 8 +- .../HSSE/Hazard/OtherHazard.aspx.cs | 2 +- .../HSSE/Hazard/OtherHazardEdit.aspx | 16 +- .../HSSE/Hazard/OtherHazardEdit.aspx.cs | 31 +- .../Hazard/OtherHazardEdit.aspx.designer.cs | 27 - .../HSSE/Hazard/OtherHazardView.aspx | 11 +- .../HSSE/Hazard/OtherHazardView.aspx.cs | 3 - .../Hazard/OtherHazardView.aspx.designer.cs | 18 - .../HSSE/Hazard/RiskControl.aspx | 200 + .../HSSE/Hazard/RiskControl.aspx.cs | 466 ++ .../HSSE/Hazard/RiskControl.aspx.designer.cs | 231 + .../HSSE/Hazard/RoutingInspection.aspx | 174 + .../HSSE/Hazard/RoutingInspection.aspx.cs | 423 ++ .../Hazard/RoutingInspection.aspx.designer.cs | 195 + .../HSSE/Hazard/RoutingInspectionEdit.aspx | 97 + .../HSSE/Hazard/RoutingInspectionEdit.aspx.cs | 328 ++ .../RoutingInspectionEdit.aspx.designer.cs | 195 + .../HSSE/Hazard/RoutingInspectionView.aspx | 94 + .../HSSE/Hazard/RoutingInspectionView.aspx.cs | 163 + .../RoutingInspectionView.aspx.designer.cs | 186 + .../HSSE/Hazard/SetToolTipTime.aspx.cs | 1 + .../HSSE/Hazard/ShowEnvironmentalItem.aspx | 2 +- .../HiddenRectificationAdd.aspx | 16 +- .../HiddenRectificationAdd.aspx.cs | 5 + .../HiddenRectificationAdd.aspx.designer.cs | 13 +- .../HiddenRectificationList.aspx | 5 + .../HiddenRectificationList.aspx.cs | 7 +- .../HiddenRectificationList.aspx.designer.cs | 9 + .../HSSE/InApproveManager/EquipmentIn.aspx | 74 +- .../HSSE/InApproveManager/EquipmentIn.aspx.cs | 117 +- .../EquipmentIn.aspx.designer.cs | 40 +- .../InApproveManager/EquipmentInEdit.aspx | 27 +- .../InApproveManager/EquipmentInEdit.aspx.cs | 42 +- .../EquipmentInEdit.aspx.designer.cs | 36 +- .../InApproveManager/EquipmentInItemEdit.aspx | 9 +- .../EquipmentInItemEdit.aspx.cs | 8 +- .../EquipmentInItemEdit.aspx.designer.cs | 9 + .../InApproveManager/EquipmentInView.aspx | 21 +- .../InApproveManager/EquipmentInView.aspx.cs | 5 +- .../EquipmentInView.aspx.designer.cs | 18 - .../InApproveManager/GeneralEquipmentIn.aspx | 50 +- .../GeneralEquipmentIn.aspx.cs | 102 +- .../GeneralEquipmentIn.aspx.designer.cs | 27 + .../GeneralEquipmentInEdit.aspx | 24 +- .../GeneralEquipmentInEdit.aspx.cs | 48 +- .../GeneralEquipmentInEdit.aspx.designer.cs | 27 - .../GeneralEquipmentInItemEdit.aspx | 11 +- .../GeneralEquipmentInItemEdit.aspx.cs | 7 + ...eneralEquipmentInItemEdit.aspx.designer.cs | 9 + .../GeneralEquipmentInView.aspx | 7 +- .../HSSE/License/LicenseManager.aspx | 31 +- .../HSSE/License/LicenseManager.aspx.cs | 21 +- .../License/LicenseManager.aspx.designer.cs | 63 +- .../HSSE/License/LicenseManagerEdit.aspx | 21 +- .../HSSE/License/LicenseManagerEdit.aspx.cs | 53 +- .../LicenseManagerEdit.aspx.designer.cs | 31 +- .../HSSE/License/LicenseManagerView.aspx | 5 +- .../HSSE/License/LicenseManagerView.aspx.cs | 4 + .../LicenseManagerView.aspx.designer.cs | 9 + .../Meeting/SafetyLeaderGroupMeeting.aspx | 163 + .../Meeting/SafetyLeaderGroupMeeting.aspx.cs | 338 ++ .../SafetyLeaderGroupMeeting.aspx.designer.cs | 251 ++ .../Meeting/SafetyLeaderGroupMeetingEdit.aspx | 90 + .../SafetyLeaderGroupMeetingEdit.aspx.cs | 235 ++ ...etyLeaderGroupMeetingEdit.aspx.designer.cs | 204 + .../Meeting/SafetyLeaderGroupMeetingView.aspx | 84 + .../SafetyLeaderGroupMeetingView.aspx.cs | 101 + ...etyLeaderGroupMeetingView.aspx.designer.cs | 195 + .../HSSE/SitePerson/PersonListEdit.aspx | 1 + .../HSSE/SitePerson/PersonListEdit.aspx.cs | 5 + .../PersonListEdit.aspx.designer.cs | 9 + .../HSSE/Solution/LargerHazardEdit.aspx | 33 +- .../HSSE/Solution/LargerHazardEdit.aspx.cs | 60 +- .../LargerHazardEdit.aspx.designer.cs | 54 +- .../HSSE/Solution/LargerHazardList.aspx | 227 +- .../HSSE/Solution/LargerHazardList.aspx.cs | 150 +- .../LargerHazardList.aspx.designer.cs | 106 +- .../HSSE/Solution/LargerHazardView.aspx | 16 +- .../HSSE/Solution/LargerHazardView.aspx.cs | 13 + .../LargerHazardView.aspx.designer.cs | 27 + .../ZHGL/Emergency/DrillRecordList.aspx | 131 + .../ZHGL/Emergency/DrillRecordList.aspx.cs | 310 ++ .../DrillRecordList.aspx.designer.cs | 179 + .../ZHGL/Emergency/DrillRecordListEdit.aspx | 92 + .../Emergency/DrillRecordListEdit.aspx.cs | 202 + .../DrillRecordListEdit.aspx.designer.cs | 170 + .../ZHGL/Emergency/DrillRecordListView.aspx | 72 + .../Emergency/DrillRecordListView.aspx.cs | 90 + .../DrillRecordListView.aspx.designer.cs | 152 + .../ZHGL/Emergency/EmergencyList.aspx | 132 + .../ZHGL/Emergency/EmergencyList.aspx.cs | 281 ++ .../Emergency/EmergencyList.aspx.designer.cs | 179 + .../ZHGL/Emergency/EmergencyListEdit.aspx | 93 + .../ZHGL/Emergency/EmergencyListEdit.aspx.cs | 210 + .../EmergencyListEdit.aspx.designer.cs | 170 + .../ZHGL/Emergency/EmergencyListView.aspx | 75 + .../ZHGL/Emergency/EmergencyListView.aspx.cs | 85 + .../EmergencyListView.aspx.designer.cs | 161 + .../ZHGL/Emergency/ServerEmergencySupply.aspx | 141 + .../Emergency/ServerEmergencySupply.aspx.cs | 305 ++ .../ServerEmergencySupply.aspx.designer.cs | 233 + .../ZHGL/Meeting/CompanySafetyMeeting.aspx | 124 + .../ZHGL/Meeting/CompanySafetyMeeting.aspx.cs | 280 ++ .../CompanySafetyMeeting.aspx.designer.cs | 204 + .../Meeting/CompanySafetyMeetingEdit.aspx | 90 + .../Meeting/CompanySafetyMeetingEdit.aspx.cs | 201 + .../CompanySafetyMeetingEdit.aspx.designer.cs | 204 + .../Meeting/CompanySafetyMeetingView.aspx | 84 + .../Meeting/CompanySafetyMeetingView.aspx.cs | 101 + .../CompanySafetyMeetingView.aspx.designer.cs | 195 + .../ZHGL/Meeting/CompanySpecialMeeting.aspx | 124 + .../Meeting/CompanySpecialMeeting.aspx.cs | 280 ++ .../CompanySpecialMeeting.aspx.designer.cs | 204 + .../Meeting/CompanySpecialMeetingEdit.aspx | 89 + .../Meeting/CompanySpecialMeetingEdit.aspx.cs | 201 + ...CompanySpecialMeetingEdit.aspx.designer.cs | 204 + .../Meeting/CompanySpecialMeetingView.aspx | 84 + .../Meeting/CompanySpecialMeetingView.aspx.cs | 101 + ...CompanySpecialMeetingView.aspx.designer.cs | 195 + .../ZHGL/Person/BranchPerson.aspx | 133 + .../ZHGL/Person/BranchPerson.aspx.cs | 347 ++ .../ZHGL/Person/BranchPerson.aspx.designer.cs | 222 + .../ZHGL/Person/BranchPersonEdit.aspx | 83 + .../ZHGL/Person/BranchPersonEdit.aspx.cs | 206 + .../Person/BranchPersonEdit.aspx.designer.cs | 177 + .../ZHGL/Person/BranchPersonIn.aspx | 65 + .../ZHGL/Person/BranchPersonIn.aspx.cs | 478 +++ .../Person/BranchPersonIn.aspx.designer.cs | 123 + .../ZHGL/Person/BranchPersonView.aspx | 80 + .../ZHGL/Person/BranchPersonView.aspx.cs | 106 + .../Person/BranchPersonView.aspx.designer.cs | 168 + .../ZHGL/Person/CompanyPerson.aspx | 128 + .../ZHGL/Person/CompanyPerson.aspx.cs | 322 ++ .../Person/CompanyPerson.aspx.designer.cs | 213 + .../ZHGL/Person/CompanyPersonEdit.aspx | 78 + .../ZHGL/Person/CompanyPersonEdit.aspx.cs | 188 + .../Person/CompanyPersonEdit.aspx.designer.cs | 168 + .../ZHGL/Person/CompanyPersonIn.aspx | 65 + .../ZHGL/Person/CompanyPersonIn.aspx.cs | 457 ++ .../Person/CompanyPersonIn.aspx.designer.cs | 123 + .../ZHGL/Person/CompanyPersonView.aspx | 75 + .../ZHGL/Person/CompanyPersonView.aspx.cs | 101 + .../Person/CompanyPersonView.aspx.designer.cs | 159 + .../ZHGL/Person/ProjectPerson.aspx | 150 + .../ZHGL/Person/ProjectPerson.aspx.cs | 182 + .../Person/ProjectPerson.aspx.designer.cs | 195 + .../ZHGL/Supervise/ShowFileUpload.aspx | 4 +- .../ZHGL/Supervise/ShowRectifyItem.aspx | 15 +- .../ZHGL/Supervise/ShowRectifyItem.aspx.cs | 47 +- .../Supervise/SubUnitCheckRectifyEdit.aspx | 8 +- .../ZHGL/Supervise/SuperviseCheckRectify.aspx | 23 +- .../Supervise/SuperviseCheckRectify.aspx.cs | 6 +- .../Supervise/SuperviseCheckRectifyEdit.aspx | 19 +- .../SuperviseCheckRectifyEdit.aspx.cs | 28 +- ...SuperviseCheckRectifyEdit.aspx.designer.cs | 9 + .../ZHGL/Supervise/SuperviseCheckReport.aspx | 23 +- .../Supervise/SuperviseCheckReport.aspx.cs | 8 +- .../Supervise/SuperviseCheckReportEdit.aspx | 35 +- .../SuperviseCheckReportEdit.aspx.cs | 55 +- .../SuperviseCheckReportEdit.aspx.designer.cs | 75 +- SGGL/FineUIPro.Web/common/Menu_HSSE.xml | 18 +- SGGL/FineUIPro.Web/common/Menu_JDGL.xml | 1 + SGGL/FineUIPro.Web/common/Menu_SysSet.xml | 1 + SGGL/FineUIPro.Web/common/Menu_ZHGL.xml | 10 + SGGL/FineUIPro.Web/common/PageBase.cs | 28 + SGGL/Model/Model.cs | 1774 +++++++- 358 files changed, 30974 insertions(+), 2388 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_WH_2023-06-07.sql create mode 100644 SGGL/BLL/BaseInfo/RiskLevelService.cs create mode 100644 SGGL/BLL/HSSE/Check/Check_ProjectLeaderCheckService.cs create mode 100644 SGGL/BLL/HSSE/Hazard/Hazard_PatrolPlanService.cs create mode 100644 SGGL/BLL/HSSE/Hazard/Hazard_RoutingInspectionService.cs create mode 100644 SGGL/BLL/HSSE/Hazard/RiskEvaluationRecordService.cs create mode 100644 SGGL/BLL/HSSE/Meeting/SafetyLeaderGroupMeetingService.cs create mode 100644 SGGL/BLL/ZHGL/Emergency/UnitDrillRecordListService.cs create mode 100644 SGGL/BLL/ZHGL/Emergency/UnitEmergencyListService.cs create mode 100644 SGGL/BLL/ZHGL/Meeting/CompanySafetyMeetingService.cs create mode 100644 SGGL/BLL/ZHGL/Meeting/CompanySpecialMeetingService.cs create mode 100644 SGGL/BLL/ZHGL/Person/CompanyBranchPersonService.cs create mode 100644 SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx create mode 100644 SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx.cs create mode 100644 SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx create mode 100644 SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Controls/UnitProjectTControl.ascx create mode 100644 SGGL/FineUIPro.Web/Controls/UnitProjectTControl.ascx.cs create mode 100644 SGGL/FineUIPro.Web/Controls/UnitProjectTControl.ascx.designer.cs create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/企业总部人员信息模版.xls create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/分支机构人员信息模版.xls create mode 100644 SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheck.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheck.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheck.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/HazardReEvaluator.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/HazardReEvaluator.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/HazardReEvaluator.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RiskControl.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RiskControl.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RiskControl.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Meeting/SafetyLeaderGroupMeeting.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Meeting/SafetyLeaderGroupMeeting.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Meeting/SafetyLeaderGroupMeeting.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Meeting/SafetyLeaderGroupMeetingEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Meeting/SafetyLeaderGroupMeetingEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Meeting/SafetyLeaderGroupMeetingEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Meeting/SafetyLeaderGroupMeetingView.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/Meeting/SafetyLeaderGroupMeetingView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/Meeting/SafetyLeaderGroupMeetingView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/DrillRecordList.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/DrillRecordList.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/DrillRecordList.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/DrillRecordListEdit.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/DrillRecordListEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/DrillRecordListEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/DrillRecordListView.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/DrillRecordListView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/DrillRecordListView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/EmergencyList.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/EmergencyList.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/EmergencyList.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/EmergencyListEdit.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/EmergencyListEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/EmergencyListEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/EmergencyListView.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/EmergencyListView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/EmergencyListView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/ServerEmergencySupply.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/ServerEmergencySupply.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Emergency/ServerEmergencySupply.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx.cs create mode 100644 SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx.designer.cs diff --git a/.gitignore b/.gitignore index 1ffcaf69..79fa850a 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /SGGL/FineUIPro.Web/FileUpload/QRCodeFile /SGGL/FineUIPro.Web/FileUpload/DataBase/ConstructionStandardProject/2023-05 /SGGL/FineUIPro.Web/FileUpload/CQMS/InspectionEquipment/2023-05 +/SGGL/FineUIPro.Web/FileUpload/CQMS diff --git a/DataBase/版本日志/SGGLDB_WH_2023-06-07.sql b/DataBase/版本日志/SGGLDB_WH_2023-06-07.sql new file mode 100644 index 00000000..8745c2d1 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_2023-06-07.sql @@ -0,0 +1,586 @@ +--Ա +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('175FAEE8-F6B3-483D-839B-001AF4B45D0A','Ա','',15,'0','Menu_ZHGL',1,0,1) +GO + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('8E229597-B2D8-407B-8192-787E65E5052E','ҵܲԱ','ZHGL/Person/CompanyPerson.aspx',10,'175FAEE8-F6B3-483D-839B-001AF4B45D0A','Menu_ZHGL',1,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('BC370144-AA46-4AD3-B26C-DF3E995388C4','8E229597-B2D8-407B-8192-787E65E5052E','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('62AC6438-952A-49BE-81BA-580F7C060E33','8E229597-B2D8-407B-8192-787E65E5052E','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('9B133AF0-CA02-4383-9AB8-9B13BC6A84CE','8E229597-B2D8-407B-8192-787E65E5052E','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('A8EA6A33-090C-4D92-9CFB-225ED38FAE93','8E229597-B2D8-407B-8192-787E65E5052E','',4) + GO + + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('FE342650-9E64-4B9C-8023-34399E198B6F','֧Ա','ZHGL/Person/BranchPerson.aspx',20,'175FAEE8-F6B3-483D-839B-001AF4B45D0A','Menu_ZHGL',1,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('CB3CDFC7-1B77-4948-A431-683D197E5684','FE342650-9E64-4B9C-8023-34399E198B6F','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('232A054B-E244-4412-852B-670AA5F6CC24','FE342650-9E64-4B9C-8023-34399E198B6F','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('C29706B8-8092-4733-83C6-811F5F195EC9','FE342650-9E64-4B9C-8023-34399E198B6F','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('D4A95692-847A-41C6-97EF-B36E04AFB335','FE342650-9E64-4B9C-8023-34399E198B6F','',4) + GO + + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('D2C91885-974A-448A-9BA5-0EEAE8FA98CA','ĿֳԱ','ZHGL/Person/ProjectPerson.aspx',30,'175FAEE8-F6B3-483D-839B-001AF4B45D0A','Menu_ZHGL',1,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('13369C09-3301-4BA8-B0DC-7BC2B41981C9','D2C91885-974A-448A-9BA5-0EEAE8FA98CA','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('16DD0C20-AAB5-46C3-A927-B0A159B39706','D2C91885-974A-448A-9BA5-0EEAE8FA98CA','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('F19E234F-D938-45BD-8C32-8F7F8C35BD07','D2C91885-974A-448A-9BA5-0EEAE8FA98CA','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('4E93A42D-BEAB-4991-8396-0A6E51BF1AF1','D2C91885-974A-448A-9BA5-0EEAE8FA98CA','',4) + GO + +--ȫ +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('BFFBE172-7473-486E-9833-49F13B359C6C','ȫ','',60,'0','Menu_ZHGL',1,0,1) +GO +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('B911B4F8-DDFD-4F37-9EAC-EB104F753432','ҵί','ZHGL/Meeting/CompanySafetyMeeting.aspx',10,'BFFBE172-7473-486E-9833-49F13B359C6C','Menu_ZHGL',1,1,1) +GO +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('27DD0084-A559-4723-90B9-5F68DF3B61C4','B911B4F8-DDFD-4F37-9EAC-EB104F753432','',1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('1F841CFB-1AFC-4C9C-A56F-681E407B52F9','B911B4F8-DDFD-4F37-9EAC-EB104F753432','޸',2) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('60142F0A-3362-4264-876C-F27FFB533891','B911B4F8-DDFD-4F37-9EAC-EB104F753432','ɾ',3) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('05901FC0-D482-442D-9764-7DE5EA4ED991','B911B4F8-DDFD-4F37-9EAC-EB104F753432','',4) +GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('2497EF13-C052-4228-B388-EBC5C18963BC','ҵר','ZHGL/Meeting/CompanySpecialMeeting.aspx',20,'BFFBE172-7473-486E-9833-49F13B359C6C','Menu_ZHGL',1,1,1) +GO +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('58BC6E5C-E45F-47A2-A7FC-D02F91DEF058','2497EF13-C052-4228-B388-EBC5C18963BC','',1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('92627BA3-A14A-4886-805E-038324E9747A','2497EF13-C052-4228-B388-EBC5C18963BC','޸',2) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('395E1B2B-AF35-4867-A8F0-E471FB10C25D','2497EF13-C052-4228-B388-EBC5C18963BC','ɾ',3) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('1DF4AADF-2207-4A9E-83D0-8899E21E91BA','2497EF13-C052-4228-B388-EBC5C18963BC','',4) +GO + + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF','ȫ쵼С','HSSE/Meeting/SafetyLeaderGroupMeeting.aspx',5,'5309E7E0-395E-4F11-8F5E-D52E11526A2A','Menu_HSSE',0,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('0A65A42F-2701-4DD3-9C72-7B39F1ECD560','DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('DCAB0B09-EA07-443C-9B04-2E86D9E8C2DC','DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('FE3476FB-1D5B-4E8E-801E-E4B9B4D287F0','DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('739A0815-D4B3-4B9F-B001-5D04EB94B9EF','DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF','',4) + GO + +update InApproveManager_EquipmentInItem set IsUsed=1 +update InApproveManager_GeneralEquipmentInItem set IsUsed=1 +GO + + +ALTER VIEW [dbo].[View_License_LicenseManager] +AS +/*ֳȫ֤*/ +SELECT LicenseManager.LicenseManagerId, + LicenseManager.ProjectId, + LicenseManager.LicenseTypeId, + LicenseManager.LicenseManagerCode, + LicenseManager.LicenseManageName, + LicenseManager.UnitId, + LicenseManager.LicenseManageContents, + LicenseManager.CompileMan, + LicenseManager.CompileDate, + LicenseManager.States, + Project.ProjectCode, + Project.ProjectName, + LicenseType.LicenseTypeName, + Unit.UnitName, + UnitType.UnitTypeId, + UnitType.UnitTypeName, + Users.UserName, + LicenseManager.WorkAreaId, + --WorkArea.WorkAreaName, + LicenseManager.StartDate, + LicenseManager.EndDate, + LicenseManager.ApplicantMan, + LicenseManager.IsHighRisk, + LicenseManager.WorkStates, + case LicenseManager.WorkStates when '1' then '' + when '2' then 'ҵ' + when '3' then 'ѹر' + when '-1' then 'ȡ' + else '' end as WorkStatesStr, + WorkAreaName = STUFF(( SELECT ',' + UnitWorkName FROM WBS_UnitWork + where PATINDEX('%,' + RTRIM(WBS_UnitWork.UnitWorkId) + ',%',',' + LicenseManager.WorkAreaId + ',')>0 + ORDER BY PATINDEX('%,' + RTRIM(LicenseManager.WorkAreaId) + ',%',',' + LicenseManager.WorkAreaId + ',') + FOR XML PATH('')), 1, 1,'') +FROM dbo.License_LicenseManager AS LicenseManager +LEFT JOIN dbo.Base_Project AS Project ON Project.ProjectId = LicenseManager.ProjectId +LEFT JOIN dbo.Base_LicenseType AS LicenseType ON LicenseType.LicenseTypeId = LicenseManager.LicenseTypeId +LEFT JOIN dbo.Base_Unit AS Unit ON Unit.UnitId = LicenseManager.UnitId +LEFT JOIN dbo.Sys_User AS Users ON Users.UserId = LicenseManager.CompileMan +LEFT JOIN dbo.WBS_UnitWork AS WorkArea ON WorkArea.UnitWorkId = LicenseManager.WorkAreaId +LEFT JOIN dbo.Base_UnitType as UnitType ON UnitType.UnitTypeId=Unit.UnitTypeId + + + +GO + + +update License_LicenseManager set WorkStates='3' +GO + +update HSSE_Hazard_HazardRegister set Risk_Level='һ' +GO + + +/**********Ѳ죨ֻˣͼ*************/ +ALTER VIEW [dbo].[View_Hazard_HazardRegister] +AS +SELECT Registration.HazardRegisterId, + Registration.HazardCode, + Registration.RegisterDate, + Registration.RegisterDef, + Registration.Rectification, + Registration.Place, + Registration.ResponsibleUnit, + Registration.Observer, + Registration.Risk_Level, + Registration.RectifiedDate, + Registration.ProjectId, + Project.UnitId AS PUnitId, + ProjectUnit.UnitName AS PUnitName, + Registration.states, + Registration.IsEffective, + Registration.ResponsibleMan, + Registration.CheckManId, + Registration.CheckTime, + Registration.RectificationPeriod, + Registration.ImageUrl, + Registration.RectificationImageUrl, + Registration.RectificationTime, + Registration.ConfirmMan, + Registration.ConfirmDate, + Registration.HandleIdea, + Registration.CutPayment, + Registration.ProblemTypes, + Registration.CheckSpecialId, + Registration.CheckItemDetailId, + Registration.SupCheckItemSetId, + Registration.CheckItemSetId, + Registration.SafeSupervisionId, + Registration.SafeSupervisionIsOK, + Project.ProjectName, + Registration.CheckCycle, + ISNULL(WorkArea.UnitWorkName,'') AS WorkAreaName, + Unit.UnitName as ResponsibilityUnitName, + User1.UserName AS ResponsibilityManName, + ISNULL(User1.Telephone,'') AS ResponsibilityManTel, + User2.UserName AS CheckManName, + ISNULL(User2.Telephone,'') AS CheckManTel, + User2.UnitId AS SendUnitId, + User3.UserName AS ConfirmManName, + ISNULL(User3.Telephone,'') AS ConfirmManTel, + User4.UserName AS ResponsibilityManName2, + ISNULL(User4.Telephone,'') AS ResponsibilityMan2Tel, + (CASE WHEN Registration.states='1' and (Registration.SafeSupervisionIsOK is null OR Registration.SafeSupervisionIsOK=0) THEN '' + WHEN Registration.states='1' and Registration.SafeSupervisionIsOK=1 THEN 'ϸ' + WHEN Registration.states='2' THEN '-' + WHEN Registration.states='3' THEN 'ѱջ' + ELSE '' END ) AS StatesStr, + RegisterTypes.RegisterTypesId, + RegisterTypes.RegisterTypesName, + Registration.DIC_ID, + Registration.CCManIds, + CCManNames = STUFF(( SELECT ',' + UserName FROM Sys_User + where PATINDEX('%,' + RTRIM(Sys_User.UserId) + ',%',',' + Registration.CCManIds + ',')>0 + ORDER BY PATINDEX('%,' + RTRIM(Registration.CCManIds) + ',%',',' + Registration.CCManIds + ',') + FOR XML PATH('')), 1, 1,''), + Registration.Requirements +FROM dbo.HSSE_Hazard_HazardRegister AS Registration +LEFT JOIN dbo.Base_Project AS Project ON Project.ProjectId = Registration.ProjectId +LEFT JOIN dbo.Base_Unit AS ProjectUnit ON Project.UnitId = ProjectUnit.UnitId +LEFT JOIN dbo.WBS_UnitWork AS WorkArea ON WorkArea.UnitWorkId = Registration.Place +LEFT JOIN dbo.HSSE_Hazard_HazardRegisterTypes AS RegisterTypes ON RegisterTypes.RegisterTypesId = Registration.RegisterTypesId +LEFT JOIN dbo.Base_Unit AS Unit ON Unit.UnitId = Registration.ResponsibleUnit +LEFT JOIN dbo.Sys_User AS User1 ON User1.UserId = Registration.ResponsibleMan +LEFT JOIN dbo.Sys_User AS User2 ON User2.UserId = Registration.CheckManId +LEFT JOIN dbo.Sys_User AS User3 ON User3.UserId = Registration.ConfirmMan +LEFT JOIN dbo.Sys_User AS User4 ON User4.UserId = Registration.ResponsibleMan2 + +GO + + + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('355265DE-901A-4110-B934-B4DA067C4334','쵼','HSSE/Check/ProjectLeaderCheck.aspx',35,'467A0CB9-737D-4451-965E-869EBC3A4BD6','Menu_HSSE',0,1,1) + GO + --쵼鰴ť + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('E0860211-E41A-4D51-B5B4-99A5D0676C73','355265DE-901A-4110-B934-B4DA067C4334','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('87B6E85C-48DA-4BD3-8518-35968E564557','355265DE-901A-4110-B934-B4DA067C4334','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B07D2E39-60CE-4F59-895B-7D0763A65341','355265DE-901A-4110-B934-B4DA067C4334','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('AAB617C6-A800-4D59-8761-AC134C7885D3','355265DE-901A-4110-B934-B4DA067C4334','',4) + GO + + +CREATE TABLE [dbo].[Check_ProjectLeaderCheck]( + [ProjectLeaderCheckId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [UnitIds] [nvarchar](500) NULL, + [CheckCode] [nvarchar](50) NULL, + [LeaderIds] [nvarchar](500) NULL, + [CheckDate] [datetime] NULL, + [QuestionDef] [nvarchar](2000) NULL, + [IsHoldMeet] [bit] NULL, + [Requirement] [nvarchar](2000) NULL, + [LeaderNames] [nvarchar](500) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + CONSTRAINT [PK_Check_ProjectLeaderCheck] PRIMARY KEY CLUSTERED +( + [ProjectLeaderCheckId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[Check_ProjectLeaderCheck] WITH CHECK ADD CONSTRAINT [FK_Check_ProjectLeaderCheck_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[Check_ProjectLeaderCheck] CHECK CONSTRAINT [FK_Check_ProjectLeaderCheck_Base_Project] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck', @level2type=N'COLUMN',@level2name=N'ProjectLeaderCheckId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck', @level2type=N'COLUMN',@level2name=N'ProjectId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ελId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck', @level2type=N'COLUMN',@level2name=N'UnitIds' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck', @level2type=N'COLUMN',@level2name=N'CheckCode' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'쵼id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck', @level2type=N'COLUMN',@level2name=N'LeaderIds' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck', @level2type=N'COLUMN',@level2name=N'CheckDate' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck', @level2type=N'COLUMN',@level2name=N'QuestionDef' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿٿר⽲' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck', @level2type=N'COLUMN',@level2name=N'IsHoldMeet' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck', @level2type=N'COLUMN',@level2name=N'Requirement' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'쵼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck', @level2type=N'COLUMN',@level2name=N'LeaderNames' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀ˴' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Check_ProjectLeaderCheck' +GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('3BBFCD70-D7A3-435C-9571-DD499D5ED7B8','ӦϢ','',120,'0','Menu_ZHGL',0,0,1) +GO + + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('D12C2412-E12A-4F78-9AEF-1EE8AC84A561','ӦԤ嵥','ZHGL/Emergency/EmergencyList.aspx',10,'3BBFCD70-D7A3-435C-9571-DD499D5ED7B8','Menu_ZHGL',0,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('4A638D22-1515-4967-B149-8362F81E3A95','D12C2412-E12A-4F78-9AEF-1EE8AC84A561','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('11F44E2B-F3EB-4189-B324-69DB226CF39B','D12C2412-E12A-4F78-9AEF-1EE8AC84A561','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('826C9DEB-7A48-4B70-9312-FC5D0D5D2555','D12C2412-E12A-4F78-9AEF-1EE8AC84A561','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('C4A17D4C-25A7-4F37-B6CF-F07526AECBC2','D12C2412-E12A-4F78-9AEF-1EE8AC84A561','',4) + GO + + INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('172F25E0-F5E2-42E3-AD67-AC824D4E0FBB','Ӧչ','ZHGL/Emergency/DrillRecordList.aspx',20,'3BBFCD70-D7A3-435C-9571-DD499D5ED7B8','Menu_ZHGL',0,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('9F63FB64-5F34-4CD4-B266-59F6E8FF4FA5','172F25E0-F5E2-42E3-AD67-AC824D4E0FBB','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('2193449B-4C40-49DA-9C23-82A94126AE05','172F25E0-F5E2-42E3-AD67-AC824D4E0FBB','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('7C866795-2E56-47CD-B937-C468C46DB007','172F25E0-F5E2-42E3-AD67-AC824D4E0FBB','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('27E0EE6E-D96F-4300-9574-423F378D79C4','172F25E0-F5E2-42E3-AD67-AC824D4E0FBB','',4) + GO + + +delete from Sys_Menu where MenuId='9A3212F8-2392-4F21-A8C7-FF5EE3B191F1' +delete from Sys_ButtonToMenu where MenuId='762F0BF9-471B-4115-B35E-03A26C573877' +delete from Sys_Menu where MenuId='762F0BF9-471B-4115-B35E-03A26C573877' +delete from Sys_ButtonToMenu where MenuId='EDC50857-7762-4498-83C6-5BDE85036BAB' +delete from Sys_Menu where MenuId='EDC50857-7762-4498-83C6-5BDE85036BAB' +delete from Sys_ButtonToMenu where MenuId='74A6B343-5837-416B-AE9C-D2BBCA08E41F' +delete from Sys_Menu where MenuId='74A6B343-5837-416B-AE9C-D2BBCA08E41F' +delete from Sys_ButtonToMenu where MenuId='F6A6D53A-150E-43DB-A3C4-6FA18E9401E9' +delete from Sys_Menu where MenuId='F6A6D53A-150E-43DB-A3C4-6FA18E9401E9' +delete from Sys_ButtonToMenu where MenuId='D256E5C8-DC76-4F4D-BABE-A253418823F4' +delete from Sys_Menu where MenuId='D256E5C8-DC76-4F4D-BABE-A253418823F4' +delete from Sys_ButtonToMenu where MenuId='94C36333-C22A-499F-B9DB-53EEF77922AE' +delete from Sys_Menu where MenuId='94C36333-C22A-499F-B9DB-53EEF77922AE' +delete from Sys_ButtonToMenu where MenuId='E22F555A-D41C-4F5F-9734-39B578957732' +delete from Sys_Menu where MenuId='E22F555A-D41C-4F5F-9734-39B578957732' +GO +INSERT INTO dbo.Sys_Menu (MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('9A3212F8-2392-4F21-A8C7-FF5EE3B191F1' ,'շּ̬ܿ',null,'',50,'467A0CB9-737D-4451-965E-869EBC3A4BD6', 'Menu_HSSE',0,0,1) +INSERT INTO dbo.Sys_Menu (MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('762F0BF9-471B-4115-B35E-03A26C573877' ,'ʶ',null,'HSSE/Hazard/EnvironmentalRiskList.aspx',10,'9A3212F8-2392-4F21-A8C7-FF5EE3B191F1', 'Menu_HSSE',0,1,1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('25E47331-0E20-47B0-AAC3-926C0444D9C9', '762F0BF9-471B-4115-B35E-03A26C573877' ,'' ,1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('25705A8C-A734-4D56-8C30-4D08578B37F3', '762F0BF9-471B-4115-B35E-03A26C573877' ,'޸' ,2) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('8485EACC-BEE1-4BED-95CE-A10AA53372D1', '762F0BF9-471B-4115-B35E-03A26C573877' ,'ɾ' ,3) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('4DEF4A6D-77BD-4192-896D-6AB88BFA8F91', '762F0BF9-471B-4115-B35E-03A26C573877' ,'' ,4) +INSERT INTO dbo.Sys_Menu (MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('EDC50857-7762-4498-83C6-5BDE85036BAB' ,'',null,'HSSE/Hazard/HazardList.aspx',20,'9A3212F8-2392-4F21-A8C7-FF5EE3B191F1', 'Menu_HSSE',0,1,1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('C90FA764-F303-43F6-AC24-2F9E9351C637', 'EDC50857-7762-4498-83C6-5BDE85036BAB' ,'' ,1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('16D438F4-72C7-4765-84DE-4C34867F7760', 'EDC50857-7762-4498-83C6-5BDE85036BAB' ,'޸' ,2) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('51ED8EA2-133F-4277-90C5-6C1F6EB50F8B', 'EDC50857-7762-4498-83C6-5BDE85036BAB' ,'ɾ' ,3) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('0BF51430-3A6D-483B-9516-89711266E2F5', 'EDC50857-7762-4498-83C6-5BDE85036BAB' ,'' ,4) +INSERT INTO dbo.Sys_Menu (MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('74A6B343-5837-416B-AE9C-D2BBCA08E41F' ,'Ϣ',null,'HSSE/Hazard/HazardInfo.aspx',25,'9A3212F8-2392-4F21-A8C7-FF5EE3B191F1', 'Menu_HSSE',0,1,1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('D4A583C2-5505-4FBD-BE1C-1A168FA0F352', '74A6B343-5837-416B-AE9C-D2BBCA08E41F' ,'' ,1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('693767D0-37E7-4FA1-8C21-C02C543AF811', '74A6B343-5837-416B-AE9C-D2BBCA08E41F' ,'' ,2) +INSERT INTO dbo.Sys_Menu (MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('F6A6D53A-150E-43DB-A3C4-6FA18E9401E9' ,'շּܿ',null,'HSSE/Hazard/RiskControl.aspx',30,'9A3212F8-2392-4F21-A8C7-FF5EE3B191F1', 'Menu_HSSE',0,1,1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('7608EEE7-4102-449C-8F61-272E3952C8A8', 'F6A6D53A-150E-43DB-A3C4-6FA18E9401E9' ,'' ,1) +INSERT INTO dbo.Sys_Menu (MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('D256E5C8-DC76-4F4D-BABE-A253418823F4' ,'Ѳ¼',null,'HSSE/Hazard/RoutingInspection.aspx',32,'9A3212F8-2392-4F21-A8C7-FF5EE3B191F1', 'Menu_HSSE',0,1,1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('1D00171C-17EB-46EB-8892-86FCC495CF9B', 'D256E5C8-DC76-4F4D-BABE-A253418823F4' ,'ɾ' ,1) +INSERT INTO dbo.Sys_Menu (MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('94C36333-C22A-499F-B9DB-53EEF77922AE' ,'ĿֳشHSEؿƴʩһ',null,'HSSE/Hazard/MajorHazardList.aspx',40,'9A3212F8-2392-4F21-A8C7-FF5EE3B191F1', 'Menu_HSSE',0,1,1) +INSERT INTO dbo.Sys_Menu (MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('E22F555A-D41C-4F5F-9734-39B578957732' ,'ΣԴʶļ',null,'HSSE/Hazard/OtherHazard.aspx',50,'9A3212F8-2392-4F21-A8C7-FF5EE3B191F1', 'Menu_HSSE',0,1,1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('EACFD7D1-93F9-4BD3-AB9B-E4BD4FA0147C', 'E22F555A-D41C-4F5F-9734-39B578957732' ,'' ,1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('296031BC-B143-48F3-B903-B7697ED6B704', 'E22F555A-D41C-4F5F-9734-39B578957732' ,'޸' ,2) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('B21B1B8A-E2F5-4A68-AC0A-9666B051BBE2', 'E22F555A-D41C-4F5F-9734-39B578957732' ,'ɾ' ,3) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('AB49F853-52D5-4CFC-9CE0-BC3504C7D90A', 'E22F555A-D41C-4F5F-9734-39B578957732' ,'' ,4) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('A83A0227-09D1-4D93-940C-E9BC6066EE6C', 'E22F555A-D41C-4F5F-9734-39B578957732' ,'ύ' ,5) +GO + + + +drop table [dbo].[Hazard_HazardSelectedItem] +GO + + +CREATE TABLE [dbo].[Hazard_HazardSelectedItem]( + [HazardSelectedItemId] [nvarchar](50) NOT NULL, + [HazardId] [nvarchar](50) NOT NULL, + [HazardListTypeId] [nvarchar](50) NULL, + [HazardListId] [nvarchar](50) NOT NULL, + [HazardItems] [nvarchar](100) NULL, + [DefectsType] [nvarchar](50) NULL, + [MayLeadAccidents] [nvarchar](100) NULL, + [HelperMethod] [nvarchar](50) NULL, + [HazardJudge_L] [numeric](6, 1) NULL, + [HazardJudge_E] [numeric](6, 1) NULL, + [HazardJudge_C] [numeric](6, 1) NULL, + [HazardJudge_D] [numeric](6, 1) NULL, + [HazardLevel] [nvarchar](50) NULL, + [ControlMeasures] [nvarchar](200) NULL, + [IsResponse] [bit] NULL, + [ResponseRecode] [nvarchar](100) NULL, + [PromptTime] [int] NULL, + [Remark] [nvarchar](100) NULL, + [WorkStage] [nvarchar](2000) NULL, + [ProjectId] [nvarchar](50) NULL, + [DutyPerson] [nvarchar](50) NULL, + [CheckStartDate] [datetime] NULL, + [IsStart] [bit] NULL, + [State] [char](1) NULL, + [PlanExistDate] [datetime] NULL, + [QRCodeAttachUrl] [nvarchar](200) NULL, + CONSTRAINT [PK_Hazard_HazardSelectedItem_1] PRIMARY KEY CLUSTERED +( + [HazardSelectedItemId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +SET ANSI_PADDING OFF +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ΣԴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'HazardId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ΣԴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'HazardListTypeId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'嵥' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'HazardListId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Σϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'HazardItems' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'DefectsType' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܵµ¹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'MayLeadAccidents' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'(Ϊ:I,,,,)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'HelperMethod' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵΣ(L)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'HazardJudge_L' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵΣ(E)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'HazardJudge_E' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵΣ(C)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'HazardJudge_C' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҵΣ(D)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'HazardJudge_D' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Σռ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'HazardLevel' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ƴʩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'ControlMeasures' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ǷӦ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'IsResponse' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӧ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'ResponseRecode' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʾʱ䣨1-1ܣ2-2ܣԴƣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'PromptTime' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem', @level2type=N'COLUMN',@level2name=N'Remark' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ΣʶΣ۽' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_HazardSelectedItem' +GO + + + +CREATE TABLE [dbo].[Hazard_PatrolPlan]( + [PatrolPlanId] [nvarchar](50) NOT NULL, + [HazardSelectedItemId] [nvarchar](50) NULL, + [HazardLevel] [nvarchar](50) NULL, + [DutyPerson] [nvarchar](50) NULL, + [Days] [int] NULL, + [CheckStartDate] [datetime] NULL, + [LimitCheckDate] [datetime] NULL, + [CheckDate] [datetime] NULL, + [State] [char](1) NULL, + CONSTRAINT [PK_Hazard_PatrolPlan] PRIMARY KEY CLUSTERED +( + [PatrolPlanId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +SET ANSI_PADDING OFF +GO + +ALTER TABLE [dbo].[Hazard_PatrolPlan] WITH CHECK ADD CONSTRAINT [FK_Hazard_PatrolPlan_Hazard_HazardSelectedItem] FOREIGN KEY([HazardSelectedItemId]) +REFERENCES [dbo].[Hazard_HazardSelectedItem] ([HazardSelectedItemId]) +GO + +ALTER TABLE [dbo].[Hazard_PatrolPlan] CHECK CONSTRAINT [FK_Hazard_PatrolPlan_Hazard_HazardSelectedItem] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ѳƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_PatrolPlan' +GO + + + +CREATE TABLE [dbo].[Hazard_RiskEvaluationRecord]( + [LECItemRecordId] [nvarchar](50) NOT NULL, + [DataId] [nvarchar](50) NULL, + [DataType] [nvarchar](50) NULL, + [Evaluatorld] [nvarchar](50) NULL, + [EvaluatorDate] [date] NULL, + [L] [numeric](6, 1) NULL, + [E] [numeric](6, 1) NULL, + [C] [numeric](6, 1) NULL, + [D] [numeric](6, 1) NULL, + [RiskLevel] [nvarchar](50) NULL, + [ControlMeasures] [nvarchar](800) NULL, + [Remark] [nvarchar](500) NULL, + CONSTRAINT [PK_Hazard_RiskEvaluationRecord] PRIMARY KEY CLUSTERED +( + [LECItemRecordId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + + +CREATE TABLE [dbo].[Hazard_RoutingInspection]( + [RoutingInspectionId] [nvarchar](50) NOT NULL, + [HazardSelectedItemId] [nvarchar](50) NULL, + [PatrolManId] [nvarchar](50) NULL, + [PatrolTime] [datetime] NULL, + [PatrolResult] [int] NULL, + [OldRiskLevel] [nvarchar](50) NULL, + [PohotoUrl] [nvarchar](200) NULL, + [ControlMeasures] [nvarchar](200) NULL, + [DealReason] [nvarchar](200) NULL, + [RiskManId] [nvarchar](50) NULL, + [PatrolPlanId] [nvarchar](50) NULL, + CONSTRAINT [PK_Hazard_RoutingInspection] PRIMARY KEY CLUSTERED +( + [RoutingInspectionId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ѳ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Hazard_RoutingInspection' +GO + + + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('E4B526CC-805E-4131-8E18-2FFA6871507E','յȼ','BaseInfo/RiskLevel.aspx',140,'8A2CEE72-2793-49C6-9E2E-E83B2676E2DD','Menu_SysSet',1,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('97A0EF27-78C7-4D6D-AE41-BCB28C3A0CA5','E4B526CC-805E-4131-8E18-2FFA6871507E','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('2ACA14F6-93FD-458E-830F-BEBDC364829D','E4B526CC-805E-4131-8E18-2FFA6871507E','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('2C201030-1DC1-4D0D-B97A-C85BBFAF7C22','E4B526CC-805E-4131-8E18-2FFA6871507E','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B36F59BD-1471-45EE-BF56-525673103B4B','E4B526CC-805E-4131-8E18-2FFA6871507E','',4) + GO + + INSERT INTO dbo.Base_RiskLevel + VALUES('01537cc5-e8d2-497c-ba53-1faca1faf495',2,'/һ',121,170,'Σգص',7,'') + GO + INSERT INTO dbo.Base_RiskLevel + VALUES('6baaf2bb-ee7c-410c-9a32-13208626c467',3,'/ϴ',170,320,'߶Σգ',3,'') + GO + INSERT INTO dbo.Base_RiskLevel + VALUES('84e1d680-5bfe-48d2-a255-59f43aa3615a',1,'һ/ͷ',NULL,120,'һΣգҪ',21,'') + GO + INSERT INTO dbo.Base_RiskLevel + VALUES('c9e6285c-2da3-4997-8dc9-fb6ab404346e',4,'ļ/ش',321,NULL,'Σգҵ',1,'') + GO \ No newline at end of file diff --git a/DataBase/菜单初始化脚本/0-8综合管理(Menu_ZHGL).sql b/DataBase/菜单初始化脚本/0-8综合管理(Menu_ZHGL).sql index 1bbb39e3..06715a8c 100644 --- a/DataBase/菜单初始化脚本/0-8综合管理(Menu_ZHGL).sql +++ b/DataBase/菜单初始化脚本/0-8综合管理(Menu_ZHGL).sql @@ -44,6 +44,49 @@ GO VALUES('3E341FD3-7E5C-42BC-8C42-6BD138E4FBE7','B0FDF8C2-A902-456A-8B5B-43E4B1C8BBE2','保存',4) GO +--人员管理 +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('175FAEE8-F6B3-483D-839B-001AF4B45D0A','人员管理','',15,'0','Menu_ZHGL',1,0,1) +GO + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('8E229597-B2D8-407B-8192-787E65E5052E','企业总部人员','ZHGL/Person/CompanyPerson.aspx',10,'175FAEE8-F6B3-483D-839B-001AF4B45D0A','Menu_ZHGL',1,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('BC370144-AA46-4AD3-B26C-DF3E995388C4','8E229597-B2D8-407B-8192-787E65E5052E','增加',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('62AC6438-952A-49BE-81BA-580F7C060E33','8E229597-B2D8-407B-8192-787E65E5052E','修改',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('9B133AF0-CA02-4383-9AB8-9B13BC6A84CE','8E229597-B2D8-407B-8192-787E65E5052E','删除',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('A8EA6A33-090C-4D92-9CFB-225ED38FAE93','8E229597-B2D8-407B-8192-787E65E5052E','保存',4) + GO + + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('FE342650-9E64-4B9C-8023-34399E198B6F','分支机构人员','ZHGL/Person/BranchPerson.aspx',20,'175FAEE8-F6B3-483D-839B-001AF4B45D0A','Menu_ZHGL',1,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('CB3CDFC7-1B77-4948-A431-683D197E5684','FE342650-9E64-4B9C-8023-34399E198B6F','增加',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('232A054B-E244-4412-852B-670AA5F6CC24','FE342650-9E64-4B9C-8023-34399E198B6F','修改',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('C29706B8-8092-4733-83C6-811F5F195EC9','FE342650-9E64-4B9C-8023-34399E198B6F','删除',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('D4A95692-847A-41C6-97EF-B36E04AFB335','FE342650-9E64-4B9C-8023-34399E198B6F','保存',4) + GO + + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('D2C91885-974A-448A-9BA5-0EEAE8FA98CA','项目现场人员','ZHGL/Person/ProjectPerson.aspx',30,'175FAEE8-F6B3-483D-839B-001AF4B45D0A','Menu_ZHGL',1,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('13369C09-3301-4BA8-B0DC-7BC2B41981C9','D2C91885-974A-448A-9BA5-0EEAE8FA98CA','增加',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('16DD0C20-AAB5-46C3-A927-B0A159B39706','D2C91885-974A-448A-9BA5-0EEAE8FA98CA','修改',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('F19E234F-D938-45BD-8C32-8F7F8C35BD07','D2C91885-974A-448A-9BA5-0EEAE8FA98CA','删除',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('4E93A42D-BEAB-4991-8396-0A6E51BF1AF1','D2C91885-974A-448A-9BA5-0EEAE8FA98CA','保存',4) + GO + --安全报表(集团) INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('4RGASWE2-09B1-4607-DCS2-WDFCVG693G6D','安全报表(集团)','',20,'0','Menu_ZHGL',1,0,1) @@ -270,6 +313,36 @@ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffi VALUES('091D7D24-E706-465A-95FD-8EF359CB8667','集团下发监督检查报告','ZHGL/ServerCheck/CheckInfoReport.aspx',40,'DEAA1931-C0D7-4277-9B34-23963D1C538A','Menu_ZHGL',1,1,1) GO +--安全会议 +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('BFFBE172-7473-486E-9833-49F13B359C6C','安全会议','',60,'0','Menu_ZHGL',1,0,1) +GO +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('B911B4F8-DDFD-4F37-9EAC-EB104F753432','企业安委会','ZHGL/Meeting/CompanySafetyMeeting.aspx',10,'BFFBE172-7473-486E-9833-49F13B359C6C','Menu_ZHGL',1,1,1) +GO +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('27DD0084-A559-4723-90B9-5F68DF3B61C4','B911B4F8-DDFD-4F37-9EAC-EB104F753432','增加',1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('1F841CFB-1AFC-4C9C-A56F-681E407B52F9','B911B4F8-DDFD-4F37-9EAC-EB104F753432','修改',2) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('60142F0A-3362-4264-876C-F27FFB533891','B911B4F8-DDFD-4F37-9EAC-EB104F753432','删除',3) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('05901FC0-D482-442D-9764-7DE5EA4ED991','B911B4F8-DDFD-4F37-9EAC-EB104F753432','保存',4) +GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('2497EF13-C052-4228-B388-EBC5C18963BC','企业专题会','ZHGL/Meeting/CompanySpecialMeeting.aspx',20,'BFFBE172-7473-486E-9833-49F13B359C6C','Menu_ZHGL',1,1,1) +GO +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('58BC6E5C-E45F-47A2-A7FC-D02F91DEF058','2497EF13-C052-4228-B388-EBC5C18963BC','增加',1) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('92627BA3-A14A-4886-805E-038324E9747A','2497EF13-C052-4228-B388-EBC5C18963BC','修改',2) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('395E1B2B-AF35-4867-A8F0-E471FB10C25D','2497EF13-C052-4228-B388-EBC5C18963BC','删除',3) +INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +VALUES('1DF4AADF-2207-4A9E-83D0-8899E21E91BA','2497EF13-C052-4228-B388-EBC5C18963BC','保存',4) +GO + --职业健康 INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('E0A00DAC-2276-4AC5-B67B-60887C91DD62','职业健康','',70,'0','Menu_ZHGL',1,0,1) @@ -409,3 +482,32 @@ GO --INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) --VALUES('69EEFFAB-166E-4419-A334-E53EDFE7D9D7','安全会议统计','ZHGL/DataStatistics/MeetStatistics.aspx',30,'A57CBE1D-B9F4-4FB6-A428-10197734AAB6','Menu_ZHGL',1,1,1) --GO +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('3BBFCD70-D7A3-435C-9571-DD499D5ED7B8','应急信息','',120,'0','Menu_ZHGL',0,0,1) +GO + + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('D12C2412-E12A-4F78-9AEF-1EE8AC84A561','应急预案管理清单','ZHGL/Emergency/EmergencyList.aspx',10,'3BBFCD70-D7A3-435C-9571-DD499D5ED7B8','Menu_ZHGL',0,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('4A638D22-1515-4967-B149-8362F81E3A95','D12C2412-E12A-4F78-9AEF-1EE8AC84A561','增加',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('11F44E2B-F3EB-4189-B324-69DB226CF39B','D12C2412-E12A-4F78-9AEF-1EE8AC84A561','修改',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('826C9DEB-7A48-4B70-9312-FC5D0D5D2555','D12C2412-E12A-4F78-9AEF-1EE8AC84A561','删除',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('C4A17D4C-25A7-4F37-B6CF-F07526AECBC2','D12C2412-E12A-4F78-9AEF-1EE8AC84A561','保存',4) + GO + + INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('172F25E0-F5E2-42E3-AD67-AC824D4E0FBB','应急演练开展情况','ZHGL/Emergency/DrillRecordList.aspx',20,'3BBFCD70-D7A3-435C-9571-DD499D5ED7B8','Menu_ZHGL',0,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('9F63FB64-5F34-4CD4-B266-59F6E8FF4FA5','172F25E0-F5E2-42E3-AD67-AC824D4E0FBB','增加',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('2193449B-4C40-49DA-9C23-82A94126AE05','172F25E0-F5E2-42E3-AD67-AC824D4E0FBB','修改',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('7C866795-2E56-47CD-B937-C468C46DB007','172F25E0-F5E2-42E3-AD67-AC824D4E0FBB','删除',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('27E0EE6E-D96F-4300-9574-423F378D79C4','172F25E0-F5E2-42E3-AD67-AC824D4E0FBB','保存',4) + GO \ No newline at end of file diff --git a/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql b/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql index 5c09d145..44450c74 100644 --- a/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql +++ b/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql @@ -616,6 +616,19 @@ GO INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('6886FA5A-7217-4FB2-805A-BD56EB1DD3E5','C198EBA8-9E23-4654-92E1-09C61105C522','',4) GO + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('355265DE-901A-4110-B934-B4DA067C4334','쵼','HSSE/Check/ProjectLeaderCheck.aspx',35,'467A0CB9-737D-4451-965E-869EBC3A4BD6','Menu_HSSE',0,1,1) + GO + --쵼鰴ť + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('E0860211-E41A-4D51-B5B4-99A5D0676C73','355265DE-901A-4110-B934-B4DA067C4334','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('87B6E85C-48DA-4BD3-8518-35968E564557','355265DE-901A-4110-B934-B4DA067C4334','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B07D2E39-60CE-4F59-895B-7D0763A65341','355265DE-901A-4110-B934-B4DA067C4334','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('AAB617C6-A800-4D59-8761-AC134C7885D3','355265DE-901A-4110-B934-B4DA067C4334','',4) + GO INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('9212291A-FBC5-4F6D-A5F6-60BFF4E30F6F','ǰ','HSSE/Check/CheckWork.aspx',40,'467A0CB9-737D-4451-965E-869EBC3A4BD6','Menu_HSSE',0,1,1) GO @@ -716,6 +729,19 @@ GO INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('5309E7E0-395E-4F11-8F5E-D52E11526A2A','HSE','',110,'0','Menu_HSSE',0,0,1) GO + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF','ȫ쵼С','HSSE/Meeting/SafetyLeaderGroupMeeting.aspx',5,'5309E7E0-395E-4F11-8F5E-D52E11526A2A','Menu_HSSE',0,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('0A65A42F-2701-4DD3-9C72-7B39F1ECD560','DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('DCAB0B09-EA07-443C-9B04-2E86D9E8C2DC','DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('FE3476FB-1D5B-4E8E-801E-E4B9B4D287F0','DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('739A0815-D4B3-4B9F-B001-5D04EB94B9EF','DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF','',4) + GO + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('5236B1D9-8B57-495E-8644-231DF5D066CE','HSE','HSSE/Meeting/WeekMeeting.aspx',10,'5309E7E0-395E-4F11-8F5E-D52E11526A2A','Menu_HSSE',0,1,1) GO diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index fdc1ee73..802d28a2 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -175,6 +175,7 @@ + @@ -379,6 +380,7 @@ + @@ -427,6 +429,9 @@ + + + @@ -518,6 +523,7 @@ + @@ -778,6 +784,8 @@ + + @@ -809,6 +817,9 @@ + + + diff --git a/SGGL/BLL/BaseInfo/CertificateService.cs b/SGGL/BLL/BaseInfo/CertificateService.cs index f93fe050..b0b0c6c9 100644 --- a/SGGL/BLL/BaseInfo/CertificateService.cs +++ b/SGGL/BLL/BaseInfo/CertificateService.cs @@ -34,6 +34,8 @@ namespace BLL CertificateId = certificate.CertificateId, CertificateCode = certificate.CertificateCode, CertificateName = certificate.CertificateName, + CertificateType = certificate.CertificateType, + IsRegisterHSSE = certificate.IsRegisterHSSE, Remark = certificate.Remark }; db.Base_Certificate.InsertOnSubmit(newCertificate); @@ -52,6 +54,8 @@ namespace BLL { newCertificate.CertificateCode = certificate.CertificateCode; newCertificate.CertificateName = certificate.CertificateName; + newCertificate.CertificateType = certificate.CertificateType; + newCertificate.IsRegisterHSSE = certificate.IsRegisterHSSE; newCertificate.Remark = certificate.Remark; db.SubmitChanges(); } diff --git a/SGGL/BLL/BaseInfo/RiskLevelService.cs b/SGGL/BLL/BaseInfo/RiskLevelService.cs new file mode 100644 index 00000000..3e92769e --- /dev/null +++ b/SGGL/BLL/BaseInfo/RiskLevelService.cs @@ -0,0 +1,122 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace BLL +{ + /// + /// 许可证类型 + /// + public static class RiskLevelService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 根据主键获取许可证类型 + /// + /// + /// + public static Model.Base_RiskLevel GetRiskLevel(string riskLevelId) + { + return Funs.DB.Base_RiskLevel.FirstOrDefault(e => e.RiskLevelId == riskLevelId); + } + + /// + /// 添加许可证类型 + /// + /// + public static void AddRiskLevel(Model.Base_RiskLevel reskLevel) + { + Model.SGGLDB db = Funs.DB; + Model.Base_RiskLevel newreskLevel = new Model.Base_RiskLevel + { + RiskLevelId = reskLevel.RiskLevelId, + RiskLevel = reskLevel.RiskLevel, + RiskLevelName = reskLevel.RiskLevelName, + ControlMeasures = reskLevel.ControlMeasures, + Days = reskLevel.Days, + Remark = reskLevel.Remark, + MaxValue = reskLevel.MaxValue, + MinValue = reskLevel.MinValue + }; + db.Base_RiskLevel.InsertOnSubmit(newreskLevel); + db.SubmitChanges(); + } + + /// + /// 修改许可证类型 + /// + /// + public static void UpdateLicenseType(Model.Base_RiskLevel riskLevel) + { + Model.SGGLDB db = Funs.DB; + Model.Base_RiskLevel newRiskLevel = db.Base_RiskLevel.FirstOrDefault(e => e.RiskLevelId == riskLevel.RiskLevelId); + if (newRiskLevel != null) + { + newRiskLevel.RiskLevel = riskLevel.RiskLevel; + newRiskLevel.RiskLevelName = riskLevel.RiskLevelName; + newRiskLevel.MinValue = riskLevel.MinValue; + newRiskLevel.MaxValue = riskLevel.MaxValue; + newRiskLevel.ControlMeasures = riskLevel.ControlMeasures; + newRiskLevel.Days = riskLevel.Days; + newRiskLevel.Remark = riskLevel.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除许可证类型 + /// + /// + public static void DeleteRiskLevelById(string riskLevelId) + { + Model.SGGLDB db = Funs.DB; + Model.Base_RiskLevel riskLevel = db.Base_RiskLevel.FirstOrDefault(e => e.RiskLevelId== riskLevelId); + if (riskLevel != null) + { + db.Base_RiskLevel.DeleteOnSubmit(riskLevel); + db.SubmitChanges(); + } + } + + /// + /// 获取许可证类型下拉选择项 + /// + /// + public static List GetLicenseTypeList() + { + return (from x in Funs.DB.Base_RiskLevel orderby x.RiskLevel select x).ToList(); + } + + #region 许可证类型下拉框 + /// + /// 许可证类型下拉框 + /// + /// 下拉框名字 + /// 是否显示请选择 + public static void InitRiskLevelDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease) + { + dropName.DataValueField = "RiskLevelId"; + dropName.DataTextField = "RiskLevelName"; + dropName.DataSource = GetLicenseTypeList(); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + public static void InitRiskLevelDropDownListByRiskLevelName(FineUIPro.DropDownList dropName, bool isShowPlease) + { + dropName.DataValueField = "RiskLevelName"; + dropName.DataTextField = "RiskLevelName"; + dropName.DataSource = GetLicenseTypeList(); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + #endregion + } +} diff --git a/SGGL/BLL/BaseInfo/WorkPostService.cs b/SGGL/BLL/BaseInfo/WorkPostService.cs index 2ea5b267..3992f1ca 100644 --- a/SGGL/BLL/BaseInfo/WorkPostService.cs +++ b/SGGL/BLL/BaseInfo/WorkPostService.cs @@ -37,6 +37,7 @@ namespace BLL WorkPostName = workPost.WorkPostName, PostType = workPost.PostType, IsHsse = workPost.IsHsse, + IsCQMS = workPost.IsCQMS, CNCodes = workPost.CNCodes, Remark = workPost.Remark }; @@ -59,6 +60,7 @@ namespace BLL newWorkPost.WorkPostName = workPost.WorkPostName; newWorkPost.PostType = workPost.PostType; newWorkPost.IsHsse = workPost.IsHsse; + newWorkPost.IsCQMS = workPost.IsCQMS; newWorkPost.CNCodes = workPost.CNCodes; newWorkPost.Remark = workPost.Remark; db.SubmitChanges(); diff --git a/SGGL/BLL/CQMS/Comprehensive/DesignDetailsService.cs b/SGGL/BLL/CQMS/Comprehensive/DesignDetailsService.cs index 21f89224..0e5ef697 100644 --- a/SGGL/BLL/CQMS/Comprehensive/DesignDetailsService.cs +++ b/SGGL/BLL/CQMS/Comprehensive/DesignDetailsService.cs @@ -140,7 +140,7 @@ namespace BLL newDesignDetails.CompileDate = designDetails.CompileDate; newDesignDetails.Status = designDetails.Status; newDesignDetails.AuditMan = designDetails.AuditMan; - + newDesignDetails.JoinPersonNum = designDetails.JoinPersonNum; db.Comprehensive_DesignDetails.InsertOnSubmit(newDesignDetails); db.SubmitChanges(); @@ -166,6 +166,7 @@ namespace BLL newDesignDetails.AttachUrl = designDetails.AttachUrl; newDesignDetails.Status = designDetails.Status; newDesignDetails.AuditMan = designDetails.AuditMan; + newDesignDetails.JoinPersonNum = designDetails.JoinPersonNum; db.SubmitChanges(); } diff --git a/SGGL/BLL/CQMS/Comprehensive/InspectionMachineService.cs b/SGGL/BLL/CQMS/Comprehensive/InspectionMachineService.cs index 2c42cf4b..ca1d601b 100644 --- a/SGGL/BLL/CQMS/Comprehensive/InspectionMachineService.cs +++ b/SGGL/BLL/CQMS/Comprehensive/InspectionMachineService.cs @@ -113,7 +113,7 @@ namespace BLL newInspectionMachine.InspectionMachineCode = inspectionMachine.InspectionMachineCode; newInspectionMachine.InspectionMachineName = inspectionMachine.InspectionMachineName; newInspectionMachine.SpecificationModel = inspectionMachine.SpecificationModel; - + newInspectionMachine.IsCheckOK = inspectionMachine.IsCheckOK; newInspectionMachine.InspectionType = inspectionMachine.InspectionType; newInspectionMachine.NextTestDate = inspectionMachine.NextTestDate; newInspectionMachine.TestCycle = inspectionMachine.TestCycle; @@ -147,7 +147,7 @@ namespace BLL newInspectionMachine.InspectionMachineCode = inspectionMachine.InspectionMachineCode; newInspectionMachine.InspectionMachineName = inspectionMachine.InspectionMachineName; newInspectionMachine.SpecificationModel = inspectionMachine.SpecificationModel; - + newInspectionMachine.IsCheckOK = inspectionMachine.IsCheckOK; newInspectionMachine.InspectionType = inspectionMachine.InspectionType; newInspectionMachine.NextTestDate = inspectionMachine.NextTestDate; newInspectionMachine.TestCycle = inspectionMachine.TestCycle; diff --git a/SGGL/BLL/CQMS/Comprehensive/InspectionPersonService.cs b/SGGL/BLL/CQMS/Comprehensive/InspectionPersonService.cs index d629bfa4..179687e2 100644 --- a/SGGL/BLL/CQMS/Comprehensive/InspectionPersonService.cs +++ b/SGGL/BLL/CQMS/Comprehensive/InspectionPersonService.cs @@ -60,6 +60,7 @@ namespace BLL newInspectionPerson.IsOnSite = inspectionPerson.IsOnSite; newInspectionPerson.UnitWorkId = inspectionPerson.UnitWorkId; newInspectionPerson.Status = inspectionPerson.Status; + newInspectionPerson.IsTrain = inspectionPerson.IsTrain; db.Comprehensive_InspectionPerson.InsertOnSubmit(newInspectionPerson); db.SubmitChanges(); } @@ -90,6 +91,7 @@ namespace BLL newInspectionPerson.IsOnSite = inspectionPerson.IsOnSite; newInspectionPerson.UnitWorkId = inspectionPerson.UnitWorkId; newInspectionPerson.Status = inspectionPerson.Status; + newInspectionPerson.IsTrain = inspectionPerson.IsTrain; db.SubmitChanges(); } } diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 1085e599..370c8e30 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -1002,6 +1002,10 @@ namespace BLL /// 执业资格证书证书 /// public const string PracticeCertificateMenuId = "1390195D8-874B-4E7B-8DBF-D81A5984E973"; + /// + /// 风险等级 + /// + public const string RiskLevelMenuId = "E4B526CC-805E-4131-8E18-2FFA6871507E"; #endregion #region 质量基础信息 @@ -1702,6 +1706,22 @@ namespace BLL /// 危险源辨识与评价清单 /// public const string ProjectHazardListMenuId = "EDC50857-7762-4498-83C6-5BDE85036BAB"; + /// + /// 风险信息库 + /// + public const string ProjectHazardInfoMenuId = "74A6B343-5837-416B-AE9C-D2BBCA08E41F"; + /// + /// 风险分级管控 + /// + public const string ProjectRiskControlMenuId = "F6A6D53A-150E-43DB-A3C4-6FA18E9401E9"; + /// + /// 风险巡检记录 + /// + public const string ProjectRoutingInspectionMenuId = "D256E5C8-DC76-4F4D-BABE-A253418823F4"; + /// + /// + /// + public const string EpidemicPersonMenuId = "E485D454-0443-461E-A521-2B9E27813B0B"; /// /// 风险提示 @@ -1946,6 +1966,10 @@ namespace BLL /// public const string ProjectCheckColligationMenuId = "C198EBA8-9E23-4654-92E1-09C61105C522"; /// + /// 领导带班检查 + /// + public const string ProjectLeaderCheckMenuId = "355265DE-901A-4110-B934-B4DA067C4334"; + /// /// HSSE综合检查(五环) /// public const string ProjectCheckColligationWHMenuId = "E8363923-06CD-47C2-BFE1-F18212094710"; @@ -2060,6 +2084,10 @@ namespace BLL #region HSSE会议管理 /// + /// 安全领导小组会议 + /// + public const string ProjectSafetyLeaderGroupMeetingMenuId = "DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF"; + /// /// HSSE周例会 /// public const string ProjectWeekMeetingMenuId = "5236B1D9-8B57-495E-8644-231DF5D066CE"; @@ -3093,6 +3121,14 @@ namespace BLL /// 施工进度报表模板 /// public const string JDReportTemplateUrl = "File\\Word\\JDGL\\施工进度报表.docx"; + /// + /// 企业总部人员模版文件原始的虚拟路径 + /// + public const string CompanyPersonTemplateUrl = "File\\Excel\\DataIn\\企业总部人员信息模版.xls"; + /// + /// 分支机构人员模版文件原始的虚拟路径 + /// + public const string BranchPersonTemplateUrl = "File\\Excel\\DataIn\\分支机构人员信息模版.xls"; #endregion #region 绩效考核模板文件路径 @@ -4619,6 +4655,45 @@ namespace BLL /// 项目级施工日志 /// public const string WorkHandoverMenuId = "CD88CE2A-A8E2-4F07-9A90-9161BD1C345C"; + + #region 人员管理 + /// + /// 企业总部人员 + /// + public const string CompanyPersonMenuId = "8E229597-B2D8-407B-8192-787E65E5052E"; + + /// + /// 分支机构人员 + /// + public const string BranchPersonMenuId = "FE342650-9E64-4B9C-8023-34399E198B6F"; + #endregion + + #region 公司安全会议 + /// + /// 企业安委会 + /// + public const string CompanySafetyMeetingMenuId = "B911B4F8-DDFD-4F37-9EAC-EB104F753432"; + + /// + /// 企业专题会 + /// + public const string CompanySpecialMeetingMenuId = "2497EF13-C052-4228-B388-EBC5C18963BC"; + #endregion + + /// + /// HSSE应急预案管理清单 + /// + public const string UnitEmergencyListMenuId = "D12C2412-E12A-4F78-9AEF-1EE8AC84A561"; + + /// + /// 应急演练 + /// + public const string UnitDrillRecordListMenuId = "172F25E0-F5E2-42E3-AD67-AC824D4E0FBB"; + + /// + /// 项目应急物资管理 + /// + public const string ServerEmergencySupplyMenuId = "3EA741CE-66A6-4CF8-8620-0C5906AC7D94"; #endregion #region 施工综合流程定义 diff --git a/SGGL/BLL/Common/IDCardValid.cs b/SGGL/BLL/Common/IDCardValid.cs index 65b4f42b..b6999f34 100644 --- a/SGGL/BLL/Common/IDCardValid.cs +++ b/SGGL/BLL/Common/IDCardValid.cs @@ -103,5 +103,50 @@ namespace BLL return true;//符合15位身份证标准 } #endregion + + /// + /// 根据身份证号码获取生日 + /// + /// + /// + public static DateTime? getBirthByIDCard(string IDCard) + { + DateTime? birth = null; + if (!string.IsNullOrEmpty(IDCard)) + { + string birthStr = string.Empty; + if (IDCard.Length == 18) + { + birthStr = IDCard.Substring(6, 8).Insert(6, "-").Insert(4, "-"); + + } + else if (IDCard.Length == 15) + { + birthStr = IDCard.Substring(6, 6).Insert(4, "-").Insert(2, "-"); + } + + DateTime time = new DateTime(); + if (DateTime.TryParse(birthStr, out time)) + { + birth = time; + } + } + + return birth; + } + + /// + /// 获取年龄 + /// + /// + /// + /// + public static int CalculateAgeCorrect(DateTime birthDate) + { + DateTime now = DateTime.Now; + int age = now.Year - birthDate.Year; + if (now.Month < birthDate.Month || (now.Month == birthDate.Month && now.Day < birthDate.Day)) age--; + return age; + } } } \ No newline at end of file diff --git a/SGGL/BLL/HSSE/Accident/AccidentPersonRecordService.cs b/SGGL/BLL/HSSE/Accident/AccidentPersonRecordService.cs index 2c886ce1..df9c7386 100644 --- a/SGGL/BLL/HSSE/Accident/AccidentPersonRecordService.cs +++ b/SGGL/BLL/HSSE/Accident/AccidentPersonRecordService.cs @@ -46,7 +46,8 @@ namespace BLL FileContent = accidentPersonRecord.FileContent, CompileMan = accidentPersonRecord.CompileMan, CompileDate = accidentPersonRecord.CompileDate, - States = accidentPersonRecord.States + States = accidentPersonRecord.States, + IsAttempt= accidentPersonRecord.IsAttempt, }; db.Accident_AccidentPersonRecord.InsertOnSubmit(newAccidentPersonRecord); db.SubmitChanges(); @@ -77,6 +78,7 @@ namespace BLL newAccidentPersonRecord.CompileMan = accidentPersonRecord.CompileMan; newAccidentPersonRecord.CompileDate = accidentPersonRecord.CompileDate; newAccidentPersonRecord.States = accidentPersonRecord.States; + newAccidentPersonRecord.IsAttempt= accidentPersonRecord.IsAttempt; db.SubmitChanges(); } } diff --git a/SGGL/BLL/HSSE/Accident/AccidentReportService.cs b/SGGL/BLL/HSSE/Accident/AccidentReportService.cs index 1a51ae68..bdabca29 100644 --- a/SGGL/BLL/HSSE/Accident/AccidentReportService.cs +++ b/SGGL/BLL/HSSE/Accident/AccidentReportService.cs @@ -387,6 +387,7 @@ namespace BLL NotConfirmWorkingHoursLoss = accidentReport.NotConfirmWorkingHoursLoss, NotConfirmEconomicLoss = accidentReport.NotConfirmEconomicLoss, NotConfirmEconomicOtherLoss = accidentReport.NotConfirmEconomicOtherLoss, + AccidentDegree = accidentReport.AccidentDegree, NotConfirmed = accidentReport.NotConfirmed }; db.Accident_AccidentReport.InsertOnSubmit(newAccidentReport); @@ -430,6 +431,7 @@ namespace BLL newAccidentReport.IsNotConfirm = accidentReport.IsNotConfirm; newAccidentReport.NotConfirmWorkingHoursLoss = accidentReport.NotConfirmWorkingHoursLoss; newAccidentReport.NotConfirmEconomicLoss = accidentReport.NotConfirmEconomicLoss; + newAccidentReport.AccidentDegree = accidentReport.AccidentDegree; newAccidentReport.NotConfirmEconomicOtherLoss = accidentReport.NotConfirmEconomicOtherLoss; db.SubmitChanges(); } diff --git a/SGGL/BLL/HSSE/Check/Check_ProjectLeaderCheckService.cs b/SGGL/BLL/HSSE/Check/Check_ProjectLeaderCheckService.cs new file mode 100644 index 00000000..50df3951 --- /dev/null +++ b/SGGL/BLL/HSSE/Check/Check_ProjectLeaderCheckService.cs @@ -0,0 +1,214 @@ +using FineUIPro; +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Web.UI.WebControls; + +namespace BLL +{ + /// + /// 领导带班检查 + /// + public static class Check_ProjectLeaderCheckService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 根据主键获取领导带班检查 + /// + /// + /// + public static Model.Check_ProjectLeaderCheck GetProjectLeaderCheckById(string ProjectLeaderCheckId) + { + return Funs.DB.Check_ProjectLeaderCheck.FirstOrDefault(e => e.ProjectLeaderCheckId == ProjectLeaderCheckId); + } + + #region 公司两级领导带班检查列表 + /// + /// 记录数 + /// + public static int count + { + get; + set; + } + + /// + /// 定义变量 + /// + private static IQueryable getDataLists = from x in db.Check_ProjectLeaderCheck + select x; + + /// + /// 数据列表 + /// + /// + /// + /// + public static IEnumerable getListData(string projectId, string startTime, string endTime, Grid Grid1) + { + IQueryable getDataList = getDataLists; + if (!string.IsNullOrEmpty(projectId)) + { + getDataList = getDataList.Where(x => x.ProjectId == projectId); + } + if (!string.IsNullOrEmpty(startTime)) + { + DateTime? startTimeD = Funs.GetNewDateTime(startTime); + if (startTimeD.HasValue) + { + getDataList = getDataList.Where(x => x.CheckDate >= startTimeD); + } + } + if (!string.IsNullOrEmpty(endTime)) + { + DateTime? endTimeD = Funs.GetNewDateTime(endTime); + if (endTimeD.HasValue) + { + getDataList = getDataList.Where(x => x.CheckDate <= endTimeD); + } + } + count = getDataList.Count(); + if (count == 0) + { + return null; + } + getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); + return from x in getDataList + join y in db.Base_Project on x.ProjectId equals y.ProjectId + into ps + from y in ps.DefaultIfEmpty() + select new + { + x.ProjectLeaderCheckId, + x.ProjectId, + db.Base_Project.First(u => u.ProjectId == x.ProjectId).ProjectName, + x.CheckCode, + x.UnitIds, + x.LeaderIds, + x.LeaderNames, + x.QuestionDef, + x.CheckDate, + x.IsHoldMeet, + IsHoldMeetName = x.IsHoldMeet == true ? "是" : "否", + x.Requirement, + }; + } + #endregion + + /// + /// 根据日期获取领导带班检查集合 + /// + /// 开始时间 + /// 结束时间 + /// 项目号 + /// 领导带班检查集合 + public static List GetProjectLeaderCheckListsByDate(DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.Check_ProjectLeaderCheck where x.CheckDate >= startTime && x.CheckDate <= endTime && x.ProjectId == projectId orderby x.CheckDate select x).ToList(); + } + + /// + /// 根据时间段获取HSE领导带班检查集合 + /// + /// 开始时间 + /// 结束时间 + /// 项目Id + /// 时间段内的HSE领导带班检查集合 + public static int GetCountByDate(DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.Check_ProjectLeaderCheck where x.CheckDate >= startTime && x.CheckDate <= endTime && x.ProjectId == projectId select x).Count(); + } + + /// + /// 添加领导带班检查 + /// + /// + public static void AddProjectLeaderCheck(Model.Check_ProjectLeaderCheck ProjectLeaderCheck) + { + Model.SGGLDB db = Funs.DB; + Model.Check_ProjectLeaderCheck newProjectLeaderCheck = new Model.Check_ProjectLeaderCheck + { + ProjectLeaderCheckId = ProjectLeaderCheck.ProjectLeaderCheckId, + ProjectId = ProjectLeaderCheck.ProjectId, + UnitIds = ProjectLeaderCheck.UnitIds, + CheckCode = ProjectLeaderCheck.CheckCode, + LeaderIds = ProjectLeaderCheck.LeaderIds, + CheckDate = ProjectLeaderCheck.CheckDate, + QuestionDef = ProjectLeaderCheck.QuestionDef, + IsHoldMeet = ProjectLeaderCheck.IsHoldMeet, + Requirement = ProjectLeaderCheck.Requirement, + LeaderNames = ProjectLeaderCheck.LeaderNames, + CompileMan = ProjectLeaderCheck.CompileMan, + CompileDate = ProjectLeaderCheck.CompileDate, + }; + db.Check_ProjectLeaderCheck.InsertOnSubmit(newProjectLeaderCheck); + db.SubmitChanges(); + CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectLeaderCheckMenuId, ProjectLeaderCheck.ProjectId, null, ProjectLeaderCheck.ProjectLeaderCheckId, ProjectLeaderCheck.CheckDate); + } + + /// + /// 修改领导带班检查 + /// + /// + public static void UpdateProjectLeaderCheck(Model.Check_ProjectLeaderCheck ProjectLeaderCheck) + { + Model.SGGLDB db = Funs.DB; + Model.Check_ProjectLeaderCheck newProjectLeaderCheck = db.Check_ProjectLeaderCheck.FirstOrDefault(e => e.ProjectLeaderCheckId == ProjectLeaderCheck.ProjectLeaderCheckId); + if (newProjectLeaderCheck != null) + { + newProjectLeaderCheck.UnitIds = ProjectLeaderCheck.UnitIds; + newProjectLeaderCheck.CheckCode = ProjectLeaderCheck.CheckCode; + newProjectLeaderCheck.LeaderIds = ProjectLeaderCheck.LeaderIds; + newProjectLeaderCheck.CheckDate = ProjectLeaderCheck.CheckDate; + newProjectLeaderCheck.QuestionDef = ProjectLeaderCheck.QuestionDef; + newProjectLeaderCheck.IsHoldMeet = ProjectLeaderCheck.IsHoldMeet; + newProjectLeaderCheck.Requirement = ProjectLeaderCheck.Requirement; + newProjectLeaderCheck.LeaderNames = ProjectLeaderCheck.LeaderNames; + newProjectLeaderCheck.CompileMan = ProjectLeaderCheck.CompileMan; + newProjectLeaderCheck.CompileDate = ProjectLeaderCheck.CompileDate; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除领导带班检查 + /// + /// + public static void DeleteProjectLeaderCheckById(string ProjectLeaderCheckId) + { + Model.SGGLDB db = Funs.DB; + Model.Check_ProjectLeaderCheck ProjectLeaderCheck = db.Check_ProjectLeaderCheck.FirstOrDefault(e => e.ProjectLeaderCheckId == ProjectLeaderCheckId); + if (ProjectLeaderCheck != null) + { + CodeRecordsService.DeleteCodeRecordsByDataId(ProjectLeaderCheckId); + ////删除附件表 + BLL.CommonService.DeleteAttachFileById(ProjectLeaderCheckId); + db.Check_ProjectLeaderCheck.DeleteOnSubmit(ProjectLeaderCheck); + db.SubmitChanges(); + } + } + + public static string getLeaderName(object ProjectLeaderCheckId) + { + string name = string.Empty; + if (ProjectLeaderCheckId != null) + { + var getData = Check_ProjectLeaderCheckService.GetProjectLeaderCheckById(ProjectLeaderCheckId.ToString()); + if (getData != null) + { + if (!string.IsNullOrEmpty(getData.LeaderIds)) + { + name = UserService.getUserNamesUserIds(getData.LeaderIds); + } + if (!string.IsNullOrEmpty(getData.LeaderNames)) + { + name += "," + getData.LeaderNames; + } + } + } + return name; + } + } +} diff --git a/SGGL/BLL/HSSE/Hazard/Hazard_HazardSelectedItemService.cs b/SGGL/BLL/HSSE/Hazard/Hazard_HazardSelectedItemService.cs index 081d2616..93498529 100644 --- a/SGGL/BLL/HSSE/Hazard/Hazard_HazardSelectedItemService.cs +++ b/SGGL/BLL/HSSE/Hazard/Hazard_HazardSelectedItemService.cs @@ -104,6 +104,16 @@ namespace BLL return db.Hazard_HazardSelectedItem.FirstOrDefault(x => x.HazardId == hazardId && x.HazardListId == hazardListId && x.WorkStage == workStage); } + /// + /// 根据危险源辨识与评价清单Id获取一个危险源辨识与评价清单审批信息 + /// + /// 危险源辨识与评价清单Id + /// 一个危险源辨识与评价清单审批实体 + public static Model.Hazard_HazardSelectedItem GetHazardSelectedItemByHazardSelectedItemId(string hazardSelectedItemId) + { + return db.Hazard_HazardSelectedItem.FirstOrDefault(x => x.HazardSelectedItemId == hazardSelectedItemId); + } + /// /// 根据危险源辨识与评价清单Id获取一个危险源辨识与评价清单审批信息 /// @@ -156,11 +166,13 @@ namespace BLL Model.SGGLDB db = Funs.DB; Model.Hazard_HazardSelectedItem newHazardSelectedItem = new Model.Hazard_HazardSelectedItem { + HazardSelectedItemId = hazardSelectedItem.HazardSelectedItemId, HazardId = hazardSelectedItem.HazardId, HazardListTypeId = hazardSelectedItem.HazardListTypeId, HazardListId = hazardSelectedItem.HazardListId, HazardItems = hazardSelectedItem.HazardItems, DefectsType = hazardSelectedItem.DefectsType, + ProjectId = hazardSelectedItem.ProjectId, MayLeadAccidents = hazardSelectedItem.MayLeadAccidents, HelperMethod = hazardSelectedItem.HelperMethod, HazardJudge_L = hazardSelectedItem.HazardJudge_L, @@ -171,8 +183,10 @@ namespace BLL ControlMeasures = hazardSelectedItem.ControlMeasures, IsResponse = hazardSelectedItem.IsResponse, ResponseRecode = hazardSelectedItem.ResponseRecode, + DutyPerson = hazardSelectedItem.DutyPerson, PromptTime = hazardSelectedItem.PromptTime, Remark = hazardSelectedItem.Remark, + State = hazardSelectedItem.State, WorkStage = hazardSelectedItem.WorkStage }; @@ -187,7 +201,7 @@ namespace BLL public static void UpdateHazardSelectedItem(Model.Hazard_HazardSelectedItem hazardSelectedItem) { Model.SGGLDB db = Funs.DB; - Model.Hazard_HazardSelectedItem newHazardSelectedItem = db.Hazard_HazardSelectedItem.FirstOrDefault(e => e.HazardId == hazardSelectedItem.HazardId && e.HazardListId == hazardSelectedItem.HazardListId && e.WorkStage == hazardSelectedItem.WorkStage); + Model.Hazard_HazardSelectedItem newHazardSelectedItem = db.Hazard_HazardSelectedItem.FirstOrDefault(e => e.HazardSelectedItemId == hazardSelectedItem.HazardSelectedItemId); if (newHazardSelectedItem != null) { newHazardSelectedItem.HazardListTypeId = hazardSelectedItem.HazardListTypeId; @@ -204,9 +218,15 @@ namespace BLL newHazardSelectedItem.ControlMeasures = hazardSelectedItem.ControlMeasures; newHazardSelectedItem.IsResponse = hazardSelectedItem.IsResponse; newHazardSelectedItem.ResponseRecode = hazardSelectedItem.ResponseRecode; + newHazardSelectedItem.DutyPerson = hazardSelectedItem.DutyPerson; newHazardSelectedItem.PromptTime = hazardSelectedItem.PromptTime; newHazardSelectedItem.Remark = hazardSelectedItem.Remark; newHazardSelectedItem.WorkStage = hazardSelectedItem.WorkStage; + newHazardSelectedItem.CheckStartDate = hazardSelectedItem.CheckStartDate; + newHazardSelectedItem.IsStart = hazardSelectedItem.IsStart; + newHazardSelectedItem.State = hazardSelectedItem.State; + newHazardSelectedItem.PlanExistDate = hazardSelectedItem.PlanExistDate; + newHazardSelectedItem.QRCodeAttachUrl = hazardSelectedItem.QRCodeAttachUrl; db.SubmitChanges(); } @@ -222,8 +242,30 @@ namespace BLL var q = (from x in db.Hazard_HazardSelectedItem where x.HazardListId == hazardListId select x).ToList(); if (q.Count() > 0) { + foreach (var item in q) + { + var h = db.Hazard_RiskEvaluationRecord.Where(x => x.DataId == item.HazardSelectedItemId); + if (h.Count() > 0) + { + db.Hazard_RiskEvaluationRecord.DeleteAllOnSubmit(h); + db.SubmitChanges(); + } + var p = db.Hazard_PatrolPlan.Where(x => x.HazardSelectedItemId == item.HazardSelectedItemId); + if (p.Count() > 0) + { + db.Hazard_PatrolPlan.DeleteAllOnSubmit(p); + db.SubmitChanges(); + } + var r = db.Hazard_RoutingInspection.Where(x => x.HazardSelectedItemId == item.HazardSelectedItemId); + if (r.Count() > 0) + { + db.Hazard_RoutingInspection.DeleteAllOnSubmit(r); + db.SubmitChanges(); + } + } db.Hazard_HazardSelectedItem.DeleteAllOnSubmit(q); db.SubmitChanges(); + } } } diff --git a/SGGL/BLL/HSSE/Hazard/Hazard_PatrolPlanService.cs b/SGGL/BLL/HSSE/Hazard/Hazard_PatrolPlanService.cs new file mode 100644 index 00000000..559f3318 --- /dev/null +++ b/SGGL/BLL/HSSE/Hazard/Hazard_PatrolPlanService.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 巡检计划表 + /// + public static class Hazard_PatrolPlanService + { + /// + /// 根据巡检计划ID获取巡检计划信息 + /// + /// + /// + public static Model.Hazard_PatrolPlan GetPatrolPlanByPatrolPlanId(string PatrolPlanId) + { + return Funs.DB.Hazard_PatrolPlan.FirstOrDefault(e => e.PatrolPlanId == PatrolPlanId); + } + + /// + /// 根据风险ID和巡检时限获取巡检计划信息 + /// + /// + /// + public static Model.Hazard_PatrolPlan GetPatrolPlanByHazardSelectedItemIdAndLimitCheckDate(string hazardSelectedItemId, DateTime? limitCheckDate) + { + return Funs.DB.Hazard_PatrolPlan.FirstOrDefault(e => e.HazardSelectedItemId == hazardSelectedItemId && e.LimitCheckDate == limitCheckDate); + } + + /// + /// 根据巡检日期获取之前未巡检计划信息集合 + /// + /// + /// + public static List GetBeforePatrolPlansByCheckDate(string hazardSelectedItemId, DateTime checkDate) + { + return (from x in Funs.DB.Hazard_PatrolPlan where x.HazardSelectedItemId == hazardSelectedItemId && x.LimitCheckDate < checkDate select x).ToList(); + } + + /// + /// 添加安全巡检计划 + /// + /// + public static void AddPatrolPlan(Model.Hazard_PatrolPlan patrolPlan) + { + Model.Hazard_PatrolPlan newPatrolPlan = new Model.Hazard_PatrolPlan + { + PatrolPlanId = patrolPlan.PatrolPlanId, + HazardSelectedItemId = patrolPlan.HazardSelectedItemId, + HazardLevel = patrolPlan.HazardLevel, + DutyPerson = patrolPlan.DutyPerson, + Days = patrolPlan.Days, + CheckStartDate = patrolPlan.CheckStartDate, + LimitCheckDate = patrolPlan.LimitCheckDate, + CheckDate = patrolPlan.CheckDate, + State = patrolPlan.State + }; + + Funs.DB.Hazard_PatrolPlan.InsertOnSubmit(newPatrolPlan); + Funs.DB.SubmitChanges(); + } + + /// + /// 修改安全巡检计划 + /// + /// + public static void UpdatePatrolPlan(Model.Hazard_PatrolPlan patrolPlan) + { + Model.Hazard_PatrolPlan newPatrolPlan = Funs.DB.Hazard_PatrolPlan.FirstOrDefault(e => e.PatrolPlanId == patrolPlan.PatrolPlanId); + if (newPatrolPlan != null) + { + newPatrolPlan.CheckDate = patrolPlan.CheckDate; + newPatrolPlan.State = patrolPlan.State; + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据巡检计划ID删除对应巡检计划记录信息 + /// + /// + public static void DeletePatrolPlan(string PatrolPlanId) + { + var q = (from x in Funs.DB.Hazard_PatrolPlan where x.PatrolPlanId == PatrolPlanId select x).FirstOrDefault(); + if (q != null) + { + Funs.DB.Hazard_PatrolPlan.DeleteOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/HSSE/Hazard/Hazard_RoutingInspectionService.cs b/SGGL/BLL/HSSE/Hazard/Hazard_RoutingInspectionService.cs new file mode 100644 index 00000000..0c48497c --- /dev/null +++ b/SGGL/BLL/HSSE/Hazard/Hazard_RoutingInspectionService.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 巡检记录表 + /// + public static class Hazard_RoutingInspectionService + { + /// + /// 根据巡检记录ID获取巡检记录信息 + /// + /// + /// + public static Model.Hazard_RoutingInspection GetRoutingInspectionByRoutingInspectionId(string RoutingInspectionId) + { + return Funs.DB.Hazard_RoutingInspection.FirstOrDefault(e => e.RoutingInspectionId == RoutingInspectionId); + } + + /// + /// 根据巡检计划ID获取巡检记录信息 + /// + /// + /// + public static Model.Hazard_RoutingInspection GetRoutingInspectionByPatrolPlanId(string PatrolPlanId) + { + return Funs.DB.Hazard_RoutingInspection.FirstOrDefault(e => e.PatrolPlanId == PatrolPlanId); + } + + /// + /// 添加安全巡检记录 + /// + /// + public static void AddRoutingInspection(Model.Hazard_RoutingInspection RoutingInspection) + { + Model.Hazard_RoutingInspection newRoutingInspection = new Model.Hazard_RoutingInspection + { + RoutingInspectionId = RoutingInspection.RoutingInspectionId, + HazardSelectedItemId = RoutingInspection.HazardSelectedItemId, + PatrolManId = RoutingInspection.PatrolManId, + PatrolTime = RoutingInspection.PatrolTime, + PatrolResult = RoutingInspection.PatrolResult, + OldRiskLevel = RoutingInspection.OldRiskLevel, + PohotoUrl = RoutingInspection.PohotoUrl, + ControlMeasures = RoutingInspection.ControlMeasures, + DealReason = RoutingInspection.DealReason, + RiskManId = RoutingInspection.RiskManId, + PatrolPlanId = RoutingInspection.PatrolPlanId + }; + + Funs.DB.Hazard_RoutingInspection.InsertOnSubmit(newRoutingInspection); + Funs.DB.SubmitChanges(); + } + + /// + /// 修改安全巡检记录 + /// + /// + public static void UpdateRoutingInspection(Model.Hazard_RoutingInspection RoutingInspection) + { + Model.Hazard_RoutingInspection newRoutingInspection = Funs.DB.Hazard_RoutingInspection.FirstOrDefault(e => e.RoutingInspectionId == RoutingInspection.RoutingInspectionId); + if (newRoutingInspection != null) + { + newRoutingInspection.PatrolManId = RoutingInspection.PatrolManId; + newRoutingInspection.PatrolTime = RoutingInspection.PatrolTime; + newRoutingInspection.PatrolResult = RoutingInspection.PatrolResult; + newRoutingInspection.OldRiskLevel = RoutingInspection.OldRiskLevel; + newRoutingInspection.PohotoUrl = RoutingInspection.PohotoUrl; + newRoutingInspection.ControlMeasures = RoutingInspection.ControlMeasures; + newRoutingInspection.DealReason = RoutingInspection.DealReason; + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据巡检记录ID删除对应巡检记录记录信息 + /// + /// + public static void DeleteRoutingInspection(string RoutingInspectionId) + { + var q = (from x in Funs.DB.Hazard_RoutingInspection where x.RoutingInspectionId == RoutingInspectionId select x).FirstOrDefault(); + if (q != null) + { + ///删除附件 + BLL.CommonService.DeleteAttachFileById(RoutingInspectionId); + Funs.DB.Hazard_RoutingInspection.DeleteOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/HSSE/Hazard/RiskEvaluationRecordService.cs b/SGGL/BLL/HSSE/Hazard/RiskEvaluationRecordService.cs new file mode 100644 index 00000000..afd3ec62 --- /dev/null +++ b/SGGL/BLL/HSSE/Hazard/RiskEvaluationRecordService.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + public static class RiskEvaluationRecordService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 根据主键获取风险评价记录 + /// + /// + /// + public static Model.Hazard_RiskEvaluationRecord GetRiskEvaluationRecordByLECItemRecordId(string LECItemRecordId) + { + return Funs.DB.Hazard_RiskEvaluationRecord.FirstOrDefault(e => e.LECItemRecordId == LECItemRecordId); + } + + /// + /// 根据风险主键获取风险评价记录 + /// + /// + /// + public static Model.Hazard_RiskEvaluationRecord GetRiskEvaluationRecordByDataIdAndEvaluatorDate(string dataId) + { + return Funs.DB.Hazard_RiskEvaluationRecord.FirstOrDefault(e => e.DataId == dataId && e.EvaluatorDate == null); + } + + /// + /// 根据整理人获取风险评价记录 + /// + /// + /// + public static List GetRiskEvaluationRecordByDataId(string dataId) + { + return (from x in Funs.DB.Hazard_RiskEvaluationRecord where x.DataId == dataId select x).ToList(); + } + + /// + /// 添加风险评价记录 + /// + /// + public static void AddRiskEvaluationRecord(Model.Hazard_RiskEvaluationRecord RiskEvaluationRecord) + { + Model.SGGLDB db = Funs.DB; + Model.Hazard_RiskEvaluationRecord newRiskEvaluationRecord = new Model.Hazard_RiskEvaluationRecord + { + LECItemRecordId = RiskEvaluationRecord.LECItemRecordId, + DataId = RiskEvaluationRecord.DataId, + DataType = RiskEvaluationRecord.DataType, + Evaluatorld = RiskEvaluationRecord.Evaluatorld, + EvaluatorDate = RiskEvaluationRecord.EvaluatorDate, + L = RiskEvaluationRecord.L, + E = RiskEvaluationRecord.E, + C = RiskEvaluationRecord.C, + D = RiskEvaluationRecord.D, + RiskLevel = RiskEvaluationRecord.RiskLevel, + ControlMeasures = RiskEvaluationRecord.ControlMeasures, + Remark = RiskEvaluationRecord.Remark, + }; + db.Hazard_RiskEvaluationRecord.InsertOnSubmit(newRiskEvaluationRecord); + db.SubmitChanges(); + } + + /// + /// 修改风险评价记录 + /// + /// + public static void UpdateRiskEvaluationRecord(Model.Hazard_RiskEvaluationRecord RiskEvaluationRecord) + { + Model.SGGLDB db = Funs.DB; + Model.Hazard_RiskEvaluationRecord newRiskEvaluationRecord = db.Hazard_RiskEvaluationRecord.FirstOrDefault(e => e.LECItemRecordId == RiskEvaluationRecord.LECItemRecordId); + if (newRiskEvaluationRecord != null) + { + newRiskEvaluationRecord.DataId = RiskEvaluationRecord.DataId; + newRiskEvaluationRecord.DataType = RiskEvaluationRecord.DataType; + newRiskEvaluationRecord.Evaluatorld = RiskEvaluationRecord.Evaluatorld; + newRiskEvaluationRecord.EvaluatorDate = RiskEvaluationRecord.EvaluatorDate; + newRiskEvaluationRecord.L = RiskEvaluationRecord.L; + newRiskEvaluationRecord.E = RiskEvaluationRecord.E; + newRiskEvaluationRecord.C = RiskEvaluationRecord.C; + newRiskEvaluationRecord.D = RiskEvaluationRecord.D; + newRiskEvaluationRecord.RiskLevel = RiskEvaluationRecord.RiskLevel; + newRiskEvaluationRecord.ControlMeasures = RiskEvaluationRecord.ControlMeasures; + newRiskEvaluationRecord.Remark = RiskEvaluationRecord.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除风险评价记录 + /// + /// + public static void DeleteRiskEvaluationRecordByLECItemRecordId(string LECItemRecordId) + { + Model.SGGLDB db = Funs.DB; + Model.Hazard_RiskEvaluationRecord RiskEvaluationRecord = db.Hazard_RiskEvaluationRecord.FirstOrDefault(e => e.LECItemRecordId == LECItemRecordId); + if (RiskEvaluationRecord != null) + { + db.Hazard_RiskEvaluationRecord.DeleteOnSubmit(RiskEvaluationRecord); + db.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/HSSE/HiddenInspection/HSSE_Hazard_HazardRegisterService.cs b/SGGL/BLL/HSSE/HiddenInspection/HSSE_Hazard_HazardRegisterService.cs index dada0e82..f0b80b7e 100644 --- a/SGGL/BLL/HSSE/HiddenInspection/HSSE_Hazard_HazardRegisterService.cs +++ b/SGGL/BLL/HSSE/HiddenInspection/HSSE_Hazard_HazardRegisterService.cs @@ -68,6 +68,7 @@ namespace BLL newHazardRegister.CutPayment = hazardRegister.CutPayment; newHazardRegister.ProblemTypes = hazardRegister.ProblemTypes; newHazardRegister.DIC_ID = hazardRegister.DIC_ID; + newHazardRegister.Risk_Level = hazardRegister.Risk_Level; db.HSSE_Hazard_HazardRegister.InsertOnSubmit(newHazardRegister); db.SubmitChanges(); } diff --git a/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs b/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs index 6bf4ee8d..b1e164b9 100644 --- a/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs +++ b/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs @@ -52,7 +52,8 @@ namespace BLL RegistrationNum = equipmentInItem.RegistrationNum, OperationQualificationNum = equipmentInItem.OperationQualificationNum, InsuranceNum = equipmentInItem.InsuranceNum, - CommercialInsuranceNum = equipmentInItem.CommercialInsuranceNum + CommercialInsuranceNum = equipmentInItem.CommercialInsuranceNum, + IsUsed = equipmentInItem.IsUsed, }; db.InApproveManager_EquipmentInItem.InsertOnSubmit(newEquipmentItem); db.SubmitChanges(); @@ -79,6 +80,7 @@ namespace BLL newEquipmentItem.OperationQualificationNum = equipmentInItem.OperationQualificationNum; newEquipmentItem.InsuranceNum = equipmentInItem.InsuranceNum; newEquipmentItem.CommercialInsuranceNum = equipmentInItem.CommercialInsuranceNum; + newEquipmentItem.IsUsed = equipmentInItem.IsUsed; db.SubmitChanges(); } } diff --git a/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInItemService.cs b/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInItemService.cs index 49209006..6a8f7aca 100644 --- a/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInItemService.cs +++ b/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInItemService.cs @@ -44,7 +44,8 @@ namespace BLL SpecialEquipmentId = generalEquipmentInItem.SpecialEquipmentId, SizeModel = generalEquipmentInItem.SizeModel, OwnerCheck = generalEquipmentInItem.OwnerCheck, - CertificateNum = generalEquipmentInItem.CertificateNum + CertificateNum = generalEquipmentInItem.CertificateNum, + IsUsed = generalEquipmentInItem.IsUsed, }; db.InApproveManager_GeneralEquipmentInItem.InsertOnSubmit(newEquipmentItem); db.SubmitChanges(); @@ -65,6 +66,7 @@ namespace BLL newGeneralEquipmentInItem.SizeModel = generalEquipmentInItem.SizeModel; newGeneralEquipmentInItem.OwnerCheck = generalEquipmentInItem.OwnerCheck; newGeneralEquipmentInItem.CertificateNum = generalEquipmentInItem.CertificateNum; + newGeneralEquipmentInItem.IsUsed = generalEquipmentInItem.IsUsed; db.SubmitChanges(); } } diff --git a/SGGL/BLL/HSSE/Meeting/SafetyLeaderGroupMeetingService.cs b/SGGL/BLL/HSSE/Meeting/SafetyLeaderGroupMeetingService.cs new file mode 100644 index 00000000..3f6e11c7 --- /dev/null +++ b/SGGL/BLL/HSSE/Meeting/SafetyLeaderGroupMeetingService.cs @@ -0,0 +1,152 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 安全领导小组会议 + /// + public static class SafetyLeaderGroupMeetingService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 根据主键获取安全领导小组会议 + /// + /// + /// + public static Model.Meeting_SafetyLeaderGroupMeeting GetSafetyLeaderGroupMeetingById(string SafetyLeaderGroupMeetingId) + { + return Funs.DB.Meeting_SafetyLeaderGroupMeeting.FirstOrDefault(e => e.SafetyLeaderGroupMeetingId == SafetyLeaderGroupMeetingId); + } + + /// + /// 根据时间段获取安全领导小组会议集合 + /// + /// + /// + /// + /// + public static int GetCountByTime(DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.Meeting_SafetyLeaderGroupMeeting where x.SafetyLeaderGroupMeetingDate >= startTime && x.SafetyLeaderGroupMeetingDate < endTime && x.ProjectId == projectId && x.States == BLL.Const.State_2 select x).Count(); + } + + /// + /// 根据时间段获取安全领导小组会议参会人数 + /// + /// + /// + /// + /// + public static int? GetSumAttentPersonNumByMeetingDate(DateTime startTime, DateTime endTime, string projectId) + { + int? sumAttentPersonNum = (from x in Funs.DB.Meeting_SafetyLeaderGroupMeeting where x.SafetyLeaderGroupMeetingDate >= startTime && x.SafetyLeaderGroupMeetingDate < endTime && x.ProjectId == projectId && x.States == BLL.Const.State_2 select x.AttentPersonNum).Sum(); + if (sumAttentPersonNum == null) + { + return 0; + } + return sumAttentPersonNum; + } + + /// + /// 根据日期和类型获取会议记录集合 + /// + /// 开始时间 + /// 结束时间 + /// 项目号 + /// 会议记录集合 + public static List GetMeetingListsByDate(DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.Meeting_SafetyLeaderGroupMeeting where x.SafetyLeaderGroupMeetingDate >= startTime && x.SafetyLeaderGroupMeetingDate <= endTime && x.ProjectId == projectId orderby x.SafetyLeaderGroupMeetingDate select x).ToList(); + } + + /// + /// 添加安全领导小组会议 + /// + /// + public static void AddSafetyLeaderGroupMeeting(Model.Meeting_SafetyLeaderGroupMeeting SafetyLeaderGroupMeeting) + { + Model.SGGLDB db = Funs.DB; + Model.Meeting_SafetyLeaderGroupMeeting newSafetyLeaderGroupMeeting = new Model.Meeting_SafetyLeaderGroupMeeting + { + SafetyLeaderGroupMeetingId = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingId, + ProjectId = SafetyLeaderGroupMeeting.ProjectId, + UnitId = SafetyLeaderGroupMeeting.UnitId, + SafetyLeaderGroupMeetingCode = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingCode, + SafetyLeaderGroupMeetingName = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingName, + SafetyLeaderGroupMeetingDate = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingDate, + CompileMan = SafetyLeaderGroupMeeting.CompileMan, + SafetyLeaderGroupMeetingContents = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingContents, + CompileDate = SafetyLeaderGroupMeeting.CompileDate, + States = SafetyLeaderGroupMeeting.States, + AttentPersonNum = SafetyLeaderGroupMeeting.AttentPersonNum, + MeetingHours = SafetyLeaderGroupMeeting.MeetingHours, + MeetingHostMan = SafetyLeaderGroupMeeting.MeetingHostMan, + AttentPerson = SafetyLeaderGroupMeeting.AttentPerson, + MeetingPlace = SafetyLeaderGroupMeeting.MeetingPlace, + MeetingHostManId = SafetyLeaderGroupMeeting.MeetingHostManId, + AttentPersonIds = SafetyLeaderGroupMeeting.AttentPersonIds, + MeetingHostManOther = SafetyLeaderGroupMeeting.MeetingHostManOther + }; + db.Meeting_SafetyLeaderGroupMeeting.InsertOnSubmit(newSafetyLeaderGroupMeeting); + db.SubmitChanges(); + ////增加一条编码记录 + BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.ProjectSafetyLeaderGroupMeetingMenuId, SafetyLeaderGroupMeeting.ProjectId, null, SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingId, SafetyLeaderGroupMeeting.CompileDate); + } + + /// + /// 修改安全领导小组会议 + /// + /// + public static void UpdateSafetyLeaderGroupMeeting(Model.Meeting_SafetyLeaderGroupMeeting SafetyLeaderGroupMeeting) + { + Model.SGGLDB db = Funs.DB; + Model.Meeting_SafetyLeaderGroupMeeting newSafetyLeaderGroupMeeting = db.Meeting_SafetyLeaderGroupMeeting.FirstOrDefault(e => e.SafetyLeaderGroupMeetingId == SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingId); + if (newSafetyLeaderGroupMeeting != null) + { + //newSafetyLeaderGroupMeeting.ProjectId = SafetyLeaderGroupMeeting.ProjectId; + newSafetyLeaderGroupMeeting.UnitId = SafetyLeaderGroupMeeting.UnitId; + newSafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingCode = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingCode; + newSafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingName = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingName; + newSafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingDate = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingDate; + newSafetyLeaderGroupMeeting.CompileMan = SafetyLeaderGroupMeeting.CompileMan; + newSafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingContents = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingContents; + newSafetyLeaderGroupMeeting.CompileDate = SafetyLeaderGroupMeeting.CompileDate; + newSafetyLeaderGroupMeeting.States = SafetyLeaderGroupMeeting.States; + newSafetyLeaderGroupMeeting.AttentPersonNum = SafetyLeaderGroupMeeting.AttentPersonNum; + newSafetyLeaderGroupMeeting.MeetingHours = SafetyLeaderGroupMeeting.MeetingHours; + newSafetyLeaderGroupMeeting.MeetingHostMan = SafetyLeaderGroupMeeting.MeetingHostMan; + newSafetyLeaderGroupMeeting.AttentPerson = SafetyLeaderGroupMeeting.AttentPerson; + newSafetyLeaderGroupMeeting.MeetingPlace = SafetyLeaderGroupMeeting.MeetingPlace; + newSafetyLeaderGroupMeeting.MeetingHostManId = SafetyLeaderGroupMeeting.MeetingHostManId; + newSafetyLeaderGroupMeeting.AttentPersonIds = SafetyLeaderGroupMeeting.AttentPersonIds; + newSafetyLeaderGroupMeeting.MeetingHostManOther = SafetyLeaderGroupMeeting.MeetingHostManOther; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除安全领导小组会议 + /// + /// + public static void DeleteSafetyLeaderGroupMeetingById(string SafetyLeaderGroupMeetingId) + { + Model.SGGLDB db = Funs.DB; + Model.Meeting_SafetyLeaderGroupMeeting SafetyLeaderGroupMeeting = db.Meeting_SafetyLeaderGroupMeeting.FirstOrDefault(e => e.SafetyLeaderGroupMeetingId == SafetyLeaderGroupMeetingId); + if (SafetyLeaderGroupMeeting != null) + { + ///删除编码表记录 + BLL.CodeRecordsService.DeleteCodeRecordsByDataId(SafetyLeaderGroupMeetingId); + BLL.CommonService.DeleteAttachFileById(SafetyLeaderGroupMeetingId); + ////删除流程表 + BLL.CommonService.DeleteFlowOperateByID(SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingId); + db.Meeting_SafetyLeaderGroupMeeting.DeleteOnSubmit(SafetyLeaderGroupMeeting); + db.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/HSSE/SitePerson/PersonService.cs b/SGGL/BLL/HSSE/SitePerson/PersonService.cs index 10f531a9..157e8e6e 100644 --- a/SGGL/BLL/HSSE/SitePerson/PersonService.cs +++ b/SGGL/BLL/HSSE/SitePerson/PersonService.cs @@ -13,6 +13,93 @@ namespace BLL { public static Model.SGGLDB db = Funs.DB; + #region 劳务人员列表 + /// + /// 记录数 + /// + public static int count2 + { + get; + set; + } + + /// + /// 定义变量 + /// + private static IQueryable getDataLists = from x in db.View_SitePerson_Person + select x; + + /// + /// 数据列表 + /// + /// + /// + /// + /// + /// + /// + /// + /// + public static IEnumerable getListData(string projetcId, string unitId, string workPostId, string name, string idCard, string states, Grid Grid1) + { + IQueryable getDataList = getDataLists.OrderBy(x => x.ProjectId).ThenBy(x => x.UnitId); + if (!string.IsNullOrEmpty(projetcId) && projetcId != Const._Null) + { + getDataList = getDataList.Where(e => e.ProjectId == projetcId); + } + if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null) + { + getDataList = getDataList.Where(e => e.UnitId == unitId); + } + if (!string.IsNullOrEmpty(workPostId) && workPostId != Const._Null) + { + getDataList = getDataList.Where(e => e.WorkPostId == workPostId); + } + if (!string.IsNullOrEmpty(states) && states != "-2") + { + getDataList = getDataList.Where(e => e.IsUsed == Convert.ToBoolean(states)); + } + if (!string.IsNullOrEmpty(name)) + { + getDataList = getDataList.Where(e => e.PersonName.Contains(name)); + } + if (!string.IsNullOrEmpty(idCard)) + { + getDataList = getDataList.Where(e => e.IdentityCard.Contains(idCard)); + } + count2 = getDataList.Count(); + if (count2 == 0) + { + return null; + } + getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); + return from x in getDataList + select new + { + x.PersonId, + x.PersonName, + x.CardNo, + x.IdentityCard, + x.Sex, + x.SexName, + x.UnitId, + x.UnitName, + x.WorkPostId, + x.WorkPostName, + x.ProjectId, + ProjectName = db.Base_Project.First(u => u.ProjectId == x.ProjectId).ProjectName, + ShortName = db.Base_Project.First(u => u.ProjectId == x.ProjectId).ShortName, + NativePlace = x.CountryName ?? "" + x.ProvinceName ?? "", + x.TeamGroupId, + x.TeamGroupName, + x.InTime, + x.OutTime, + x.IsUsed, + OutName = (x.IsUsed == false ? "是" : "否"), + }; + } + #endregion + #region 获取列表 /// /// 记录数 @@ -437,6 +524,7 @@ namespace BLL CountryCode = person.CountryCode, ProvinceCode = person.ProvinceCode, IsCardNoOK=IDCardValid.CheckIDCard(person.IdentityCard), + IsSafetyMonitoring = person.IsSafetyMonitoring, }; newPerson.RawPassword = Funs.getInitialPassword(person.UnitId, person.IdentityCard); newPerson.Password = Funs.EncryptionPassword(newPerson.RawPassword); @@ -502,6 +590,7 @@ namespace BLL newPerson.MaritalStatus = person.MaritalStatus; newPerson.DepartId = person.DepartId; newPerson.QRCodeAttachUrl = person.QRCodeAttachUrl; + newPerson.IsSafetyMonitoring = person.IsSafetyMonitoring; newPerson.Password = GetPersonPassWord(person.IdentityCard); if (!newPerson.OutTime.HasValue) { diff --git a/SGGL/BLL/HSSE/Solution/LargerHazardService.cs b/SGGL/BLL/HSSE/Solution/LargerHazardService.cs index c52a2501..e4dee6e3 100644 --- a/SGGL/BLL/HSSE/Solution/LargerHazardService.cs +++ b/SGGL/BLL/HSSE/Solution/LargerHazardService.cs @@ -41,6 +41,8 @@ namespace BLL RecardMan = largerHazard.RecardMan, Remark = largerHazard.Remark, States = largerHazard.States, + TrainPersonNum = largerHazard.TrainPersonNum, + IsSuperLargerHazard = largerHazard.IsSuperLargerHazard, Descriptions = largerHazard.Descriptions }; @@ -68,6 +70,8 @@ namespace BLL newLargerHazard.IsArgument = largerHazard.IsArgument; newLargerHazard.Remark = largerHazard.Remark; newLargerHazard.States = largerHazard.States; + newLargerHazard.TrainPersonNum = largerHazard.TrainPersonNum; + newLargerHazard.IsSuperLargerHazard = largerHazard.IsSuperLargerHazard; newLargerHazard.Descriptions = largerHazard.Descriptions; db.SubmitChanges(); } diff --git a/SGGL/BLL/ProjectData/ProjectService.cs b/SGGL/BLL/ProjectData/ProjectService.cs index e0a95ad5..fa59e49a 100644 --- a/SGGL/BLL/ProjectData/ProjectService.cs +++ b/SGGL/BLL/ProjectData/ProjectService.cs @@ -551,5 +551,28 @@ } return code; } + + /// + /// 获取施工中项目集合 + /// + /// + public static List GetProjectWorkList(string unitId) + { + var getDatas = from x in Funs.DB.Base_Project + where (x.ProjectState == null || x.ProjectState == BLL.Const.ProjectState_1) + select x; + + if (unitId == BLL.Const.UnitId_CWCEC) + { + getDatas = getDatas.Where(x => x.UnitId == unitId || x.UnitId == null); + } + else + { + getDatas = getDatas.Where(x => x.UnitId == unitId); + } + var list = getDatas.OrderBy(x => x.ProjectName).ToList(); + + return list; + } } } \ No newline at end of file diff --git a/SGGL/BLL/SysManage/UnitService.cs b/SGGL/BLL/SysManage/UnitService.cs index a0a7db6e..625d2987 100644 --- a/SGGL/BLL/SysManage/UnitService.cs +++ b/SGGL/BLL/SysManage/UnitService.cs @@ -77,7 +77,7 @@ namespace BLL IdcardNumber = unit.IdcardNumber, LinkMobile = unit.LinkMobile, CollCropStatus = unit.CollCropStatus, - RealNamePushTime=null, + RealNamePushTime = null, }; db.Base_Unit.InsertOnSubmit(newUnit); db.SubmitChanges(); @@ -266,7 +266,7 @@ namespace BLL var q = (from x in db.Base_Unit join y in db.Project_ProjectUnit on x.UnitId equals y.UnitId - where y.ProjectId == projectId && y.UnitType == unitType + where y.ProjectId == projectId && (y.UnitType == unitType || string.IsNullOrEmpty(unitType)) orderby x.UnitCode select x).ToList(); return q; @@ -662,9 +662,9 @@ namespace BLL { return Funs.DB.Base_Unit.FirstOrDefault(e => e.UnitName == unitName); } - public static Model.Base_Unit getUnitByCollCropCodeUnitName(string CollCropCode,string unitName) - { - var getUnit= Funs.DB.Base_Unit.FirstOrDefault(e => e.CollCropCode == CollCropCode); + public static Model.Base_Unit getUnitByCollCropCodeUnitName(string CollCropCode, string unitName) + { + var getUnit = Funs.DB.Base_Unit.FirstOrDefault(e => e.CollCropCode == CollCropCode); if (getUnit != null) { return getUnit; @@ -708,5 +708,30 @@ namespace BLL return name; } + + public static void InitNoThisAllUnitDownList(FineUIPro.DropDownList dropName, bool isShowPlease) + { + dropName.DataValueField = "UnitId"; + dropName.DataTextField = "UnitName"; + dropName.DataSource = GetNoThisAllUnitList(); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + + /// + /// 获取除本单位外的所有单位名称下拉选择项 + /// + /// + public static List GetNoThisAllUnitList() + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + var q = (from x in db.Base_Unit where x.UnitId != BLL.Const.UnitId_CWCEC orderby x.UnitCode select x).ToList(); + return q; + } + } } } diff --git a/SGGL/BLL/SysManage/UserService.cs b/SGGL/BLL/SysManage/UserService.cs index e2154ec2..f48acc1f 100644 --- a/SGGL/BLL/SysManage/UserService.cs +++ b/SGGL/BLL/SysManage/UserService.cs @@ -19,6 +19,16 @@ namespace BLL return Funs.DB.Sys_User.FirstOrDefault(e => e.UserId == userId); } + /// + /// ȡûϢ + /// + /// ûId + /// ûϢ + public static Model.Sys_User GetUserByIdentityCard(string identityCard) + { + return Funs.DB.Sys_User.FirstOrDefault(e => e.IdentityCard == identityCard); + } + /// ///ûȡûϢ /// diff --git a/SGGL/BLL/ZHGL/Emergency/UnitDrillRecordListService.cs b/SGGL/BLL/ZHGL/Emergency/UnitDrillRecordListService.cs new file mode 100644 index 00000000..47545cb0 --- /dev/null +++ b/SGGL/BLL/ZHGL/Emergency/UnitDrillRecordListService.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace BLL +{ + /// + /// 应急演练 + /// + public static class UnitDrillRecordListService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 根据主键获取应急演练 + /// + /// + /// + public static Model.Emergency_DrillRecordList_Unit GetDrillRecordListById(string DrillRecordListId) + { + return Funs.DB.Emergency_DrillRecordList_Unit.FirstOrDefault(e => e.DrillRecordListId == DrillRecordListId); + } + + /// + /// 根据时间获取应急演练信息 + /// + /// 开始时间 + /// 结束时间 + /// 应急演练信息 + public static List GetDrillRecordListsByDrillRecordDate(DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.Emergency_DrillRecordList_Unit where x.DrillRecordDate >= startTime && x.DrillRecordDate < endTime && x.ProjectId == projectId && x.States == BLL.Const.State_2 select x).ToList(); + } + + /// + /// 根据时间段获取HSE应急演练 + /// + /// 开始时间 + /// 结束时间 + /// 项目Id + /// 时间段内的HSE应急演练数量 + public static int GetCountByDate(DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.Emergency_DrillRecordList_Unit where x.DrillRecordDate >= startTime && x.DrillRecordDate <= endTime && x.ProjectId == projectId select x).Count(); + } + + /// + /// 根据时间段获取HSE应急演练 + /// + /// 开始时间 + /// 结束时间 + /// 项目Id + /// 时间段内的HSE应急演练数量 + public static int GetCountByDate2(DateTime startTime, DateTime endTime, string projectId) + { + return (from x in Funs.DB.Emergency_DrillRecordList_Unit where x.DrillRecordDate >= startTime && x.DrillRecordDate < endTime && x.ProjectId == projectId select x).Count(); + } + + /// + /// 获取HSE应急演练 + /// + /// 开始时间 + /// 结束时间 + /// 项目Id + /// 时间段内的HSE应急演练数量 + public static int GetCount(string projectId) + { + return (from x in Funs.DB.Emergency_DrillRecordList_Unit where x.ProjectId == projectId select x).Count(); + } + + /// + /// 添加应急演练 + /// + /// + public static void AddDrillRecordList(Model.Emergency_DrillRecordList_Unit DrillRecordList) + { + Model.SGGLDB db = Funs.DB; + Model.Emergency_DrillRecordList_Unit newDrillRecordList = new Model.Emergency_DrillRecordList_Unit + { + DrillRecordListId = DrillRecordList.DrillRecordListId, + ProjectId = DrillRecordList.ProjectId, + DrillRecordCode = DrillRecordList.DrillRecordCode, + DrillRecordName = DrillRecordList.DrillRecordName, + UnitIds = DrillRecordList.UnitIds, + UnitNames = DrillRecordList.UnitNames, + UserIds = DrillRecordList.UserIds, + UserNames = DrillRecordList.UserNames, + DrillRecordDate = DrillRecordList.DrillRecordDate, + DrillRecordContents = DrillRecordList.DrillRecordContents, + CompileMan = DrillRecordList.CompileMan, + CompileDate = System.DateTime.Now, + States = DrillRecordList.States, + AttachUrl = DrillRecordList.AttachUrl, + DrillRecordType = DrillRecordList.DrillRecordType, + JointPersonNum = DrillRecordList.JointPersonNum, + DrillCost = DrillRecordList.DrillCost + }; + db.Emergency_DrillRecordList_Unit.InsertOnSubmit(newDrillRecordList); + db.SubmitChanges(); + ////增加一条编码记录 + BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.ProjectDrillRecordListMenuId, DrillRecordList.ProjectId, null, DrillRecordList.DrillRecordListId, DrillRecordList.DrillRecordDate); + } + + /// + /// 修改应急演练 + /// + /// + public static void UpdateDrillRecordList(Model.Emergency_DrillRecordList_Unit DrillRecordList) + { + Model.SGGLDB db = Funs.DB; + Model.Emergency_DrillRecordList_Unit newDrillRecordList = db.Emergency_DrillRecordList_Unit.FirstOrDefault(e => e.DrillRecordListId == DrillRecordList.DrillRecordListId); + if (newDrillRecordList != null) + { + newDrillRecordList.DrillRecordCode = DrillRecordList.DrillRecordCode; + newDrillRecordList.DrillRecordName = DrillRecordList.DrillRecordName; + newDrillRecordList.UnitIds = DrillRecordList.UnitIds; + newDrillRecordList.UnitNames = DrillRecordList.UnitNames; + newDrillRecordList.UserIds = DrillRecordList.UserIds; + newDrillRecordList.UserNames = DrillRecordList.UserNames; + newDrillRecordList.DrillRecordDate = DrillRecordList.DrillRecordDate; + newDrillRecordList.DrillRecordContents = DrillRecordList.DrillRecordContents; + newDrillRecordList.CompileMan = DrillRecordList.CompileMan; + //newDrillRecordList.CompileDate = DrillRecordList.CompileDate; + newDrillRecordList.States = DrillRecordList.States; + newDrillRecordList.AttachUrl = DrillRecordList.AttachUrl; + newDrillRecordList.DrillRecordType = DrillRecordList.DrillRecordType; + newDrillRecordList.JointPersonNum = DrillRecordList.JointPersonNum; + newDrillRecordList.DrillCost = DrillRecordList.DrillCost; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除应急演练 + /// + /// + public static void DeleteDrillRecordListById(string DrillRecordListId) + { + Model.SGGLDB db = Funs.DB; + Model.Emergency_DrillRecordList_Unit DrillRecordList = db.Emergency_DrillRecordList_Unit.FirstOrDefault(e => e.DrillRecordListId == DrillRecordListId); + if (DrillRecordList != null) + { + ///删除编码表记录 + BLL.CodeRecordsService.DeleteCodeRecordsByDataId(DrillRecordList.DrillRecordListId); + ////删除附件表 + BLL.CommonService.DeleteAttachFileById(DrillRecordList.DrillRecordListId); + ////删除流程表 + BLL.CommonService.DeleteFlowOperateByID(DrillRecordList.DrillRecordListId); + db.Emergency_DrillRecordList_Unit.DeleteOnSubmit(DrillRecordList); + db.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/ZHGL/Emergency/UnitEmergencyListService.cs b/SGGL/BLL/ZHGL/Emergency/UnitEmergencyListService.cs new file mode 100644 index 00000000..955669a7 --- /dev/null +++ b/SGGL/BLL/ZHGL/Emergency/UnitEmergencyListService.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace BLL +{ + /// + /// 应急预案管理 + /// + public static class UnitEmergencyListService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 根据主键获取应急预案管理 + /// + /// + /// + public static Model.Emergency_EmergencyList_Unit GetEmergencyListById(string EmergencyListId) + { + return Funs.DB.Emergency_EmergencyList_Unit.FirstOrDefault(e => e.EmergencyListId == EmergencyListId); + } + + /// + /// 获取时间段文件、方案修编情况说明 + /// + /// + /// + /// + /// + public static List GetEmergencyListByDate(string projectId, DateTime startTime, DateTime endTime) + { + return (from x in Funs.DB.Emergency_EmergencyList_Unit where x.ProjectId == projectId && x.CompileDate >= startTime && x.CompileDate <= endTime select x).ToList(); + } + + /// + /// 根据应急预案类型获取应急预案信息集合 + /// + /// 应急预案类型 + /// 项目号 + /// 应急预案实体集合 + public static List GetEmergencyListsByEmergencyType(string emergencyType, string projectId, DateTime startTime, DateTime endTime) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + return (from x in db.Emergency_EmergencyList_Unit + join y in db.Base_EmergencyType + on x.EmergencyTypeId equals y.EmergencyTypeId + where y.EmergencyTypeName.Contains(emergencyType) && x.ProjectId == projectId && x.CompileDate >= startTime && x.CompileDate < endTime + select x).ToList(); + } + } + + /// + /// 根据应急预案类型获取其他应急预案信息集合 + /// + /// 应急预案类型 + /// 项目号 + /// 其他应急预案实体集合 + public static List GetOtherEmergencyListsByEmergencyType(string emergencyType, string projectId, DateTime startTime, DateTime endTime) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + return (from x in db.Emergency_EmergencyList_Unit + join y in db.Base_EmergencyType + on x.EmergencyTypeId equals y.EmergencyTypeId + where !y.EmergencyTypeName.Contains(emergencyType) && x.ProjectId == projectId && x.CompileDate >= startTime && x.CompileDate < endTime + select x).ToList(); + } + } + + /// + /// 添加应急预案管理 + /// + /// + public static void AddEmergencyList(Model.Emergency_EmergencyList_Unit EmergencyList) + { + Model.SGGLDB db = Funs.DB; + Model.Emergency_EmergencyList_Unit newEmergencyList = new Model.Emergency_EmergencyList_Unit + { + EmergencyListId = EmergencyList.EmergencyListId, + ProjectId = EmergencyList.ProjectId, + EmergencyCode = EmergencyList.EmergencyCode, + EmergencyName = EmergencyList.EmergencyName, + UnitId = EmergencyList.UnitId, + EmergencyTypeId = EmergencyList.EmergencyTypeId, + VersionCode = EmergencyList.VersionCode, + EmergencyContents = EmergencyList.EmergencyContents, + CompileMan = EmergencyList.CompileMan, + CompileDate = EmergencyList.CompileDate, + States = EmergencyList.States, + AttachUrl = EmergencyList.AttachUrl, + AuditMan = EmergencyList.AuditMan, + ApproveMan = EmergencyList.ApproveMan + }; + db.Emergency_EmergencyList_Unit.InsertOnSubmit(newEmergencyList); + db.SubmitChanges(); + ////增加一条编码记录 + BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.ProjectEmergencyListMenuId, EmergencyList.ProjectId, null, EmergencyList.EmergencyListId, EmergencyList.CompileDate); + } + + /// + /// 修改应急预案管理 + /// + /// + public static void UpdateEmergencyList(Model.Emergency_EmergencyList_Unit EmergencyList) + { + Model.SGGLDB db = Funs.DB; + Model.Emergency_EmergencyList_Unit newEmergencyList = db.Emergency_EmergencyList_Unit.FirstOrDefault(e => e.EmergencyListId == EmergencyList.EmergencyListId); + if (newEmergencyList != null) + { + newEmergencyList.EmergencyCode = EmergencyList.EmergencyCode; + newEmergencyList.EmergencyName = EmergencyList.EmergencyName; + newEmergencyList.UnitId = EmergencyList.UnitId; + newEmergencyList.EmergencyTypeId = EmergencyList.EmergencyTypeId; + newEmergencyList.VersionCode = EmergencyList.VersionCode; + newEmergencyList.EmergencyContents = EmergencyList.EmergencyContents; + newEmergencyList.CompileMan = EmergencyList.CompileMan; + newEmergencyList.CompileDate = EmergencyList.CompileDate; + newEmergencyList.States = EmergencyList.States; + newEmergencyList.AttachUrl = EmergencyList.AttachUrl; + newEmergencyList.AuditMan = EmergencyList.AuditMan; + newEmergencyList.ApproveMan = EmergencyList.ApproveMan; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除应急预案管理 + /// + /// + public static void DeleteEmergencyListById(string EmergencyListId) + { + Model.SGGLDB db = Funs.DB; + Model.Emergency_EmergencyList_Unit EmergencyList = db.Emergency_EmergencyList_Unit.FirstOrDefault(e => e.EmergencyListId == EmergencyListId); + if (EmergencyList != null) + { + ///删除编码表记录 + BLL.CodeRecordsService.DeleteCodeRecordsByDataId(EmergencyList.EmergencyListId); + ////删除附件表 + BLL.CommonService.DeleteAttachFileById(EmergencyList.EmergencyListId); + ////删除流程表 + BLL.CommonService.DeleteFlowOperateByID(EmergencyList.EmergencyListId); + db.Emergency_EmergencyList_Unit.DeleteOnSubmit(EmergencyList); + db.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/ZHGL/Meeting/CompanySafetyMeetingService.cs b/SGGL/BLL/ZHGL/Meeting/CompanySafetyMeetingService.cs new file mode 100644 index 00000000..002877c0 --- /dev/null +++ b/SGGL/BLL/ZHGL/Meeting/CompanySafetyMeetingService.cs @@ -0,0 +1,142 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace BLL +{ + /// + /// 企业安委会 + /// + public static class CompanySafetyMeetingService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 根据主键获取企业安委会 + /// + /// + /// + public static Model.Meeting_CompanySafetyMeeting GetCompanySafetyMeetingById(string CompanySafetyMeetingId) + { + return Funs.DB.Meeting_CompanySafetyMeeting.FirstOrDefault(e => e.CompanySafetyMeetingId == CompanySafetyMeetingId); + } + + /// + /// 根据时间段获取月例会集合 + /// + /// + /// + /// + /// + public static int GetCountByTime(DateTime startTime, DateTime endTime) + { + return (from x in Funs.DB.Meeting_CompanySafetyMeeting where x.CompanySafetyMeetingDate >= startTime && x.CompanySafetyMeetingDate < endTime select x).Count(); + } + + /// + /// 根据时间段获取月例会参会人数 + /// + /// + /// + /// + /// + public static int? GetSumAttentPersonNumByMeetingDate(DateTime startTime, DateTime endTime) + { + int? sumAttentPersonNum = (from x in Funs.DB.Meeting_CompanySafetyMeeting where x.CompanySafetyMeetingDate >= startTime && x.CompanySafetyMeetingDate < endTime select x.AttentPersonNum).Sum(); + if (sumAttentPersonNum == null) + { + return 0; + } + return sumAttentPersonNum; + } + + /// + /// 根据日期和类型获取会议记录集合 + /// + /// 开始时间 + /// 结束时间 + /// 项目号 + /// 会议记录集合 + public static List GetMeetingListsByDate(DateTime startTime, DateTime endTime) + { + return (from x in Funs.DB.Meeting_CompanySafetyMeeting where x.CompanySafetyMeetingDate >= startTime && x.CompanySafetyMeetingDate <= endTime orderby x.CompanySafetyMeetingDate select x).ToList(); + } + + /// + /// 添加企业安委会 + /// + /// + public static void AddCompanySafetyMeeting(Model.Meeting_CompanySafetyMeeting CompanySafetyMeeting) + { + Model.SGGLDB db = Funs.DB; + Model.Meeting_CompanySafetyMeeting newCompanySafetyMeeting = new Model.Meeting_CompanySafetyMeeting + { + CompanySafetyMeetingId = CompanySafetyMeeting.CompanySafetyMeetingId, + CompanySafetyMeetingCode = CompanySafetyMeeting.CompanySafetyMeetingCode, + CompanySafetyMeetingName = CompanySafetyMeeting.CompanySafetyMeetingName, + CompanySafetyMeetingDate = CompanySafetyMeeting.CompanySafetyMeetingDate, + CompileMan = CompanySafetyMeeting.CompileMan, + CompanySafetyMeetingContents = CompanySafetyMeeting.CompanySafetyMeetingContents, + CompileDate = CompanySafetyMeeting.CompileDate, + AttentPersonNum = CompanySafetyMeeting.AttentPersonNum, + MeetingHours = CompanySafetyMeeting.MeetingHours, + MeetingHostMan = CompanySafetyMeeting.MeetingHostMan, + AttentPerson = CompanySafetyMeeting.AttentPerson, + MeetingPlace = CompanySafetyMeeting.MeetingPlace, + MeetingHostManId = CompanySafetyMeeting.MeetingHostManId, + AttentPersonIds = CompanySafetyMeeting.AttentPersonIds, + MeetingHostManOther = CompanySafetyMeeting.MeetingHostManOther + }; + db.Meeting_CompanySafetyMeeting.InsertOnSubmit(newCompanySafetyMeeting); + db.SubmitChanges(); + ////增加一条编码记录 + BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.CompanySafetyMeetingMenuId, null, null, CompanySafetyMeeting.CompanySafetyMeetingId, CompanySafetyMeeting.CompileDate); + } + + /// + /// 修改企业安委会 + /// + /// + public static void UpdateCompanySafetyMeeting(Model.Meeting_CompanySafetyMeeting CompanySafetyMeeting) + { + Model.SGGLDB db = Funs.DB; + Model.Meeting_CompanySafetyMeeting newCompanySafetyMeeting = db.Meeting_CompanySafetyMeeting.FirstOrDefault(e => e.CompanySafetyMeetingId == CompanySafetyMeeting.CompanySafetyMeetingId); + if (newCompanySafetyMeeting != null) + { + newCompanySafetyMeeting.CompanySafetyMeetingCode = CompanySafetyMeeting.CompanySafetyMeetingCode; + newCompanySafetyMeeting.CompanySafetyMeetingName = CompanySafetyMeeting.CompanySafetyMeetingName; + newCompanySafetyMeeting.CompanySafetyMeetingDate = CompanySafetyMeeting.CompanySafetyMeetingDate; + newCompanySafetyMeeting.CompileMan = CompanySafetyMeeting.CompileMan; + newCompanySafetyMeeting.CompanySafetyMeetingContents = CompanySafetyMeeting.CompanySafetyMeetingContents; + newCompanySafetyMeeting.CompileDate = CompanySafetyMeeting.CompileDate; + newCompanySafetyMeeting.AttentPersonNum = CompanySafetyMeeting.AttentPersonNum; + newCompanySafetyMeeting.MeetingHours = CompanySafetyMeeting.MeetingHours; + newCompanySafetyMeeting.MeetingHostMan = CompanySafetyMeeting.MeetingHostMan; + newCompanySafetyMeeting.AttentPerson = CompanySafetyMeeting.AttentPerson; + newCompanySafetyMeeting.MeetingPlace = CompanySafetyMeeting.MeetingPlace; + newCompanySafetyMeeting.MeetingHostManId = CompanySafetyMeeting.MeetingHostManId; + newCompanySafetyMeeting.AttentPersonIds = CompanySafetyMeeting.AttentPersonIds; + newCompanySafetyMeeting.MeetingHostManOther = CompanySafetyMeeting.MeetingHostManOther; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除企业安委会 + /// + /// + public static void DeleteCompanySafetyMeetingById(string CompanySafetyMeetingId) + { + Model.SGGLDB db = Funs.DB; + Model.Meeting_CompanySafetyMeeting CompanySafetyMeeting = db.Meeting_CompanySafetyMeeting.FirstOrDefault(e => e.CompanySafetyMeetingId == CompanySafetyMeetingId); + if (CompanySafetyMeeting != null) + { + ///删除编码表记录 + BLL.CodeRecordsService.DeleteCodeRecordsByDataId(CompanySafetyMeetingId); + BLL.CommonService.DeleteAttachFileById(CompanySafetyMeetingId); + db.Meeting_CompanySafetyMeeting.DeleteOnSubmit(CompanySafetyMeeting); + db.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/ZHGL/Meeting/CompanySpecialMeetingService.cs b/SGGL/BLL/ZHGL/Meeting/CompanySpecialMeetingService.cs new file mode 100644 index 00000000..1e8886ee --- /dev/null +++ b/SGGL/BLL/ZHGL/Meeting/CompanySpecialMeetingService.cs @@ -0,0 +1,142 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace BLL +{ + /// + /// 企业专题会 + /// + public static class CompanySpecialMeetingService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 根据主键获取企业专题会 + /// + /// + /// + public static Model.Meeting_CompanySpecialMeeting GetCompanySpecialMeetingById(string CompanySpecialMeetingId) + { + return Funs.DB.Meeting_CompanySpecialMeeting.FirstOrDefault(e => e.CompanySpecialMeetingId == CompanySpecialMeetingId); + } + + /// + /// 根据时间段获取月例会集合 + /// + /// + /// + /// + /// + public static int GetCountByTime(DateTime startTime, DateTime endTime) + { + return (from x in Funs.DB.Meeting_CompanySpecialMeeting where x.CompanySpecialMeetingDate >= startTime && x.CompanySpecialMeetingDate < endTime select x).Count(); + } + + /// + /// 根据时间段获取月例会参会人数 + /// + /// + /// + /// + /// + public static int? GetSumAttentPersonNumByMeetingDate(DateTime startTime, DateTime endTime) + { + int? sumAttentPersonNum = (from x in Funs.DB.Meeting_CompanySpecialMeeting where x.CompanySpecialMeetingDate >= startTime && x.CompanySpecialMeetingDate < endTime select x.AttentPersonNum).Sum(); + if (sumAttentPersonNum == null) + { + return 0; + } + return sumAttentPersonNum; + } + + /// + /// 根据日期和类型获取会议记录集合 + /// + /// 开始时间 + /// 结束时间 + /// 项目号 + /// 会议记录集合 + public static List GetMeetingListsByDate(DateTime startTime, DateTime endTime) + { + return (from x in Funs.DB.Meeting_CompanySpecialMeeting where x.CompanySpecialMeetingDate >= startTime && x.CompanySpecialMeetingDate <= endTime orderby x.CompanySpecialMeetingDate select x).ToList(); + } + + /// + /// 添加企业专题会 + /// + /// + public static void AddCompanySpecialMeeting(Model.Meeting_CompanySpecialMeeting CompanySpecialMeeting) + { + Model.SGGLDB db = Funs.DB; + Model.Meeting_CompanySpecialMeeting newCompanySpecialMeeting = new Model.Meeting_CompanySpecialMeeting + { + CompanySpecialMeetingId = CompanySpecialMeeting.CompanySpecialMeetingId, + CompanySpecialMeetingCode = CompanySpecialMeeting.CompanySpecialMeetingCode, + CompanySpecialMeetingName = CompanySpecialMeeting.CompanySpecialMeetingName, + CompanySpecialMeetingDate = CompanySpecialMeeting.CompanySpecialMeetingDate, + CompileMan = CompanySpecialMeeting.CompileMan, + CompanySpecialMeetingContents = CompanySpecialMeeting.CompanySpecialMeetingContents, + CompileDate = CompanySpecialMeeting.CompileDate, + AttentPersonNum = CompanySpecialMeeting.AttentPersonNum, + MeetingHours = CompanySpecialMeeting.MeetingHours, + MeetingHostMan = CompanySpecialMeeting.MeetingHostMan, + AttentPerson = CompanySpecialMeeting.AttentPerson, + MeetingPlace = CompanySpecialMeeting.MeetingPlace, + MeetingHostManId = CompanySpecialMeeting.MeetingHostManId, + AttentPersonIds = CompanySpecialMeeting.AttentPersonIds, + MeetingHostManOther = CompanySpecialMeeting.MeetingHostManOther + }; + db.Meeting_CompanySpecialMeeting.InsertOnSubmit(newCompanySpecialMeeting); + db.SubmitChanges(); + ////增加一条编码记录 + BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.CompanySpecialMeetingMenuId, null, null, CompanySpecialMeeting.CompanySpecialMeetingId, CompanySpecialMeeting.CompileDate); + } + + /// + /// 修改企业专题会 + /// + /// + public static void UpdateCompanySpecialMeeting(Model.Meeting_CompanySpecialMeeting CompanySpecialMeeting) + { + Model.SGGLDB db = Funs.DB; + Model.Meeting_CompanySpecialMeeting newCompanySpecialMeeting = db.Meeting_CompanySpecialMeeting.FirstOrDefault(e => e.CompanySpecialMeetingId == CompanySpecialMeeting.CompanySpecialMeetingId); + if (newCompanySpecialMeeting != null) + { + newCompanySpecialMeeting.CompanySpecialMeetingCode = CompanySpecialMeeting.CompanySpecialMeetingCode; + newCompanySpecialMeeting.CompanySpecialMeetingName = CompanySpecialMeeting.CompanySpecialMeetingName; + newCompanySpecialMeeting.CompanySpecialMeetingDate = CompanySpecialMeeting.CompanySpecialMeetingDate; + newCompanySpecialMeeting.CompileMan = CompanySpecialMeeting.CompileMan; + newCompanySpecialMeeting.CompanySpecialMeetingContents = CompanySpecialMeeting.CompanySpecialMeetingContents; + newCompanySpecialMeeting.CompileDate = CompanySpecialMeeting.CompileDate; + newCompanySpecialMeeting.AttentPersonNum = CompanySpecialMeeting.AttentPersonNum; + newCompanySpecialMeeting.MeetingHours = CompanySpecialMeeting.MeetingHours; + newCompanySpecialMeeting.MeetingHostMan = CompanySpecialMeeting.MeetingHostMan; + newCompanySpecialMeeting.AttentPerson = CompanySpecialMeeting.AttentPerson; + newCompanySpecialMeeting.MeetingPlace = CompanySpecialMeeting.MeetingPlace; + newCompanySpecialMeeting.MeetingHostManId = CompanySpecialMeeting.MeetingHostManId; + newCompanySpecialMeeting.AttentPersonIds = CompanySpecialMeeting.AttentPersonIds; + newCompanySpecialMeeting.MeetingHostManOther = CompanySpecialMeeting.MeetingHostManOther; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除企业专题会 + /// + /// + public static void DeleteCompanySpecialMeetingById(string CompanySpecialMeetingId) + { + Model.SGGLDB db = Funs.DB; + Model.Meeting_CompanySpecialMeeting CompanySpecialMeeting = db.Meeting_CompanySpecialMeeting.FirstOrDefault(e => e.CompanySpecialMeetingId == CompanySpecialMeetingId); + if (CompanySpecialMeeting != null) + { + ///删除编码表记录 + BLL.CodeRecordsService.DeleteCodeRecordsByDataId(CompanySpecialMeetingId); + BLL.CommonService.DeleteAttachFileById(CompanySpecialMeetingId); + db.Meeting_CompanySpecialMeeting.DeleteOnSubmit(CompanySpecialMeeting); + db.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/ZHGL/Person/CompanyBranchPersonService.cs b/SGGL/BLL/ZHGL/Person/CompanyBranchPersonService.cs new file mode 100644 index 00000000..06b326b2 --- /dev/null +++ b/SGGL/BLL/ZHGL/Person/CompanyBranchPersonService.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 公司分支机构人员 + /// + public static class CompanyBranchPersonService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 根据主键获取公司分支机构人员 + /// + /// + /// + public static Model.Person_CompanyBranchPerson GetCompanyBranchPersonById(string CompanyBranchPersonId) + { + return Funs.DB.Person_CompanyBranchPerson.FirstOrDefault(e => e.CompanyBranchPersonId == CompanyBranchPersonId); + } + + /// + /// 根据身份证号Id获取人员的数量 + /// + /// 身份证号 + /// 人员的数量 + public static Model.Person_CompanyBranchPerson GetPersonCountByIdentityCard(string identityCard) + { + var q = Funs.DB.Person_CompanyBranchPerson.FirstOrDefault(x => x.IdentityCard == identityCard); + return q; + } + + /// + /// 添加公司分支机构人员 + /// + /// + public static void AddCompanyBranchPerson(Model.Person_CompanyBranchPerson CompanyBranchPerson) + { + Model.SGGLDB db = Funs.DB; + Model.Person_CompanyBranchPerson newCompanyBranchPerson = new Model.Person_CompanyBranchPerson + { + CompanyBranchPersonId = CompanyBranchPerson.CompanyBranchPersonId, + UnitId = CompanyBranchPerson.UnitId, + PersonName = CompanyBranchPerson.PersonName, + Sex = CompanyBranchPerson.Sex, + IdentityCard = CompanyBranchPerson.IdentityCard, + WorkPostId = CompanyBranchPerson.WorkPostId, + Telephone = CompanyBranchPerson.Telephone, + Address = CompanyBranchPerson.Address, + IsOnJob = CompanyBranchPerson.IsOnJob, + Remark = CompanyBranchPerson.Remark, + }; + db.Person_CompanyBranchPerson.InsertOnSubmit(newCompanyBranchPerson); + db.SubmitChanges(); + } + + /// + /// 修改公司分支机构人员 + /// + /// + public static void UpdateCompanyBranchPerson(Model.Person_CompanyBranchPerson CompanyBranchPerson) + { + Model.SGGLDB db = Funs.DB; + Model.Person_CompanyBranchPerson newCompanyBranchPerson = db.Person_CompanyBranchPerson.FirstOrDefault(e => e.CompanyBranchPersonId == CompanyBranchPerson.CompanyBranchPersonId); + if (newCompanyBranchPerson != null) + { + newCompanyBranchPerson.UnitId = CompanyBranchPerson.UnitId; + newCompanyBranchPerson.PersonName = CompanyBranchPerson.PersonName; + newCompanyBranchPerson.Sex = CompanyBranchPerson.Sex; + newCompanyBranchPerson.IdentityCard = CompanyBranchPerson.IdentityCard; + newCompanyBranchPerson.WorkPostId = CompanyBranchPerson.WorkPostId; + newCompanyBranchPerson.Telephone = CompanyBranchPerson.Telephone; + newCompanyBranchPerson.Address = CompanyBranchPerson.Address; + newCompanyBranchPerson.IsOnJob = CompanyBranchPerson.IsOnJob; + newCompanyBranchPerson.Remark = CompanyBranchPerson.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除公司分支机构人员 + /// + /// + public static void DeleteCompanyBranchPersonById(string CompanyBranchPersonId) + { + Model.SGGLDB db = Funs.DB; + Model.Person_CompanyBranchPerson CompanyBranchPerson = db.Person_CompanyBranchPerson.FirstOrDefault(e => e.CompanyBranchPersonId == CompanyBranchPersonId); + if (CompanyBranchPerson != null) + { + BLL.CommonService.DeleteAttachFileById(CompanyBranchPersonId); + db.Person_CompanyBranchPerson.DeleteOnSubmit(CompanyBranchPerson); + db.SubmitChanges(); + } + } + + /// + /// 获取公司分支机构人员是否存在 + /// + /// 用户id + /// 身份证号码 + /// 是否存在 + public static bool IsExistPersonIdentityCard(string companyBranchPersonId, string identityCard) + { + bool isExist = false; + var role = Funs.DB.Person_CompanyBranchPerson.FirstOrDefault(x => x.IdentityCard == identityCard && (x.CompanyBranchPersonId != companyBranchPersonId || (companyBranchPersonId == null && x.CompanyBranchPersonId != null))); + if (role != null) + { + isExist = true; + } + return isExist; + } + } +} diff --git a/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportService.cs b/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportService.cs index 9ed3f207..e73a8183 100644 --- a/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportService.cs +++ b/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportService.cs @@ -35,6 +35,7 @@ namespace BLL ProjectId = superviseCheckReport.ProjectId, UnitId = superviseCheckReport.UnitId, CheckTeam = superviseCheckReport.CheckTeam, + CheckType = superviseCheckReport.CheckType, EvaluationResult = superviseCheckReport.EvaluationResult, AttachUrl = superviseCheckReport.AttachUrl, IsIssued = superviseCheckReport.IsIssued @@ -57,6 +58,7 @@ namespace BLL newSuperviseCheckReport.ProjectId = superviseCheckReport.ProjectId; newSuperviseCheckReport.UnitId = superviseCheckReport.UnitId; newSuperviseCheckReport.CheckTeam = superviseCheckReport.CheckTeam; + newSuperviseCheckReport.CheckType = superviseCheckReport.CheckType; newSuperviseCheckReport.EvaluationResult = superviseCheckReport.EvaluationResult; newSuperviseCheckReport.AttachUrl = superviseCheckReport.AttachUrl; newSuperviseCheckReport.IsIssued = superviseCheckReport.IsIssued; diff --git a/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx b/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx index 88596515..067bd91f 100644 --- a/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx +++ b/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx @@ -8,83 +8,98 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx.cs b/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx.cs index f7b52336..d5751878 100644 --- a/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx.cs +++ b/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx.cs @@ -23,6 +23,7 @@ namespace FineUIPro.Web.BaseInfo ////权限按钮方法 this.GetButtonPower(); Funs.DropDownPageSize(this.ddlPageSize); + Funs.FineUIPleaseSelect(this.drpCertificateType); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); // 绑定表格 BindGrid(); @@ -181,6 +182,14 @@ namespace FineUIPro.Web.BaseInfo { this.txtCertificateCode.Text = certificate.CertificateCode; this.txtCertificateName.Text = certificate.CertificateName; + if (!string.IsNullOrEmpty(certificate.CertificateType)) + { + this.drpCertificateType.SelectedValue = certificate.CertificateType; + } + if (certificate.IsRegisterHSSE == true) + { + this.ckbIsRegisterHSSE.Checked = true; + } this.txtRemark.Text = certificate.Remark; hfFormID.Text = Id; this.btnDelete.Enabled = true; @@ -201,8 +210,13 @@ namespace FineUIPro.Web.BaseInfo { CertificateCode = this.txtCertificateCode.Text.Trim(), CertificateName = this.txtCertificateName.Text.Trim(), + IsRegisterHSSE = Convert.ToBoolean(this.ckbIsRegisterHSSE.Checked), Remark = txtRemark.Text.Trim() }; + if (this.drpCertificateType.SelectedValue != BLL.Const._Null) + { + certificate.CertificateType = this.drpCertificateType.SelectedValue; + } if (string.IsNullOrEmpty(strRowID)) { certificate.CertificateId = SQLHelper.GetNewID(typeof(Model.Base_Certificate)); diff --git a/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx.designer.cs b/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx.designer.cs index b5278e7f..24e3ba02 100644 --- a/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/BaseInfo/Certificate.aspx.designer.cs @@ -111,6 +111,24 @@ namespace FineUIPro.Web.BaseInfo { /// protected global::FineUIPro.TextBox txtCertificateName; + /// + /// drpCertificateType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpCertificateType; + + /// + /// ckbIsRegisterHSSE 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBox ckbIsRegisterHSSE; + /// /// txtRemark 控件。 /// diff --git a/SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx b/SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx new file mode 100644 index 00000000..dd0baf5f --- /dev/null +++ b/SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx @@ -0,0 +1,100 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RiskLevel.aspx.cs" Inherits="FineUIPro.Web.BaseInfo.RiskLevel" %> + + + + + + 风险等级 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx.cs b/SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx.cs new file mode 100644 index 00000000..46e67987 --- /dev/null +++ b/SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx.cs @@ -0,0 +1,240 @@ +using BLL; +using System; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.BaseInfo +{ + public partial class RiskLevel : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + ////权限按钮方法 + this.GetButtonPower(); + btnNew.OnClientClick = Window1.GetShowReference("RiskLevelEdit.aspx") + "return false;"; + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT RiskLevelId + , RiskLevel + , RiskLevelName + , MinValue + , MaxValue + , ControlMeasures + , Days + , Remark + FROM dbo.Base_RiskLevel "; + SqlParameter[] parameter = null; + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + + #region 弹出编辑窗口关闭事件 + /// + /// 弹出编辑窗体关闭事件 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 编辑 + /// + /// Grid行双击事件 + /// + /// + /// + 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 RegisterTypesId = Grid1.SelectedRowID; + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RiskLevelEdit.aspx?RiskLevelId={0}", RegisterTypesId, "编辑 - "))); + } + #endregion + + #region 删除 + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + this.DeleteData(); + } + + /// + /// 删除方法 + /// + private void DeleteData() + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HazardRegisterTypesMenuId, Const.BtnDelete)) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + bool isShow = false; + if (Grid1.SelectedRowIndexArray.Length == 1) + { + isShow = true; + } + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + if (this.judgementDelete(rowID, isShow)) + { + var riskLevel = Funs.DB.Base_RiskLevel.FirstOrDefault(x=>x.RiskLevelId==rowID); + if (riskLevel != null) + { + BLL.LogService.AddSys_Log(this.CurrUser, riskLevel.RiskLevelName, riskLevel.RiskLevelId, BLL.Const.RiskLevelMenuId, BLL.Const.BtnDelete); + Funs.DB.Base_RiskLevel.DeleteOnSubmit(riskLevel); + Funs.DB.SubmitChanges(); + } + } + } + BindGrid(); + ShowNotify("删除数据成功!(表格数据已重新绑定)", MessageBoxIcon.Success); + } + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!"); + } + } + + /// + /// 判断是否可删除 + /// + /// + /// + /// + private bool judgementDelete(string rowID, bool isShow) + { + string content = string.Empty; + if (string.IsNullOrEmpty(content)) + { + return true; + } + else + { + if (isShow) + { + Alert.ShowInTop(content); + } + return false; + } + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.RiskLevelMenuId); + 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/BaseInfo/RiskLevel.aspx.designer.cs b/SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx.designer.cs new file mode 100644 index 00000000..0c539389 --- /dev/null +++ b/SGGL/FineUIPro.Web/BaseInfo/RiskLevel.aspx.designer.cs @@ -0,0 +1,143 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.BaseInfo +{ + + + public partial class RiskLevel + { + + /// + /// 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; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// 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/BaseInfo/RiskLevelEdit.aspx b/SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx new file mode 100644 index 00000000..692a1616 --- /dev/null +++ b/SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx @@ -0,0 +1,73 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RiskLevelEdit.aspx.cs" Inherits="FineUIPro.Web.BaseInfo.RiskLevelEdit" %> + + + + + + 风险等级 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx.cs b/SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx.cs new file mode 100644 index 00000000..05024139 --- /dev/null +++ b/SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx.cs @@ -0,0 +1,118 @@ +using BLL; +using System; +using System.Linq; +namespace FineUIPro.Web.BaseInfo +{ + public partial class RiskLevelEdit : PageBase + { + #region 定义项 + /// + /// 问题巡检类型主键 + /// + public string RiskLevelId + { + get + { + return (string)ViewState["RiskLevelId"]; + } + set + { + ViewState["RiskLevelId"] = value; + } + } + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + btnClose.OnClientClick = ActiveWindow.GetHideReference(); + + this.RiskLevelId = Request.QueryString["RiskLevelId"]; + if (!string.IsNullOrEmpty(this.RiskLevelId)) + { + var riskLevel = Funs.DB.Base_RiskLevel.FirstOrDefault(x=>x.RiskLevelId==this.RiskLevelId); + if (riskLevel != null) + { + if (riskLevel.RiskLevel.HasValue) + { + this.txtRiskLevel.Text = riskLevel.RiskLevel.Value.ToString(); + } + this.txtRiskLevelName.Text = riskLevel.RiskLevelName; + if (riskLevel.MinValue.HasValue) + { + this.txtMin.Text = riskLevel.MinValue.Value.ToString(); + } + if (riskLevel.MaxValue.HasValue) + { + this.txtMax.Text = riskLevel.MaxValue.Value.ToString(); + } + if (riskLevel.Days.HasValue) + { + this.txtDays.Text = riskLevel.Days.Value.ToString(); + } + this.txtControlMeasures.Text = riskLevel.ControlMeasures; + this.txtRemark.Text = riskLevel.Remark; + + } + } + } + } + #endregion + + #region 保存数据 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.RiskLevelMenuId, Const.BtnSave)) + { + Model.Base_RiskLevel riskLevel = null; + if (string.IsNullOrEmpty(this.RiskLevelId)) + { + riskLevel= new Model.Base_RiskLevel(); + } + else + { + riskLevel = Funs.DB.Base_RiskLevel.FirstOrDefault(x=>x.RiskLevelId==this.RiskLevelId); + } + + riskLevel.RiskLevelName = this.txtRiskLevelName.Text; + riskLevel.RiskLevel = int.Parse(this.txtRiskLevel.Text); + riskLevel.MinValue = int.Parse(this.txtMin.Text); + riskLevel.MaxValue = int.Parse(this.txtMax.Text); + riskLevel.Days = int.Parse(this.txtDays.Text); + riskLevel.ControlMeasures=this.txtControlMeasures.Text ; + riskLevel.Remark=this.txtRemark.Text ; + + if (string.IsNullOrEmpty(this.RiskLevelId)) + { + this.RiskLevelId = SQLHelper.GetNewID(typeof(Model.Base_RiskLevel)); + riskLevel.RiskLevelId = this.RiskLevelId; + Funs.DB.Base_RiskLevel.InsertOnSubmit(riskLevel); + BLL.LogService.AddSys_Log(this.CurrUser, riskLevel.RiskLevelName, riskLevel.RiskLevelId, BLL.Const.HazardRegisterTypesMenuId,BLL.Const.BtnAdd); + } + else + { + BLL.LogService.AddSys_Log(this.CurrUser, riskLevel.RiskLevelName, riskLevel.RiskLevelId, BLL.Const.HazardRegisterTypesMenuId, BLL.Const.BtnModify); + } + Funs.DB.SubmitChanges(); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!"); + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx.designer.cs new file mode 100644 index 00000000..02fca92a --- /dev/null +++ b/SGGL/FineUIPro.Web/BaseInfo/RiskLevelEdit.aspx.designer.cs @@ -0,0 +1,143 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.BaseInfo +{ + + + public partial class RiskLevelEdit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtRiskLevelName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRiskLevelName; + + /// + /// txtRiskLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtRiskLevel; + + /// + /// txtMin 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMin; + + /// + /// txtMax 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMax; + + /// + /// txtDays 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtDays; + + /// + /// NumberBox4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox NumberBox4; + + /// + /// txtControlMeasures 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtControlMeasures; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + } +} diff --git a/SGGL/FineUIPro.Web/BaseInfo/WorkPost.aspx b/SGGL/FineUIPro.Web/BaseInfo/WorkPost.aspx index 47aa17f6..6f165560 100644 --- a/SGGL/FineUIPro.Web/BaseInfo/WorkPost.aspx +++ b/SGGL/FineUIPro.Web/BaseInfo/WorkPost.aspx @@ -11,77 +11,83 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + private void BindGrid() { - string strSql = @"SELECT wp.WorkPostId,wp.WorkPostName, wp.WorkPostCode, wp.Remark,wp.PostType,wp.IsHsse,wp.CNCodes, + string strSql = @"SELECT wp.WorkPostId,wp.WorkPostName, wp.WorkPostCode, wp.Remark,wp.PostType,wp.IsHsse,wp.IsCQMS,wp.CNCodes, case wp.IsHsse when 1 then '是' else '否' end as IsHsseStr,const.ConstText as PostTypeName FROM dbo.Base_WorkPost AS wp LEFT JOIN Sys_Const AS const ON const.ConstValue = wp.PostType and const.GroupId = '" + ConstValue.Group_PostType + "' "; @@ -162,6 +162,10 @@ namespace FineUIPro.Web.BaseInfo { this.ckbIsHsse.Checked = true; } + if (workPost.IsCQMS == true) + { + this.ckbIsCQMS.Checked = true; + } if (!string.IsNullOrEmpty(workPost.CNCodes)) { txtCNCodes.Values = workPost.CNCodes.Split(','); @@ -201,6 +205,7 @@ namespace FineUIPro.Web.BaseInfo WorkPostName = this.txtWorkPostName.Text.Trim(), PostType = this.drpPostType.SelectedValue, IsHsse = Convert.ToBoolean(this.ckbIsHsse.Checked), + IsCQMS = Convert.ToBoolean(this.ckbIsCQMS.Checked), CNCodes = string.Join(",", txtCNCodes.Values), Remark = txtRemark.Text.Trim() }; diff --git a/SGGL/FineUIPro.Web/BaseInfo/WorkPost.aspx.designer.cs b/SGGL/FineUIPro.Web/BaseInfo/WorkPost.aspx.designer.cs index d7d3b7a1..292e870c 100644 --- a/SGGL/FineUIPro.Web/BaseInfo/WorkPost.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/BaseInfo/WorkPost.aspx.designer.cs @@ -147,6 +147,15 @@ namespace FineUIPro.Web.BaseInfo { /// protected global::FineUIPro.CheckBox ckbIsHsse; + /// + /// ckbIsCQMS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBox ckbIsCQMS; + /// /// txtCNCodes 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetails.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetails.aspx index a08d10cc..ba23f186 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetails.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetails.aspx @@ -91,7 +91,7 @@
private void BindGrid() { - string strSql = @"select NEWID() as ID, v.ProjectId,v.ProjectCode,v.ProjectName,v.allcount,v.ccount,isnull(v.allCount,0)-ISNULL(v.cCount,0) as ucCount, - (case when isnull(v.allCount,0) > 0 then cast((isnull(v.allCount,0)-ISNULL(v.cCount,0)) *1.0 /isnull(v.allCount,0)*100 as decimal(18, 2)) - else 0 end) as rateV - from (select h.ProjectId,p.ProjectCode,p.ProjectName,COUNT(*) as allCount, - isnull((select COUNT(*) from Check_CheckControl as c - where c.ProjectId=h.ProjectId and State =7 - and '1' = @cpara - group by c.ProjectId),0) as cCount - from Check_CheckControl as h - left join Base_Project as p on h.ProjectId=p.ProjectId - where p.projectId is not null "; + string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 "; List listStr = new List(); string cpara = string.Empty; if (this.drpProject.SelectedValue != Const._Null) { - strSql += " AND h.projectId = @projectId"; ///状态为已完成 + strSql += " AND projectId = @projectId"; ///状态为已完成 listStr.Add(new SqlParameter("@projectId", this.drpProject.SelectedValue)); - - cpara += " AND c.projectId ="+ this.drpProject.SelectedValue; } - if (!string.IsNullOrEmpty(this.txtStartTime.Text)) - { - strSql += " AND h.CheckDate >=@StartTime"; - listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text)); + //if (!string.IsNullOrEmpty(this.txtStartTime.Text)) + //{ + // strSql += " AND h.RegisterDate >=@StartTime"; + // listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text)); - cpara += " AND c.CheckDate >=" + this.txtStartTime.Text; - } - if (!string.IsNullOrEmpty(this.txtEndTime.Text)) - { - strSql += " AND h.CheckDate <=@EndTime"; - listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text)); + // cpara += " AND c.RegisterDate >=" + this.txtStartTime.Text; + //} + //if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + //{ + // strSql += " AND h.RegisterDate <=@EndTime"; + // listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text)); + + // cpara += " AND c.RegisterDate <=" + this.txtEndTime.Text; + //} - cpara += " AND c.CheckDate <=" + this.txtEndTime.Text; - } - if (!string.IsNullOrEmpty(cpara)) - { - listStr.Add(new SqlParameter("@cpara"," '1' And "+ cpara)); - } - else - { - listStr.Add(new SqlParameter("@cpara", "'1'")); - } - strSql += " group by h.ProjectId,p.ProjectCode,p.ProjectName) as v"; SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; @@ -172,5 +154,103 @@ namespace FineUIPro.Web.DataShow { EditData(); } + + /// + /// 数量 + /// + /// + /// + protected int Count1(object projectId) + { + int cout1 = 0; + if (projectId != null) + { + var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); + var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); + var getT = Funs.DB.Check_CheckControl.Where(x => x.ProjectId == projectId.ToString()); + if (datetime1.HasValue) + { + getT = getT.Where(x => x.CheckDate >= datetime1); + } + if (datetime2.HasValue) + { + getT = getT.Where(x => x.CheckDate <= datetime2); + } + + cout1 = getT.Count(); + } + return cout1; + } + + protected int Count2(object projectId) + { + int cout1 = 0; + if (projectId != null) + { + var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); + var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); + var getT = Funs.DB.Check_CheckControl.Where(x => x.ProjectId == projectId.ToString() && x.State == "7"); + if (datetime1.HasValue) + { + getT = getT.Where(x => x.CheckDate >= datetime1); + } + if (datetime2.HasValue) + { + getT = getT.Where(x => x.CheckDate <= datetime2); + } + + cout1 = getT.Count(); + } + return cout1; + } + + protected int Count3(object projectId) + { + int cout1 = 0; + if (projectId != null) + { + var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); + var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); + var getT = Funs.DB.Check_CheckControl.Where(x => x.ProjectId == projectId.ToString() && x.State != "7"); + if (datetime1.HasValue) + { + getT = getT.Where(x => x.CheckDate >= datetime1); + } + if (datetime2.HasValue) + { + getT = getT.Where(x => x.CheckDate <= datetime2); + } + cout1 = getT.Count(); + } + return cout1; + } + + protected string Count4(object projectId) + { + string rate = string.Empty; + if (projectId != null) + { + var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); + var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); + var getALL = Funs.DB.Check_CheckControl.Where(x => x.ProjectId == projectId.ToString()); + + if (datetime1.HasValue) + { + getALL = getALL.Where(x => x.CheckDate >= datetime1); + } + if (datetime2.HasValue) + { + getALL = getALL.Where(x => x.CheckDate >= datetime1); + } + var getT = getALL.Where(x => x.ProjectId == projectId.ToString() && x.State == "7"); + int coutall = getALL.Count(); + int cout0 = getT.Count(); + if (coutall > 0) + { + rate = Math.Round(cout0 * 1.0 / coutall * 100, 2).ToString(); + } + } + return rate; + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.designer.cs index 5c220053..ab3a76bc 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.designer.cs @@ -113,6 +113,42 @@ namespace FineUIPro.Web.DataShow /// protected global::System.Web.UI.WebControls.Label labNumber; + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label4; + + /// + /// Label5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label5; + /// /// ToolbarSeparator1 控件。 /// diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx b/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx index 194ea691..614e6d6c 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx +++ b/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx @@ -13,7 +13,7 @@ + ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch"> + ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch"> + ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch"> + ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch"> + ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch"> + ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch"> - + @@ -68,11 +68,12 @@ - + + diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs index 6e8b8a5f..1a7ab495 100644 --- a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs @@ -25,6 +25,7 @@ namespace FineUIPro.Web.DataShow BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t BindGrid(); + this.Panel1.Title = "安全风险数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")"; } } #endregion @@ -183,12 +184,12 @@ namespace FineUIPro.Web.DataShow /// protected int Count2(object projectId) { - int cout1 = 0; + int cout2 = 0; if (projectId != null) { - cout1 = getcount(projectId.ToString(),2); + cout2 = getcount(projectId.ToString(),2); } - return cout1; + return cout2; } /// @@ -198,22 +199,22 @@ namespace FineUIPro.Web.DataShow /// protected int Count3(object projectId) { - int cout1 = 0; + int cout3 = 0; if (projectId != null) { - cout1= getcount(projectId.ToString(), 3); + cout3= getcount(projectId.ToString(), 3); } - return cout1; + return cout3; } protected int Count4(object projectId) { - int cout1 = 0; + int cout4 = 0; if (projectId != null) { - cout1 = getcount(projectId.ToString(), 4); + cout4 = getcount(projectId.ToString(), 4); } - return cout1; + return cout4; } /// /// 定义变量 diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.designer.cs index 531461aa..37a2f299 100644 --- a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.DataShow -{ - - - public partial class SecurityRisk - { - +namespace FineUIPro.Web.DataShow { + + + public partial class SecurityRisk { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar2 控件。 /// @@ -58,7 +56,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// drpProject 控件。 /// @@ -67,7 +65,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpProject; - + /// /// btnClose 控件。 /// @@ -76,7 +74,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnClose; - + /// /// labNumber 控件。 /// @@ -85,7 +83,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label labNumber; - + /// /// Label2 控件。 /// @@ -94,7 +92,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label2; - + /// /// Label1 控件。 /// @@ -103,7 +101,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label1; - + /// /// Label4 控件。 /// @@ -112,7 +110,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label4; - + /// /// Label5 控件。 /// @@ -121,7 +119,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label5; - + /// /// ToolbarSeparator1 控件。 /// @@ -130,7 +128,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -139,7 +137,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -148,7 +146,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -157,7 +155,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Menu1 控件。 /// @@ -166,7 +164,7 @@ namespace FineUIPro.Web.DataShow /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnView 控件。 /// diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx b/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx index 719a7784..4988a343 100644 --- a/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx +++ b/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx @@ -13,7 +13,7 @@ + ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch"> + ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch"> /// 绑定数据 /// @@ -57,7 +58,7 @@ namespace FineUIPro.Web.DataShow // cpara += " AND c.RegisterDate <=" + this.txtEndTime.Text; //} - + SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; @@ -148,7 +149,7 @@ namespace FineUIPro.Web.DataShow PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WorkingHoursItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - "))); } #endregion - + protected void btnView_Click(object sender, EventArgs e) { @@ -168,25 +169,23 @@ namespace FineUIPro.Web.DataShow { var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); - var getD1 = from x in Funs.DB.SitePerson_DayReport - join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId - where y.ProjectState == Const.ProjectState_1 - select x; - if (datetime1.HasValue) + var getAllPersonInOutList = from x in Funs.DB.SitePerson_PersonInOutNumber + where x.ProjectId == projectId.ToString() + select x; + if (getAllPersonInOutList.Count() > 0) { - getD1 = getD1.Where(x => x.CompileDate >= datetime1); - } - if (datetime2.HasValue) - { - getD1 = getD1.Where(x => x.CompileDate <= datetime2); - } - var getC = from x in Funs.DB.SitePerson_DayReportDetail - join y in getD1 on x.DayReportId equals y.DayReportId - where y.ProjectId == projectId.ToString() - select x; - if (getC.Count() > 0) - { - cout1 = getC.Sum(x => x.PersonWorkTime ?? 0); + if (datetime1.HasValue) + { + getAllPersonInOutList = getAllPersonInOutList.Where(x => x.InOutDate >= datetime1); + } + if (datetime2.HasValue) + { + getAllPersonInOutList = getAllPersonInOutList.Where(x => x.InOutDate <= datetime2); + } + if (getAllPersonInOutList.Count() > 0) + { + cout1 = getAllPersonInOutList.Sum(x => x.WorkHours ?? 0); + } } } return cout1; @@ -206,11 +205,11 @@ namespace FineUIPro.Web.DataShow var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); var getD1 = from x in Funs.DB.Accident_AccidentHandle join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId - where y.ProjectState == Const.ProjectState_1 - select x; + where y.ProjectState == Const.ProjectState_1 && x.ProjectId == projectId.ToString() + select x; var getD2 = from x in Funs.DB.Accident_AccidentReport join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId - where y.ProjectState == Const.ProjectState_1 + where y.ProjectState == Const.ProjectState_1 && x.ProjectId == projectId.ToString() select x; if (datetime1.HasValue) { @@ -246,48 +245,53 @@ namespace FineUIPro.Web.DataShow { var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); - var getC1 = from x in Funs.DB.SitePerson_DayReport - join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId - where y.ProjectState == Const.ProjectState_1 - select x; + var getAllPersonInOutList = from x in Funs.DB.SitePerson_PersonInOutNumber + where x.ProjectId == projectId.ToString() + select x; + if (getAllPersonInOutList.Count() > 0) + { + if (datetime1.HasValue) + { + getAllPersonInOutList = getAllPersonInOutList.Where(x => x.InOutDate >= datetime1); + } + if (datetime2.HasValue) + { + getAllPersonInOutList = getAllPersonInOutList.Where(x => x.InOutDate <= datetime2); + } + if (getAllPersonInOutList.Count() > 0) + { + cout1 = getAllPersonInOutList.Sum(x => x.WorkHours ?? 0); + } + } var getD1 = from x in Funs.DB.Accident_AccidentHandle join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId - where y.ProjectState == Const.ProjectState_1 + where y.ProjectState == Const.ProjectState_1 && x.ProjectId == projectId.ToString() select x; var getD2 = from x in Funs.DB.Accident_AccidentReport join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId - where y.ProjectState == Const.ProjectState_1 + where y.ProjectState == Const.ProjectState_1 && x.ProjectId == projectId.ToString() select x; if (datetime1.HasValue) { - getC1 = getC1.Where(x => x.CompileDate >= datetime1); getD1 = getD1.Where(x => x.AccidentDate >= datetime1); getD2 = getD2.Where(x => x.CompileDate >= datetime1); } if (datetime2.HasValue) { - getC1 = getC1.Where(x => x.CompileDate <= datetime2); getD1 = getD1.Where(x => x.AccidentDate <= datetime2); getD2 = getD2.Where(x => x.CompileDate <= datetime2); } - var getC = from x in Funs.DB.SitePerson_DayReportDetail - join y in getC1 on x.DayReportId equals y.DayReportId - where y.ProjectId == projectId.ToString() - select x; - if (getC.Count() > 0) - { - cout1 = getC.Sum(x => x.PersonWorkTime ?? 0); - } + if (getD1.Count() > 0) { - cout1 = cout1 -getD1.Sum(x => x.WorkHoursLoss ?? 0); + cout1 = cout1 - getD1.Sum(x => x.WorkHoursLoss ?? 0); } if (getD2.Count() > 0) { - cout1 = cout1- getD2.Sum(x => x.WorkingHoursLoss ?? 0); + cout1 = cout1 - getD2.Sum(x => x.WorkingHoursLoss ?? 0); } } return cout1; diff --git a/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx b/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx index 54435244..08d4669e 100644 --- a/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx +++ b/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx @@ -13,7 +13,7 @@ + ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch"> - + diff --git a/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx.cs index 22fdd1bb..76d1c4e2 100644 --- a/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/WorkingHoursItem.aspx.cs @@ -27,6 +27,7 @@ namespace FineUIPro.Web.DataShow ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); // 绑定表格 BindGrid(); + this.Panel1.Title = "工时数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")"; } } @@ -35,19 +36,19 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"select DayReportId,CompileDate,ProjectId from SitePerson_DayReport WHERE 1=1 "; + string strSql = @"select PersonInOutNumberId as DayReportId,InOutDate as CompileDate,ProjectId,WorkHours from SitePerson_PersonInOutNumber WHERE 1=1 "; List listStr = new List(); strSql += " AND ProjectId = @ProjectId"; listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"])); if (!string.IsNullOrEmpty(txtStartTime.Text.Trim())) { - strSql += " AND CompileDate >= @StartTime"; + strSql += " AND InOutDate >= @StartTime"; listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim())); } if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim())) { - strSql += " AND CompileDate <= @EndTime"; + strSql += " AND InOutDate <= @EndTime"; listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim())); } diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index dda9e1ae..6b37a6a2 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -404,3 +404,3758 @@ IP地址:::1 出错时间:06/05/2023 09:22:57 + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\ZHGL\Person\ProjectPerson.aspx(67): error CS0103: 当前上下文中不存在名称“ConvertAgeByIdentityCard” +错误堆栈: + 在 System.Web.Compilation.BuildManager.PostProcessFoundBuildResult(BuildResult result, Boolean keyFromVPP, VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:06/06/2023 11:13:04 +出错文件:http://localhost:9733/ZHGL/Person/ProjectPerson.aspx +IP地址:::1 + +出错时间:06/06/2023 11:13:04 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157 +出错时间:06/06/2023 13:29:41 +出错时间:06/06/2023 13:29:41 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022 +出错时间:06/06/2023 13:29:41 +出错时间:06/06/2023 13:29:41 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918 +出错时间:06/06/2023 13:29:41 +出错时间:06/06/2023 13:29:41 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860 +出错时间:06/06/2023 13:29:41 +出错时间:06/06/2023 13:29:41 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/06/2023 17:27:14 +出错时间:06/06/2023 17:27:14 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/06/2023 17:27:59 +出错时间:06/06/2023 17:27:59 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/06/2023 17:28:29 +出错时间:06/06/2023 17:28:29 + + +错误信息开始=====> +错误类型:SqlException +错误信息:对象名 'Check_ProjectLeaderCheck' 无效。 +错误堆栈: + 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) + 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) + 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() + 在 System.Data.SqlClient.SqlDataReader.get_MetaData() + 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) + 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) + 在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + 在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) + 在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.DataShow.Check.BindGrid() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\DataShow\Check.aspx.cs:行号 97 + 在 FineUIPro.Web.DataShow.Check.TextBox_TextChanged(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\DataShow\Check.aspx.cs:行号 190 + 在 FineUIPro.RadioButtonList.OnSelectedIndexChanged(EventArgs e) + 在 (RadioButtonList , EventArgs ) + 在 FineUIPro.RadioButtonList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:06/07/2023 10:11:47 +出错文件:http://localhost:9733/DataShow/Check.aspx +IP地址:::1 +操作人员:JT + +出错时间:06/07/2023 10:11:47 + + +错误信息开始=====> +错误类型:SqlException +错误信息:对象名 'Check_ProjectLeaderCheck' 无效。 +错误堆栈: + 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) + 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) + 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() + 在 System.Data.SqlClient.SqlDataReader.get_MetaData() + 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) + 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) + 在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + 在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) + 在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.DataShow.Check.BindGrid() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\DataShow\Check.aspx.cs:行号 97 + 在 FineUIPro.Web.DataShow.Check.TextBox_TextChanged(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\DataShow\Check.aspx.cs:行号 190 + 在 FineUIPro.RadioButtonList.OnSelectedIndexChanged(EventArgs e) + 在 (RadioButtonList , EventArgs ) + 在 FineUIPro.RadioButtonList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:06/07/2023 10:12:14 +出错文件:http://localhost:9733/DataShow/Check.aspx +IP地址:::1 +操作人员:JT + +出错时间:06/07/2023 10:12:14 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 10:50:10 +出错时间:06/07/2023 10:50:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 10:50:10 +出错时间:06/07/2023 10:50:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 10:50:23 +出错时间:06/07/2023 10:50:23 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 10:50:23 +出错时间:06/07/2023 10:50:23 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 10:50:35 +出错时间:06/07/2023 10:50:35 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 10:50:35 +出错时间:06/07/2023 10:50:35 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 10:50:47 +出错时间:06/07/2023 10:50:47 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 10:50:47 +出错时间:06/07/2023 10:50:47 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEService.HSSEServiceClient.GetSupervise_SubUnitReportListToSUB() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14204 + 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2158 +出错时间:06/07/2023 13:11:15 +出错时间:06/07/2023 13:11:15 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckInfo_Table8ItemListToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14228 + 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2023 +出错时间:06/07/2023 13:11:15 +出错时间:06/07/2023 13:11:15 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckRectifyListToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14220 + 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1919 +出错时间:06/07/2023 13:11:15 +出错时间:06/07/2023 13:11:15 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEService.HSSEServiceClient.GetInformation_UrgeReportToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14020 + 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1861 +出错时间:06/07/2023 13:11:15 +出错时间:06/07/2023 13:11:15 + + +错误信息开始=====> +错误类型:HttpParseException +错误信息:标记包含重复的“LabelWidth”特性。 +错误堆栈: + 在 System.Web.UI.TemplateParser.ProcessException(Exception ex) + 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) + 在 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) +----错误类型:HttpException +----错误信息: +----标记包含重复的“LabelWidth”特性。 +----错误堆栈: + 在 System.Web.UI.TemplateParser.ProcessError(String message) + 在 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +出错时间:06/07/2023 16:48:39 +出错文件:http://localhost:9733/CQMS/Comprehensive/InspectionMachineEdit.aspx +IP地址:::1 + +出错时间:06/07/2023 16:48:39 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\DataShow\QualityProblem.aspx(58): error CS0103: 当前上下文中不存在名称“Count1” +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:06/07/2023 17:57:42 +出错文件:http://localhost:9733/DataShow/QualityProblem.aspx +IP地址:::1 + +出错时间:06/07/2023 17:57:42 + + +错误信息开始=====> +错误类型:SqlException +错误信息:列名 'isDelete' 无效。 +列名 'isDelete' 无效。 +错误堆栈: + 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) + 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) + 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() + 在 System.Data.SqlClient.SqlDataReader.get_MetaData() + 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) + 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) + 在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + 在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) + 在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.DataShow.QualityProblem.BindGrid() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\DataShow\QualityProblem.aspx.cs:行号 62 + 在 FineUIPro.Web.DataShow.QualityProblem.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\DataShow\QualityProblem.aspx.cs:行号 27 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 在 System.EventHandler.Invoke(Object sender, EventArgs e) + 在 System.Web.UI.Control.OnLoad(EventArgs e) + 在 System.Web.UI.Control.LoadRecursive() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:06/07/2023 18:00:02 +出错文件:http://localhost:9733/DataShow/QualityProblem.aspx +IP地址:::1 + +出错时间:06/07/2023 18:00:02 + + +错误信息开始=====> +错误类型:ViewStateException +错误信息:无效的视图状态。 + Client IP: ::1 + Port: 58394 + Referer: http://localhost:9733/indexProject.aspx?projectId=e9fe4b89-f62d-4b3a-a40c-57c87010aa92 + Path: /indexProject.aspx + User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 + ViewState: /wEPDwUKMTQyNzc3MjQ4NWQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFiIFBlBhbmVsMQUPUGFuZWwxJHRvcFBhbmVsBR1QYW5lbDEkdG9wUGFuZWwkQ29udGVudFBhbmVsMQUmUGFuZWwxJHRvcFBhbmVsJENvbnRlbnRQYW5lbDEkQnV0dG9uMjEFJVBhbmVsMSR0b3BQYW5lbCRDb250ZW50UGFuZWwxJEJ1dHRvbjMFJVBhbmVsMSR0b3BQYW5lbCRDb250ZW50UGFuZWwxJGJ0bkhTU0UFJVBhbmVsMSR0b3BQYW5lbCRDb250ZW50UGFuZWwxJGJ0bkpER0wFJVBhbmVsMSR0b3BQYW5lbCRDb250ZW50UGFuZWwxJGJ0bkhKR0wFJVBhbmVsMSR0b3BQYW5lbCRDb250ZW50UGFuZWwxJGJ0bkNMR0wFKFBhbmVsMSR0b3BQYW5lbCRDb250ZW50UGFuZWwxJGJ0blRlc3RSdW4FJlBhbmVsMSR0b3BQYW5lbCRDb250ZW50UGFuZWwxJGJ0blBHSlNYBSxQYW5lbDEkdG9wUGFuZWwkQ29udGVudFBhbmVsMSRidG5EaWdpdGFsU2l0ZQUpUGFuZWwxJHRvcFBhbmVsJENvbnRlbnRQYW5lbDEkYnRuUERpZ0RhdGEFKFBhbmVsMSR0b3BQYW5lbCRDb250ZW50UGFuZW... +错误堆栈: + +出错时间:06/07/2023 18:14:26 +出错文件:http://localhost:9733/indexProject.aspx?projectId=e9fe4b89-f62d-4b3a-a40c-57c87010aa92 +IP地址:::1 + +出错时间:06/07/2023 18:14:26 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:19 +出错时间:06/07/2023 18:32:19 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:27 +出错时间:06/07/2023 18:32:27 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:32:54 +出错时间:06/07/2023 18:32:54 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:10 +出错时间:06/07/2023 18:35:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:35:18 +出错时间:06/07/2023 18:35:18 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + + +错误信息开始=====> +错误类型:FormatException +错误信息:输入字符串的格式不正确。 +错误堆栈: + 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) + 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) + 在 System.Int32.Parse(String s) + 在 BLL.Funs.GetNewIntOrZero(String value) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Common\Funs.cs:行号 584 +出错时间:06/07/2023 18:39:10 +出错时间:06/07/2023 18:39:10 + diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/企业总部人员信息模版.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/企业总部人员信息模版.xls new file mode 100644 index 0000000000000000000000000000000000000000..c134cfd0613f25ded8611abde738ae3b5752c110 GIT binary patch literal 31232 zcmeG_2S5}@*K@}Khl+p{Q4o$IO?nZH1r&`MK@=+y#lj&diXswJh**e5QBmw6#)`ei zibkwRM1zVFJJ@@RiW=qq_jYgZ_V)Jf!(z9~DqSMrNV`SNWI zD+njFCOV`_W<00Ga{>0yG0?4uJN_ zz(1&I{t{6mNFw|tLtC^bBjB7w#)8JGA1sKj;+{u;AQ9t{kOJyRKF8DGhV6*O%U=Z< zRlSzrSqE?#x^#x#z&(i!BZDY8hSA86IMyRV0g_^rRh^=ke|H?6vpwknHBW__w<81L zIIubdSb5BVzX0M`CzOGer1f$rttQZ3cQS?yhrfZ8?mIy%#8NszOfrdw>k(Qgxd4CU zi}!AI`Q!auET@UGqbMjp(m>sC?|-~^*!Mri`R;$jRB>hfCmJg`!Y$py6VWpUdGA@ywZvhh)`q zbey7xY2|brFX?>z=PFwo&zzZZYH_)ojJ(X5$}m`NNC1;c>oX=N%WZzt08G2f*}T z0Q6ZM0dTC+0|3V&F#tGLNdv&~$}|8RpUeY5PHVy0;TQzVV!&%GA1WP@n371xacmP7 zKR79IbYg6>qW^{?&!0M<>uF`2vk>a< z{&sUa!0B>umY|4Iz~eX#b$zK!NQZft_pdJdKVy(bQ2>_=979fP0G@zt| z-XGFUspA$Z?|$mo3hdy`gf|lg^)7bAQ6TE3k1&|ZHu zUjg|>g^mcc!G{;Xn0r4q2`4|!A>?{v(TRhR6Mudo*sgkhcMbVP8t_*@?jT-y1Ta_N zlT!fq5g#7s7V7dKeX)l8CcOCxY01Ich%8~u1$U(VYI_HF2M6yKa1rG}UD}8m!F^}R zO6waTjp@hEU<1w&rdUj2Pj7a4h}no7KtynG>>L~_RJK5vWx+fuS^^o}BozB-Neg*Y zE{_sn?_p0xf}2u{g{U|TRsjdG+b>DnU7MSdOSY9q1*eZzcJnMx^3C5r?!4%1nA z7UaXC0Z}B=7>GzXc~mLMGu9znu|M;sgN>***@nKBj+RqXYC>MgfR-W@NDz-5)+-q} z@0U!%pNmJTeDwd#cmcMVB5?GH-Wh|)R#pEByoUz7n+Ck62E3I9yq5;Ny9RtC4fxs` z@S5b&MBk61gM$moP852u(SWDrQO{4yqmFmfK*vV|-k-wjf(xhamp4>v!GUf^xKnuT z83&A%{H4^`3C8zyejFsR@E{(I$Hgx>UILde*5cqf_ahE{RrN#L2@X&xJSRUcn5pKc z?FYI6hVMW^S}Ww#1z*ZnUtMtMe0ZFoQ}pMVm@KTlur?7{Pk|j$RDOk?>H8NaBz$_qg%=8+Yhq$i+XC99Aw?gTI4Qrx z%vR+3)Q9{6obIHWm;_6LB}9*IFEzX(|28^*8aKZj-%^fOrMN2LfINri>W_vvB}lCFXmKn@{H*377dD2!44BXsX|VR$4|FMxy0 zk1Bu*Tpv{c^{ur)8%`b2!{}(P1CE(>h%^@I!oUiKP7+DFm`en2w`veUYtc*ueOfh$ z;5wgXBIp3CK?LnhGZDNyszC&8K{F9_S=AtdcbsM-=->V$k>XJ8t%J_38bq|W4tnxx z5YgT`*iBS}i1yY&pH>Yb+FJ*o>{Nq@_SUghAp#NA`=7pdeEqby4nA8_N}`d7_SV70 zplT4&-a61bSBHr9){#_?i1yY2hg=;=R9lDZogILP(iNg7WqW6Vx)*a);mR!_6wCd* z_U3F{9U`(I?L?faLxgKs-1<8M5zY07-ihnQT@+lgpUNeAGPc5mXwH}*D?BYzdMqwi zR|QvUMFke)Rfwo_#pk57=~4v-64e3>*W*vwTzhhQu_i!7q`4Q<=V>~2b3&&^g>>;8 z4q<$1t4|R|>E5MlknY8c7YdyqGt4|;!UP#Z7@2W#1}q$8r$Q|roVrk6ke3z;jTD25 zjv1A$UcFjPsGy)AHKEuzMkvJ5q;VCD7M_h$AKQ3CcG}#SimC{uUcg7C0B}=ncy&vG zl^&L*sI>*7V_AkkQEhc1xK%)DZn;tpS4MZThq){wT&rjaM3h#6dQqt>Lxj&N*ve)k zX5*^g09>J3afC|Y7fM#VSW&Y--&DEopfw1kw2BOpp(>Pm`vfT3N26_Hf_DFjdnx{7 zcSt`rR(dk7JH*Wx)gYq1PiN-~(4uCA^AQ0Ke>cUF1<`QTs z0(kDAFOtSyzWrRLi`N3Gw5%~s29d9ccD}wmeC@UJr9C3WS63SQ;_4NCzV)>8_2c2| zq?NB9R7_r9J!$NN=U4gpnri3k&%@VED_?&lUwvup?ea(be9g4;4dCJHsg*D7lqfxm zp?#nH#?RMWJKv@}e0{a@rTrMi*FYNk;r>N_z81*WUyF6B+p{h3)mB2$zM|sLJ;k^9 z`PSFYm(QLZwDM)!b8+aMy?gliT59LZXV1=B`LgY~IJE56ety0UwDaY&=O$YDvhBGz zw7B3BKi`Jh`SRJbmsY-PdoB*$b@d)UUn}i=`Rv(GD_^!f7l*z-|06$NYvkMXqwHA% ze6^KO+Ox0U{2gU9U+^Zl-$~)08)@guXU~pW`LgZV*YD!O`TTrswDaY&XBVw}+4k(~ zclg2*e!jNa`SRJbyH>tzd-nC)zPym1uS7dvK701o%9m}=zJ58UL9lJ7bjo%GIYL9&hAg7X(&Lv_obtx7*AmNPD&7lR8bW>0 zjXsR3!zUhqN+89?N{VRtT#6&Siv^JC;b@Dp^GzASo%Pz z@EX@gxzJ+^Grd1tO!=!BSRl@NmLo@>Vv45t1tL^P&Ad- z0CviQq|0Y496wi_s9Hd10c0@+r{6d%LQUZ;o2fA_3Q$@@sWA~}9kkTSm{=vvKqZzV zG=g3Fxnr9r5QqHAGf!D+r8r9qU1jxn;( zF-8_ThO&60EH}UXd5-gdsZ#eLbHzA0p)^Gu1i}E|r%Y#C5LR7oL56VGgL{ab@kI}s z3g<=<)`lB}NoCUjIT;#8F#iEr&`ue>1aV}s1X+~njGMvAD%u6@2NAePL)(vEh7MSU zjVdW!9S|s_dsw($#JmMqQ?w!f3_Zx{$jPZE(^uqV+mSiERUsw<^{HKmDgjX=nOJQC z$lOs%j|kH_5JSZ5nN6Dpcr$(PWEPyADUBlFE2I&W?(?_?-rQcYMKD+xT z7x_n(sxy(&+g{I^~J2 z-+KnIdk*O2%zoER-Jh8Q9ZX^S5Vk)Ual2TuEjL{bzWAsJGW{LZdS*)hch6Xo* zzaG$+4ubv2Qh4(v8QwO+t1y5Vc-IBrglP`@aN?rh%p($!uTx_TaqO#x#%7mT{R&qVK?+jRvMPe0)O8N z{tgMm0E7&=BOvd|KDcA(UE|Oj?Ca8}$GJ$u9-v$20Zk&{v@j|x97X`RC1As>4_yw; zsO*k9)uY}^L#kBQfXM-4uFl{l$xH6)yQ#l-@8I6tWPO^jOYcw^1$o7K5vLvo&@{Z{ z^&{^kaFb;4970Um!mD(+32Cs{0stkVg9URz7KlCSEMTQzLf6hZA~UE5qV33}>HAIJ z!Id>A&lJvmLlQ?MOGhL}_ZT};I=Y`{>hOe(b50ID;%(f%GP7!O$*y0M_PMP7_4JBP zU!}XBHL|?5&12~7DgFjU*S~tSr|UkkN3w(Qpwo-T_uM@D=CZn$IluL|-?M*QW=#6c zwHsdk{=_xE%+05(&Sd9}FAZ|~mzDLt{lv`Mb#Y#g`%9a*w9HAE?Xc>KzT?>VbnA(? z8@4bl_&Rv%on0U{-}POm2i<)9wOM@Y$@PCdCGtBMHQ-gy1FyS!eSbCDxU0kc z8&MOE+I{f295Ku@XLMC*ezvEj=fd4T4!m=4QxF)53`U}=s#<+v&D{b}QBz38y-m?c z(uC1oo_L%x`xj7AovBYV4@^Fj-tFuW%f=~QtFuGAR;H5*mkDw9R+p_FUJftRtCcUF zvg&E&x>i-2XS}VLcUNMuWWC;z8zDg_<0?{G9h@+!D09`C#^S!IBfnWW{_@V~{aw$j zY3<8h>lh^0i(!yC2A2D_vh|Q?hf<+Y29fD>`iK z0*lE|!RY|_SU)*VI$Y|-I))7#F>r`935}ypaagS*664^C^yOb=Ukn_a@6vwI_LH0Q zUz3pBhHVO$o&Di*+3lN?15aN!JO5p0!$|jBeZ%R}Q=ZdyKTC68W3~2DN9$wm2^EFr zckZWJ7X3KW^m?Zgqr0U$oX^hOwDYRu!p3XC6!zNC( zgw6PcpFZM|-gfgRTx1TKAk;D#U|iD5(eL#yPi5o3ejSxxgI7K=3IkaKg zfHJ-pA<9eSs}dt(2-$F1Jl=XHtf8(9{3 zFsj0G7-~}X@YTKp<2wC9Mp{lf-D`o{sm~`IxaJzy zEBN)OIVrm@Yz&A>%dC1Zsd!VDHRlp;Z|}20FUHoY_M2Ciz8pO4*deRzV}bRb%{<*} zcmADn!xJ~kES`PXuxaNvGXj?_I`eXXU{j+@Pw$p?J~3rSBd@eZZeymf_Z#Ez`ckz%{=y-ISQ=^dKipoQ7b znRchlin^AB?wnldSLeRZn#y;_c5jJp83NGi>zD7}oG~h#ZEG9!?%LTTizns&>pjz6 zy>dP{;jP`f#}|8VS(-6>i!Ptv7}Vq&pS;txtaXMP-CsJrQTgKrv8|(~?m3?C zylncLjKDl2>qz}=i`*Vmr1^ERF892<@knMF2@KdWJ#*?g{}+Ds&$*4Ty%}Qr)U!*Y zve$VH%px8*T%7r>!yTI=>kgZA`nK)3S+>SE&OB+odRD)$;$8OKGR=I_z4TD&u(@`P znosnP{xQV#*~wyO$(~EwPCaQ=T2Z{_Rnz9lbFz&Wjh$j!@6MvhOBK zgPA=anI?Ig4m2;zsnxQP$?44)-ix#=*?7X_J)F4c@G2!yNs$B_pfB)6u(YT*(U2NWMWB8E| zwL8CTx-@URX#1d1Gsg8@e!bVd@}TJD;U{mO+;Z}_h&nyL44k~{ep8Rs8!6?lvr=zd z30$6KSeiAb@7d&vdb?JPvegUF9c|J0_C@y@72WRoZ%rCGry$m_UQ~K;&z93h=`~8b z>i>35aiEliJ={L&XgvE90|Q` zR}gWk=;woHMLYU05H1~>+}gEQnVn^ok88oK&BKaf+P3XECPmur^68)MtezKcZZbJF zZOZ2fZm)gzL{D|Q=a*OSN$b$|C0-*3uh}#_@5+r_=YFr27MDM278{xMThfN^Kc0xG z9k~3i0gj>V4yN5r#Kqi`~WrO*}d6{I=J@;)TbB4&S>z&ZuoZ zdTrat&?7%(SR5{`JI!LxtIT+@+n#+*WxCBvWy4QLHgwul5xVYm{1j23zvk}s`r3N?af7bK229`B zY-WS3-n*vtT5WB1w3U6-$PGKqhqbvmKi1AVbyT;(mhM(7>TI5uU8VE8t-0Nf=#ZD+ ze0J;iu6<3?&XydNBuLgTOt?8QdE$?g9pZ8yEi-fq`}x8AuXbM=dMq~Gb$IC&-Nx5V zJxk_(UwFN~f6B$&y^nIE_JYmt&Lys%3^K4!^JH9KorxX38(yjQ=pm&E#j zVSTUed8-VZ-i&MP{jx;Ibba>w1uG->y`^W^+%bsZnd~2SL9b>79k(;5ccaH6RDZ|n zpylI}uv&+`&8AdN`bwObcy6EZ9H*<(N;Z}1Ot}?c*fhwo+oQ*Zo885pQwRREI6i;j z_eG|IeXse%t#2s)?Ed^wOAZa+^JrFZghiKcFSdx;I$+YQ#K6bqL*{gL33GCcaPjn6 zlvLOGi=5n&={??NY;Lx4cCTCZEA!f%$S>(wIVOGC^X~*{#~cp~G9G`PG+5AeiEPJ* zW(~g`;$>^muc}*{(HApyT~-_~E_e8DeW>W?zWeqay$%(lhhGAr2RvTaG**RdtiUsJ z?b=zD0CxnZEZqe3$r{gb3vx$9%7SJvZdMy&u+-0`#2ua}DV^b?L=9HBG`L2fq_G8d zEU=}~ViH|D>*8(=m@4X$eo*`M)EmCv!Sv}n)`S5PNEYC-SU4<&ndui#ja6Pett~Xe zWGdivY%#3k{uYBT@xqh}CM!aiBpOlICe(Dz7^Wfb*F8TQHmGY*G=+Dg@VG!r$RrAr zK}}U?nvG%U3qB(vmZYzu4FQmdkS@QQsllDORKn3gI*hH1CN>i{D9O^Tbe@m_95*wrF}Xcxhn%5Q^hG$Yp(u(Y5?s4_fpk_ z8V&Gi09Voe8v&jR{{uoQ^+~KY(CfrQ|AU`-_>@5V-i(Y4AVR-sQu`yU5y_|SkVXcLI3Dax&FP^66pUmCu0ghM%BwLiYxnsFk{Nq>u! zPaUE%`u|&0=ASGCzMV}4K@8l40=y9w|GcJ6X^j+P+bAkY2qpfj2u-@821C;Gff0jt6h7BOwGAQ z12r0`(Ljv`YBW%zff^0eXrM*|)z!csALv$>LruQFxdw3Ip(fO5;1e`}UW8u2{RARd zROyaBeRUc3&Sqt0eWE}$#s5VbP+Hf&s8YODX-RJ23RF#~(Ljv`{%0Ea@B5q8!g6yq z{25i{lUm^NXHc%8QKNwx4g7f;SWfKWSra~M!#^QB?!^bb7|Mf~vw-A^odD=K-%%bGN0z+jwY%U~2jg)cR zvsqxJjOzhqH&%XqctEzkt}-3O6%>f&PZWjt{cGk4B348!r1#&5VP7ScBru|I7-4W3 zf)3;Zwd<3RHdH1$CV&{`qhmsd;j=e7rb9xg8qqNkX$Q4n(sW5%r~?zzgL0@FI;TFQ z;c)9Gcz*|Jw}-#asUu#shqN+~YdfTv!Oxns7S z?w_S?Tm;n@zzgUYlr|2ZbNFL6u4ZF2Wjs=?L`8$)h^>S{y_JM?E78f=_!#~Rt>h3_ z(@I3{31}tb@vm$pCD)p(Ptt%cIMzfmn0oVCO6}eHxZfje22KE-922S|40a)D^4n7Y zZaxv-`W{Kb;jQqY)hVu$2Y&&I;f-gNL=6$#_@AgD?T?^8mj55&p{>lP@Sg&N@h1sz zZ4TcC-wA*N3+`{E(VJoGP_HgSvc|Iw^kf;2O;Z$5B|MgFKGc_||#n?%`dN5@W^;PHsCUJ|U);G)bij*xbI} z0lpqSKAt|F-kv_*K7RP!5Gn}ZCk1ujeH7Fo_qR(OAcyid;KE~L;|ELWpMsP4dVBjx m2F@Y%}=O0E{2-r{X-Rs(UsgFPm>4Me+H&9{vxv>6RG) literal 0 HcmV?d00001 diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/分支机构人员信息模版.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/分支机构人员信息模版.xls new file mode 100644 index 0000000000000000000000000000000000000000..f48a7a303fd6f7af0e72a5c7ab134346565792d2 GIT binary patch literal 26624 zcmeG_2UrwIv%Sl*EGhyDh=Q;L5s(}N&j1Q$5ClXyQAAk;MNz~IihBygz*Rzen@+%ye~iRdscBb(r3v^jG7GHM^Ts z5>9AGbV#*Sp9ooS9z0{Df)OEnc))bER4S!`gur8M_%G7HSCG|H)`kMOdqKoD*Mlg6 zs1LCY#JUjcK{S9^AEF^dFacr=u>r(}5KSPOLNtTe2%Gvz5ZxfUL-c@%w#UT(BDMc*M2#S+@Rts4 z(UA;?dm0%JTCI67Bf9cFkN!X`!Yd(#)RlC?+vGpign7REjYn3te2jM;fMw~@2)%)O z8W~CkQgRHXf!}a#K=?c)#VE8UMG=2VG>zGjL_y8RLCu3nJY3^zLV$&10{nT9#yX)4 ztSqgMLufUD_9Dq>G7SFWDcyI4R!F3Df{=8Q49~;0P;vzR$QS!=P5EPgE|Jkh*-;df zA8DX&xcwjd7rXysT3!D~IQDlwR%-VM#_?=Zi>-=6kQ>c%KJR4q9Ed2BmpAM zRWcyrd}Ss?oS!U$h@3Wov%@(Emc@Y2SUyBDJatSeoyNIMX!4-6)KRI4>Ee##21!yV zeq_0&*Wu>{ygipQBMBV3s>{pEQ}T|h5EaE+7S#eT@K6~6j26n zoTs5q!Xct>?gJ6$V5kf9-6;^UPU#R)7pNPYr(ypmLS3@i`hs3DXh#T2sf7D3!3j!N z_W&oBj36*3(CQKYXF>-`hIk(8p%5z87Mv6hU^-v{e5grdN;(+*A-^GY-AUmdp{{Mg z4n9u)IC)_25_^BZK;87=2U2)*sH-h?tq)foIY5=UK|wrW7W*3TrIT|}o#Y1?UuXA? z3`6)WNQ=ln57$KhXAOMMX@D!q!&jD5pOKRVPlB0>KRJRbBR{adtG>v$jt01o26!8_a2^Rz z%a@RLYVid!{V3}}seNT~S_#ZyE(Sf-c7v^*i=CZEYj}utr5>#WO`$)+>Pnv1H$sxo zkBwjjP7;=041${nyF8?<1a_ceaC~eG4iyT`4_05WCX5pUqO+J{A17`tOUmR?0Bl`t zsYGC$*h=6Ai#J%l#fjPFoW<-y&SIq!0kFjTPMH}9p&&0SsssZ90Ral8En%ey>sdKd z23O8k0pOHu0=5FP*I0YHl1{B-9c9n4PF4bI&^N4O6}gnMlu*Q=aaiWcP>>Ic1|*S8 zGaw@7;3!j)A=V?iaGdj?gO#8z*^NG!PF8>!VR$bETJlgRMmP>+@1@|>-!U2gS~yZw zNB{paoQG{D4;+1>*Tx{QR@T29?y3RqtO4$(0dAoI?ydpuq55%c87EB?yo{Pt z!MvZw$B88i4rnwSCz>+27#?8`#({JCBW|Km_;UTwc7l^P3eLfY9?ik0?FTpDWPIac z*pbVr3%*oceRaX1tApdjnWD4E*m!B(rFDtGjM5uU7HN25;&JQa)$@?#u*z2iUY+&NVk^?T#mn+#?Rp5%iwKfa5+BG2dnev!ciW8bMQeNfZNck4@}7D z;D#`d*s92h7!yA6G7Kh10v{QG!sET_P-J-3DMp<=rn3T zM0@L?hp7P(?X83Es0Ku|w+{NQ8W7RmI_MB;Kty}%SSk^LgmV9<`;M2l_SV67R0>Hn z64Bl|xT#bFBHCLAM)R5w(cU`Zni0|7I^e)-B8hVAaJ{n~5K*{7^rUR>%v1GZ_DWp2 z1^6PFpV!`;&1ynK8latsLrsWq4U1d<=0HSq{b6+CdT~cNR~)DEh)~K_7$40UGo(cq zr3#P5j(Hzy2g zRLB&~=McuXzj_p5lp6;%>SwScEm0pOQE3ZC$I>jGyxOWneC0$m>JBrs_s^C!Bck1B`_+tycAxEEGa}l3cB`5Z z(eAUqs~HhxpUrhat>r|}i1H*Hn_w(k`aF--#N0mH28t^BELyFSB{D?R^;vdTVC;zv zt9kd}3e}b))EMS|TsN z2)k#`9x0L4g3%xalet4igKQY%VB|31k|}cJ@NN%K9>rUS@G2l7_j;PG5Ib|CufGFci+5aX;a0pEM6cAgNWkLfhVw%)`wke%_Y!_ z@!%bWo7}LMvak zJ(q-(6y8wJw~2PX>g?HFD_^!fmxS!U{X{)q3+;T>*|WD+zHECg3HfsMXZ3t7k#Eay zvS%^y)mB1b&tBe(_mU7xTgW$nqt61mEIof|%PDUJ=R2`H=3-yq z(%|cXZuDS<6gK53R01hBQ&2?9=TbD5Q>3k214U`TrouZiiVg~jXwzJZ4dfJQ`_({^ z?!bIX#^wr&Xszy?S~rwaM9Wmw9L&n};E*_+F?-o>fe7smn}QBJo&_9TeA$oj9J;ug zg>4d)3ZHQ=Mdmp`ZCM0bxCw^k5Em^Etf!SP`tcYnC2hiIo}a>Vc?;)fap{ zD4N36htv5W>6+O~CoT}BDi`3J0a?t!#UM_LP*b?(V`_{W2$a@PYRtqH3N5uFB~r@M zS4u798^SLGbP2C8>EYmBkwHD%BrOn)=19>9_$l()vf%a%r9r5Qd}v{0!9}N#(jdx0 zrx;o26eA0rLRmaemis^cGQatN84{Pl3q-g$p)^HZczj>rr^shp5LR7gK?cz4!966- z?iNK;;dB&!UFaxGE}I6($;+J3yV zbigvKlu7C8fIvZ!p<%*^MN6=zXhS|(Lcp}=U<##ra!j@znG#<(%ED7!+65^S5HyvF zR2G0tk5YI3UD^x4w_c$*m>s%kSx-%pi3x=k+qW-9dA z!#^P_3u4sM_gAHlPLxaENrgUpm4I5aDAIgJW zE?M8xCvA|0?xfzbx3dk}EI( zEAS-cm-!1s{goSnUk56HIk<(z3bZV}s51Gqq>Rf1W zWB7}Lv2-AuftJ9pZPMWvPWTiGF#&#GgTKCM1!sJc$r$*pO*#uB1Ymt57~!5M5t7Ixi6q?ATb5HEzhj$%Q)SBT8X3YJ{-2#v0qkachZdmSqe%jJN- zkA}Y!JP|}f20!AFFXSq9${V+9VKg}0qfgY87=tL#ZSw&wBH*?(HZ%-o0C;?0>)fwB zPR#xgi8>X6Ct?E3p)lKb^zGT)ELq9@eYf}b=pERbo2^HebnG1hvmp0Gcj6GG4^5+% zyk5+c6b)IuU{K&@N#V4Li0p@7_Tky8BzV7b4DN$OW)K;{>BH)DYKh3T-V#<0Lc_c3 z2uz@=2(}?pXB}zy8J;XbzYXEuHz;*@x@35IT-5jxl2QHK#tlo^HvjyPQyxYgKV(-= zE8YKF+F{2Hzg=A0b!?`~Wkd4^yIqIOo9?4ue0S`NgW-oouIYA011~P0*lWkU`>X4l zFZ?6wX|MiC*$J8VH*J0Q=S!!8a%azQooUUtz0+UVzr4Kn!cCCK> z=cju1SNj znfqg5-`@@ZRvrZ;~yR09sqVEg~_V2sy1BP z__z>M)Dm*>$Xi^RBxRJl8(yc+`xR7FZ^ooQ5DlBEluYdJnbKB}2vp-cXdMq|uu|;_5UQodKq{=aEk58UjoV|WyGg04h zBYs#n@#em`BjK0UwYlJFv7yU;kHrlPXI>9G60xI0!lh!P%iTKO^ciSBdE@+%apl&_ zRyD3@8FJ;lSwy+tfF1KT6-)P?@+esqc4G2Qmxmn%!~GV8BtICqW|RB<$fLQNBwNa? zO7|W7bnUC!iVhvW#B3T=a27;7C6JyZ876UOT|?uC#}AgIp>fnJ39WNVY!q0Txn^wc zb-zIcjvWW?IlrTziUj2~X+t=c%%`2DN{SVm>X*;`f z?=bGj+myqS!BD!cr}LO^(~WX}ayu#_OSD zuB4QOF24PuWoiDLJvY}{9o>7UvEQmU=c*iTTMU`krOV8z2gM`rXJvKUetJX3ia=wN z&2du(PfQ$>H@Zs)JEPLJ_TE*$zLHLyR25rL?GgVZSJZXG+pDXg2bK}JA z_{qs_10yQaa~g+rZN1F6aqQiU4?hhZ7j(wnMs#gsn$Ce~eKw~I8Xxn6N6tgjRr5_A zImFucIk9!-k|Mq}@Ah=pon=FYp4ZP$&Wgw**IO^tH|V-6Cii#G)jv6J*6ZLPT;Vu! zmnbQ=-}jrZ4o$rJarKVfX$}P;tAk2z@Lo6hW1Y?TP5jflqC76uAM&V?OKShVXDvS2 z=J$x{8&mFgJfq*S0U5gnj+>Pf<+c5T#rCZ?n`P<@7-C%h{Qcph6T1FNMwm~%7`?># zLZ`_`?>Hqz2Ud-oKjy%-ZN9M?+11acmTd2_@k+|WJ$=>+6Ra)jetdu9`$0p`oUq6} z zcw%wm)+WDX+gvay4lfPaH|>LWy{DcVKYTuOU}s#LAc$=zz5DXg!KiPc#{d(`6t1=!Hop-K&{HopOr$u331G{WE6zm=_`SbZdHo71G z_^~{7)wqhj{CQhm+l0;xK2U6Y@bk(e;6~8x5 zY!^G@;Ms!at7m=8^2;~0jM3Y@%=uYmhIbFk3b)7GPGy%9Ki{3RvS(cJdF$Qiit}*m z`$5*P+1DeObNh`=c0Bl?VfM?& zvJ+)P7uYmyHN_|H=b(nK&zCe8AH1>q!ppX0l_eYBw``R@Ki6p4`03US9xZz#T;-hi zu}l4tC$|WXXZL#1FwLW3ylMHuI&GR7pY53%vi{xnLw138XI)9{ko~40bLoW!jhsx{ zzP@xMyVXwH1E1Rao$dPQRQ;qTy?4JV))Dp0sXF-f#MnbCZ9X^sl658WcILbWMYjhx znp)tK7Q8}l=Bnj&=DDXDy*&MDz*&c7%ba!g-QHZLA1d9Ja`SWb{*=dm{$}=K!m$U} zTlL%)cIs>0?(bTz%AY9MGjQbW34Pbxjeb%Q5Vt1m{KNA*&;Joouh;i})Am1Y={oM- zn2M^LarbWdt;sPc%bDNza(ZQh{cA^B3w?D*nKgTO-DP%V&&NKy(nicLOf+Z^n;F=v z&CHR)rWv<=KFu%b+PQ%w_N4LUdJ~g}=8vcoUPW${b#B-<$UeFtBV|VK_ajE~or=vj z+m5PmHQzpj|5&nrf^YLWhrgO8j&?0Obm;1wr2IDD-Rib@-;Wp8G!5y$ML2DP@0z0a zrH!X7F0ZiP8FQ*w&)e(Tm;>#cZ>`<_eVe#hvlDWP>_5!EHt|yD(f8NeMw^*jn(*6z z(xPJTZPAt2E+^d0x;Z{CN>c8h-LLYf-CWC9FbmD|N9Gz6SF$x z?VF}=xuVjuxbS(zfyK)@jxaEFjz3jhlF%}y-G{`j;U%F{zl)vOr@-CuMcI^)F8k(4 zQi4u}JhUl{xKRAd@ymj}{g?1p4M}h36kTp(UhU~rICsa;;)D(zdW{|<3BGyp*rN@L z!c2{)jmwzcDaE3R7ygMcIe(;W zjr{psLS4T#-~Te;j`O`K!~0*Klh&yBne|_qZH_RwFJ10DAz;e+nOApL1&WrQ<=g$_ z^m|ra(@~o`#DttWmSuLbto}^1gYUDGMa~Bgx0LF(Dw7Vo7}LaIdu7Pxs^sZ{?5|zU zOwDcU*xljtMRD}6AKbbxcsM;IxYy~$%S|T+*Vngr*5qLRhbnT$=vn@X2a>{y9%ujY z=c>V_j+aAw_}6l+j+ zr{^OSgf&3R<|mju5xLEX zKejx%VChfA4F`GM@l4v%MD*R$#Uodo7@b)VZmCznc!8-`z3P z!9K##&2w2={pQ^k=9SKh`joZ9f8D(32e#|-+n*~a?ebxC=IS>qc^PNyj}A1Nc$G9> z623yZ_p5)C9|yZzoAs;i*?!dZY+c8-XG<#VR&EIq{L=UE;nR1aV)XQj$9ILd^_u3Y zfW``HX0GAgl?iZXaEj6`K%cDn9Je5MMx-cc0`q2eBXHHvrNo_{C@5W0M~RxOaA|Oj zKtW?Cta#YcXfcWK?z(t52Ue51q#x9N3-!a}m9WBE$yzW#2FU?f4hx2*5SjixtdY|1 zVe9fuFq;avV(SA7?#mJQ+hSOC!J>r^>qtZD*_c|<8No8-%jP$iLkETj#8Gf(3XXfY zgiNI%S=3U6rr8X3$KdNGyeW`#0+uoKS5&4^*wd-2gB<%wKy%i!qx|`GfD`LEl(?C~ z@0VfyItachkxE8EOoVl;7}mLI0L3qTh#{s@kYM^V9kej4D^H*!yhXxIblmZ0-1=li zT^~^bJQ>1oX|d*g_;`w-J-mtj*9B}F40uOv;T^Z_I(Lm!ViVl8M=x7)j@awC7zgy5 zI0?`+20Zjd?=WaYsm=I5t^vlbYEsQ}fD{=T)eUit$U!m@_VN9}$~(c`6Rz#y)KN#+ z5%LC@E5u;fVex|}e}Hs^KUcu>1Gqn6`;j0>dBbitrZRzIM90YBkPy;qcygL#6h4K= zkC3EACQp!%_C6#mEg3c{;?t8;hm-KIh^UD6U86{ZWK?R(XbJ|8VI%O#lLV!vq^5tASb# z)M}t68dw9LBGHFE3f$?$?+o_g_rdK)2o(X$ok#LS4iM?Ix-0JE(xDg75W#*A9%+Hy z5;5)%!%yfSjr6nh4dDdz39==05247=C+FhyrwocR)ciuXJH02OaLY@hkMB4Eikp0vffk1%ZuTVQdoDF;b zvz1!01ALd_hzw>GgDr5}nbrx`_U3@rCNQN! zY}DWRtpWA{d=EkQ0RdE>2WNdTDEa`Lod0WmK*i>0%6O$(iAn~-6%U(E=zEoS@4xMP^#0%_&9y>A@_e**a3#(8{lDyiOGW`^ryhZULGFaVwuP|zvz&h dnCK73z6qf|74Ak=-OZo8Yqe)2#pmyO`5y&p2!H?p literal 0 HcmV?d00001 diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index c232391f..44cad670 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -232,6 +232,8 @@ + + @@ -316,6 +318,7 @@ + @@ -768,6 +771,9 @@ + + + @@ -892,10 +898,13 @@ + + + @@ -905,6 +914,10 @@ + + + + @@ -1074,6 +1087,9 @@ + + + @@ -1693,6 +1709,13 @@ + + + + + + + @@ -1762,6 +1785,12 @@ + + + + + + @@ -1771,6 +1800,15 @@ + + + + + + + + + @@ -6157,6 +6195,20 @@ RectificationMeasureEdit.aspx + + RiskLevel.aspx + ASPXCodeBehind + + + RiskLevel.aspx + + + RiskLevelEdit.aspx + ASPXCodeBehind + + + RiskLevelEdit.aspx + RulesRegulationsType.aspx ASPXCodeBehind @@ -6591,6 +6643,13 @@ ShowQRImage.aspx + + UnitProjectTControl.ascx + ASPXCodeBehind + + + UnitProjectTControl.ascx + ProjectSysSet.aspx ASPXCodeBehind @@ -9758,6 +9817,27 @@ PauseNoticeView.aspx + + ProjectLeaderCheck.aspx + ASPXCodeBehind + + + ProjectLeaderCheck.aspx + + + ProjectLeaderCheckEdit.aspx + ASPXCodeBehind + + + ProjectLeaderCheckEdit.aspx + + + ProjectLeaderCheckView.aspx + ASPXCodeBehind + + + ProjectLeaderCheckView.aspx + PunishNotice.aspx ASPXCodeBehind @@ -10626,6 +10706,20 @@ EnvironmentalRiskListView.aspx + + HazardInfo.aspx + ASPXCodeBehind + + + HazardInfo.aspx + + + HazardInfoEdit.aspx + ASPXCodeBehind + + + HazardInfoEdit.aspx + HazardList.aspx ASPXCodeBehind @@ -10654,6 +10748,13 @@ HazardPrompt.aspx + + HazardReEvaluator.aspx + ASPXCodeBehind + + + HazardReEvaluator.aspx + HazardTemplate.aspx ASPXCodeBehind @@ -10717,6 +10818,34 @@ ResponseItem.aspx + + RiskControl.aspx + ASPXCodeBehind + + + RiskControl.aspx + + + RoutingInspection.aspx + ASPXCodeBehind + + + RoutingInspection.aspx + + + RoutingInspectionEdit.aspx + ASPXCodeBehind + + + RoutingInspectionEdit.aspx + + + RoutingInspectionView.aspx + ASPXCodeBehind + + + RoutingInspectionView.aspx + SetToolTipTime.aspx ASPXCodeBehind @@ -11900,6 +12029,27 @@ MonthMeetingView.aspx + + SafetyLeaderGroupMeeting.aspx + ASPXCodeBehind + + + SafetyLeaderGroupMeeting.aspx + + + SafetyLeaderGroupMeetingEdit.aspx + ASPXCodeBehind + + + SafetyLeaderGroupMeetingEdit.aspx + + + SafetyLeaderGroupMeetingView.aspx + ASPXCodeBehind + + + SafetyLeaderGroupMeetingView.aspx + SpecialMeeting.aspx ASPXCodeBehind @@ -15505,6 +15655,55 @@ SYHSEData_SYHSEEdit.aspx + + DrillRecordList.aspx + ASPXCodeBehind + + + DrillRecordList.aspx + + + DrillRecordListEdit.aspx + ASPXCodeBehind + + + DrillRecordListEdit.aspx + + + DrillRecordListView.aspx + ASPXCodeBehind + + + DrillRecordListView.aspx + + + EmergencyList.aspx + ASPXCodeBehind + + + EmergencyList.aspx + + + EmergencyListEdit.aspx + ASPXCodeBehind + + + EmergencyListEdit.aspx + + + EmergencyListView.aspx + ASPXCodeBehind + + + EmergencyListView.aspx + + + ServerEmergencySupply.aspx + ASPXCodeBehind + + + ServerEmergencySupply.aspx + ArchitectureReport.aspx ASPXCodeBehind @@ -15988,6 +16187,48 @@ ReportRemind.aspx + + CompanySafetyMeeting.aspx + ASPXCodeBehind + + + CompanySafetyMeeting.aspx + + + CompanySafetyMeetingEdit.aspx + ASPXCodeBehind + + + CompanySafetyMeetingEdit.aspx + + + CompanySafetyMeetingView.aspx + ASPXCodeBehind + + + CompanySafetyMeetingView.aspx + + + CompanySpecialMeeting.aspx + ASPXCodeBehind + + + CompanySpecialMeeting.aspx + + + CompanySpecialMeetingEdit.aspx + ASPXCodeBehind + + + CompanySpecialMeetingEdit.aspx + + + CompanySpecialMeetingView.aspx + ASPXCodeBehind + + + CompanySpecialMeetingView.aspx + HazardDetection.aspx ASPXCodeBehind @@ -16051,6 +16292,69 @@ PhysicalExaminationView.aspx + + BranchPerson.aspx + ASPXCodeBehind + + + BranchPerson.aspx + + + BranchPersonEdit.aspx + ASPXCodeBehind + + + BranchPersonEdit.aspx + + + BranchPersonIn.aspx + ASPXCodeBehind + + + BranchPersonIn.aspx + + + BranchPersonView.aspx + ASPXCodeBehind + + + BranchPersonView.aspx + + + CompanyPerson.aspx + ASPXCodeBehind + + + CompanyPerson.aspx + + + CompanyPersonEdit.aspx + ASPXCodeBehind + + + CompanyPersonEdit.aspx + + + CompanyPersonIn.aspx + ASPXCodeBehind + + + CompanyPersonIn.aspx + + + CompanyPersonView.aspx + ASPXCodeBehind + + + CompanyPersonView.aspx + + + ProjectPerson.aspx + ASPXCodeBehind + + + ProjectPerson.aspx + AccidentAnalysis.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecord.aspx b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecord.aspx index b59b1d05..1f80d3b5 100644 --- a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecord.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecord.aspx @@ -35,10 +35,10 @@ - - @@ -91,10 +91,6 @@ - - diff --git a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecord.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecord.aspx.cs index 388f067d..46291fcf 100644 --- a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecord.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecord.aspx.cs @@ -193,7 +193,7 @@ namespace FineUIPro.Web.HSSE.Accident var accidentPersonRecord = BLL.AccidentPersonRecordService.GetAccidentPersonRecordById(id); if (accidentPersonRecord != null) { - if (this.btnMenuEdit.Hidden || accidentPersonRecord.States == BLL.Const.State_2) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 { PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AccidentPersonRecordView.aspx?AccidentPersonRecordId={0}", id, "查看 - "))); } @@ -225,7 +225,7 @@ namespace FineUIPro.Web.HSSE.Accident BLL.AccidentPersonRecordService.DeleteAccidentPersonRecordById(rowID); } } - + Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.AccidentEvent); this.BindGrid(); ShowNotify("删除数据成功!", MessageBoxIcon.Success); } diff --git a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx index 37687d78..b3f701fe 100644 --- a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx @@ -1,8 +1,6 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AccidentPersonRecordEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.Accident.AccidentPersonRecordEdit" ValidateRequest="false" %> -<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" - TagPrefix="uc1" %> @@ -46,6 +44,11 @@ + + + + + - - - - - - - @@ -93,13 +88,10 @@ - - - - + diff --git a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx.cs index e86881bc..69cd71cb 100644 --- a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx.cs @@ -92,6 +92,10 @@ namespace FineUIPro.Web.HSSE.Accident { this.drpInjury.SelectedValue = accidentPersonRecord.Injury; } + if (!string.IsNullOrEmpty(accidentPersonRecord.IsAttempt)&& accidentPersonRecord.IsAttempt=="1") + { + this.ckIsAttempt.Checked = true; + } this.txtInjuryPart.Text = accidentPersonRecord.InjuryPart; this.txtHssePersons.Text = accidentPersonRecord.HssePersons; this.txtInjuryResult.Text = accidentPersonRecord.InjuryResult; @@ -110,11 +114,6 @@ namespace FineUIPro.Web.HSSE.Accident // this.txtFileContents.Text = HttpUtility.HtmlDecode(codeTemplateRule.Template); //} } - ///初始化审核菜单 - this.ctlAuditFlow.MenuId = BLL.Const.ProjectAccidentPersonRecordMenuId; - this.ctlAuditFlow.DataId = this.AccidentPersonRecordId; - this.ctlAuditFlow.ProjectId = this.ProjectId; - this.ctlAuditFlow.UnitId = this.CurrUser.UnitId; } } #endregion @@ -124,13 +123,13 @@ namespace FineUIPro.Web.HSSE.Accident /// private void InitDropDownList() { - AccidentTypeService.InitAccidentTypeDropDownList(this.drpAccidentTypeId,true); + AccidentTypeService.InitAccidentTypeDropDownList(this.drpAccidentTypeId, true); UnitWorkService.InitUnitWorkDownList(this.drpWorkAreaId, this.ProjectId, true); PersonService.InitPersonByProjectUnitDropDownList(this.drpPersonId, this.ProjectId, string.Empty, true); BLL.ConstValue.InitConstValueDropDownList(this.drpInjury, ConstValue.Group_Accident, true); } - #region 保存、提交 + #region 保存 /// /// 保存按钮 /// @@ -157,37 +156,6 @@ namespace FineUIPro.Web.HSSE.Accident PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); } - /// - /// 提交按钮 - /// - /// - /// - protected void btnSubmit_Click(object sender, EventArgs e) - { - if (this.drpAccidentTypeId.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("请选择事故类别!", MessageBoxIcon.Warning); - return; - } - if (this.drpWorkAreaId.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("请选择单位工程!", MessageBoxIcon.Warning); - return; - } - if (this.drpPersonId.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("请选择人员姓名!", MessageBoxIcon.Warning); - return; - } - 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()); - } - /// /// 保存数据 /// @@ -218,7 +186,14 @@ namespace FineUIPro.Web.HSSE.Accident { accidentPersonRecord.Injury = this.drpInjury.SelectedValue; } - + if (this.ckIsAttempt.Checked==true) + { + accidentPersonRecord.IsAttempt = "1"; + } + else + { + accidentPersonRecord.IsAttempt = "0"; + } accidentPersonRecord.InjuryPart = this.txtInjuryPart.Text.Trim(); accidentPersonRecord.HssePersons = this.txtHssePersons.Text.Trim(); accidentPersonRecord.InjuryResult = this.txtInjuryResult.Text.Trim(); @@ -227,19 +202,7 @@ namespace FineUIPro.Web.HSSE.Accident accidentPersonRecord.FileContent = HttpUtility.HtmlEncode(this.txtFileContents.Text); accidentPersonRecord.CompileMan = this.CurrUser.UserId; accidentPersonRecord.CompileDate = DateTime.Now; - accidentPersonRecord.States = BLL.Const.State_0; - if (type == BLL.Const.BtnSubmit) - { - var flowOperate = Funs.DB.Sys_FlowOperate.FirstOrDefault(x => x.DataId == this.AccidentPersonRecordId && x.State == BLL.Const.State_2 && x.IsClosed == true); - if (flowOperate != null) - { - accidentPersonRecord.States = BLL.Const.State_2; - } - else - { - accidentPersonRecord.States = this.ctlAuditFlow.NextStep; - } - } + accidentPersonRecord.States = BLL.Const.State_2; if (!string.IsNullOrEmpty(this.AccidentPersonRecordId)) { accidentPersonRecord.AccidentPersonRecordId = this.AccidentPersonRecordId; @@ -253,8 +216,7 @@ namespace FineUIPro.Web.HSSE.Accident BLL.AccidentPersonRecordService.AddAccidentPersonRecord(accidentPersonRecord); BLL.LogService.AddSys_Log(this.CurrUser, string.Empty, this.AccidentPersonRecordId, BLL.Const.ProjectAccidentPersonRecordMenuId, Const.BtnAdd); } - ////保存流程审核数据 - this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.ProjectAccidentPersonRecordMenuId, this.AccidentPersonRecordId, (type == BLL.Const.BtnSubmit ? true : false), this.drpPersonId.SelectedText, "../Accident/AccidentPersonRecordView.aspx?AccidentPersonRecordId={0}"); + Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.AccidentEvent); } #endregion diff --git a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx.designer.cs index 5b5af4fe..317099c1 100644 --- a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordEdit.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HSSE.Accident { - - - public partial class AccidentPersonRecordEdit { - +namespace FineUIPro.Web.HSSE.Accident +{ + + + public partial class AccidentPersonRecordEdit + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// txtProjectName 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtProjectName; - + /// /// drpAccidentTypeId 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpAccidentTypeId; - + /// /// drpWorkAreaId 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpWorkAreaId; - + /// /// txtAccidentDate 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtAccidentDate; - + /// /// drpPersonId 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpPersonId; - + /// /// drpInjury 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpInjury; - + /// /// txtInjuryPart 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtInjuryPart; - + /// /// txtHssePersons 控件。 /// @@ -110,7 +112,16 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtHssePersons; - + + /// + /// ckIsAttempt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBox ckIsAttempt; + /// /// txtInjuryResult 控件。 /// @@ -119,7 +130,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextArea txtInjuryResult; - + /// /// txtPreventiveAction 控件。 /// @@ -128,7 +139,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextArea txtPreventiveAction; - + /// /// txtHandleOpinion 控件。 /// @@ -137,7 +148,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextArea txtHandleOpinion; - + /// /// txtFileContents 控件。 /// @@ -146,25 +157,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HtmlEditor txtFileContents; - - /// - /// ContentPanel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel1; - - /// - /// ctlAuditFlow 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow; - + /// /// Toolbar1 控件。 /// @@ -173,7 +166,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// lbTemp 控件。 /// @@ -182,7 +175,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbTemp; - + /// /// btnAttachUrl 控件。 /// @@ -191,7 +184,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnAttachUrl; - + /// /// ToolbarFill1 控件。 /// @@ -200,7 +193,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnSave 控件。 /// @@ -209,16 +202,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - - /// - /// btnSubmit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSubmit; - + /// /// btnClose 控件。 /// @@ -227,7 +211,7 @@ namespace FineUIPro.Web.HSSE.Accident { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnClose; - + /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx index 852de5c1..7f5b2d59 100644 --- a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx @@ -1,8 +1,6 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AccidentPersonRecordView.aspx.cs" Inherits="FineUIPro.Web.HSSE.Accident.AccidentPersonRecordView" %> -<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" - TagPrefix="uc1" %> @@ -70,14 +68,6 @@ - - - - - - - @@ -89,7 +79,7 @@ - + diff --git a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx.cs index 0914ca60..0c8aa255 100644 --- a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx.cs @@ -95,9 +95,6 @@ namespace FineUIPro.Web.HSSE.Accident this.txtFileContents.Text = HttpUtility.HtmlDecode(accidentPersonRecord.FileContent); } } - ///初始化审核菜单 - this.ctlAuditFlow.MenuId = BLL.Const.ProjectAccidentPersonRecordMenuId; - this.ctlAuditFlow.DataId = this.AccidentPersonRecordId; } } #endregion diff --git a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx.designer.cs index 3fb49464..eeaeb5c6 100644 --- a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentPersonRecordView.aspx.designer.cs @@ -147,24 +147,6 @@ namespace FineUIPro.Web.HSSE.Accident { /// protected global::FineUIPro.HtmlEditor txtFileContents; - /// - /// ContentPanel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel1; - - /// - /// ctlAuditFlow 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow; - /// /// Toolbar1 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentReport.aspx b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentReport.aspx index c2a7d382..292c461e 100644 --- a/SGGL/FineUIPro.Web/HSSE/Accident/AccidentReport.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Accident/AccidentReport.aspx @@ -27,9 +27,9 @@ - + - @@ -69,10 +69,6 @@ --%> - - @@ -91,7 +87,7 @@ -<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" - TagPrefix="uc1" %> @@ -11,13 +9,12 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheck.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheck.aspx.cs new file mode 100644 index 00000000..53d2d5cb --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheck.aspx.cs @@ -0,0 +1,326 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.HSSE.Check +{ + public partial class ProjectLeaderCheck : PageBase + { + #region 定义项 + /// + /// 主键 + /// + 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; + if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId) + { + this.ProjectId = Request.Params["projectId"]; + } + + ////权限按钮方法 + this.GetButtonPower(); + this.btnNew.OnClientClick = Window1.GetShowReference("ProjectLeaderCheckEdit.aspx") + "return false;"; + Funs.DropDownPageSize(this.ddlPageSize); + // 绑定表格 + this.BindGrid(); + } + } + /// + /// 绑定数据 + /// + private void BindGrid() + { + var getData = Check_ProjectLeaderCheckService.getListData(this.ProjectId, this.txtStartTime.Text, this.txtEndTime.Text, Grid1); + Grid1.RecordCount = Check_ProjectLeaderCheckService.count; + Grid1.DataSource = getData; + 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 meeting = BLL.Check_ProjectLeaderCheckService.GetProjectLeaderCheckById(id); + if (meeting != null) + { + if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectLeaderCheckView.aspx?ProjectLeaderCheckId={0}", id, "查看 - "))); + } + else + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectLeaderCheckEdit.aspx?ProjectLeaderCheckId={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 newCheckTwolevel = BLL.Check_ProjectLeaderCheckService.GetProjectLeaderCheckById(rowID); + if (newCheckTwolevel != null) + { + BLL.LogService.AddSys_Log(this.CurrUser, newCheckTwolevel.CheckCode, newCheckTwolevel.ProjectLeaderCheckId, BLL.Const.ProjectLeaderCheckMenuId, BLL.Const.BtnDelete); + BLL.Check_ProjectLeaderCheckService.DeleteProjectLeaderCheckById(rowID); + + } + } + Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.SupervisionAndInspection); + this.BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectLeaderCheckMenuId); + 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 + + #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, Encoding.UTF8) + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = Encoding.UTF8; + this.Grid1.PageSize = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridHtml(Grid1)); + Response.End(); + } + #endregion + + + /// + /// 导出方法 + /// + /// + /// + private string GetGridHtml(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) + { + string ID = row.DataKeys[0].ToString(); + string imageUrl = AttachFileService.getFileUrl(ID); + sb.Append(" "); + foreach (GridColumn column in grid.Columns) + { + string html = row.Values[column.ColumnIndex].ToString(); + if (column.ColumnID == "tfNumber" && (row.FindControl("lblNumber") as AspNet.Label) != null) + { + html = (row.FindControl("lblNumber") as AspNet.Label).Text; + } + if (column.ColumnID == "tfUnitName" && (row.FindControl("lbUnitName") as AspNet.Label) != null) + { + html = (row.FindControl("lbUnitName") as AspNet.Label).Text; + } + if (column.ColumnID == "tfName" && (row.FindControl("lbName") as AspNet.Label) != null) + { + html = (row.FindControl("lbName") as AspNet.Label).Text; + } + if (column.ColumnID == "tfImageUrl" && !string.IsNullOrEmpty(imageUrl)) + { + List list = Funs.GetStrListByStr(imageUrl, ','); + if (list.Count == 1) + { + html = ""; + } + else + { + foreach (var item in list) + { + html += ""; + } + } + } + + sb.AppendFormat("", html); + } + sb.Append(""); + } + sb.Append("
{0}
{0}
"); + + return sb.ToString(); + } + + protected void btnView_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectLeaderCheckView.aspx?ProjectLeaderCheckId={0}", Grid1.SelectedRowID, "查看 - "))); + } + + /// + /// 获取整改前图片(放于Img中) + /// + /// + /// + protected string ConvertImageUrlByImage(object CheckTwolevelId) + { + string url = string.Empty; + if (CheckTwolevelId != null) + { + var getdata = AttachFileService.getFileUrl(CheckTwolevelId.ToString()); + if (!string.IsNullOrEmpty(getdata)) + { + url = BLL.UploadAttachmentService.ShowImage("../../", getdata); + } + } + return url; + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheck.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheck.aspx.designer.cs new file mode 100644 index 00000000..53ed4664 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheck.aspx.designer.cs @@ -0,0 +1,222 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Check { + + + public partial class ProjectLeaderCheck { + + /// + /// 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; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// 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; + + /// + /// lbUnitName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbUnitName; + + /// + /// lbName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbName; + + /// + /// lbtnImageUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbtnImageUrl; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnView 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnView; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx new file mode 100644 index 00000000..50dc206f --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx @@ -0,0 +1,90 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectLeaderCheckEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.Check.ProjectLeaderCheckEdit" %> + + + + + + + 领导带班检查 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.cs new file mode 100644 index 00000000..a1a7310c --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.cs @@ -0,0 +1,204 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using BLL; + +namespace FineUIPro.Web.HSSE.Check +{ + public partial class ProjectLeaderCheckEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string ProjectLeaderCheckId + { + get + { + return (string)ViewState["ProjectLeaderCheckId"]; + } + set + { + ViewState["ProjectLeaderCheckId"] = value; + } + } + /// + /// 单位 ID + /// + public string UnitId + { + get + { + return (string)ViewState["UnitId"]; + } + set + { + ViewState["UnitId"] = value; + } + } + /// + /// 菜单 ID + /// + public string MenuId + { + get + { + return (string)ViewState["MenuId"]; + } + set + { + ViewState["MenuId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + List list = new List(); + List newList = new List(); + list.AddRange(BLL.UserService.GetProjectRoleUserListByProjectId(this.CurrUser.LoginProjectId, null)); + list.AddRange(BLL.UserService.GetProjectRoleUserListByProjectId(null, null)); + foreach (var item in list) + { + var user = newList.FirstOrDefault(x => x.UserId == item.UserId); + if (user == null) + { + newList.Add(item); + } + } + drpLeaderIds.DataValueField = "UserId"; + drpLeaderIds.DataTextField = "UserName"; + drpLeaderIds.DataSource = newList; + drpLeaderIds.DataBind(); + Funs.FineUIPleaseSelect(drpLeaderIds); + //UserService.InitFlowOperateControlUserDropDownList(this.drpLeaderIds, this.CurrUser.LoginProjectId, null, true); + UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnits, this.CurrUser.LoginProjectId, null, true); + this.ProjectLeaderCheckId = Request.Params["ProjectLeaderCheckId"]; + this.UnitId = Request.Params["UnitId"]; + this.MenuId = Const.ProjectLeaderCheckMenuId; + if (!string.IsNullOrEmpty(this.ProjectLeaderCheckId)) + { + var getProjectLeaderCheck = BLL.Check_ProjectLeaderCheckService.GetProjectLeaderCheckById(this.ProjectLeaderCheckId); + if (getProjectLeaderCheck != null) + { + if (!string.IsNullOrEmpty(getProjectLeaderCheck.UnitIds)) + { + this.drpUnits.SelectedValueArray = getProjectLeaderCheck.UnitIds.Split(','); + } + if (!string.IsNullOrEmpty(getProjectLeaderCheck.LeaderIds)) + { + this.drpLeaderIds.SelectedValueArray = getProjectLeaderCheck.LeaderIds.Split(','); + } + this.txtCheckCode.Text = getProjectLeaderCheck.CheckCode; + this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", getProjectLeaderCheck.CheckDate); + this.ckIsHoldMeet.Checked = getProjectLeaderCheck.IsHoldMeet.Value; + this.txtQuestionDef.Text = getProjectLeaderCheck.QuestionDef; + this.txtRequirement.Text = getProjectLeaderCheck.Requirement; + this.txtLeaderName.Text = getProjectLeaderCheck.LeaderNames; + } + } + else + { + ////自动生成编码 + this.txtCheckCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(this.MenuId, this.CurrUser.LoginProjectId, this.CurrUser.UnitId); + this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + } + } + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + this.SaveData(Const.BtnSubmit); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + /// + /// 保存数据 + /// + /// + private void SaveData(string type) + { + string unitIds = Funs.GetStringByArray(this.drpUnits.SelectedValueArray); + string LeaderIds = Funs.GetStringByArray(this.drpLeaderIds.SelectedValueArray); + if (string.IsNullOrEmpty(LeaderIds) && type == Const.BtnSubmit) + { + ShowNotify("请选择带班领导!", MessageBoxIcon.Warning); + return; + } + + Model.Check_ProjectLeaderCheck newProjectLeaderCheck = new Model.Check_ProjectLeaderCheck + { + ProjectId = this.CurrUser.LoginProjectId, + CheckCode = this.txtCheckCode.Text.Trim(), + CheckDate = Funs.GetNewDateTime(this.txtCheckDate.Text.Trim()), + UnitIds = unitIds, + LeaderIds = LeaderIds, + IsHoldMeet = this.ckIsHoldMeet.Checked, + QuestionDef = this.txtQuestionDef.Text.Trim(), + Requirement = this.txtRequirement.Text.Trim(), + LeaderNames = this.txtLeaderName.Text.Trim(), + }; + + if (!string.IsNullOrEmpty(this.ProjectLeaderCheckId)) + { + newProjectLeaderCheck.ProjectLeaderCheckId = this.ProjectLeaderCheckId; + BLL.Check_ProjectLeaderCheckService.UpdateProjectLeaderCheck(newProjectLeaderCheck); + BLL.LogService.AddSys_Log(this.CurrUser, newProjectLeaderCheck.CheckCode, newProjectLeaderCheck.ProjectLeaderCheckId, this.MenuId, BLL.Const.BtnModify); + } + else + { + this.ProjectLeaderCheckId = SQLHelper.GetNewID(); + newProjectLeaderCheck.ProjectLeaderCheckId = this.ProjectLeaderCheckId; + BLL.Check_ProjectLeaderCheckService.AddProjectLeaderCheck(newProjectLeaderCheck); + BLL.LogService.AddSys_Log(this.CurrUser, newProjectLeaderCheck.CheckCode, newProjectLeaderCheck.ProjectLeaderCheckId, this.MenuId, BLL.Const.BtnAdd); + } + Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.SupervisionAndInspection); + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.ProjectLeaderCheckId)) + { + SaveData(BLL.Const.BtnSave); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ProjectLeaderCheckAttachUrl&menuId={1}", ProjectLeaderCheckId, this.MenuId))); + } + #endregion + + protected void drpUnits_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpUnits.SelectedValueArray = Funs.RemoveDropDownListNull(this.drpUnits.SelectedValueArray); + } + + protected void drpLeaderIds_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpLeaderIds.SelectedValueArray = Funs.RemoveDropDownListNull(this.drpLeaderIds.SelectedValueArray); + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.designer.cs new file mode 100644 index 00000000..244e3e30 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckEdit.aspx.designer.cs @@ -0,0 +1,159 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Check { + + + public partial class ProjectLeaderCheckEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtCheckCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckCode; + + /// + /// txtCheckDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCheckDate; + + /// + /// drpUnits 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnits; + + /// + /// drpLeaderIds 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpLeaderIds; + + /// + /// txtLeaderName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtLeaderName; + + /// + /// ckIsHoldMeet 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBox ckIsHoldMeet; + + /// + /// txtQuestionDef 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtQuestionDef; + + /// + /// txtRequirement 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRequirement; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx new file mode 100644 index 00000000..c65377b0 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx @@ -0,0 +1,83 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectLeaderCheckView.aspx.cs" Inherits="FineUIPro.Web.HSSE.Check.ProjectLeaderCheckView" %> + + + + + + + 领导带班检查 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx.cs new file mode 100644 index 00000000..cf9ac93a --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using BLL; +using FineUIPro.Web.SysManage; + +namespace FineUIPro.Web.HSSE.Check +{ + public partial class ProjectLeaderCheckView : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string ProjectLeaderCheckId + { + get + { + return (string)ViewState["ProjectLeaderCheckId"]; + } + set + { + ViewState["ProjectLeaderCheckId"] = value; + } + } + /// + /// 单位 ID + /// + public string UnitId + { + get + { + return (string)ViewState["UnitId"]; + } + set + { + ViewState["UnitId"] = value; + } + } + /// + /// 菜单 ID + /// + public string MenuId + { + get + { + return (string)ViewState["MenuId"]; + } + set + { + ViewState["MenuId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.ProjectLeaderCheckId = Request.Params["ProjectLeaderCheckId"]; + this.UnitId = Request.Params["UnitId"]; + this.MenuId = Const.ProjectLeaderCheckMenuId; + if (!string.IsNullOrEmpty(this.ProjectLeaderCheckId)) + { + var getProjectLeaderCheck = BLL.Check_ProjectLeaderCheckService.GetProjectLeaderCheckById(this.ProjectLeaderCheckId); + if (getProjectLeaderCheck != null) + { + this.drpUnits.Text = UnitService.getUnitNamesUnitIds(getProjectLeaderCheck.UnitIds); + this.drpLeaderIds.Text = UserService.getUserNamesUserIds(getProjectLeaderCheck.LeaderIds); + this.txtCheckCode.Text = getProjectLeaderCheck.CheckCode; + this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", getProjectLeaderCheck.CheckDate); + this.ckIsHoldMeet.Checked = getProjectLeaderCheck.IsHoldMeet.Value; + this.txtQuestionDef.Text = getProjectLeaderCheck.QuestionDef; + this.txtRequirement.Text = getProjectLeaderCheck.Requirement; + this.txtLeaderName.Text = getProjectLeaderCheck.LeaderNames; + } + } + else + { + ////自动生成编码 + this.txtCheckCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(this.MenuId, this.CurrUser.LoginProjectId, this.CurrUser.UnitId); + this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + } + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&type=-1&path=FileUpload/ProjectLeaderCheckAttachUrl&menuId={1}", ProjectLeaderCheckId, this.MenuId))); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx.designer.cs new file mode 100644 index 00000000..b2cee276 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Check/ProjectLeaderCheckView.aspx.designer.cs @@ -0,0 +1,152 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Check +{ + + + public partial class ProjectLeaderCheckView + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtCheckCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckCode; + + /// + /// txtCheckDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCheckDate; + + /// + /// drpUnits 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox drpUnits; + + /// + /// drpLeaderIds 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox drpLeaderIds; + + /// + /// txtLeaderName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtLeaderName; + + /// + /// ckIsHoldMeet 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBox ckIsHoldMeet; + + /// + /// txtQuestionDef 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtQuestionDef; + + /// + /// txtRequirement 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRequirement; + + /// + /// 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/HSSE/Hazard/EnvironmentalRiskItemEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskItemEdit.aspx index eef48c18..8735b899 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskItemEdit.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskItemEdit.aspx @@ -116,10 +116,10 @@ - - + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskList.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskList.aspx index c53f53e7..33e3021f 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskList.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskList.aspx @@ -36,10 +36,10 @@ - - @@ -79,10 +79,7 @@ - - + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskList.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskList.aspx.cs index 4236252d..d05cd2dc 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskList.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskList.aspx.cs @@ -303,7 +303,7 @@ namespace FineUIPro.Web.HSSE.Hazard var hazardList = BLL.Hazard_EnvironmentalRiskListService.GetEnvironmentalRiskList(EnvironmentalRiskListId); if (hazardList != null) { - if (this.btnMenuModify.Hidden || hazardList.States == BLL.Const.State_2) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + if (this.btnMenuModify.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 { PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EnvironmentalRiskListView.aspx?EnvironmentalRiskListId={0}", EnvironmentalRiskListId, "查看 - "))); } diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx index d91abeba..d7df5444 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx @@ -1,8 +1,6 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EnvironmentalRiskListEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.Hazard.EnvironmentalRiskListEdit" ValidateRequest="false" %> -<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" - TagPrefix="uc1" %> @@ -145,14 +143,6 @@ - - - - - - - @@ -164,13 +154,10 @@ - - - - + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx.cs index df1b5d0d..5d8f4784 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx.cs @@ -90,12 +90,6 @@ namespace FineUIPro.Web.HSSE.Hazard } Grid1.DataSource = environmentalRiskItems; Grid1.DataBind(); - - ///初始化审核菜单 - this.ctlAuditFlow.MenuId = BLL.Const.ProjectEnvironmentalRiskListMenuId; - this.ctlAuditFlow.DataId = this.EnvironmentalRiskListId; - this.ctlAuditFlow.ProjectId = this.ProjectId; - this.ctlAuditFlow.UnitId = this.CurrUser.UnitId; } } #endregion @@ -128,24 +122,6 @@ namespace FineUIPro.Web.HSSE.Hazard PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ShowEnvironmentalItem.aspx?EnvironmentalRiskListId={0}", this.EnvironmentalRiskListId, "编辑 - "))); } #endregion - - #region 提交按钮 - /// - /// 提交按钮 - /// - /// - /// - 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()); - } - #endregion #region 保存按钮 /// @@ -184,11 +160,7 @@ namespace FineUIPro.Web.HSSE.Hazard } newEnvironmentalRiskList.Contents = HttpUtility.HtmlEncode(this.txtContents.Text); ////单据状态 - newEnvironmentalRiskList.States = BLL.Const.State_0; - if (type == BLL.Const.BtnSubmit) - { - newEnvironmentalRiskList.States = this.ctlAuditFlow.NextStep; - } + newEnvironmentalRiskList.States = BLL.Const.State_2; if (!string.IsNullOrEmpty(this.EnvironmentalRiskListId)) { newEnvironmentalRiskList.EnvironmentalRiskListId = this.EnvironmentalRiskListId; @@ -203,8 +175,6 @@ namespace FineUIPro.Web.HSSE.Hazard BLL.Hazard_EnvironmentalRiskListService.AddEnvironmentalRiskList(newEnvironmentalRiskList); BLL.LogService.AddSys_Log(this.CurrUser, newEnvironmentalRiskList.RiskCode, newEnvironmentalRiskList.EnvironmentalRiskListId, BLL.Const.ProjectEnvironmentalRiskListMenuId, BLL.Const.BtnAdd); } - ////保存流程审核数据 - this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.ProjectEnvironmentalRiskListMenuId, this.EnvironmentalRiskListId, (type == BLL.Const.BtnSubmit ? true : false), this.txtCompileDate.Text.Trim(), "../Hazard/EnvironmentalRiskListView.aspx?EnvironmentalRiskListId={0}"); } #region 关闭弹出窗 diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx.designer.cs index f27463e9..aae609c1 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListEdit.aspx.designer.cs @@ -147,24 +147,6 @@ namespace FineUIPro.Web.HSSE.Hazard { /// protected global::FineUIPro.HtmlEditor txtContents; - /// - /// ContentPanel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel1; - - /// - /// ctlAuditFlow 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow; - /// /// Toolbar1 控件。 /// @@ -210,15 +192,6 @@ namespace FineUIPro.Web.HSSE.Hazard { /// protected global::FineUIPro.Button btnSave; - /// - /// btnSubmit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSubmit; - /// /// btnClose 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx index 7314458a..ec229468 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx @@ -1,6 +1,5 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EnvironmentalRiskListView.aspx.cs" Inherits="FineUIPro.Web.HSSE.Hazard.EnvironmentalRiskListView" ValidateRequest="false" %> -<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" TagPrefix="uc1" %> @@ -118,14 +117,6 @@ - - - - - - - @@ -137,7 +128,7 @@ - + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx.cs index 71806da5..a18299da 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx.cs @@ -61,10 +61,6 @@ namespace FineUIPro.Web.HSSE.Hazard } Grid1.DataSource = environmentalRiskItems; Grid1.DataBind(); - - ///初始化审核菜单 - this.ctlAuditFlow.MenuId = BLL.Const.ProjectEnvironmentalRiskListMenuId; - this.ctlAuditFlow.DataId = this.EnvironmentalRiskListId; } } #endregion diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx.designer.cs index 1c8982ea..79d8d2bd 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/EnvironmentalRiskListView.aspx.designer.cs @@ -120,24 +120,6 @@ namespace FineUIPro.Web.HSSE.Hazard { /// protected global::FineUIPro.HtmlEditor txtContents; - /// - /// ContentPanel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel1; - - /// - /// ctlAuditFlow 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow; - /// /// Toolbar1 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx new file mode 100644 index 00000000..0cd40f7f --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx @@ -0,0 +1,182 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HazardInfo.aspx.cs" Inherits="FineUIPro.Web.HSSE.Hazard.HazardInfo" %> + + + + + + 风险信息库 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx.cs new file mode 100644 index 00000000..79bacff2 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx.cs @@ -0,0 +1,436 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.HSSE.Hazard +{ + public partial class HazardInfo : PageBase + { + #region 定义项 + /// + /// 清单主键 + /// + public string HazardSelectedItemId + { + get + { + return (string)ViewState["HazardSelectedItemId"]; + } + set + { + ViewState["HazardSelectedItemId"] = value; + } + } + /// + /// 项目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) + { + Funs.DropDownPageSize(this.ddlPageSize); + this.ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.ProjectId) + { + this.ProjectId = Request.Params["projectId"]; + } + ////权限按钮方法 + this.GetButtonPower(); + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + BLL.RiskLevelService.InitRiskLevelDropDownList(this.drpHazardLevel, true); + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = "select HazardListItem.*,ControllingPersonUsers.UserName AS ControllingPersonName,Users.UserName,HazardList.WorkAreaName,HazardList.CompileDate,case HazardListItem.State when '1' then '存在' else '已取消' end as StateStr," + + @" (select UserName from Sys_User where UserId=(select top 1 Evaluatorld from Hazard_RiskEvaluationRecord where DataId=HazardListItem.HazardSelectedItemId order by EvaluatorDate desc)) as EvaluatorPersonName, " + + @" (select top 1 EvaluatorDate from Hazard_RiskEvaluationRecord where DataId=HazardListItem.HazardSelectedItemId order by EvaluatorDate desc) as EvaluatorDate," + + @" (select Days from Base_RiskLevel where RiskLevelId=(select top 1 RiskLevel from Hazard_RiskEvaluationRecord where DataId=HazardListItem.HazardSelectedItemId order by EvaluatorDate desc)) as Days, " + + @" (select RiskLevelName from Base_RiskLevel where RiskLevelId=HazardListItem.HazardLevel) as RiskLevelName" + + @" from Hazard_HazardSelectedItem AS HazardListItem " + + @" LEFT JOIN Hazard_HazardList AS HazardList on HazardList.HazardListId=HazardListItem.HazardListId " + + @" LEFT JOIN Sys_User AS Users ON HazardListItem.DutyPerson=Users.UserId " + + @" LEFT JOIN Sys_User AS ControllingPersonUsers ON HazardList.ControllingPerson=ControllingPersonUsers.UserId WHERE HazardList.States = " + BLL.Const.State_2; + List listStr = new List(); + strSql += " AND HazardList.ProjectId = @ProjectId"; + if (!string.IsNullOrEmpty(Request.Params["projectId"])) ///是否文件柜查看页面传项目值 + { + listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"])); + strSql += " AND HazardList.States = @States"; ///状态为已完成 + listStr.Add(new SqlParameter("@States", BLL.Const.State_2)); + } + else + { + listStr.Add(new SqlParameter("@ProjectId", this.ProjectId)); + } + if (!string.IsNullOrEmpty(this.txtWorkAreaName.Text.Trim())) + { + strSql += " AND HazardList.WorkAreaName LIKE @WorkAreaName"; + listStr.Add(new SqlParameter("@WorkAreaName", "%" + this.txtWorkAreaName.Text.Trim() + "%")); + } + if (this.drpHazardLevel.SelectedValue != BLL.Const._Null) + { + strSql += " AND HazardListItem.HazardLevel = @HazardLevel"; + listStr.Add(new SqlParameter("@HazardLevel", this.drpHazardLevel.SelectedValue)); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + /// + /// 获取危险源编号 + /// + /// + /// + protected string ConvertHazardCode(object HazardId) + { + string hazardCode = string.Empty; + if (HazardId != null) + { + Model.Technique_HazardList hazardList = BLL.HazardListService.GetHazardListById(HazardId.ToString()); + if (hazardList != null) + { + hazardCode = hazardList.HazardCode; + } + } + return hazardCode; + } + + /// + /// 获取危险源类别 + /// + /// + /// + protected string ConvertSupHazardListTypeId(object hazardListTypeId) + { + if (hazardListTypeId != null) + { + Model.Technique_HazardListType hazardListType = BLL.HazardListTypeService.GetHazardListTypeById(hazardListTypeId.ToString()); + if (hazardListType != null) + { + var hazard = BLL.HazardListTypeService.GetHazardListTypeById(hazardListType.SupHazardListTypeId); + if (hazard != null) + { + return hazard.HazardListTypeName; + } + } + } + return null; + } + + /// + /// 获取危险源项 + /// + /// + /// + protected string ConvertHazardListTypeId(object hazardListTypeId) + { + if (hazardListTypeId != null) + { + Model.Technique_HazardListType hazardListType = BLL.HazardListTypeService.GetHazardListTypeById(hazardListTypeId.ToString()); + if (hazardListType != null) + { + return hazardListType.HazardListTypeName; + } + } + return null; + } + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + + #region 弹出编辑窗口关闭事件 + /// + /// 弹出编辑窗体关闭事件 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 编制 + /// + /// 编制 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + int count = BLL.Hazard_HazardListService.GetHazardListCountByVersionNoIsNull(this.ProjectId); + if (count > 0) + { + Alert.ShowInTop("风险评估版本号还未生成,不能进行操作!", MessageBoxIcon.Warning); + return; + } + else + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HazardListEdit.aspx", "编辑 - "))); + } + } + #endregion + + #region Grid双击事件 + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + //btnMenuModify_Click(null, null); + } + #endregion + + #region 编辑 + /// + /// 编辑按钮 + /// + /// + /// + protected void btnMenuModify_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string HazardSelectedItemId = Grid1.SelectedRowID; + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HazardInfoEdit.aspx?HazardSelectedItemId={0}", HazardSelectedItemId, "查看 - "))); + } + + protected void btnReEvaluator_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string HazardSelectedItemId = Grid1.SelectedRowID; + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HazardReEvaluator.aspx?HazardSelectedItemId={0}", HazardSelectedItemId, "查看 - "))); + } + + protected void btnQR_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string HazardSelectedItemId = Grid1.SelectedRowID; + string strCode = "hazard$" + HazardSelectedItemId; + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/Controls/SeeQRImage.aspx?HazardSelectedItemId={0}&strCode={1}", HazardSelectedItemId, strCode), "二维码查看", 400, 400)); + } + #endregion + + #region 转换字符串 + /// + /// 转换工作阶段 + /// + /// + /// + protected string ConvertWorkStage(object workStage) + { + if (workStage != null) + { + string workStages = string.Empty; + string[] strList = workStage.ToString().Split(','); + foreach (string str in strList) + { + Model.Base_WorkStage c = BLL.WorkStageService.GetWorkStageById(str); + if (c != null) + { + workStages += c.WorkStageName + ","; + } + } + if (!string.IsNullOrEmpty(workStages)) + { + workStages = workStages.Substring(0, workStages.LastIndexOf(",")); + } + return workStages; + } + return ""; + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectHazardInfoMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnMenuModify.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnAuditing)) + { + this.btnReEvaluator.Hidden = false; + } + } + } + #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 = Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + +#pragma warning disable CS0108 // “HazardList.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。 + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) +#pragma warning restore CS0108 // “HazardList.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。 + { + 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; + } + if (column.ColumnID == "tfVersionNo") + { + html = (row.FindControl("lblVersionNo") as AspNet.Label).Text; + } + if (column.ColumnID == "tfWorkStage") + { + html = (row.FindControl("lblWorkStage") as AspNet.Label).Text; + } + sb.AppendFormat("", html); + } + + sb.Append(""); + } + + sb.Append("
{0}
{0}
"); + + return sb.ToString(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx.designer.cs new file mode 100644 index 00000000..86d94d61 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx.designer.cs @@ -0,0 +1,213 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Hazard { + + + public partial class HazardInfo { + + /// + /// 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; + + /// + /// txtWorkAreaName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWorkAreaName; + + /// + /// drpHazardLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpHazardLevel; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// lblPageIndex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblPageIndex; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label4; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label3; + + /// + /// lblHazardId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblHazardId; + + /// + /// 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; + + /// + /// btnMenuModify 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuModify; + + /// + /// btnReEvaluator 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnReEvaluator; + + /// + /// btnQR 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnQR; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx new file mode 100644 index 00000000..f9022725 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx @@ -0,0 +1,102 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HazardInfoEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.Hazard.HazardInfoEdit" %> + + + + + + 编辑危险源清单 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx.cs new file mode 100644 index 00000000..bd7db6fd --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx.cs @@ -0,0 +1,239 @@ +using BLL; +using System; +using System.Linq; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.HSSE.Hazard +{ + public partial class HazardInfoEdit : PageBase + { + #region 定义变量 + /// + /// 主键 + /// + public string HazardSelectedItemId + { + get + { + return (string)ViewState["HazardSelectedItemId"]; + } + set + { + ViewState["HazardSelectedItemId"] = value; + } + } + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + btnClose.OnClientClick = ActiveWindow.GetHideReference(); + ////权限按钮方法 + this.GetButtonPower(); + BLL.ConstValue.InitConstValueDropDownList(this.ddlHelperMethod, ConstValue.Group_0006, true); + BLL.RiskLevelService.InitRiskLevelDropDownList(this.ddlHazardLevel, true); + BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpDutyPerson, this.CurrUser.LoginProjectId, string.Empty, true); + this.txtPlanExistDate.Enabled = false; + this.txtCheckStartDate.Enabled = false; + this.drpDutyPerson.Enabled = false; + this.HazardSelectedItemId = Request.Params["HazardSelectedItemId"]; + if (!string.IsNullOrEmpty(this.HazardSelectedItemId)) + { + Model.Hazard_HazardSelectedItem item = BLL.Hazard_HazardSelectedItemService.GetHazardSelectedItemByHazardSelectedItemId(this.HazardSelectedItemId); + if (item != null) + { + var q = BLL.HazardListService.GetHazardListById(item.HazardId); + if (q != null) + { + this.txtHazardCode.Text = q.HazardCode; + this.txtHazardItems.Text = item.HazardItems; + this.txtDefectsType.Text = item.DefectsType; + this.txtMayLeadAccidents.Text = item.MayLeadAccidents; + if (item.HelperMethod != "null") + { + this.ddlHelperMethod.SelectedValue = item.HelperMethod; + } + if (item.HazardJudge_L != null) + { + this.txtHazardJudge_L.Text = Convert.ToString(item.HazardJudge_L); + } + if (item.HazardJudge_E != null) + { + this.txtHazardJudge_E.Text = Convert.ToString(item.HazardJudge_E); + } + if (item.HazardJudge_C != null) + { + this.txtHazardJudge_C.Text = Convert.ToString(item.HazardJudge_C); + } + if (item.HazardJudge_D != null) + { + this.txtHazardJudge_D.Text = Convert.ToString(item.HazardJudge_D); + } + if (item.HazardLevel != "0") + { + this.ddlHazardLevel.SelectedValue = item.HazardLevel; + } + this.txtControlMeasures.Text = item.ControlMeasures; + if (item.IsStart == true) + { + this.ckbIsStart.Checked = true; + this.txtPlanExistDate.Enabled = true; + this.txtCheckStartDate.Enabled = true; + this.drpDutyPerson.Enabled = true; + } + if (item.CheckStartDate != null) + { + this.txtCheckStartDate.Text = string.Format("{0:yyyy-MM-dd}", item.CheckStartDate); + } + if (!string.IsNullOrEmpty(item.DutyPerson)) + { + this.drpDutyPerson.SelectedValue = item.DutyPerson; + } + if (item.PlanExistDate != null) + { + this.txtPlanExistDate.Text = string.Format("{0:yyyy-MM-dd}", item.PlanExistDate); + } + } + } + } + } + } + #endregion + + #region 保存 + /// + /// 保存数据 + /// + private void SaveData() + { + if (this.ckbIsStart.Checked) + { + if (string.IsNullOrEmpty(this.txtCheckStartDate.Text.Trim())) + { + Alert.ShowInTop("巡检启动时间不能为空!", MessageBoxIcon.Warning); + return; + } + if (this.drpDutyPerson.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择风险责任人!", MessageBoxIcon.Warning); + return; + } + if (this.ddlHazardLevel.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择危险级别!", MessageBoxIcon.Warning); + return; + } + } + Model.Hazard_HazardSelectedItem item = BLL.Hazard_HazardSelectedItemService.GetHazardSelectedItemByHazardSelectedItemId(this.HazardSelectedItemId); + if (item != null) + { + item.IsStart = this.ckbIsStart.Checked; + item.CheckStartDate = Funs.GetNewDateTime(this.txtCheckStartDate.Text.Trim()); + if (this.drpDutyPerson.SelectedValue != BLL.Const._Null) + { + item.DutyPerson = this.drpDutyPerson.SelectedValue; + } + item.PlanExistDate = Funs.GetNewDateTime(this.txtPlanExistDate.Text.Trim()); + item.State = "1"; //存在 + } + BLL.Hazard_HazardSelectedItemService.UpdateHazardSelectedItem(item); + if (item.IsStart == true) + { + //巡检计划 + Model.Hazard_PatrolPlan plan = new Model.Hazard_PatrolPlan(); + plan.PatrolPlanId = SQLHelper.GetNewID(); + plan.HazardSelectedItemId = this.HazardSelectedItemId; + plan.HazardLevel = item.HazardLevel; + plan.DutyPerson = this.drpDutyPerson.SelectedValue; + Model.Base_RiskLevel level = BLL.RiskLevelService.GetRiskLevel(item.HazardLevel); + if (level != null) + { + plan.Days = level.Days; + } + plan.CheckStartDate = item.CheckStartDate; + plan.LimitCheckDate = item.CheckStartDate.Value.AddDays(level.Days.Value); + plan.State = "0"; + BLL.Hazard_PatrolPlanService.AddPatrolPlan(plan); + } + Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.SecurityRisk); + BLL.LogService.AddSys_Log(this.CurrUser, item.HazardItems, item.HazardSelectedItemId, BLL.Const.ProjectHazardInfoMenuId, Const.BtnModify); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + SaveData(); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectHazardInfoMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnSave.Hidden = false; + } + } + } + #endregion + + protected void txtHazardJudge_TextChanged(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.txtHazardJudge_L.Text) && !string.IsNullOrEmpty(this.txtHazardJudge_E.Text) && !string.IsNullOrEmpty(this.txtHazardJudge_C.Text)) + { + decimal D = decimal.Parse(this.txtHazardJudge_L.Text) * decimal.Parse(this.txtHazardJudge_E.Text) * decimal.Parse(this.txtHazardJudge_C.Text); + this.txtHazardJudge_D.Text = D.ToString("0.0"); + var riskLevel = Funs.DB.Base_RiskLevel.FirstOrDefault(x => (!x.MinValue.HasValue || x.MinValue <= D) && (D <= x.MaxValue || !x.MaxValue.HasValue)); + if (riskLevel != null) + { + this.ddlHazardLevel.SelectedValue = riskLevel.RiskLevelId; + } + + } + } + + protected void ckbIsStart_CheckedChanged(object sender, CheckedEventArgs e) + { + if (this.ckbIsStart.Checked) + { + this.txtPlanExistDate.Enabled = true; + this.txtCheckStartDate.Enabled = true; + this.drpDutyPerson.Enabled = true; + } + else + { + this.txtPlanExistDate.Enabled = false; + this.txtPlanExistDate.Text = string.Empty; + this.txtCheckStartDate.Enabled = false; + this.txtCheckStartDate.Text = string.Empty; + this.drpDutyPerson.Enabled = false; + this.drpDutyPerson.SelectedValue = BLL.Const._Null; + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx.designer.cs new file mode 100644 index 00000000..1206f4a5 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardInfoEdit.aspx.designer.cs @@ -0,0 +1,213 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Hazard { + + + public partial class HazardInfoEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtHazardCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHazardCode; + + /// + /// txtHazardItems 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHazardItems; + + /// + /// txtDefectsType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDefectsType; + + /// + /// txtMayLeadAccidents 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMayLeadAccidents; + + /// + /// ddlHelperMethod 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlHelperMethod; + + /// + /// txtHazardJudge_L 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHazardJudge_L; + + /// + /// txtHazardJudge_E 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHazardJudge_E; + + /// + /// txtHazardJudge_C 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHazardJudge_C; + + /// + /// txtHazardJudge_D 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHazardJudge_D; + + /// + /// ddlHazardLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlHazardLevel; + + /// + /// txtControlMeasures 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtControlMeasures; + + /// + /// ckbIsStart 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBox ckbIsStart; + + /// + /// txtCheckStartDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCheckStartDate; + + /// + /// drpDutyPerson 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpDutyPerson; + + /// + /// txtPlanExistDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtPlanExistDate; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// hdCompileMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCompileMan; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx index 5bdbbfc6..3300fcac 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx @@ -3,7 +3,7 @@ - 职业健康安全危险源辨识与评价 + 风险评估 @@ -12,7 +12,7 @@ - - - @@ -63,23 +63,19 @@ + HeaderText="评估时间" HeaderTextAlign="Center" TextAlign="Center"> + FieldType="String" HeaderText="评价人" TextAlign="Left" HeaderTextAlign="Center"> - - @@ -96,7 +92,7 @@ - diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.cs index 2c24b463..535c2f1e 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.cs @@ -85,9 +85,9 @@ namespace FineUIPro.Web.HSSE.Hazard { listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"])); strSql += " AND HazardList.States = @States"; ///状态为已完成 - listStr.Add(new SqlParameter("@States", BLL.Const.State_2)); - } + listStr.Add(new SqlParameter("@States", BLL.Const.State_2)); } else + { listStr.Add(new SqlParameter("@ProjectId", this.ProjectId)); } @@ -181,7 +181,7 @@ namespace FineUIPro.Web.HSSE.Hazard int count = BLL.Hazard_HazardListService.GetHazardListCountByVersionNoIsNull( this.ProjectId); if (count > 0) { - Alert.ShowInTop("职业健康安全危险源辨识与评价版本号还未生成,不能进行操作!", MessageBoxIcon.Warning); + Alert.ShowInTop("风险评估版本号还未生成,不能进行操作!", MessageBoxIcon.Warning); return; } else @@ -228,7 +228,7 @@ namespace FineUIPro.Web.HSSE.Hazard } } } - + Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.SecurityRisk); BindGrid(); ShowNotify("删除数据成功!(表格数据已重新绑定)", MessageBoxIcon.Success); } @@ -287,7 +287,7 @@ namespace FineUIPro.Web.HSSE.Hazard var hazardList = BLL.Hazard_HazardListService.GetHazardList(HazardListId); if (hazardList != null) { - if (this.btnMenuModify.Hidden || hazardList.States == BLL.Const.State_2) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + if (this.btnMenuModify.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 { PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HazardListView.aspx?HazardListId={0}", HazardListId, "查看 - "))); } @@ -369,7 +369,7 @@ namespace FineUIPro.Web.HSSE.Hazard { Response.ClearContent(); string filename = Funs.GetNewFileName(); - Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("职业健康安全危险源辨识与评价" + filename, System.Text.Encoding.UTF8) + ".xls"); + 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 = Grid1.RecordCount; diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx index ab3a019d..5b9c3acb 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx @@ -1,8 +1,6 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HazardListEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.Hazard.HazardListEdit" ValidateRequest="false"%> -<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" - TagPrefix="uc1" %> @@ -36,16 +34,16 @@ - - - @@ -87,11 +85,7 @@ - - - - - + @@ -223,12 +217,11 @@ - - - + + - - - - - @@ -273,13 +260,10 @@ - - - - + @@ -287,7 +271,7 @@ - @@ -297,6 +281,7 @@ + + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RiskControl.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/RiskControl.aspx.cs new file mode 100644 index 00000000..dcc0c138 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RiskControl.aspx.cs @@ -0,0 +1,466 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.HSSE.Hazard +{ + public partial class RiskControl : PageBase + { + #region 定义项 + /// + /// 清单主键 + /// + public string PatrolPlanId + { + get + { + return (string)ViewState["PatrolPlanId"]; + } + set + { + ViewState["PatrolPlanId"] = value; + } + } + /// + /// 项目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) + { + Funs.DropDownPageSize(this.ddlPageSize); + this.ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.ProjectId) + { + this.ProjectId = Request.Params["projectId"]; + } + ////权限按钮方法 + this.GetButtonPower(); + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + BLL.RiskLevelService.InitRiskLevelDropDownList(this.drpHazardLevel, true); + Funs.FineUIPleaseSelect(this.drpState); + this.drpState.SelectedValue = "0"; + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = "select p.*,HazardListItem.WorkStage,HazardListItem.HazardListTypeId,HazardListItem.HazardId,HazardListItem.HazardItems,ControllingPersonUsers.UserName AS ControllingPersonName,Users.UserName,HazardList.WorkAreaName,HazardList.CompileDate,case p.State when '0' then '未巡检' when '1' then '已巡检' when '2' then '超期巡检' else '超期未巡检' end as StateStr," + + @" (select Days from Base_RiskLevel where RiskLevelId=(select top 1 RiskLevel from Hazard_RiskEvaluationRecord where DataId=p.HazardSelectedItemId order by EvaluatorDate desc)) as Days, " + + @" (select RiskLevelName from Base_RiskLevel where RiskLevelId=(select top 1 RiskLevel from Hazard_RiskEvaluationRecord where DataId=p.HazardSelectedItemId order by EvaluatorDate desc)) as RiskLevelName," + + @" (select top 1 CheckDate from Hazard_PatrolPlan where HazardSelectedItemId=p.HazardSelectedItemId and LimitCheckDate + /// 获取危险源编号 + /// + /// + /// + protected string ConvertHazardCode(object HazardId) + { + string hazardCode = string.Empty; + if (HazardId != null) + { + Model.Technique_HazardList hazardList = BLL.HazardListService.GetHazardListById(HazardId.ToString()); + if (hazardList != null) + { + hazardCode = hazardList.HazardCode; + } + } + return hazardCode; + } + + /// + /// 获取危险源类别 + /// + /// + /// + protected string ConvertSupHazardListTypeId(object hazardListTypeId) + { + if (hazardListTypeId != null) + { + Model.Technique_HazardListType hazardListType = BLL.HazardListTypeService.GetHazardListTypeById(hazardListTypeId.ToString()); + if (hazardListType != null) + { + var hazard = BLL.HazardListTypeService.GetHazardListTypeById(hazardListType.SupHazardListTypeId); + if (hazard != null) + { + return hazard.HazardListTypeName; + } + } + } + return null; + } + + /// + /// 获取危险源项 + /// + /// + /// + protected string ConvertHazardListTypeId(object hazardListTypeId) + { + if (hazardListTypeId != null) + { + Model.Technique_HazardListType hazardListType = BLL.HazardListTypeService.GetHazardListTypeById(hazardListTypeId.ToString()); + if (hazardListType != null) + { + return hazardListType.HazardListTypeName; + } + } + return null; + } + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + + #region 弹出编辑窗口关闭事件 + /// + /// 弹出编辑窗体关闭事件 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + string str = this.hdID.Text; + if (!string.IsNullOrEmpty(str)) + { + string[] strs = str.Split('|'); + if (strs.Length >= 2) + { + if (strs[0] == "1") //二次评估 + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("HazardReEvaluator.aspx?HazardSelectedItemId={0}&LECItemRecordId={1}", strs[1], strs[2], "查看 - "))); + } + else if (strs[0] == "2") //下整改单 + { + PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("../Check/RectifyNoticesAdd.aspx?HazardSelectedItemId={0}", strs[1], "查看 - "))); + } + } + } + } + + /// + /// 弹出编辑窗体关闭事件 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + + /// + /// 弹出编辑窗体关闭事件 + /// + /// + /// + protected void Window3_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 编制 + /// + /// 编制 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + int count = BLL.Hazard_HazardListService.GetHazardListCountByVersionNoIsNull(this.ProjectId); + if (count > 0) + { + Alert.ShowInTop("风险评估版本号还未生成,不能进行操作!", MessageBoxIcon.Warning); + return; + } + else + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HazardListEdit.aspx", "编辑 - "))); + } + } + #endregion + + #region Grid双击事件 + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + btnMenuModify_Click(null, null); + } + #endregion + + #region 编辑 + /// + /// 编辑按钮 + /// + /// + /// + protected void btnMenuModify_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string PatrolPlanId = Grid1.SelectedRowID; + if (this.btnMenuModify.Hidden == false) + { + Model.Hazard_PatrolPlan plan = BLL.Hazard_PatrolPlanService.GetPatrolPlanByPatrolPlanId(PatrolPlanId); + if (plan != null && (plan.DutyPerson == this.CurrUser.UserId || this.CurrUser.UserId == BLL.Const.sysglyId || this.CurrUser.UserId == BLL.Const.hfnbdId)) + { + string window = String.Format("RoutingInspectionEdit.aspx?PatrolPlanId={0}", PatrolPlanId, "编辑 - "); + PageContext.RegisterStartupScript(Window1.GetSaveStateReference(this.hdID.ClientID) + + Window1.GetShowReference(window)); + } + else + { + Alert.ShowInTop("您不是风险责任人,无法进行巡检!", MessageBoxIcon.Warning); + } + } + } + #endregion + + #region 转换字符串 + /// + /// 转换工作阶段 + /// + /// + /// + protected string ConvertWorkStage(object workStage) + { + if (workStage != null) + { + string workStages = string.Empty; + string[] strList = workStage.ToString().Split(','); + foreach (string str in strList) + { + Model.Base_WorkStage c = BLL.WorkStageService.GetWorkStageById(str); + if (c != null) + { + workStages += c.WorkStageName + ","; + } + } + if (!string.IsNullOrEmpty(workStages)) + { + workStages = workStages.Substring(0, workStages.LastIndexOf(",")); + } + return workStages; + } + return ""; + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectRiskControlMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnMenuModify.Hidden = false; + } + } + } + #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 = Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + +#pragma warning disable CS0108 // “HazardList.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。 + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) +#pragma warning restore CS0108 // “HazardList.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。 + { + 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; + } + if (column.ColumnID == "tfVersionNo") + { + html = (row.FindControl("lblVersionNo") as AspNet.Label).Text; + } + if (column.ColumnID == "tfWorkStage") + { + html = (row.FindControl("lblWorkStage") as AspNet.Label).Text; + } + sb.AppendFormat("", html); + } + + sb.Append(""); + } + + sb.Append("
{0}
{0}
"); + + return sb.ToString(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RiskControl.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/RiskControl.aspx.designer.cs new file mode 100644 index 00000000..6b01f005 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RiskControl.aspx.designer.cs @@ -0,0 +1,231 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Hazard { + + + public partial class RiskControl { + + /// + /// 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; + + /// + /// txtWorkAreaName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWorkAreaName; + + /// + /// drpHazardLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpHazardLevel; + + /// + /// drpState 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpState; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// hdID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdID; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// lblPageIndex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblPageIndex; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label4; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label3; + + /// + /// lblHazardId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblHazardId; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Window3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window3; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuModify 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuModify; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx new file mode 100644 index 00000000..4777001a --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx @@ -0,0 +1,174 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoutingInspection.aspx.cs" Inherits="FineUIPro.Web.HSSE.Hazard.RoutingInspection" %> + + + + + + 风险巡检记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + + + + + + --%> + <%-- + --%> + + + + + + + + + + + <%-- + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx.cs new file mode 100644 index 00000000..a70d1f9e --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx.cs @@ -0,0 +1,423 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.HSSE.Hazard +{ + public partial class RoutingInspection : PageBase + { + #region 定义项 + /// + /// 清单主键 + /// + public string RoutingInspectionId + { + get + { + return (string)ViewState["RoutingInspectionId"]; + } + set + { + ViewState["RoutingInspectionId"] = value; + } + } + /// + /// 项目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) + { + Funs.DropDownPageSize(this.ddlPageSize); + this.ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.ProjectId) + { + this.ProjectId = Request.Params["projectId"]; + } + ////权限按钮方法 + this.GetButtonPower(); + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + BLL.RiskLevelService.InitRiskLevelDropDownList(this.drpHazardLevel, true); + Funs.FineUIPleaseSelect(this.drpState); + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = "select r.*,HazardListItem.WorkStage,HazardListItem.HazardListTypeId,HazardListItem.HazardId,HazardListItem.HazardItems,ControllingPersonUsers.UserName AS ControllingPersonName,Users.UserName as PatrolManName,HazardList.WorkAreaName,HazardList.CompileDate,case r.PatrolResult when 0 then '原状态' when 1 then '二次评估' when 2 then '下整改单' else '消除' end as PatrolResultStr," + + @" (select RiskLevelName from Base_RiskLevel where RiskLevelId=r.OldRiskLevel) as OldRiskLevelName," + + @" (select RiskLevelName from Base_RiskLevel where RiskLevelId=(select HazardLevel from Hazard_HazardSelectedItem where HazardSelectedItemId=r.HazardSelectedItemId)) as RiskLevelName" + + @" from Hazard_RoutingInspection AS r " + + @" LEFT JOIN Hazard_HazardSelectedItem AS HazardListItem on HazardListItem.HazardSelectedItemId=r.HazardSelectedItemId" + + @" LEFT JOIN Hazard_HazardList AS HazardList on HazardList.HazardListId=HazardListItem.HazardListId " + + @" LEFT JOIN Sys_User AS Users ON r.PatrolManId=Users.UserId " + + @" LEFT JOIN Sys_User AS ControllingPersonUsers ON HazardList.ControllingPerson=ControllingPersonUsers.UserId WHERE HazardList.States = " + BLL.Const.State_2; + List listStr = new List(); + strSql += " AND HazardList.ProjectId = @ProjectId"; + if (!string.IsNullOrEmpty(Request.Params["projectId"])) ///是否文件柜查看页面传项目值 + { + listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"])); + strSql += " AND HazardList.States = @States"; ///状态为已完成 + listStr.Add(new SqlParameter("@States", BLL.Const.State_2)); + } + else + { + listStr.Add(new SqlParameter("@ProjectId", this.ProjectId)); + } + if (!string.IsNullOrEmpty(this.txtWorkAreaName.Text.Trim())) + { + strSql += " AND HazardList.WorkAreaName LIKE @WorkAreaName"; + listStr.Add(new SqlParameter("@WorkAreaName", "%" + this.txtWorkAreaName.Text.Trim() + "%")); + } + if (this.drpHazardLevel.SelectedValue != BLL.Const._Null) + { + strSql += " AND HazardListItem.HazardLevel = @HazardLevel"; + listStr.Add(new SqlParameter("@HazardLevel", this.drpHazardLevel.SelectedValue)); + } + if (this.drpState.SelectedValue != BLL.Const._Null) + { + strSql += " AND r.PatrolResult = @PatrolResult"; + listStr.Add(new SqlParameter("@PatrolResult", this.drpState.SelectedValue)); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + /// + /// 获取危险源编号 + /// + /// + /// + protected string ConvertHazardCode(object HazardId) + { + string hazardCode = string.Empty; + if (HazardId != null) + { + Model.Technique_HazardList hazardList = BLL.HazardListService.GetHazardListById(HazardId.ToString()); + if (hazardList != null) + { + hazardCode = hazardList.HazardCode; + } + } + return hazardCode; + } + + /// + /// 获取危险源类别 + /// + /// + /// + protected string ConvertSupHazardListTypeId(object hazardListTypeId) + { + if (hazardListTypeId != null) + { + Model.Technique_HazardListType hazardListType = BLL.HazardListTypeService.GetHazardListTypeById(hazardListTypeId.ToString()); + if (hazardListType != null) + { + var hazard = BLL.HazardListTypeService.GetHazardListTypeById(hazardListType.SupHazardListTypeId); + if (hazard != null) + { + return hazard.HazardListTypeName; + } + } + } + return null; + } + + /// + /// 获取危险源项 + /// + /// + /// + protected string ConvertHazardListTypeId(object hazardListTypeId) + { + if (hazardListTypeId != null) + { + Model.Technique_HazardListType hazardListType = BLL.HazardListTypeService.GetHazardListTypeById(hazardListTypeId.ToString()); + if (hazardListType != null) + { + return hazardListType.HazardListTypeName; + } + } + return null; + } + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + + #region 弹出编辑窗口关闭事件 + /// + /// 弹出编辑窗体关闭事件 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region Grid双击事件 + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + btnMenuView_Click(null, null); + } + #endregion + + #region 编辑 + /// + /// 编辑按钮 + /// + /// + /// + protected void btnMenuView_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string RoutingInspectionId = Grid1.SelectedRowID; + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RoutingInspectionView.aspx?RoutingInspectionId={0}", RoutingInspectionId, "查看 - "))); + } + #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(); + Model.Hazard_RoutingInspection routingInspection = BLL.Hazard_RoutingInspectionService.GetRoutingInspectionByRoutingInspectionId(rowID); + BLL.LogService.AddSys_Log(this.CurrUser, routingInspection.PatrolResult.ToString(), routingInspection.RoutingInspectionId, BLL.Const.ProjectRoutingInspectionMenuId, BLL.Const.BtnDelete); + BLL.Hazard_RoutingInspectionService.DeleteRoutingInspection(rowID); + Model.Hazard_PatrolPlan plan = BLL.Hazard_PatrolPlanService.GetPatrolPlanByPatrolPlanId(routingInspection.PatrolPlanId); + if (plan != null) + { + plan.CheckDate = null; + plan.State = "0"; + BLL.Hazard_PatrolPlanService.UpdatePatrolPlan(plan); + } + } + BindGrid(); + ShowNotify("删除成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 转换字符串 + /// + /// 转换工作阶段 + /// + /// + /// + protected string ConvertWorkStage(object workStage) + { + if (workStage != null) + { + string workStages = string.Empty; + string[] strList = workStage.ToString().Split(','); + foreach (string str in strList) + { + Model.Base_WorkStage c = BLL.WorkStageService.GetWorkStageById(str); + if (c != null) + { + workStages += c.WorkStageName + ","; + } + } + if (!string.IsNullOrEmpty(workStages)) + { + workStages = workStages.Substring(0, workStages.LastIndexOf(",")); + } + return workStages; + } + return ""; + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectRoutingInspectionMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDelete.Hidden = false; + } + } + } + #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 = Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + +#pragma warning disable CS0108 // “HazardList.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。 + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) +#pragma warning restore CS0108 // “HazardList.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。 + { + 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; + } + if (column.ColumnID == "tfVersionNo") + { + html = (row.FindControl("lblVersionNo") as AspNet.Label).Text; + } + if (column.ColumnID == "tfWorkStage") + { + html = (row.FindControl("lblWorkStage") as AspNet.Label).Text; + } + sb.AppendFormat("", html); + } + + sb.Append(""); + } + + sb.Append("
{0}
{0}
"); + + return sb.ToString(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx.designer.cs new file mode 100644 index 00000000..602ca949 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspection.aspx.designer.cs @@ -0,0 +1,195 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Hazard { + + + public partial class RoutingInspection { + + /// + /// 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; + + /// + /// txtWorkAreaName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWorkAreaName; + + /// + /// drpHazardLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpHazardLevel; + + /// + /// drpState 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpState; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// lblPageIndex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblPageIndex; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label3; + + /// + /// 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; + + /// + /// btnMenuView 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuView; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx new file mode 100644 index 00000000..9de89dc5 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx @@ -0,0 +1,97 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoutingInspectionEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.Hazard.RoutingInspectionEdit" %> + + + + + + 风险巡检记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx.cs new file mode 100644 index 00000000..fe5e7bc5 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx.cs @@ -0,0 +1,328 @@ +using BLL; +using System; +using System.Linq; + +namespace FineUIPro.Web.HSSE.Hazard +{ + public partial class RoutingInspectionEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + private string PatrolPlanId + { + get + { + return (string)ViewState["PatrolPlanId"]; + } + set + { + ViewState["PatrolPlanId"] = value; + } + } + + private string HazardSelectedItemId + { + get + { + return (string)ViewState["HazardSelectedItemId"]; + } + set + { + ViewState["HazardSelectedItemId"] = value; + } + } + + private string RoutingInspectionId + { + get + { + return (string)ViewState["RoutingInspectionId"]; + } + set + { + ViewState["RoutingInspectionId"] = value; + } + } + + /// + /// 图片路径 + /// + public string ImageUrl + { + get + { + return (string)ViewState["ImageUrl"]; + } + set + { + ViewState["ImageUrl"] = value; + } + } + + /// + /// 整改后附件路径 + /// + public string RectificationImageUrl + { + get + { + return (string)ViewState["RectificationImageUrl"]; + } + set + { + ViewState["RectificationImageUrl"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + UserService.InitUsersDropDownList(this.drpPatrolMan, this.CurrUser.LoginProjectId, true, string.Empty); + UserService.InitUsersDropDownList(this.drpRiskMan, this.CurrUser.LoginProjectId, true, string.Empty); + this.PatrolPlanId = Request.Params["PatrolPlanId"]; + this.hdCheckManId.Text = this.CurrUser.UserId; + if (!string.IsNullOrEmpty(this.PatrolPlanId)) + { + Model.Hazard_RoutingInspection routingInspection = BLL.Hazard_RoutingInspectionService.GetRoutingInspectionByPatrolPlanId(this.PatrolPlanId); + Model.Hazard_PatrolPlan plan = BLL.Hazard_PatrolPlanService.GetPatrolPlanByPatrolPlanId(this.PatrolPlanId); + HazardSelectedItemId = plan.HazardSelectedItemId; + Model.Hazard_HazardSelectedItem item = BLL.Hazard_HazardSelectedItemService.GetHazardSelectedItemByHazardSelectedItemId(plan.HazardSelectedItemId); + if (item != null) + { + var q = BLL.HazardListService.GetHazardListById(item.HazardId); + if (q != null) + { + this.txtHazardCode.Text = q.HazardCode; + this.txtHazardItems.Text = item.HazardItems; + this.txtDefectsType.Text = item.DefectsType; + this.txtMayLeadAccidents.Text = item.MayLeadAccidents; + } + } + if (routingInspection != null) + { + RoutingInspectionId = routingInspection.RoutingInspectionId; + if (!string.IsNullOrEmpty(routingInspection.PatrolManId)) + { + this.drpPatrolMan.SelectedValue = routingInspection.PatrolManId; + } + if (routingInspection.PatrolTime != null) + { + this.txtPatrolTime.Text = string.Format("{0:yyyy-MM-dd}", routingInspection.PatrolTime); + } + if (routingInspection.PatrolResult != null) + { + this.rblPatrolResult.SelectedValue = routingInspection.PatrolResult.ToString(); + } + this.txtControlMeasures.Text = routingInspection.ControlMeasures; + this.txtDealReason.Text = routingInspection.DealReason; + if (!string.IsNullOrEmpty(routingInspection.RiskManId)) + { + this.drpRiskMan.SelectedValue = routingInspection.RiskManId; + } + } + else + { + this.drpPatrolMan.SelectedValue = this.CurrUser.UserId; + this.txtPatrolTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + this.drpRiskMan.SelectedValue = this.CurrUser.UserId; + } + } + } + } + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectRiskControlMenuId, BLL.Const.BtnSave)) + { + if (this.drpPatrolMan.SelectedValue == BLL.Const._Null) + { + ShowNotify("请选择巡检人!", MessageBoxIcon.Warning); + return; + } + if (this.rblPatrolResult.SelectedValue != "-1" && this.drpRiskMan.SelectedValue == BLL.Const._Null) + { + ShowNotify("请选择风险责任人!", MessageBoxIcon.Warning); + return; + } + SaveData(true); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + /// + /// 保存数据 + /// + /// + private void SaveData(bool isClosed) + { + Model.Hazard_PatrolPlan p = BLL.Hazard_PatrolPlanService.GetPatrolPlanByPatrolPlanId(this.PatrolPlanId); + Model.Hazard_HazardSelectedItem selectedItem = BLL.Hazard_HazardSelectedItemService.GetHazardSelectedItemByHazardSelectedItemId(p.HazardSelectedItemId); + Model.Hazard_RoutingInspection routingInspection = new Model.Hazard_RoutingInspection(); + routingInspection.HazardSelectedItemId = this.HazardSelectedItemId; + routingInspection.PatrolManId = this.drpPatrolMan.SelectedValue; + routingInspection.PatrolTime = Funs.GetNewDateTimeOrNow(this.txtPatrolTime.Text.Trim()); + routingInspection.PatrolResult = Convert.ToInt32(this.rblPatrolResult.SelectedValue); + routingInspection.OldRiskLevel = p.HazardLevel; + routingInspection.ControlMeasures = this.txtControlMeasures.Text.Trim(); + routingInspection.DealReason = this.txtDealReason.Text.Trim(); + routingInspection.RiskManId = this.drpRiskMan.SelectedValue; + routingInspection.PatrolPlanId = this.PatrolPlanId; + if (!string.IsNullOrEmpty(RoutingInspectionId)) + { + routingInspection.RoutingInspectionId = RoutingInspectionId; + BLL.Hazard_RoutingInspectionService.UpdateRoutingInspection(routingInspection); + BLL.LogService.AddSys_Log(this.CurrUser, routingInspection.PatrolResult.ToString(), routingInspection.RoutingInspectionId, BLL.Const.ProjectRiskControlMenuId, BLL.Const.BtnModify); + } + else + { + routingInspection.RoutingInspectionId = SQLHelper.GetNewID(); + this.RoutingInspectionId = routingInspection.RoutingInspectionId; + BLL.Hazard_RoutingInspectionService.AddRoutingInspection(routingInspection); + BLL.LogService.AddSys_Log(this.CurrUser, routingInspection.PatrolResult.ToString(), routingInspection.RoutingInspectionId, BLL.Const.ProjectRiskControlMenuId, BLL.Const.BtnAdd); + } + p.CheckDate = routingInspection.PatrolTime; + p.State = "1"; //已巡检 + if (routingInspection.PatrolTime > p.LimitCheckDate) + { + p.State = "2"; //超期巡检 + } + BLL.Hazard_PatrolPlanService.UpdatePatrolPlan(p); + var ps = BLL.Hazard_PatrolPlanService.GetBeforePatrolPlansByCheckDate(this.HazardSelectedItemId, p.CheckDate.Value); + foreach (var item in ps) + { + item.CheckDate = p.CheckDate; + item.State = "3"; //超期未巡检 + BLL.Hazard_PatrolPlanService.UpdatePatrolPlan(item); + } + if (isClosed) + { + string str = string.Empty; + if (this.rblPatrolResult.SelectedValue == "0") //原状态 + { + //巡检计划 + Model.Hazard_PatrolPlan plan = new Model.Hazard_PatrolPlan(); + plan.PatrolPlanId = SQLHelper.GetNewID(); + plan.HazardSelectedItemId = this.HazardSelectedItemId; + plan.HazardLevel = p.HazardLevel; + plan.DutyPerson = this.drpRiskMan.SelectedValue; + plan.Days = p.Days; + plan.CheckStartDate = p.CheckStartDate; + plan.LimitCheckDate = p.LimitCheckDate.Value.AddDays(p.Days.Value); + plan.State = "0"; + Model.Hazard_PatrolPlan oldPlan = BLL.Hazard_PatrolPlanService.GetPatrolPlanByHazardSelectedItemIdAndLimitCheckDate(this.HazardSelectedItemId, plan.LimitCheckDate); + if (oldPlan == null) + { + BLL.Hazard_PatrolPlanService.AddPatrolPlan(plan); + } + } + else if (this.rblPatrolResult.SelectedValue == "1") //二次评估 + { + //二次评价记录 + Model.Hazard_RiskEvaluationRecord record = new Model.Hazard_RiskEvaluationRecord(); + record.LECItemRecordId = SQLHelper.GetNewID(); + record.DataId = this.HazardSelectedItemId; + record.DataType = "Project"; + record.Evaluatorld = this.drpRiskMan.SelectedValue; + //record.EvaluatorDate = DateTime.Now; 生成待办记录 + //record.L = selectedItem.HazardJudge_L; + //record.E = selectedItem.HazardJudge_E; + //record.C = selectedItem.HazardJudge_C; + //record.D = selectedItem.HazardJudge_D; + //record.RiskLevel = p.HazardLevel; + //record.ControlMeasures = selectedItem.ControlMeasures; + //record.Remark = selectedItem.Remark; + BLL.RiskEvaluationRecordService.AddRiskEvaluationRecord(record); + if (this.drpRiskMan.SelectedValue == this.CurrUser.UserId) + { + str = "1|" + this.HazardSelectedItemId + "|" + record.LECItemRecordId; + } + } + else if (this.rblPatrolResult.SelectedValue == "2") //下整改单 + { + //巡检计划 + Model.Hazard_PatrolPlan plan = new Model.Hazard_PatrolPlan(); + plan.PatrolPlanId = SQLHelper.GetNewID(); + plan.HazardSelectedItemId = this.HazardSelectedItemId; + plan.HazardLevel = p.HazardLevel; + plan.DutyPerson = this.drpRiskMan.SelectedValue; + plan.Days = p.Days; + plan.CheckStartDate = p.CheckStartDate; + plan.LimitCheckDate = p.LimitCheckDate.Value.AddDays(p.Days.Value); + plan.State = "0"; + Model.Hazard_PatrolPlan oldPlan = BLL.Hazard_PatrolPlanService.GetPatrolPlanByHazardSelectedItemIdAndLimitCheckDate(this.HazardSelectedItemId, plan.LimitCheckDate); + if (oldPlan == null) + { + BLL.Hazard_PatrolPlanService.AddPatrolPlan(plan); + } + str = "2|" + this.HazardSelectedItemId; + } + else if (this.rblPatrolResult.SelectedValue == "-1") //消除 + { + selectedItem.IsStart = false; + selectedItem.State = "0"; + BLL.Hazard_HazardSelectedItemService.UpdateHazardSelectedItem(selectedItem); + } + if (string.IsNullOrEmpty(Request.Params["Main"])) + { + PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(str) + + ActiveWindow.GetHidePostBackReference()); + } + else + { + PageContext.RegisterStartupScript(String.Format("window.close();")); + } + } + Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.SecurityRisk); + } + #endregion + + #region 附件上传 + /// + /// 上传附件资源 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.RoutingInspectionId)) + { + SaveData(false); + } + string edit = "0"; + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectRiskControlMenuId, BLL.Const.BtnSave)) + { + edit = "1"; + DateTime date = Funs.GetNewDateTimeOrNow(this.txtPatrolTime.Text.Trim()); + string dateStr = date.Year.ToString() + date.Month.ToString(); + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/RoutingInspection/" + dateStr + "&menuId={1}&edit={2}", this.RoutingInspectionId, Const.ProjectRiskControlMenuId, edit))); + } + } + + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx.designer.cs new file mode 100644 index 00000000..0c06ec83 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionEdit.aspx.designer.cs @@ -0,0 +1,195 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Hazard { + + + public partial class RoutingInspectionEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtHazardCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHazardCode; + + /// + /// txtHazardItems 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHazardItems; + + /// + /// txtDefectsType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDefectsType; + + /// + /// txtMayLeadAccidents 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMayLeadAccidents; + + /// + /// drpPatrolMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpPatrolMan; + + /// + /// txtPatrolTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtPatrolTime; + + /// + /// rblPatrolResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblPatrolResult; + + /// + /// txtControlMeasures 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtControlMeasures; + + /// + /// txtDealReason 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtDealReason; + + /// + /// drpRiskMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpRiskMan; + + /// + /// UploadAttach 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.LinkButton UploadAttach; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// hdCheckManId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCheckManId; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx new file mode 100644 index 00000000..0b991411 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx @@ -0,0 +1,94 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoutingInspectionView.aspx.cs" Inherits="FineUIPro.Web.HSSE.Hazard.RoutingInspectionView" %> + + + + + + 风险巡检记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx.cs new file mode 100644 index 00000000..8793987d --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx.cs @@ -0,0 +1,163 @@ +using BLL; +using System; +using System.Linq; + +namespace FineUIPro.Web.HSSE.Hazard +{ + public partial class RoutingInspectionView : PageBase + { + #region 定义项 + /// + /// 主键 + /// + private string PatrolPlanId + { + get + { + return (string)ViewState["PatrolPlanId"]; + } + set + { + ViewState["PatrolPlanId"] = value; + } + } + + private string HazardSelectedItemId + { + get + { + return (string)ViewState["HazardSelectedItemId"]; + } + set + { + ViewState["HazardSelectedItemId"] = value; + } + } + + private string RoutingInspectionId + { + get + { + return (string)ViewState["RoutingInspectionId"]; + } + set + { + ViewState["RoutingInspectionId"] = value; + } + } + + /// + /// 图片路径 + /// + public string ImageUrl + { + get + { + return (string)ViewState["ImageUrl"]; + } + set + { + ViewState["ImageUrl"] = value; + } + } + + /// + /// 整改后附件路径 + /// + public string RectificationImageUrl + { + get + { + return (string)ViewState["RectificationImageUrl"]; + } + set + { + ViewState["RectificationImageUrl"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + UserService.InitUsersDropDownList(this.drpPatrolMan, this.CurrUser.LoginProjectId, true, string.Empty); + UserService.InitUsersDropDownList(this.drpRiskMan, this.CurrUser.LoginProjectId, true, string.Empty); + this.RoutingInspectionId = Request.Params["RoutingInspectionId"]; + this.hdCheckManId.Text = this.CurrUser.UserId; + if (!string.IsNullOrEmpty(this.RoutingInspectionId)) + { + Model.Hazard_RoutingInspection routingInspection = BLL.Hazard_RoutingInspectionService.GetRoutingInspectionByRoutingInspectionId(this.RoutingInspectionId); + Model.Hazard_PatrolPlan plan = BLL.Hazard_PatrolPlanService.GetPatrolPlanByPatrolPlanId(routingInspection.PatrolPlanId); + HazardSelectedItemId = plan.HazardSelectedItemId; + Model.Hazard_HazardSelectedItem item = BLL.Hazard_HazardSelectedItemService.GetHazardSelectedItemByHazardSelectedItemId(plan.HazardSelectedItemId); + if (item != null) + { + var q = BLL.HazardListService.GetHazardListById(item.HazardId); + if (q != null) + { + this.txtHazardCode.Text = q.HazardCode; + this.txtHazardItems.Text = item.HazardItems; + this.txtDefectsType.Text = item.DefectsType; + this.txtMayLeadAccidents.Text = item.MayLeadAccidents; + } + } + if (routingInspection != null) + { + if (!string.IsNullOrEmpty(routingInspection.PatrolManId)) + { + this.drpPatrolMan.SelectedValue = routingInspection.PatrolManId; + } + if (routingInspection.PatrolTime != null) + { + this.txtPatrolTime.Text = string.Format("{0:yyyy-MM-dd}", routingInspection.PatrolTime); + } + if (routingInspection.PatrolResult != null) + { + this.rblPatrolResult.SelectedValue = routingInspection.PatrolResult.ToString(); + } + this.txtControlMeasures.Text = routingInspection.ControlMeasures; + this.txtDealReason.Text = routingInspection.DealReason; + if (!string.IsNullOrEmpty(routingInspection.RiskManId)) + { + this.drpRiskMan.SelectedValue = routingInspection.RiskManId; + } + } + else + { + this.drpPatrolMan.SelectedValue = this.CurrUser.UserId; + this.txtPatrolTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + this.drpRiskMan.SelectedValue = this.CurrUser.UserId; + } + } + } + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件资源 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + string edit = "-1"; + DateTime date = Funs.GetNewDateTimeOrNow(this.txtPatrolTime.Text.Trim()); + string dateStr = date.Year.ToString() + date.Month.ToString(); + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/RoutingInspection/" + dateStr + "&menuId={1}&type={2}", this.RoutingInspectionId, Const.ProjectRiskControlMenuId, edit))); + } + + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx.designer.cs new file mode 100644 index 00000000..a2a84364 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/RoutingInspectionView.aspx.designer.cs @@ -0,0 +1,186 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.Hazard { + + + public partial class RoutingInspectionView { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtHazardCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHazardCode; + + /// + /// txtHazardItems 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHazardItems; + + /// + /// txtDefectsType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDefectsType; + + /// + /// txtMayLeadAccidents 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMayLeadAccidents; + + /// + /// drpPatrolMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpPatrolMan; + + /// + /// txtPatrolTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtPatrolTime; + + /// + /// rblPatrolResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblPatrolResult; + + /// + /// txtControlMeasures 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtControlMeasures; + + /// + /// txtDealReason 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtDealReason; + + /// + /// drpRiskMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpRiskMan; + + /// + /// UploadAttach 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.LinkButton UploadAttach; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// hdCheckManId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCheckManId; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/SetToolTipTime.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/SetToolTipTime.aspx.cs index cb26977f..576c688c 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/SetToolTipTime.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/SetToolTipTime.aspx.cs @@ -344,6 +344,7 @@ namespace FineUIPro.Web.HSSE.Hazard BLL.Hazard_HazardSelectedItemService.UpdateHazardSelectedItem(hazardSelectedItem); } } + } PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); } diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ShowEnvironmentalItem.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/ShowEnvironmentalItem.aspx index a2875b25..60d067b6 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/ShowEnvironmentalItem.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ShowEnvironmentalItem.aspx @@ -46,7 +46,7 @@
- + diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx index e3412471..f0c09354 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx @@ -17,12 +17,10 @@ - + + + + @@ -81,6 +79,12 @@ + diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.cs index ca9ca9d9..26e50219 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.cs @@ -112,6 +112,10 @@ namespace FineUIPro.Web.HSSE.HiddenInspection { this.ckType.SelectedValue = registration.CheckCycle; } + if (!string.IsNullOrEmpty(registration.Risk_Level)) + { + this.dpRiskLevel.SelectedValue = registration.Risk_Level; + } if (!string.IsNullOrEmpty(registration.ResponsibleMan)) { this.drpResponsibleMan.SelectedValue = registration.ResponsibleMan; @@ -214,6 +218,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection register.ProblemTypes = "1"; //安全隐患问题 register.RegisterTypesId = this.drpRegisterTypes.SelectedValue; register.CheckCycle = this.ckType.SelectedValue; + register.Risk_Level = this.dpRiskLevel.SelectedText; register.IsEffective = "1"; if (this.drpUnit.SelectedValue != BLL.Const._Null) { diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.designer.cs index 12428760..cd318cc1 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationAdd.aspx.designer.cs @@ -49,13 +49,13 @@ namespace FineUIPro.Web.HSSE.HiddenInspection { protected global::FineUIPro.DropDownList drpRegisterTypes; /// - /// ckType 控件。 + /// dpRiskLevel 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.RadioButtonList ckType; + protected global::FineUIPro.DropDownList dpRiskLevel; /// /// drpUnit 控件。 @@ -174,6 +174,15 @@ namespace FineUIPro.Web.HSSE.HiddenInspection { /// protected global::FineUIPro.ToolbarFill ToolbarFill1; + /// + /// ckType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList ckType; + /// /// hdCheckManId 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx index 9791b4f8..17ad7de4 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx @@ -60,6 +60,11 @@ + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.cs index bfceea26..9fc668b8 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.cs @@ -44,7 +44,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); this.drpStates.DataValueField = "Id"; this.drpStates.DataTextField = "Name"; - this.drpStates.DataSource = BLL.HSSE_Hazard_HazardRegisterService.GetStatesList(); ; + this.drpStates.DataSource = BLL.HSSE_Hazard_HazardRegisterService.GetStatesList(); this.drpStates.DataBind(); Funs.FineUIPleaseSelect(this.drpStates); // 绑定表格 @@ -79,6 +79,11 @@ namespace FineUIPro.Web.HSSE.HiddenInspection strSql += " AND WorkAreaName LIKE @WorkAreaName"; listStr.Add(new SqlParameter("@WorkAreaName", "%" + this.txtWorkAreaName.Text.Trim() + "%")); } + if (!string.IsNullOrEmpty(this.dpRiskLevel.SelectedValue.Trim())) + { + strSql += " AND Risk_Level = @Risk_Level"; + listStr.Add(new SqlParameter("@Risk_Level", this.dpRiskLevel.SelectedText)); + } //if (this.ckType.SelectedValue != "0") //{ // strSql += " AND CheckCycle=@CheckCycle"; diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.designer.cs index 7f0f80e0..99b04d08 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.designer.cs @@ -165,6 +165,15 @@ namespace FineUIPro.Web.HSSE.HiddenInspection { /// protected global::FineUIPro.DropDownList drpStates; + /// + /// dpRiskLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpRiskLevel; + /// /// ToolbarFill1 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentIn.aspx b/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentIn.aspx index 3e19f7c6..dadd0d07 100644 --- a/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentIn.aspx +++ b/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentIn.aspx @@ -3,7 +3,7 @@ - 特种设备机具入场报批 + 特种设备机具管理 @@ -12,23 +12,20 @@ - - - - - @@ -41,7 +38,7 @@ - @@ -52,13 +49,50 @@ FieldType="String" HeaderText="车牌号" HeaderTextAlign="Center" TextAlign="Left"> - - - + --%> + + + + + + + + + + + + + + + + + + + + + + + + + <%-- --%> @@ -78,7 +112,7 @@ - @@ -90,6 +124,12 @@ + + private void BindGrid() { - string strSql = "SELECT EquipmentIn.EquipmentInId," + string strSql = "SELECT EquipmentIn.EquipmentInId,EquipmentInItem.EquipmentInItemId," + @"EquipmentIn.ProjectId," + + @"EquipmentInItem.SpecialEquipmentId,EquipmentInItem.SizeModel,EquipmentInItem.OwnerCheck,EquipmentInItem.CertificateNum,EquipmentInItem.SafetyInspectionNum,EquipmentInItem.DrivingLicenseNum,EquipmentInItem.RegistrationNum,EquipmentInItem.OperationQualificationNum,EquipmentInItem.InsuranceNum,EquipmentInItem.CommercialInsuranceNum,EquipmentInItem.IsUsed," + @"CodeRecords.Code AS EquipmentInCode," + @"EquipmentIn.UnitId," + @"EquipmentIn.CarNumber," @@ -73,33 +74,26 @@ namespace FineUIPro.Web.HSSE.InApproveManager + @"EquipmentIn.CompileMan," + @"EquipmentIn.CompileDate," + @"Unit.UnitName," - + @"Users.UserName," - + @"(CASE WHEN EquipmentIn.State = " + BLL.Const.State_0 + " OR EquipmentIn.State IS NULL THEN '待['+OperateUser.UserName+']提交' WHEN EquipmentIn.State = " + BLL.Const.State_2 + " THEN '审核/审批完成' ELSE '待['+OperateUser.UserName+']办理' END) AS FlowOperateName" - + @" FROM InApproveManager_EquipmentIn AS EquipmentIn " + + @"Users.UserName" + + @" FROM InApproveManager_EquipmentInItem AS EquipmentInItem " + + @" LEFT JOIN InApproveManager_EquipmentIn AS EquipmentIn ON EquipmentIn.EquipmentInId = EquipmentInItem.EquipmentInId " + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = EquipmentIn.UnitId " + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON EquipmentIn.EquipmentInId = CodeRecords.DataId " - + @" LEFT JOIN Sys_FlowOperate AS FlowOperate ON EquipmentIn.EquipmentInId = FlowOperate.DataId AND FlowOperate.IsClosed <> 1" - + @" LEFT JOIN Sys_User AS OperateUser ON FlowOperate.OperaterId=OperateUser.UserId" + @" LEFT JOIN Sys_User AS Users ON EquipmentIn.CompileMan = Users.UserId WHERE 1=1 "; List listStr = new List(); strSql += " AND EquipmentIn.ProjectId = '" + this.ProjectId + "'"; if (!string.IsNullOrEmpty(Request.Params["projectId"])) ///是否文件柜查看页面传项目值 { - + strSql += " AND EquipmentIn.State = @States"; ///状态为已完成 listStr.Add(new SqlParameter("@States", BLL.Const.State_2)); } if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId)) { - strSql += " AND EquipmentIn.UnitId = @UnitId"; ///状态为已完成 + strSql += " AND EquipmentIn.UnitId = @UnitId"; listStr.Add(new SqlParameter("@UnitId", this.CurrUser.UnitId)); } - if (!string.IsNullOrEmpty(this.txtEquipmentInCode.Text.Trim())) - { - strSql += " AND EquipmentIn.EquipmentInCode LIKE @EquipmentInCode"; - listStr.Add(new SqlParameter("@EquipmentInCode", "%" + this.txtEquipmentInCode.Text.Trim() + "%")); - } SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; @@ -198,18 +192,62 @@ namespace FineUIPro.Web.HSSE.InApproveManager } string id = Grid1.SelectedRowID; - var equipmentIn = BLL.EquipmentInService.GetEquipmentInById(id); - if (equipmentIn != null) + var equipmentInItem = BLL.EquipmentInItemService.GetEquipmentInItemById(id); + if (equipmentInItem != null) { - if (this.btnMenuEdit.Hidden || equipmentIn.State == BLL.Const.State_2) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentInView.aspx?EquipmentInId={0}", id, "查看 - "))); + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentInView.aspx?EquipmentInId={0}", equipmentInItem.EquipmentInId, "查看 - "))); } else { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentInEdit.aspx?EquipmentInId={0}", id, "编辑 - "))); + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentInEdit.aspx?EquipmentInId={0}", equipmentInItem.EquipmentInId, "编辑 - "))); } - } + } + } + #endregion + + #region 修改在用状态 + /// + /// + /// + /// + /// + protected void btnMenuIsUsed_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + + var equipmentInItem = BLL.EquipmentInItemService.GetEquipmentInItemById(id); + equipmentInItem.IsUsed = true; + BLL.EquipmentInItemService.UpdateEquipmentInItem(equipmentInItem); + BindGrid(); + ShowNotify("设备状态修改成功!", MessageBoxIcon.Success); + } + + /// + /// + /// + /// + /// + protected void btnMenuIsNotUsed_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + + var equipmentInItem = BLL.EquipmentInItemService.GetEquipmentInItemById(id); + equipmentInItem.IsUsed = false; + BLL.EquipmentInItemService.UpdateEquipmentInItem(equipmentInItem); + BindGrid(); + ShowNotify("设备状态修改成功!", MessageBoxIcon.Success); } #endregion @@ -226,15 +264,21 @@ namespace FineUIPro.Web.HSSE.InApproveManager foreach (int rowIndex in Grid1.SelectedRowIndexArray) { string rowID = Grid1.DataKeys[rowIndex][0].ToString(); - var equipmentIn = BLL.EquipmentInService.GetEquipmentInById(rowID); - if (equipmentIn != null) + var equipmentInItem = BLL.EquipmentInItemService.GetEquipmentInItemById(rowID); + if (equipmentInItem != null) { + var equipmentIn = BLL.EquipmentInService.GetEquipmentInById(equipmentInItem.EquipmentInId); + string equipmentInId = equipmentInItem.EquipmentInId; BLL.LogService.AddSys_Log(this.CurrUser, equipmentIn.EquipmentInCode, equipmentIn.EquipmentInId, BLL.Const.EquipmentInMenuId, BLL.Const.BtnDelete); - BLL.EquipmentInItemService.DeleteEquipmentInItemByEquipmentInId(rowID); - BLL.EquipmentInService.DeleteEquipmentInById(rowID); + BLL.EquipmentInItemService.DeleteEquipmentInItemById(rowID); + var exitItems = BLL.EquipmentInItemService.GetEquipmentInItemByEquipmentInId(equipmentInId); + if (exitItems.Count == 0) + { + BLL.EquipmentInService.DeleteEquipmentInById(equipmentInId); + } } } - + Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.ConstructionEquipment); this.BindGrid(); ShowNotify("删除数据成功!", MessageBoxIcon.Success); } @@ -263,6 +307,8 @@ namespace FineUIPro.Web.HSSE.InApproveManager if (buttonList.Contains(BLL.Const.BtnModify)) { this.btnMenuEdit.Hidden = false; + this.btnMenuIsUsed.Hidden = false; + this.btnMenuIsNotUsed.Hidden = false; } if (buttonList.Contains(BLL.Const.BtnDelete)) { @@ -281,7 +327,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager { Response.ClearContent(); string filename = Funs.GetNewFileName(); - Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("特种设备机具入场报批" + filename, System.Text.Encoding.UTF8) + ".xls"); + 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 = this.Grid1.RecordCount; @@ -290,5 +336,26 @@ namespace FineUIPro.Web.HSSE.InApproveManager Response.End(); } #endregion + + #region 格式化字符串 + /// + /// 获取设备名称 + /// + /// + /// + protected string ConvertEqiupment(object equipmentId) + { + string equipmentName = string.Empty; + if (equipmentId != null) + { + var specialEquipment = BLL.SpecialEquipmentService.GetSpecialEquipmentById(equipmentId.ToString()); + if (specialEquipment != null) + { + equipmentName = specialEquipment.SpecialEquipmentName; + } + } + return equipmentName; + } + #endregion } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentIn.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentIn.aspx.designer.cs index e443425d..0e47490e 100644 --- a/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentIn.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentIn.aspx.designer.cs @@ -57,15 +57,6 @@ namespace FineUIPro.Web.HSSE.InApproveManager { /// protected global::FineUIPro.Toolbar Toolbar2; - /// - /// txtEquipmentInCode 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtEquipmentInCode; - /// /// ToolbarFill1 控件。 /// @@ -94,13 +85,22 @@ namespace FineUIPro.Web.HSSE.InApproveManager { protected global::FineUIPro.Button btnOut; /// - /// lblNumber 控件。 + /// labNumber 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::System.Web.UI.WebControls.Label lblNumber; + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// lblSpecialEquipmentId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblSpecialEquipmentId; /// /// ToolbarSeparator1 控件。 @@ -165,6 +165,24 @@ namespace FineUIPro.Web.HSSE.InApproveManager { /// protected global::FineUIPro.MenuButton btnMenuEdit; + /// + /// btnMenuIsUsed 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuIsUsed; + + /// + /// btnMenuIsNotUsed 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuIsNotUsed; + /// /// btnMenuDelete 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentInEdit.aspx b/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentInEdit.aspx index c07d9fcc..ee3079c2 100644 --- a/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentInEdit.aspx +++ b/SGGL/FineUIPro.Web/HSSE/InApproveManager/EquipmentInEdit.aspx @@ -1,8 +1,6 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentInEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.InApproveManager.EquipmentInEdit" ValidateRequest="false" %> -<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" - TagPrefix="uc1" %> @@ -63,10 +61,10 @@ - - @@ -117,6 +115,9 @@ SortField="CommercialInsuranceNum" FieldType="String" HeaderText="商业险保单号" HeaderTextAlign="Center" TextAlign="Left"> + + @@ -133,32 +134,22 @@ - - - - - - - + - - - - + @@ -166,7 +157,7 @@ + /// + /// + 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 = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + #endregion + + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Emergency/ServerEmergencySupply.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Emergency/ServerEmergencySupply.aspx.designer.cs new file mode 100644 index 00000000..b4cc7784 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Emergency/ServerEmergencySupply.aspx.designer.cs @@ -0,0 +1,233 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Emergency +{ + + + public partial class ServerEmergencySupply + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// ContentPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel1; + + /// + /// ucTree 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// txtFileCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtFileCode; + + /// + /// txtFileName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtFileName; + + /// + /// drpUnitId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitId; + + /// + /// 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; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx new file mode 100644 index 00000000..34d58a32 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx @@ -0,0 +1,124 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanySafetyMeeting.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Meeting.CompanySafetyMeeting" %> + + + + + + 企业安委会 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx.cs new file mode 100644 index 00000000..0e14eb86 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx.cs @@ -0,0 +1,280 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.ZHGL.Meeting +{ + public partial class CompanySafetyMeeting : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + ////权限按钮方法 + this.GetButtonPower(); + this.btnNew.OnClientClick = Window1.GetShowReference("CompanySafetyMeetingEdit.aspx") + "return false;"; + if (this.CurrUser != null && this.CurrUser.PageSize.HasValue) + { + Grid1.PageSize = this.CurrUser.PageSize.Value; + } + this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT CompanySafetyMeeting.CompanySafetyMeetingId,CodeRecords.Code AS CompanySafetyMeetingCode,CompanySafetyMeeting.CompanySafetyMeetingName,CompanySafetyMeeting.CompanySafetyMeetingDate,CompanySafetyMeeting.CompileMan,CompanySafetyMeeting.CompanySafetyMeetingContents,CompanySafetyMeeting.CompileDate,CompanySafetyMeeting.MeetingHours,CompanySafetyMeeting.MeetingHostMan,CompanySafetyMeeting.AttentPersonNum,CompanySafetyMeeting.AttentPerson " + + @" FROM Meeting_CompanySafetyMeeting AS CompanySafetyMeeting " + + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON CompanySafetyMeeting.CompanySafetyMeetingId=CodeRecords.DataId " + + @" LEFT JOIN Sys_User AS Users ON CompanySafetyMeeting.CompileMan=Users.UserId WHERE 1=1 "; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.txtCompanySafetyMeetingCode.Text.Trim())) + { + strSql += " AND CompanySafetyMeetingCode LIKE @CompanySafetyMeetingCode"; + listStr.Add(new SqlParameter("@CompanySafetyMeetingCode", "%" + this.txtCompanySafetyMeetingCode.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtCompanySafetyMeetingName.Text.Trim())) + { + strSql += " AND CompanySafetyMeetingName LIKE @CompanySafetyMeetingName"; + listStr.Add(new SqlParameter("@CompanySafetyMeetingName", "%" + this.txtCompanySafetyMeetingName.Text.Trim() + "%")); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid(); + } + + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, EventArgs e) + { + BindGrid(); + } + #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 meeting = BLL.CompanySafetyMeetingService.GetCompanySafetyMeetingById(id); + if (meeting != null) + { + if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CompanySafetyMeetingView.aspx?CompanySafetyMeetingId={0}", id, "查看 - "))); + } + else + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CompanySafetyMeetingEdit.aspx?CompanySafetyMeetingId={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 meet = BLL.CompanySafetyMeetingService.GetCompanySafetyMeetingById(rowID); + if (meet != null) + { + BLL.LogService.AddSys_Log(this.CurrUser, meet.CompanySafetyMeetingCode, meet.CompanySafetyMeetingId, BLL.Const.CompanySafetyMeetingMenuId, BLL.Const.BtnDelete); + + BLL.CompanySafetyMeetingService.DeleteCompanySafetyMeetingById(rowID); + } + } + + this.BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 格式化字符串 + /// + /// 获取整理人姓名 + /// + /// + /// + protected string ConvertCompileMan(object userId) + { + string userName = string.Empty; + if (userId != null) + { + var user = BLL.UserService.GetUserByUserId(userId.ToString()); + if (user != null) + { + userName = user.UserName; + } + } + return userName; + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CompanySafetyMeetingMenuId); + 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 + + #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 = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btSearch_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx.designer.cs new file mode 100644 index 00000000..c3df22a6 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeeting.aspx.designer.cs @@ -0,0 +1,204 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Meeting { + + + public partial class CompanySafetyMeeting { + + /// + /// 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; + + /// + /// txtCompanySafetyMeetingCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySafetyMeetingCode; + + /// + /// txtCompanySafetyMeetingName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySafetyMeetingName; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btSearch; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// lblMeetingHostMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblMeetingHostMan; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx new file mode 100644 index 00000000..8efbc986 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx @@ -0,0 +1,90 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanySafetyMeetingEdit.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Meeting.CompanySafetyMeetingEdit" ValidateRequest="false" %> + + + + + + + 编辑企业安委会 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx.cs new file mode 100644 index 00000000..803d3fb5 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx.cs @@ -0,0 +1,201 @@ +using BLL; +using System; +using System.Web; + +namespace FineUIPro.Web.ZHGL.Meeting +{ + public partial class CompanySafetyMeetingEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string CompanySafetyMeetingId + { + get + { + return (string)ViewState["CompanySafetyMeetingId"]; + } + set + { + ViewState["CompanySafetyMeetingId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.InitDropDownList(); + this.CompanySafetyMeetingId = Request.Params["CompanySafetyMeetingId"]; + if (!string.IsNullOrEmpty(this.CompanySafetyMeetingId)) + { + Model.Meeting_CompanySafetyMeeting CompanySafetyMeeting = BLL.CompanySafetyMeetingService.GetCompanySafetyMeetingById(this.CompanySafetyMeetingId); + if (CompanySafetyMeeting != null) + { + this.txtCompanySafetyMeetingCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.CompanySafetyMeetingId); + this.txtCompanySafetyMeetingName.Text = CompanySafetyMeeting.CompanySafetyMeetingName; + this.txtCompanySafetyMeetingDate.Text = string.Format("{0:yyyy-MM-dd}", CompanySafetyMeeting.CompanySafetyMeetingDate); + if (!string.IsNullOrEmpty(CompanySafetyMeeting.CompileMan)) + { + this.drpCompileMan.SelectedValue = CompanySafetyMeeting.CompileMan; + } + if (CompanySafetyMeeting.AttentPersonNum != null) + { + this.txtAttentPersonNum.Text = CompanySafetyMeeting.AttentPersonNum.ToString(); + } + this.txtCompanySafetyMeetingContents.Text = HttpUtility.HtmlDecode(CompanySafetyMeeting.CompanySafetyMeetingContents); + this.txtMeetingHours.Text = Convert.ToString(CompanySafetyMeeting.MeetingHours); + this.txtMeetingHostMan.Text = CompanySafetyMeeting.MeetingHostMan; + this.txtAttentPerson.Text = CompanySafetyMeeting.AttentPerson; + } + } + else + { + this.drpCompileMan.SelectedValue = this.CurrUser.UserId; + this.txtCompanySafetyMeetingDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + var codeTemplateRule = BLL.SysConstSetService.GetCodeTemplateRuleByMenuId(BLL.Const.ProjectWeekMeetingMenuId); + if (codeTemplateRule != null) + { + this.txtCompanySafetyMeetingContents.Text = HttpUtility.HtmlDecode(codeTemplateRule.Template); + } + ////自动生成编码 + this.txtCompanySafetyMeetingCode.Text = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.CompanySafetyMeetingMenuId, null, this.CurrUser.UnitId); + this.txtCompanySafetyMeetingName.Text = this.SimpleForm1.Title; + this.txtMeetingHours.Text = "1"; + this.txtMeetingHostMan.Text = this.CurrUser.UserName; + } + } + } + #endregion + + /// + /// 初始化下拉框 + /// + private void InitDropDownList() + { + UserService.InitUserDropDownList(this.drpCompileMan, null, true); + } + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + this.SaveData(BLL.Const.BtnSave); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + /// + /// 保存数据 + /// + /// + private void SaveData(string type) + { + Model.Meeting_CompanySafetyMeeting CompanySafetyMeeting = new Model.Meeting_CompanySafetyMeeting + { + CompanySafetyMeetingCode = this.txtCompanySafetyMeetingCode.Text.Trim(), + CompanySafetyMeetingName = this.txtCompanySafetyMeetingName.Text.Trim(), + CompanySafetyMeetingDate = Funs.GetNewDateTime(this.txtCompanySafetyMeetingDate.Text.Trim()) + }; + if (this.drpCompileMan.SelectedValue != BLL.Const._Null) + { + CompanySafetyMeeting.CompileMan = this.drpCompileMan.SelectedValue; + } + CompanySafetyMeeting.AttentPersonNum = Funs.GetNewIntOrZero(this.txtAttentPersonNum.Text.Trim()); + CompanySafetyMeeting.CompanySafetyMeetingContents = HttpUtility.HtmlEncode(this.txtCompanySafetyMeetingContents.Text); + CompanySafetyMeeting.CompileDate = DateTime.Now; + CompanySafetyMeeting.MeetingHours = Funs.GetNewInt(this.txtMeetingHours.Text.Trim()); + CompanySafetyMeeting.MeetingHostMan = this.txtMeetingHostMan.Text.Trim(); + CompanySafetyMeeting.AttentPerson = this.txtAttentPerson.Text.Trim(); + if (!string.IsNullOrEmpty(this.CompanySafetyMeetingId)) + { + CompanySafetyMeeting.CompanySafetyMeetingId = this.CompanySafetyMeetingId; + BLL.CompanySafetyMeetingService.UpdateCompanySafetyMeeting(CompanySafetyMeeting); + BLL.LogService.AddSys_Log(this.CurrUser, CompanySafetyMeeting.CompanySafetyMeetingCode, CompanySafetyMeeting.CompanySafetyMeetingId, BLL.Const.CompanySafetyMeetingMenuId, BLL.Const.BtnModify); + } + else + { + this.CompanySafetyMeetingId = SQLHelper.GetNewID(typeof(Model.Meeting_CompanySafetyMeeting)); + CompanySafetyMeeting.CompanySafetyMeetingId = this.CompanySafetyMeetingId; + BLL.CompanySafetyMeetingService.AddCompanySafetyMeeting(CompanySafetyMeeting); + BLL.LogService.AddSys_Log(this.CurrUser, CompanySafetyMeeting.CompanySafetyMeetingCode, CompanySafetyMeeting.CompanySafetyMeetingId, BLL.Const.CompanySafetyMeetingMenuId, BLL.Const.BtnAdd); + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.CompanySafetyMeetingId)) + { + SaveData(BLL.Const.BtnSave); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySafetyMeetingAttachUrl&menuId={1}", this.CompanySafetyMeetingId, BLL.Const.CompanySafetyMeetingMenuId))); + } + #endregion + + protected void btnAttachUrl1_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.CompanySafetyMeetingId)) + { + SaveData(Const.BtnSave); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySafetyMeetingAttachUrl&menuId={1}&strParam=1", this.CompanySafetyMeetingId, Const.CompanySafetyMeetingMenuId))); + } + + protected void btnAttachUrl2_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.CompanySafetyMeetingId)) + { + SaveData(Const.BtnSave); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySafetyMeetingAttachUrl&menuId={1}&strParam=2", this.CompanySafetyMeetingId, Const.CompanySafetyMeetingMenuId))); + } + + /// + /// 计算参会人数 + /// + /// + /// + protected void txtAttentPerson_Blur(object sender, EventArgs e) + { + string str = this.txtAttentPerson.Text.Trim(); + if (!string.IsNullOrEmpty(str)) + { + if (str.Contains(",")) + { + this.txtAttentPersonNum.Text = str.Split(',').Length.ToString(); + } + else if (str.Contains(",")) + { + this.txtAttentPersonNum.Text = str.Split(',').Length.ToString(); + } + else if (str.Contains(";")) + { + this.txtAttentPersonNum.Text = str.Split(';').Length.ToString(); + } + else if (str.Contains(";")) + { + this.txtAttentPersonNum.Text = str.Split(';').Length.ToString(); + } + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx.designer.cs new file mode 100644 index 00000000..fc0ceade --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingEdit.aspx.designer.cs @@ -0,0 +1,204 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Meeting { + + + public partial class CompanySafetyMeetingEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtCompanySafetyMeetingCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySafetyMeetingCode; + + /// + /// txtCompanySafetyMeetingName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySafetyMeetingName; + + /// + /// txtCompanySafetyMeetingDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCompanySafetyMeetingDate; + + /// + /// drpCompileMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpCompileMan; + + /// + /// txtMeetingHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMeetingHours; + + /// + /// txtMeetingHostMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMeetingHostMan; + + /// + /// txtAttentPersonNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtAttentPersonNum; + + /// + /// txtAttentPerson 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAttentPerson; + + /// + /// txtCompanySafetyMeetingContents 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HtmlEditor txtCompanySafetyMeetingContents; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// lbTemp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbTemp; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// btnAttachUrl1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl1; + + /// + /// btnAttachUrl2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl2; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx new file mode 100644 index 00000000..e354fe95 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx @@ -0,0 +1,84 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanySafetyMeetingView.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Meeting.CompanySafetyMeetingView" ValidateRequest="false" %> + + + + + + + 查看企业安委会 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx.cs new file mode 100644 index 00000000..b6e4614b --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx.cs @@ -0,0 +1,101 @@ +using System; +using System.Web; + +namespace FineUIPro.Web.ZHGL.Meeting +{ + public partial class CompanySafetyMeetingView : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string CompanySafetyMeetingId + { + get + { + return (string)ViewState["CompanySafetyMeetingId"]; + } + set + { + ViewState["CompanySafetyMeetingId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.CompanySafetyMeetingId = Request.Params["CompanySafetyMeetingId"]; + if (!string.IsNullOrEmpty(this.CompanySafetyMeetingId)) + { + Model.Meeting_CompanySafetyMeeting CompanySafetyMeeting = BLL.CompanySafetyMeetingService.GetCompanySafetyMeetingById(this.CompanySafetyMeetingId); + if (CompanySafetyMeeting != null) + { + this.txtCompanySafetyMeetingCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.CompanySafetyMeetingId); + this.txtCompanySafetyMeetingName.Text = CompanySafetyMeeting.CompanySafetyMeetingName; + if (CompanySafetyMeeting.CompanySafetyMeetingDate != null) + { + this.txtCompanySafetyMeetingDate.Text = string.Format("{0:yyyy-MM-dd}", CompanySafetyMeeting.CompanySafetyMeetingDate); + } + if (!string.IsNullOrEmpty(CompanySafetyMeeting.CompileMan)) + { + var user = BLL.UserService.GetUserByUserId(CompanySafetyMeeting.CompileMan); + if (user != null) + { + this.txtCompileMan.Text = user.UserName; + } + } + if (CompanySafetyMeeting.AttentPersonNum != null) + { + this.txtAttentPersonNum.Text = CompanySafetyMeeting.AttentPersonNum.ToString(); + } + this.txtCompanySafetyMeetingContents.Text = HttpUtility.HtmlDecode(CompanySafetyMeeting.CompanySafetyMeetingContents); + this.txtMeetingHours.Text = Convert.ToString(CompanySafetyMeeting.MeetingHours); + this.txtMeetingHostMan.Text = CompanySafetyMeeting.MeetingHostMan; + this.txtAttentPerson.Text = CompanySafetyMeeting.AttentPerson; + } + } + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.CompanySafetyMeetingId)) + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySafetyMeetingAttachUrl&menuId={1}&type=-1", this.CompanySafetyMeetingId, BLL.Const.CompanySafetyMeetingMenuId))); + } + } + #endregion + + protected void btnAttachUrl1_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.CompanySafetyMeetingId)) + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySafetyMeetingAttachUrl&menuId={1}&strParam=1&type=-1", this.CompanySafetyMeetingId, BLL.Const.CompanySafetyMeetingMenuId))); + } + } + + protected void btnAttachUrl2_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.CompanySafetyMeetingId)) + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySafetyMeetingAttachUrl&menuId={1}&strParam=2&type=-1", this.CompanySafetyMeetingId, BLL.Const.CompanySafetyMeetingMenuId))); + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx.designer.cs new file mode 100644 index 00000000..b542d8a4 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySafetyMeetingView.aspx.designer.cs @@ -0,0 +1,195 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Meeting { + + + public partial class CompanySafetyMeetingView { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtCompanySafetyMeetingCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySafetyMeetingCode; + + /// + /// txtCompanySafetyMeetingName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySafetyMeetingName; + + /// + /// txtCompanySafetyMeetingDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySafetyMeetingDate; + + /// + /// txtCompileMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompileMan; + + /// + /// txtMeetingHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMeetingHours; + + /// + /// txtMeetingHostMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMeetingHostMan; + + /// + /// txtAttentPersonNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtAttentPersonNum; + + /// + /// txtAttentPerson 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAttentPerson; + + /// + /// txtCompanySafetyMeetingContents 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HtmlEditor txtCompanySafetyMeetingContents; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// lbTemp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbTemp; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// btnAttachUrl1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl1; + + /// + /// btnAttachUrl2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl2; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx new file mode 100644 index 00000000..e8248130 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx @@ -0,0 +1,124 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanySpecialMeeting.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Meeting.CompanySpecialMeeting" %> + + + + + + 企业专题会 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx.cs new file mode 100644 index 00000000..61b15ab6 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx.cs @@ -0,0 +1,280 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.ZHGL.Meeting +{ + public partial class CompanySpecialMeeting : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + ////权限按钮方法 + this.GetButtonPower(); + this.btnNew.OnClientClick = Window1.GetShowReference("CompanySpecialMeetingEdit.aspx") + "return false;"; + if (this.CurrUser != null && this.CurrUser.PageSize.HasValue) + { + Grid1.PageSize = this.CurrUser.PageSize.Value; + } + this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT CompanySpecialMeeting.CompanySpecialMeetingId,CodeRecords.Code AS CompanySpecialMeetingCode,CompanySpecialMeeting.CompanySpecialMeetingName,CompanySpecialMeeting.CompanySpecialMeetingDate,CompanySpecialMeeting.CompileMan,CompanySpecialMeeting.CompanySpecialMeetingContents,CompanySpecialMeeting.CompileDate,CompanySpecialMeeting.MeetingHours,CompanySpecialMeeting.MeetingHostMan,CompanySpecialMeeting.AttentPersonNum,CompanySpecialMeeting.AttentPerson " + + @" FROM Meeting_CompanySpecialMeeting AS CompanySpecialMeeting " + + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON CompanySpecialMeeting.CompanySpecialMeetingId=CodeRecords.DataId " + + @" LEFT JOIN Sys_User AS Users ON CompanySpecialMeeting.CompileMan=Users.UserId WHERE 1=1 "; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.txtCompanySpecialMeetingCode.Text.Trim())) + { + strSql += " AND CompanySpecialMeetingCode LIKE @CompanySpecialMeetingCode"; + listStr.Add(new SqlParameter("@CompanySpecialMeetingCode", "%" + this.txtCompanySpecialMeetingCode.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtCompanySpecialMeetingName.Text.Trim())) + { + strSql += " AND CompanySpecialMeetingName LIKE @CompanySpecialMeetingName"; + listStr.Add(new SqlParameter("@CompanySpecialMeetingName", "%" + this.txtCompanySpecialMeetingName.Text.Trim() + "%")); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid(); + } + + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, EventArgs e) + { + BindGrid(); + } + #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 meeting = BLL.CompanySpecialMeetingService.GetCompanySpecialMeetingById(id); + if (meeting != null) + { + if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CompanySpecialMeetingView.aspx?CompanySpecialMeetingId={0}", id, "查看 - "))); + } + else + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CompanySpecialMeetingEdit.aspx?CompanySpecialMeetingId={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 meet = BLL.CompanySpecialMeetingService.GetCompanySpecialMeetingById(rowID); + if (meet != null) + { + BLL.LogService.AddSys_Log(this.CurrUser, meet.CompanySpecialMeetingCode, meet.CompanySpecialMeetingId, BLL.Const.CompanySpecialMeetingMenuId, BLL.Const.BtnDelete); + + BLL.CompanySpecialMeetingService.DeleteCompanySpecialMeetingById(rowID); + } + } + + this.BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 格式化字符串 + /// + /// 获取整理人姓名 + /// + /// + /// + protected string ConvertCompileMan(object userId) + { + string userName = string.Empty; + if (userId != null) + { + var user = BLL.UserService.GetUserByUserId(userId.ToString()); + if (user != null) + { + userName = user.UserName; + } + } + return userName; + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CompanySpecialMeetingMenuId); + 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 + + #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 = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btSearch_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx.designer.cs new file mode 100644 index 00000000..57a4c987 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeeting.aspx.designer.cs @@ -0,0 +1,204 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Meeting { + + + public partial class CompanySpecialMeeting { + + /// + /// 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; + + /// + /// txtCompanySpecialMeetingCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySpecialMeetingCode; + + /// + /// txtCompanySpecialMeetingName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySpecialMeetingName; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btSearch; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// lblMeetingHostMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblMeetingHostMan; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx new file mode 100644 index 00000000..edde247e --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx @@ -0,0 +1,89 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanySpecialMeetingEdit.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Meeting.CompanySpecialMeetingEdit" ValidateRequest="false" %> + + + + + + 编辑企业专题会 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx.cs new file mode 100644 index 00000000..a8b197d7 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx.cs @@ -0,0 +1,201 @@ +using BLL; +using System; +using System.Web; + +namespace FineUIPro.Web.ZHGL.Meeting +{ + public partial class CompanySpecialMeetingEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string CompanySpecialMeetingId + { + get + { + return (string)ViewState["CompanySpecialMeetingId"]; + } + set + { + ViewState["CompanySpecialMeetingId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.InitDropDownList(); + this.CompanySpecialMeetingId = Request.Params["CompanySpecialMeetingId"]; + if (!string.IsNullOrEmpty(this.CompanySpecialMeetingId)) + { + Model.Meeting_CompanySpecialMeeting CompanySpecialMeeting = BLL.CompanySpecialMeetingService.GetCompanySpecialMeetingById(this.CompanySpecialMeetingId); + if (CompanySpecialMeeting != null) + { + this.txtCompanySpecialMeetingCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.CompanySpecialMeetingId); + this.txtCompanySpecialMeetingName.Text = CompanySpecialMeeting.CompanySpecialMeetingName; + this.txtCompanySpecialMeetingDate.Text = string.Format("{0:yyyy-MM-dd}", CompanySpecialMeeting.CompanySpecialMeetingDate); + if (!string.IsNullOrEmpty(CompanySpecialMeeting.CompileMan)) + { + this.drpCompileMan.SelectedValue = CompanySpecialMeeting.CompileMan; + } + if (CompanySpecialMeeting.AttentPersonNum != null) + { + this.txtAttentPersonNum.Text = CompanySpecialMeeting.AttentPersonNum.ToString(); + } + this.txtCompanySpecialMeetingContents.Text = HttpUtility.HtmlDecode(CompanySpecialMeeting.CompanySpecialMeetingContents); + this.txtMeetingHours.Text = Convert.ToString(CompanySpecialMeeting.MeetingHours); + this.txtMeetingHostMan.Text = CompanySpecialMeeting.MeetingHostMan; + this.txtAttentPerson.Text = CompanySpecialMeeting.AttentPerson; + } + } + else + { + this.drpCompileMan.SelectedValue = this.CurrUser.UserId; + this.txtCompanySpecialMeetingDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + var codeTemplateRule = BLL.SysConstSetService.GetCodeTemplateRuleByMenuId(BLL.Const.ProjectWeekMeetingMenuId); + if (codeTemplateRule != null) + { + this.txtCompanySpecialMeetingContents.Text = HttpUtility.HtmlDecode(codeTemplateRule.Template); + } + ////自动生成编码 + this.txtCompanySpecialMeetingCode.Text = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.CompanySpecialMeetingMenuId, null, this.CurrUser.UnitId); + this.txtCompanySpecialMeetingName.Text = this.SimpleForm1.Title; + this.txtMeetingHours.Text = "1"; + this.txtMeetingHostMan.Text = this.CurrUser.UserName; + } + } + } + #endregion + + /// + /// 初始化下拉框 + /// + private void InitDropDownList() + { + UserService.InitUserDropDownList(this.drpCompileMan, null, true); + } + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + this.SaveData(BLL.Const.BtnSave); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + /// + /// 保存数据 + /// + /// + private void SaveData(string type) + { + Model.Meeting_CompanySpecialMeeting CompanySpecialMeeting = new Model.Meeting_CompanySpecialMeeting + { + CompanySpecialMeetingCode = this.txtCompanySpecialMeetingCode.Text.Trim(), + CompanySpecialMeetingName = this.txtCompanySpecialMeetingName.Text.Trim(), + CompanySpecialMeetingDate = Funs.GetNewDateTime(this.txtCompanySpecialMeetingDate.Text.Trim()) + }; + if (this.drpCompileMan.SelectedValue != BLL.Const._Null) + { + CompanySpecialMeeting.CompileMan = this.drpCompileMan.SelectedValue; + } + CompanySpecialMeeting.AttentPersonNum = Funs.GetNewIntOrZero(this.txtAttentPersonNum.Text.Trim()); + CompanySpecialMeeting.CompanySpecialMeetingContents = HttpUtility.HtmlEncode(this.txtCompanySpecialMeetingContents.Text); + CompanySpecialMeeting.CompileDate = DateTime.Now; + CompanySpecialMeeting.MeetingHours = Funs.GetNewInt(this.txtMeetingHours.Text.Trim()); + CompanySpecialMeeting.MeetingHostMan = this.txtMeetingHostMan.Text.Trim(); + CompanySpecialMeeting.AttentPerson = this.txtAttentPerson.Text.Trim(); + if (!string.IsNullOrEmpty(this.CompanySpecialMeetingId)) + { + CompanySpecialMeeting.CompanySpecialMeetingId = this.CompanySpecialMeetingId; + BLL.CompanySpecialMeetingService.UpdateCompanySpecialMeeting(CompanySpecialMeeting); + BLL.LogService.AddSys_Log(this.CurrUser, CompanySpecialMeeting.CompanySpecialMeetingCode, CompanySpecialMeeting.CompanySpecialMeetingId, BLL.Const.CompanySpecialMeetingMenuId, BLL.Const.BtnModify); + } + else + { + this.CompanySpecialMeetingId = SQLHelper.GetNewID(typeof(Model.Meeting_CompanySpecialMeeting)); + CompanySpecialMeeting.CompanySpecialMeetingId = this.CompanySpecialMeetingId; + BLL.CompanySpecialMeetingService.AddCompanySpecialMeeting(CompanySpecialMeeting); + BLL.LogService.AddSys_Log(this.CurrUser, CompanySpecialMeeting.CompanySpecialMeetingCode, CompanySpecialMeeting.CompanySpecialMeetingId, BLL.Const.CompanySpecialMeetingMenuId, BLL.Const.BtnAdd); + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.CompanySpecialMeetingId)) + { + SaveData(BLL.Const.BtnSave); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySpecialMeetingAttachUrl&menuId={1}", this.CompanySpecialMeetingId, BLL.Const.CompanySpecialMeetingMenuId))); + } + #endregion + + protected void btnAttachUrl1_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.CompanySpecialMeetingId)) + { + SaveData(Const.BtnSave); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySpecialMeetingAttachUrl&menuId={1}&strParam=1", this.CompanySpecialMeetingId, Const.CompanySpecialMeetingMenuId))); + } + + protected void btnAttachUrl2_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.CompanySpecialMeetingId)) + { + SaveData(Const.BtnSave); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySpecialMeetingAttachUrl&menuId={1}&strParam=2", this.CompanySpecialMeetingId, Const.CompanySpecialMeetingMenuId))); + } + + /// + /// 计算参会人数 + /// + /// + /// + protected void txtAttentPerson_Blur(object sender, EventArgs e) + { + string str = this.txtAttentPerson.Text.Trim(); + if (!string.IsNullOrEmpty(str)) + { + if (str.Contains(",")) + { + this.txtAttentPersonNum.Text = str.Split(',').Length.ToString(); + } + else if (str.Contains(",")) + { + this.txtAttentPersonNum.Text = str.Split(',').Length.ToString(); + } + else if (str.Contains(";")) + { + this.txtAttentPersonNum.Text = str.Split(';').Length.ToString(); + } + else if (str.Contains(";")) + { + this.txtAttentPersonNum.Text = str.Split(';').Length.ToString(); + } + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx.designer.cs new file mode 100644 index 00000000..86af9a07 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingEdit.aspx.designer.cs @@ -0,0 +1,204 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Meeting { + + + public partial class CompanySpecialMeetingEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtCompanySpecialMeetingCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySpecialMeetingCode; + + /// + /// txtCompanySpecialMeetingName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySpecialMeetingName; + + /// + /// txtCompanySpecialMeetingDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCompanySpecialMeetingDate; + + /// + /// drpCompileMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpCompileMan; + + /// + /// txtMeetingHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMeetingHours; + + /// + /// txtMeetingHostMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMeetingHostMan; + + /// + /// txtAttentPersonNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtAttentPersonNum; + + /// + /// txtAttentPerson 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAttentPerson; + + /// + /// txtCompanySpecialMeetingContents 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HtmlEditor txtCompanySpecialMeetingContents; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// lbTemp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbTemp; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// btnAttachUrl1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl1; + + /// + /// btnAttachUrl2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl2; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx new file mode 100644 index 00000000..96239165 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx @@ -0,0 +1,84 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanySpecialMeetingView.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Meeting.CompanySpecialMeetingView" ValidateRequest="false" %> + + + + + + + 查看企业专题会 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx.cs new file mode 100644 index 00000000..66f2f1ee --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx.cs @@ -0,0 +1,101 @@ +using System; +using System.Web; + +namespace FineUIPro.Web.ZHGL.Meeting +{ + public partial class CompanySpecialMeetingView : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string CompanySpecialMeetingId + { + get + { + return (string)ViewState["CompanySpecialMeetingId"]; + } + set + { + ViewState["CompanySpecialMeetingId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.CompanySpecialMeetingId = Request.Params["CompanySpecialMeetingId"]; + if (!string.IsNullOrEmpty(this.CompanySpecialMeetingId)) + { + Model.Meeting_CompanySpecialMeeting CompanySpecialMeeting = BLL.CompanySpecialMeetingService.GetCompanySpecialMeetingById(this.CompanySpecialMeetingId); + if (CompanySpecialMeeting != null) + { + this.txtCompanySpecialMeetingCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.CompanySpecialMeetingId); + this.txtCompanySpecialMeetingName.Text = CompanySpecialMeeting.CompanySpecialMeetingName; + if (CompanySpecialMeeting.CompanySpecialMeetingDate != null) + { + this.txtCompanySpecialMeetingDate.Text = string.Format("{0:yyyy-MM-dd}", CompanySpecialMeeting.CompanySpecialMeetingDate); + } + if (!string.IsNullOrEmpty(CompanySpecialMeeting.CompileMan)) + { + var user = BLL.UserService.GetUserByUserId(CompanySpecialMeeting.CompileMan); + if (user != null) + { + this.txtCompileMan.Text = user.UserName; + } + } + if (CompanySpecialMeeting.AttentPersonNum != null) + { + this.txtAttentPersonNum.Text = CompanySpecialMeeting.AttentPersonNum.ToString(); + } + this.txtCompanySpecialMeetingContents.Text = HttpUtility.HtmlDecode(CompanySpecialMeeting.CompanySpecialMeetingContents); + this.txtMeetingHours.Text = Convert.ToString(CompanySpecialMeeting.MeetingHours); + this.txtMeetingHostMan.Text = CompanySpecialMeeting.MeetingHostMan; + this.txtAttentPerson.Text = CompanySpecialMeeting.AttentPerson; + } + } + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.CompanySpecialMeetingId)) + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySpecialMeetingAttachUrl&menuId={1}&type=-1", this.CompanySpecialMeetingId, BLL.Const.CompanySpecialMeetingMenuId))); + } + } + #endregion + + protected void btnAttachUrl1_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.CompanySpecialMeetingId)) + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySpecialMeetingAttachUrl&menuId={1}&strParam=1&type=-1", this.CompanySpecialMeetingId, BLL.Const.CompanySpecialMeetingMenuId))); + } + } + + protected void btnAttachUrl2_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.CompanySpecialMeetingId)) + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanySpecialMeetingAttachUrl&menuId={1}&strParam=2&type=-1", this.CompanySpecialMeetingId, BLL.Const.CompanySpecialMeetingMenuId))); + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx.designer.cs new file mode 100644 index 00000000..8e690bf8 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Meeting/CompanySpecialMeetingView.aspx.designer.cs @@ -0,0 +1,195 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Meeting { + + + public partial class CompanySpecialMeetingView { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtCompanySpecialMeetingCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySpecialMeetingCode; + + /// + /// txtCompanySpecialMeetingName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySpecialMeetingName; + + /// + /// txtCompanySpecialMeetingDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompanySpecialMeetingDate; + + /// + /// txtCompileMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCompileMan; + + /// + /// txtMeetingHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMeetingHours; + + /// + /// txtMeetingHostMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMeetingHostMan; + + /// + /// txtAttentPersonNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtAttentPersonNum; + + /// + /// txtAttentPerson 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAttentPerson; + + /// + /// txtCompanySpecialMeetingContents 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HtmlEditor txtCompanySpecialMeetingContents; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// lbTemp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbTemp; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// btnAttachUrl1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl1; + + /// + /// btnAttachUrl2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl2; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx new file mode 100644 index 00000000..2d06ae7a --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx @@ -0,0 +1,133 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BranchPerson.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Person.BranchPerson" %> + + + + + + 分支机构人员 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx.cs new file mode 100644 index 00000000..22805c21 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx.cs @@ -0,0 +1,347 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.ZHGL.Person +{ + public partial class BranchPerson : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + BLL.UnitService.InitNoThisAllUnitDownList(this.drpUnit, false); + Funs.FineUIPleaseSelect(drpUnit, "按单位查询"); + if (this.CurrUser.UnitId != null && this.CurrUser.UnitId != BLL.Const.UnitId_CWCEC) + { + this.drpUnit.Enabled = false; + this.drpUnit.SelectedValue = this.CurrUser.UnitId; + } + ////权限按钮方法 + this.GetButtonPower(); + this.btnNew.OnClientClick = Window1.GetShowReference("BranchPersonEdit.aspx") + "return false;"; + if (this.CurrUser != null && this.CurrUser.PageSize.HasValue) + { + Grid1.PageSize = this.CurrUser.PageSize.Value; + } + this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT CompanyBranchPerson.CompanyBranchPersonId,CompanyBranchPerson.UnitId,Unit.UnitName,CompanyBranchPerson.PersonName,case CompanyBranchPerson.Sex when '1' then '男' else '女' end as SexStr,CompanyBranchPerson.IdentityCard,WorkPost.WorkPostName,CompanyBranchPerson.Telephone,CompanyBranchPerson.IsOnJob,CompanyBranchPerson.Remark " + + @" FROM Person_CompanyBranchPerson AS CompanyBranchPerson " + + @" LEFT JOIN Base_Unit AS Unit ON CompanyBranchPerson.UnitId=Unit.UnitId" + + @" LEFT JOIN Base_WorkPost AS WorkPost ON CompanyBranchPerson.WorkPostId=WorkPost.WorkPostId WHERE 1=1 "; + List listStr = new List(); + if (this.drpUnit.SelectedValue != BLL.Const._Null) + { + strSql += " AND CompanyBranchPerson.UnitId = @UnitId"; + listStr.Add(new SqlParameter("@UnitId", this.drpUnit.SelectedValue)); + } + if (!string.IsNullOrEmpty(this.txtPersonName.Text.Trim())) + { + strSql += " AND PersonName LIKE @PersonName"; + listStr.Add(new SqlParameter("@PersonName", "%" + this.txtPersonName.Text.Trim() + "%")); + } + strSql += " AND CompanyBranchPerson.UnitId != @UnitId2"; + listStr.Add(new SqlParameter("@UnitId2", BLL.Const.UnitId_CWCEC)); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid(); + } + + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, EventArgs e) + { + BindGrid(); + } + #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 person = BLL.CompanyBranchPersonService.GetCompanyBranchPersonById(id); + if (person != null) + { + if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BranchPersonView.aspx?CompanyBranchPersonId={0}", id, "查看 - "))); + } + else + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BranchPersonEdit.aspx?CompanyBranchPersonId={0}", id, "编辑 - "))); + } + } + } + #endregion + + #region 授权 + /// + /// 右键授权事件 + /// + /// + /// + protected void btnMenuUpdate_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + var person = BLL.CompanyBranchPersonService.GetCompanyBranchPersonById(id); + if (person != null) + { + var user = BLL.UserService.GetUserByIdentityCard(person.IdentityCard); + if (user == null) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../SysManage/UserListEdit.aspx?CompanyBranchPersonId={0}", id, "授权 - "))); + } + else + { + Alert.ShowInTop("该人员已授权!", MessageBoxIcon.Warning); + return; + } + } + } + #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 meet = BLL.CompanyBranchPersonService.GetCompanyBranchPersonById(rowID); + if (meet != null) + { + BLL.LogService.AddSys_Log(this.CurrUser, meet.PersonName, meet.CompanyBranchPersonId, BLL.Const.BranchPersonMenuId, BLL.Const.BtnDelete); + + BLL.CompanyBranchPersonService.DeleteCompanyBranchPersonById(rowID); + } + } + + this.BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 格式化字符串 + /// + /// 获取整理人姓名 + /// + /// + /// + protected string ConvertCompileMan(object userId) + { + string userName = string.Empty; + if (userId != null) + { + var user = BLL.UserService.GetUserByUserId(userId.ToString()); + if (user != null) + { + userName = user.UserName; + } + } + return userName; + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.BranchPersonMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + this.btnNew.Hidden = false; + this.btnImport.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnMenuEdit.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnMenuUpdate.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDelete.Hidden = false; + } + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("BranchPersonIn.aspx", "导入 - "))); + } + + /// + /// 关闭导入弹出窗口 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #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 = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btSearch_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx.designer.cs new file mode 100644 index 00000000..ac943e60 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPerson.aspx.designer.cs @@ -0,0 +1,222 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Person { + + + public partial class BranchPerson { + + /// + /// 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; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + + /// + /// txtPersonName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPersonName; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btSearch; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuUpdate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuUpdate; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx new file mode 100644 index 00000000..735b82a2 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx @@ -0,0 +1,83 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BranchPersonEdit.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Person.BranchPersonEdit" ValidateRequest="false" %> + + + + + +编辑用户 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx.cs new file mode 100644 index 00000000..89c8a304 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx.cs @@ -0,0 +1,206 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using BLL; + +namespace FineUIPro.Web.ZHGL.Person +{ + public partial class BranchPersonEdit : PageBase + { + #region 定义项 + /// + /// 用户主键 + /// + public string CompanyBranchPersonId + { + get + { + return (string)ViewState["CompanyBranchPersonId"]; + } + set + { + ViewState["CompanyBranchPersonId"] = value; + } + } + /// + /// 单位主键 + /// + public string UnitId + { + get + { + return (string)ViewState["UnitId"]; + } + set + { + ViewState["UnitId"] = value; + } + } + #endregion + + /// + /// 用户编辑页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + string type = Request.Params["type"]; + BLL.UnitService.InitNoThisAllUnitDownList(this.drpUnit, true); + if (this.CurrUser.UnitId != null && this.CurrUser.UnitId != BLL.Const.UnitId_CWCEC) + { + this.drpUnit.Enabled = false; + this.drpUnit.SelectedValue = this.CurrUser.UnitId; + } + ///权限 + this.GetButtonPower(); + this.CompanyBranchPersonId = Request.Params["CompanyBranchPersonId"]; + WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true); + if (!string.IsNullOrEmpty(this.CompanyBranchPersonId)) + { + var CompanyBranchPerson = BLL.CompanyBranchPersonService.GetCompanyBranchPersonById(this.CompanyBranchPersonId); + if (CompanyBranchPerson != null) + { + this.hdCompanyBranchPersonId.Text = this.CompanyBranchPersonId; + if (!string.IsNullOrEmpty(CompanyBranchPerson.UnitId)) + { + this.drpUnit.SelectedValue = CompanyBranchPerson.UnitId; + } + this.txtPersonName.Text = CompanyBranchPerson.PersonName; + if (!string.IsNullOrEmpty(CompanyBranchPerson.Sex)) + { + this.rblSex.SelectedValue = CompanyBranchPerson.Sex; + } + this.txtIdentityCard.Text = CompanyBranchPerson.IdentityCard; + if (!string.IsNullOrEmpty(CompanyBranchPerson.WorkPostId)) + { + this.drpWorkPost.SelectedValue = CompanyBranchPerson.WorkPostId; + } + this.txtTelephone.Text = CompanyBranchPerson.Telephone; + this.txtAddress.Text = CompanyBranchPerson.Address; + if (CompanyBranchPerson.IsOnJob == true) + { + this.rblIsOnJob.SelectedValue = "True"; + } + else + { + this.rblIsOnJob.SelectedValue = "False"; + } + this.txtRemark.Text = CompanyBranchPerson.Remark; + } + } + } + } + + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (this.drpUnit.SelectedValue == Const._Null) + { + Alert.ShowInParent("请选择单位!", MessageBoxIcon.Warning); + return; + } + if (this.drpWorkPost.SelectedValue == Const._Null) + { + Alert.ShowInParent("请选择岗位!", MessageBoxIcon.Warning); + return; + } + if (!string.IsNullOrEmpty(this.txtIdentityCard.Text) && BLL.CompanyBranchPersonService.IsExistPersonIdentityCard(this.CompanyBranchPersonId, this.txtIdentityCard.Text.Trim()) == true) + { + Alert.ShowInParent("输入的身份证号码已存在!", MessageBoxIcon.Warning); + return; + } + + Model.Person_CompanyBranchPerson newCompanyBranchPerson = new Model.Person_CompanyBranchPerson + { + PersonName = this.txtPersonName.Text.Trim(), + Sex = this.rblSex.SelectedValue, + IdentityCard = this.txtIdentityCard.Text.Trim(), + Telephone = this.txtTelephone.Text.Trim(), + Address = this.txtAddress.Text.Trim(), + IsOnJob = Convert.ToBoolean(this.rblIsOnJob.SelectedValue), + Remark = this.txtRemark.Text.Trim() + }; + if (this.drpUnit.SelectedValue != Const._Null) + { + newCompanyBranchPerson.UnitId = this.drpUnit.SelectedValue; + } + if (this.drpWorkPost.SelectedValue != Const._Null) + { + newCompanyBranchPerson.WorkPostId = this.drpWorkPost.SelectedValue; + } + if (string.IsNullOrEmpty(this.CompanyBranchPersonId)) + { + if (string.IsNullOrEmpty(this.hdCompanyBranchPersonId.Text)) + { + newCompanyBranchPerson.CompanyBranchPersonId = SQLHelper.GetNewID(typeof(Model.Person_CompanyBranchPerson)); + } + else + { + newCompanyBranchPerson.CompanyBranchPersonId = this.hdCompanyBranchPersonId.Text; + } + CompanyBranchPersonService.AddCompanyBranchPerson(newCompanyBranchPerson); + LogService.AddSys_Log(this.CurrUser, newCompanyBranchPerson.PersonName, newCompanyBranchPerson.CompanyBranchPersonId, BLL.Const.BranchPersonMenuId, BLL.Const.BtnAdd); + } + else + { + newCompanyBranchPerson.CompanyBranchPersonId = this.CompanyBranchPersonId; + CompanyBranchPersonService.UpdateCompanyBranchPerson(newCompanyBranchPerson); + LogService.AddSys_Log(this.CurrUser, newCompanyBranchPerson.PersonName, newCompanyBranchPerson.CompanyBranchPersonId, BLL.Const.BranchPersonMenuId, BLL.Const.BtnModify); + } + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + this.btnSave.Hidden = false; + } + else + { + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.BranchPersonMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnSave.Hidden = false; + } + } + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.hdCompanyBranchPersonId.Text)) + { + this.hdCompanyBranchPersonId.Text = SQLHelper.GetNewID(); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/BranchPersonAttachUrl&menuId={1}", this.hdCompanyBranchPersonId.Text, BLL.Const.BranchPersonMenuId))); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx.designer.cs new file mode 100644 index 00000000..31467dd3 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonEdit.aspx.designer.cs @@ -0,0 +1,177 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Person { + + + public partial class BranchPersonEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + + /// + /// txtPersonName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPersonName; + + /// + /// rblSex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblSex; + + /// + /// txtIdentityCard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtIdentityCard; + + /// + /// drpWorkPost 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWorkPost; + + /// + /// txtTelephone 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTelephone; + + /// + /// txtAddress 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAddress; + + /// + /// rblIsOnJob 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblIsOnJob; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRemark; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// hdCompanyBranchPersonId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCompanyBranchPersonId; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx new file mode 100644 index 00000000..333a4815 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx @@ -0,0 +1,65 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BranchPersonIn.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Person.BranchPersonIn" %> + + + + + + 导入人员信息 + + + +
+ + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx.cs new file mode 100644 index 00000000..444258b1 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx.cs @@ -0,0 +1,478 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.OleDb; +using System.IO; +using System.Linq; +using System.Web.UI; + +namespace FineUIPro.Web.ZHGL.Person +{ + public partial class BranchPersonIn : PageBase + { + #region 定义变量 + /// + /// 上传预设的虚拟路径 + /// + private string initPath = Const.ExcelUrl; + + /// + /// 错误集合 + /// + public static List errorInfos = new List(); + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + if (errorInfos != null) + { + errorInfos.Clear(); + } + } + } + #endregion + + #region 审核 + /// + /// 审核 + /// + /// + /// + protected void btnAudit_Click(object sender, EventArgs e) + { + try + { + if (this.FileExcel.HasFile == false) + { + Alert.ShowInTop("请您选择Excel文件!", MessageBoxIcon.Warning); + return; + } + string IsXls = Path.GetExtension(FileExcel.FileName).ToString().Trim().ToLower(); + if (IsXls != ".xls") + { + Alert.ShowInTop("只可以选择Excel文件!", MessageBoxIcon.Warning); + return; + } + if (errorInfos != null) + { + errorInfos.Clear(); + } + string rootPath = Server.MapPath("~/"); + string initFullPath = rootPath + initPath; + if (!Directory.Exists(initFullPath)) + { + Directory.CreateDirectory(initFullPath); + } + + this.hdfileName.Text = BLL.Funs.GetNewFileName() + IsXls; + string filePath = initFullPath + this.hdfileName.Text; + FileExcel.PostedFile.SaveAs(filePath); + ImportXlsToData(filePath); + + } + catch (Exception ex) + { + Alert.ShowInTop(ex.Message); + } + } + + #region 读Excel提取数据 + /// + /// 从Excel提取数据--》Dataset + /// + /// Excel文件路径名 + private void ImportXlsToData(string fileName) + { + try + { + string oleDBConnString = String.Empty; + oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;"; + oleDBConnString += "Data Source="; + oleDBConnString += fileName; + oleDBConnString += ";Extended Properties=Excel 8.0;"; + OleDbConnection oleDBConn = null; + OleDbDataAdapter oleAdMaster = null; + DataTable m_tableName = new DataTable(); + DataSet ds = new DataSet(); + + oleDBConn = new OleDbConnection(oleDBConnString); + oleDBConn.Open(); + m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null); + + if (m_tableName != null && m_tableName.Rows.Count > 0) + { + + m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim(); + + } + string sqlMaster; + sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]"; + oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn); + oleAdMaster.SelectCommand.CommandTimeout = 1200; + oleAdMaster.Fill(ds, "m_tableName"); + oleAdMaster.Dispose(); + oleDBConn.Close(); + oleDBConn.Dispose(); + + AddDatasetToSQL(ds.Tables[0]); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + #endregion + + /// + /// 将Dataset的数据导入数据库 + /// + /// 数据集 + /// 数据集列数 + /// + private bool AddDatasetToSQL(DataTable pds) + { + string result = string.Empty; + int ic, ir; + ic = pds.Columns.Count; + + + ir = pds.Rows.Count; + if (pds != null && ir > 0) + { + var units = from x in Funs.DB.Base_Unit select x; + var workPosts = from x in Funs.DB.Base_WorkPost select x; + for (int i = 0; i < ir; i++) + { + string col0 = pds.Rows[i][0].ToString().Trim(); + if (!string.IsNullOrEmpty(col0)) + { + var unit = units.FirstOrDefault(e => e.UnitName == col0); + if (unit == null) + { + result += (i + 2).ToString() + "," + "单位" + "," + "[" + col0 + "]错误!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "单位" + "," + "此项为必填项!" + "|"; + } + + if (string.IsNullOrEmpty(pds.Rows[i][1].ToString())) + { + result += (i + 2).ToString() + "," + "姓名" + "," + "此项为必填项!" + "|"; + } + + if (string.IsNullOrEmpty(pds.Rows[i][2].ToString())) + { + result += (i + 2).ToString() + "," + "性别" + "," + "此项为必填项!" + "|"; + } + else + { + if (pds.Rows[i][2].ToString() != "男" && pds.Rows[i][2].ToString() != "女") + { + result += (i + 2).ToString() + "," + "性别" + "," + "性别只能为男或女!" + "|"; + } + } + + string col3 = pds.Rows[i][3].ToString().Trim(); + if (!string.IsNullOrEmpty(col3)) + { + if (col3.Length > 50) + { + result += (i + 2).ToString() + "," + "身份证号码" + "," + "[" + col3 + "]错误!" + "|"; + } + + if (CompanyBranchPersonService.GetPersonCountByIdentityCard(col3) != null) + { + result += (i + 2).ToString() + "," + "身份证号码" + "," + "[" + col3 + "]已存在!" + "|"; + } + if (!IDCardValid.CheckIDCard(col3)) + { + result += (i + 2).ToString() + "," + "身份证号码" + "," + "[" + col3 + "]非法!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "身份证号码" + "," + "此项为必填项!" + "|"; + } + + string col4 = pds.Rows[i][4].ToString().Trim(); + if (!string.IsNullOrEmpty(col4)) + { + var workPost = workPosts.FirstOrDefault(e => e.WorkPostName == col4); + if (workPost == null) + { + result += (i + 2).ToString() + "," + "岗位" + "," + "[" + col4 + "]错误!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "岗位" + "," + "此项为必填项!" + "|"; + } + + string col5 = pds.Rows[i][5].ToString().Trim(); + if (!string.IsNullOrEmpty(col5)) + { + if (col5.Length > 50) + { + result += (i + 2).ToString() + "," + "电话" + "," + "[" + col5 + "]错误!" + "|"; + } + } + + string col7 = pds.Rows[i][7].ToString().Trim(); + if (!string.IsNullOrEmpty(col7)) + { + if (col7 != "是" && col7 != "否") + { + result += (i + 2).ToString() + "," + "在职" + "," + "[" + col7 + "]错误!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "在职" + "," + "此项为必填项!" + "|"; + } + } + + if (!string.IsNullOrEmpty(result)) + { + result = result.Substring(0, result.LastIndexOf("|")); + } + errorInfos.Clear(); + if (!string.IsNullOrEmpty(result)) + { + string results = result; + List errorInfoList = results.Split('|').ToList(); + foreach (var item in errorInfoList) + { + string[] errors = item.Split(','); + Model.ErrorInfo errorInfo = new Model.ErrorInfo(); + errorInfo.Row = errors[0]; + errorInfo.Column = errors[1]; + errorInfo.Reason = errors[2]; + errorInfos.Add(errorInfo); + } + if (errorInfos.Count > 0) + { + Grid1.DataSource = errorInfos; + Grid1.DataBind(); + } + } + else + { + ShowNotify("审核完成,请点击保存!", MessageBoxIcon.Success); + } + } + else + { + throw new Exception("导入数据为空!"); + } + return true; + } + + #region 导入 + /// + /// 导入 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (errorInfos.Count <= 0) + { + string rootPath = Server.MapPath("~/"); + string initFullPath = rootPath + initPath; + if (!Directory.Exists(initFullPath)) + { + Directory.CreateDirectory(initFullPath); + } + + string filePath = initFullPath + this.hdfileName.Text; + ImportXlsToData2(filePath); + } + else + { + Alert.ShowInTop("请先将错误数据修正,再重新导入保存!", MessageBoxIcon.Warning); + } + } + + #region 读Excel提取数据 + /// + /// 从Excel提取数据--》Dataset + /// + /// Excel文件路径名 + private void ImportXlsToData2(string fileName) + { + try + { + string oleDBConnString = String.Empty; + oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;"; + oleDBConnString += "Data Source="; + oleDBConnString += fileName; + oleDBConnString += ";Extended Properties=Excel 8.0;"; + OleDbConnection oleDBConn = null; + OleDbDataAdapter oleAdMaster = null; + DataTable m_tableName = new DataTable(); + DataSet ds = new DataSet(); + + oleDBConn = new OleDbConnection(oleDBConnString); + oleDBConn.Open(); + m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null); + + if (m_tableName != null && m_tableName.Rows.Count > 0) + { + + m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim(); + + } + string sqlMaster; + sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]"; + oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn); + oleAdMaster.SelectCommand.CommandTimeout = 1200; + oleAdMaster.Fill(ds, "m_tableName"); + oleAdMaster.Dispose(); + oleDBConn.Close(); + oleDBConn.Dispose(); + + AddDatasetToSQL2(ds.Tables[0]); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + /// + /// 将Dataset的数据导入数据库 + /// + /// 数据集 + /// 数据集列数 + /// + private bool AddDatasetToSQL2(DataTable pds) + { + string result = string.Empty; + var units = from x in Funs.DB.Base_Unit select x; + var workPosts = from x in Funs.DB.Base_WorkPost select x; + foreach (DataRow row in pds.Rows) + { + Model.Person_CompanyBranchPerson companyBranchPerson = new Model.Person_CompanyBranchPerson(); + companyBranchPerson.CompanyBranchPersonId = Guid.NewGuid().ToString(); + string col0 = row[0].ToString().Trim(); + var unit = units.FirstOrDefault(e => e.UnitName == col0); + if (unit != null) + { + companyBranchPerson.UnitId = unit.UnitId; + } + companyBranchPerson.PersonName = row[1].ToString().Trim(); + companyBranchPerson.Sex = row[2].ToString().Trim() == "男" ? "1" : "2"; + companyBranchPerson.IdentityCard = row[3].ToString(); + var workPost = workPosts.FirstOrDefault(e => e.WorkPostName == row[4].ToString().Trim()); + if (workPost != null) + { + companyBranchPerson.WorkPostId = workPost.WorkPostId; + } + companyBranchPerson.Telephone = row[5].ToString().Trim(); + companyBranchPerson.Address = row[6].ToString().Trim(); + string isOnJob = row[7].ToString().Trim(); + if (isOnJob == "是") + { + companyBranchPerson.IsOnJob = true; + } + else + { + companyBranchPerson.IsOnJob = false; + } + companyBranchPerson.Remark = row[8].ToString(); + Funs.DB.Person_CompanyBranchPerson.InsertOnSubmit(companyBranchPerson); + } + Funs.DB.SubmitChanges(); + ShowNotify("导入成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + + + return true; + } + #endregion + + #region 导出错误提示 + /// + /// 导出错误提示 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + //string strFileName = DateTime.Now.ToString("yyyyMMdd-hhmmss"); + //System.Web.HttpContext HC = System.Web.HttpContext.Current; + //HC.Response.Clear(); + //HC.Response.Buffer = true; + //HC.Response.ContentEncoding = System.Text.Encoding.UTF8;//设置输出流为简体中文 + + ////---导出为Excel文件 + //HC.Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(strFileName, System.Text.Encoding.UTF8) + ".xls"); + //HC.Response.ContentType = "application/ms-excel";//设置输出文件类型为excel文件。 + + //System.IO.StringWriter sw = new System.IO.StringWriter(); + //System.Web.UI.HtmlTextWriter htw = new System.Web.UI.HtmlTextWriter(sw); + //this.gvErrorInfo.RenderControl(htw); + //HC.Response.Write(sw.ToString()); + //HC.Response.End(); + } + + /// + /// 重载VerifyRenderingInServerForm方法,否则运行的时候会出现如下错误提示:“类型“GridView”的控件“GridView1”必须放在具有 runat=server 的窗体标记内” + /// + /// + public override void VerifyRenderingInServerForm(Control control) + { + } + #endregion + + #region 下载模板 + /// + /// 下载模板按钮 + /// + /// + /// + protected void btnDownLoad_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Confirm.GetShowReference("确定下载导入模板吗?", String.Empty, MessageBoxIcon.Question, PageManager1.GetCustomEventReference(false, "Confirm_OK"), PageManager1.GetCustomEventReference("Confirm_Cancel"))); + } + + /// + /// 下载导入模板 + /// + /// + /// + protected void PageManager1_CustomEvent(object sender, CustomEventArgs e) + { + if (e.EventArgument == "Confirm_OK") + { + string rootPath = Server.MapPath("~/"); + string uploadfilepath = rootPath + Const.BranchPersonTemplateUrl; + string filePath = Const.BranchPersonTemplateUrl; + string fileName = Path.GetFileName(filePath); + FileInfo info = new FileInfo(uploadfilepath); + long fileSize = info.Length; + Response.ClearContent(); + Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8)); + Response.ContentType = "excel/plain"; + Response.ContentEncoding = System.Text.Encoding.UTF8; + Response.AddHeader("Content-Length", fileSize.ToString().Trim()); + Response.TransmitFile(uploadfilepath, 0, fileSize); + Response.End(); + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx.designer.cs new file mode 100644 index 00000000..dc13b4e9 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonIn.aspx.designer.cs @@ -0,0 +1,123 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Person { + + + public partial class BranchPersonIn { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// hdfileName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdfileName; + + /// + /// FileExcel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload FileExcel; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnDownLoad 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDownLoad; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// lblBottom 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblBottom; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx new file mode 100644 index 00000000..2f68a979 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx @@ -0,0 +1,80 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BranchPersonView.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Person.BranchPersonView" ValidateRequest="false" %> + + + + + + 编辑用户 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx.cs new file mode 100644 index 00000000..d906ed87 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx.cs @@ -0,0 +1,106 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using BLL; + +namespace FineUIPro.Web.ZHGL.Person +{ + public partial class BranchPersonView : PageBase + { + #region 定义项 + /// + /// 用户主键 + /// + public string CompanyBranchPersonId + { + get + { + return (string)ViewState["CompanyBranchPersonId"]; + } + set + { + ViewState["CompanyBranchPersonId"] = value; + } + } + /// + /// 单位主键 + /// + public string UnitId + { + get + { + return (string)ViewState["UnitId"]; + } + set + { + ViewState["UnitId"] = value; + } + } + #endregion + + /// + /// 用户编辑页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + string type = Request.Params["type"]; + BLL.UnitService.InitNoThisAllUnitDownList(this.drpUnit, true); + this.CompanyBranchPersonId = Request.Params["CompanyBranchPersonId"]; + WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true); + if (!string.IsNullOrEmpty(this.CompanyBranchPersonId)) + { + var CompanyBranchPerson = BLL.CompanyBranchPersonService.GetCompanyBranchPersonById(this.CompanyBranchPersonId); + if (CompanyBranchPerson != null) + { + this.hdCompanyBranchPersonId.Text = this.CompanyBranchPersonId; + if (!string.IsNullOrEmpty(CompanyBranchPerson.UnitId)) + { + this.drpUnit.SelectedValue = CompanyBranchPerson.UnitId; + } + this.txtPersonName.Text = CompanyBranchPerson.PersonName; + if (!string.IsNullOrEmpty(CompanyBranchPerson.Sex)) + { + this.rblSex.SelectedValue = CompanyBranchPerson.Sex; + } + this.txtIdentityCard.Text = CompanyBranchPerson.IdentityCard; + if (!string.IsNullOrEmpty(CompanyBranchPerson.WorkPostId)) + { + this.drpWorkPost.SelectedValue = CompanyBranchPerson.WorkPostId; + } + this.txtTelephone.Text = CompanyBranchPerson.Telephone; + this.txtAddress.Text = CompanyBranchPerson.Address; + if (CompanyBranchPerson.IsOnJob == true) + { + this.rblIsOnJob.SelectedValue = "True"; + } + else + { + this.rblIsOnJob.SelectedValue = "False"; + } + this.txtRemark.Text = CompanyBranchPerson.Remark; + } + } + } + } + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/BranchPersonAttachUrl&menuId={1}&type=-1", this.hdCompanyBranchPersonId.Text, BLL.Const.BranchPersonMenuId))); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx.designer.cs new file mode 100644 index 00000000..4baf1c33 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/BranchPersonView.aspx.designer.cs @@ -0,0 +1,168 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Person { + + + public partial class BranchPersonView { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + + /// + /// txtPersonName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPersonName; + + /// + /// rblSex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblSex; + + /// + /// txtIdentityCard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtIdentityCard; + + /// + /// drpWorkPost 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWorkPost; + + /// + /// txtTelephone 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTelephone; + + /// + /// txtAddress 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAddress; + + /// + /// rblIsOnJob 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblIsOnJob; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRemark; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// hdCompanyBranchPersonId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCompanyBranchPersonId; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx new file mode 100644 index 00000000..e8022d21 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx @@ -0,0 +1,128 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyPerson.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Person.CompanyPerson" %> + + + + + + 企业总部人员 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx.cs new file mode 100644 index 00000000..f615b993 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx.cs @@ -0,0 +1,322 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.ZHGL.Person +{ + public partial class CompanyPerson : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + ////权限按钮方法 + this.GetButtonPower(); + this.btnNew.OnClientClick = Window1.GetShowReference("CompanyPersonEdit.aspx") + "return false;"; + if (this.CurrUser != null && this.CurrUser.PageSize.HasValue) + { + Grid1.PageSize = this.CurrUser.PageSize.Value; + } + this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT CompanyBranchPerson.CompanyBranchPersonId,CompanyBranchPerson.PersonName,case CompanyBranchPerson.Sex when '1' then '男' else '女' end as SexStr,CompanyBranchPerson.IdentityCard,WorkPost.WorkPostName,CompanyBranchPerson.Telephone,CompanyBranchPerson.IsOnJob,CompanyBranchPerson.Remark " + + @" FROM Person_CompanyBranchPerson AS CompanyBranchPerson " + + @" LEFT JOIN Base_WorkPost AS WorkPost ON CompanyBranchPerson.WorkPostId=WorkPost.WorkPostId WHERE 1=1 "; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.txtPersonName.Text.Trim())) + { + strSql += " AND PersonName LIKE @PersonName"; + listStr.Add(new SqlParameter("@PersonName", "%" + this.txtPersonName.Text.Trim() + "%")); + } + strSql += " AND CompanyBranchPerson.UnitId = @UnitId"; + listStr.Add(new SqlParameter("@UnitId", BLL.Const.UnitId_CWCEC)); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid(); + } + + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, EventArgs e) + { + 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 person = BLL.CompanyBranchPersonService.GetCompanyBranchPersonById(id); + if (person != null) + { + if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面 + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CompanyPersonView.aspx?CompanyBranchPersonId={0}", id, "查看 - "))); + } + else + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CompanyPersonEdit.aspx?CompanyBranchPersonId={0}", id, "编辑 - "))); + } + } + } + #endregion + + #region 授权 + /// + /// 右键授权事件 + /// + /// + /// + protected void btnMenuUpdate_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + var person = BLL.CompanyBranchPersonService.GetCompanyBranchPersonById(id); + if (person != null) + { + var user = BLL.UserService.GetUserByIdentityCard(person.IdentityCard); + if (user == null) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../SysManage/UserListEdit.aspx?CompanyBranchPersonId={0}", id, "授权 - "))); + } + else + { + Alert.ShowInTop("该人员已授权!", MessageBoxIcon.Warning); + return; + } + } + } + #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 meet = BLL.CompanyBranchPersonService.GetCompanyBranchPersonById(rowID); + if (meet != null) + { + BLL.LogService.AddSys_Log(this.CurrUser, meet.PersonName, meet.CompanyBranchPersonId, BLL.Const.CompanyPersonMenuId, BLL.Const.BtnDelete); + + BLL.CompanyBranchPersonService.DeleteCompanyBranchPersonById(rowID); + } + } + + this.BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 格式化字符串 + /// + /// 获取整理人姓名 + /// + /// + /// + protected string ConvertCompileMan(object userId) + { + string userName = string.Empty; + if (userId != null) + { + var user = BLL.UserService.GetUserByUserId(userId.ToString()); + if (user != null) + { + userName = user.UserName; + } + } + return userName; + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CompanyPersonMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + this.btnNew.Hidden = false; + this.btnImport.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnMenuEdit.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnMenuUpdate.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDelete.Hidden = false; + } + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("CompanyPersonIn.aspx", "导入 - "))); + } + + /// + /// 关闭导入弹出窗口 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #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 = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btSearch_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx.designer.cs new file mode 100644 index 00000000..4a75dd1b --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPerson.aspx.designer.cs @@ -0,0 +1,213 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Person { + + + public partial class CompanyPerson { + + /// + /// 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; + + /// + /// txtPersonName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPersonName; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btSearch; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuUpdate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuUpdate; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx new file mode 100644 index 00000000..618f70c2 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx @@ -0,0 +1,78 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyPersonEdit.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Person.CompanyPersonEdit" ValidateRequest="false" %> + + + + + + 编辑用户 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx.cs new file mode 100644 index 00000000..74ba56e7 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx.cs @@ -0,0 +1,188 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using BLL; + +namespace FineUIPro.Web.ZHGL.Person +{ + public partial class CompanyPersonEdit : PageBase + { + #region 定义项 + /// + /// 用户主键 + /// + public string CompanyBranchPersonId + { + get + { + return (string)ViewState["CompanyBranchPersonId"]; + } + set + { + ViewState["CompanyBranchPersonId"] = value; + } + } + /// + /// 单位主键 + /// + public string UnitId + { + get + { + return (string)ViewState["UnitId"]; + } + set + { + ViewState["UnitId"] = value; + } + } + #endregion + + /// + /// 用户编辑页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + string type = Request.Params["type"]; + ///权限 + this.GetButtonPower(); + this.CompanyBranchPersonId = Request.Params["CompanyBranchPersonId"]; + WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true); + if (!string.IsNullOrEmpty(this.CompanyBranchPersonId)) + { + var CompanyBranchPerson = BLL.CompanyBranchPersonService.GetCompanyBranchPersonById(this.CompanyBranchPersonId); + if (CompanyBranchPerson != null) + { + this.hdCompanyBranchPersonId.Text = this.CompanyBranchPersonId; + this.txtPersonName.Text = CompanyBranchPerson.PersonName; + if (!string.IsNullOrEmpty(CompanyBranchPerson.Sex)) + { + this.rblSex.SelectedValue = CompanyBranchPerson.Sex; + } + this.txtIdentityCard.Text = CompanyBranchPerson.IdentityCard; + if (!string.IsNullOrEmpty(CompanyBranchPerson.WorkPostId)) + { + this.drpWorkPost.SelectedValue = CompanyBranchPerson.WorkPostId; + } + this.txtTelephone.Text = CompanyBranchPerson.Telephone; + this.txtAddress.Text = CompanyBranchPerson.Address; + if (CompanyBranchPerson.IsOnJob == true) + { + this.rblIsOnJob.SelectedValue = "True"; + } + else + { + this.rblIsOnJob.SelectedValue = "False"; + } + this.txtRemark.Text = CompanyBranchPerson.Remark; + } + } + } + } + + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (this.drpWorkPost.SelectedValue == Const._Null) + { + Alert.ShowInParent("请选择岗位!", MessageBoxIcon.Warning); + return; + } + if (!string.IsNullOrEmpty(this.txtIdentityCard.Text) && BLL.CompanyBranchPersonService.IsExistPersonIdentityCard(this.CompanyBranchPersonId, this.txtIdentityCard.Text.Trim()) == true) + { + Alert.ShowInParent("输入的身份证号码已存在!", MessageBoxIcon.Warning); + return; + } + + Model.Person_CompanyBranchPerson newCompanyBranchPerson = new Model.Person_CompanyBranchPerson + { + PersonName = this.txtPersonName.Text.Trim(), + Sex = this.rblSex.SelectedValue, + IdentityCard = this.txtIdentityCard.Text.Trim(), + Telephone = this.txtTelephone.Text.Trim(), + Address = this.txtAddress.Text.Trim(), + IsOnJob = Convert.ToBoolean(this.rblIsOnJob.SelectedValue), + Remark = this.txtRemark.Text.Trim() + }; + if (this.drpWorkPost.SelectedValue != Const._Null) + { + newCompanyBranchPerson.WorkPostId = this.drpWorkPost.SelectedValue; + } + newCompanyBranchPerson.UnitId = BLL.Const.UnitId_CWCEC; + if (string.IsNullOrEmpty(this.CompanyBranchPersonId)) + { + if (string.IsNullOrEmpty(this.hdCompanyBranchPersonId.Text)) + { + newCompanyBranchPerson.CompanyBranchPersonId = SQLHelper.GetNewID(typeof(Model.Person_CompanyBranchPerson)); + } + else + { + newCompanyBranchPerson.CompanyBranchPersonId = this.hdCompanyBranchPersonId.Text; + } + CompanyBranchPersonService.AddCompanyBranchPerson(newCompanyBranchPerson); + LogService.AddSys_Log(this.CurrUser, newCompanyBranchPerson.PersonName, newCompanyBranchPerson.CompanyBranchPersonId, BLL.Const.CompanyPersonMenuId, BLL.Const.BtnAdd); + } + else + { + newCompanyBranchPerson.CompanyBranchPersonId = this.CompanyBranchPersonId; + CompanyBranchPersonService.UpdateCompanyBranchPerson(newCompanyBranchPerson); + LogService.AddSys_Log(this.CurrUser, newCompanyBranchPerson.PersonName, newCompanyBranchPerson.CompanyBranchPersonId, BLL.Const.CompanyPersonMenuId, BLL.Const.BtnModify); + } + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + this.btnSave.Hidden = false; + } + else + { + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CompanyPersonMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnSave.Hidden = false; + } + } + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.hdCompanyBranchPersonId.Text)) + { + this.hdCompanyBranchPersonId.Text = SQLHelper.GetNewID(); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanyPersonAttachUrl&menuId={1}", this.hdCompanyBranchPersonId.Text, BLL.Const.CompanyPersonMenuId))); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx.designer.cs new file mode 100644 index 00000000..4665f94f --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonEdit.aspx.designer.cs @@ -0,0 +1,168 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Person { + + + public partial class CompanyPersonEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtPersonName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPersonName; + + /// + /// rblSex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblSex; + + /// + /// txtIdentityCard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtIdentityCard; + + /// + /// drpWorkPost 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWorkPost; + + /// + /// txtTelephone 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTelephone; + + /// + /// txtAddress 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAddress; + + /// + /// rblIsOnJob 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblIsOnJob; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRemark; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// hdCompanyBranchPersonId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCompanyBranchPersonId; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx new file mode 100644 index 00000000..fff52ad8 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx @@ -0,0 +1,65 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyPersonIn.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Person.CompanyPersonIn" %> + + + + + + 导入人员信息 + + + +
+ + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx.cs new file mode 100644 index 00000000..508987c8 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx.cs @@ -0,0 +1,457 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.OleDb; +using System.IO; +using System.Linq; +using System.Web.UI; + +namespace FineUIPro.Web.ZHGL.Person +{ + public partial class CompanyPersonIn : PageBase + { + #region 定义变量 + /// + /// 上传预设的虚拟路径 + /// + private string initPath = Const.ExcelUrl; + + /// + /// 错误集合 + /// + public static List errorInfos = new List(); + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + if (errorInfos != null) + { + errorInfos.Clear(); + } + } + } + #endregion + + #region 审核 + /// + /// 审核 + /// + /// + /// + protected void btnAudit_Click(object sender, EventArgs e) + { + try + { + if (this.FileExcel.HasFile == false) + { + Alert.ShowInTop("请您选择Excel文件!", MessageBoxIcon.Warning); + return; + } + string IsXls = Path.GetExtension(FileExcel.FileName).ToString().Trim().ToLower(); + if (IsXls != ".xls") + { + Alert.ShowInTop("只可以选择Excel文件!", MessageBoxIcon.Warning); + return; + } + if (errorInfos != null) + { + errorInfos.Clear(); + } + string rootPath = Server.MapPath("~/"); + string initFullPath = rootPath + initPath; + if (!Directory.Exists(initFullPath)) + { + Directory.CreateDirectory(initFullPath); + } + + this.hdfileName.Text = BLL.Funs.GetNewFileName() + IsXls; + string filePath = initFullPath + this.hdfileName.Text; + FileExcel.PostedFile.SaveAs(filePath); + ImportXlsToData(filePath); + + } + catch (Exception ex) + { + Alert.ShowInTop(ex.Message); + } + } + + #region 读Excel提取数据 + /// + /// 从Excel提取数据--》Dataset + /// + /// Excel文件路径名 + private void ImportXlsToData(string fileName) + { + try + { + string oleDBConnString = String.Empty; + oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;"; + oleDBConnString += "Data Source="; + oleDBConnString += fileName; + oleDBConnString += ";Extended Properties=Excel 8.0;"; + OleDbConnection oleDBConn = null; + OleDbDataAdapter oleAdMaster = null; + DataTable m_tableName = new DataTable(); + DataSet ds = new DataSet(); + + oleDBConn = new OleDbConnection(oleDBConnString); + oleDBConn.Open(); + m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null); + + if (m_tableName != null && m_tableName.Rows.Count > 0) + { + + m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim(); + + } + string sqlMaster; + sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]"; + oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn); + oleAdMaster.SelectCommand.CommandTimeout = 1200; + oleAdMaster.Fill(ds, "m_tableName"); + oleAdMaster.Dispose(); + oleDBConn.Close(); + oleDBConn.Dispose(); + + AddDatasetToSQL(ds.Tables[0]); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + #endregion + + /// + /// 将Dataset的数据导入数据库 + /// + /// 数据集 + /// 数据集列数 + /// + private bool AddDatasetToSQL(DataTable pds) + { + string result = string.Empty; + int ic, ir; + ic = pds.Columns.Count; + + + ir = pds.Rows.Count; + if (pds != null && ir > 0) + { + var workPosts = from x in Funs.DB.Base_WorkPost select x; + for (int i = 0; i < ir; i++) + { + if (string.IsNullOrEmpty(pds.Rows[i][0].ToString())) + { + result += (i + 2).ToString() + "," + "姓名" + "," + "此项为必填项!" + "|"; + } + + if (string.IsNullOrEmpty(pds.Rows[i][1].ToString())) + { + result += (i + 2).ToString() + "," + "性别" + "," + "此项为必填项!" + "|"; + } + else + { + if (pds.Rows[i][1].ToString() != "男" && pds.Rows[i][1].ToString() != "女") + { + result += (i + 2).ToString() + "," + "性别" + "," + "性别只能为男或女!" + "|"; + } + } + + string col2 = pds.Rows[i][2].ToString().Trim(); + if (!string.IsNullOrEmpty(col2)) + { + if (col2.Length > 50) + { + result += (i + 2).ToString() + "," + "身份证号码" + "," + "[" + col2 + "]错误!" + "|"; + } + + if (CompanyBranchPersonService.GetPersonCountByIdentityCard(col2) != null) + { + result += (i + 2).ToString() + "," + "身份证号码" + "," + "[" + col2 + "]已存在!" + "|"; + } + if (!IDCardValid.CheckIDCard(col2)) + { + result += (i + 2).ToString() + "," + "身份证号码" + "," + "[" + col2 + "]非法!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "身份证号码" + "," + "此项为必填项!" + "|"; + } + + string col3 = pds.Rows[i][3].ToString().Trim(); + if (!string.IsNullOrEmpty(col3)) + { + var workPost = workPosts.FirstOrDefault(e => e.WorkPostName == col3); + if (workPost == null) + { + result += (i + 2).ToString() + "," + "岗位" + "," + "[" + col3 + "]错误!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "岗位" + "," + "此项为必填项!" + "|"; + } + + string col4 = pds.Rows[i][4].ToString().Trim(); + if (!string.IsNullOrEmpty(col4)) + { + if (col4.Length > 50) + { + result += (i + 2).ToString() + "," + "电话" + "," + "[" + col4 + "]错误!" + "|"; + } + } + + string col6 = pds.Rows[i][6].ToString().Trim(); + if (!string.IsNullOrEmpty(col6)) + { + if (col6 != "是" && col6 != "否") + { + result += (i + 2).ToString() + "," + "在职" + "," + "[" + col6 + "]错误!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "在职" + "," + "此项为必填项!" + "|"; + } + } + + if (!string.IsNullOrEmpty(result)) + { + result = result.Substring(0, result.LastIndexOf("|")); + } + errorInfos.Clear(); + if (!string.IsNullOrEmpty(result)) + { + string results = result; + List errorInfoList = results.Split('|').ToList(); + foreach (var item in errorInfoList) + { + string[] errors = item.Split(','); + Model.ErrorInfo errorInfo = new Model.ErrorInfo(); + errorInfo.Row = errors[0]; + errorInfo.Column = errors[1]; + errorInfo.Reason = errors[2]; + errorInfos.Add(errorInfo); + } + if (errorInfos.Count > 0) + { + Grid1.DataSource = errorInfos; + Grid1.DataBind(); + } + } + else + { + ShowNotify("审核完成,请点击保存!", MessageBoxIcon.Success); + } + } + else + { + throw new Exception("导入数据为空!"); + } + return true; + } + + #region 导入 + /// + /// 导入 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (errorInfos.Count <= 0) + { + string rootPath = Server.MapPath("~/"); + string initFullPath = rootPath + initPath; + if (!Directory.Exists(initFullPath)) + { + Directory.CreateDirectory(initFullPath); + } + + string filePath = initFullPath + this.hdfileName.Text; + ImportXlsToData2(filePath); + } + else + { + Alert.ShowInTop("请先将错误数据修正,再重新导入保存!", MessageBoxIcon.Warning); + } + } + + #region 读Excel提取数据 + /// + /// 从Excel提取数据--》Dataset + /// + /// Excel文件路径名 + private void ImportXlsToData2(string fileName) + { + try + { + string oleDBConnString = String.Empty; + oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;"; + oleDBConnString += "Data Source="; + oleDBConnString += fileName; + oleDBConnString += ";Extended Properties=Excel 8.0;"; + OleDbConnection oleDBConn = null; + OleDbDataAdapter oleAdMaster = null; + DataTable m_tableName = new DataTable(); + DataSet ds = new DataSet(); + + oleDBConn = new OleDbConnection(oleDBConnString); + oleDBConn.Open(); + m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null); + + if (m_tableName != null && m_tableName.Rows.Count > 0) + { + + m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim(); + + } + string sqlMaster; + sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]"; + oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn); + oleAdMaster.SelectCommand.CommandTimeout = 1200; + oleAdMaster.Fill(ds, "m_tableName"); + oleAdMaster.Dispose(); + oleDBConn.Close(); + oleDBConn.Dispose(); + + AddDatasetToSQL2(ds.Tables[0]); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + /// + /// 将Dataset的数据导入数据库 + /// + /// 数据集 + /// 数据集列数 + /// + private bool AddDatasetToSQL2(DataTable pds) + { + string result = string.Empty; + var workPosts = from x in Funs.DB.Base_WorkPost select x; + foreach (DataRow row in pds.Rows) + { + Model.Person_CompanyBranchPerson companyBranchPerson = new Model.Person_CompanyBranchPerson(); + companyBranchPerson.CompanyBranchPersonId = Guid.NewGuid().ToString(); + companyBranchPerson.UnitId = BLL.Const.UnitId_CWCEC; + companyBranchPerson.PersonName = row[0].ToString().Trim(); + companyBranchPerson.Sex = row[1].ToString().Trim() == "男" ? "1" : "2"; + companyBranchPerson.IdentityCard = row[2].ToString(); + var workPost = workPosts.FirstOrDefault(e => e.WorkPostName == row[3].ToString().Trim()); + if (workPost != null) + { + companyBranchPerson.WorkPostId = workPost.WorkPostId; + } + companyBranchPerson.Telephone = row[4].ToString().Trim(); + companyBranchPerson.Address = row[5].ToString().Trim(); + string isOnJob = row[6].ToString().Trim(); + if (isOnJob == "是") + { + companyBranchPerson.IsOnJob = true; + } + else + { + companyBranchPerson.IsOnJob = false; + } + companyBranchPerson.Remark = row[7].ToString(); + Funs.DB.Person_CompanyBranchPerson.InsertOnSubmit(companyBranchPerson); + } + Funs.DB.SubmitChanges(); + ShowNotify("导入成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + + + return true; + } + #endregion + + #region 导出错误提示 + /// + /// 导出错误提示 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + //string strFileName = DateTime.Now.ToString("yyyyMMdd-hhmmss"); + //System.Web.HttpContext HC = System.Web.HttpContext.Current; + //HC.Response.Clear(); + //HC.Response.Buffer = true; + //HC.Response.ContentEncoding = System.Text.Encoding.UTF8;//设置输出流为简体中文 + + ////---导出为Excel文件 + //HC.Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(strFileName, System.Text.Encoding.UTF8) + ".xls"); + //HC.Response.ContentType = "application/ms-excel";//设置输出文件类型为excel文件。 + + //System.IO.StringWriter sw = new System.IO.StringWriter(); + //System.Web.UI.HtmlTextWriter htw = new System.Web.UI.HtmlTextWriter(sw); + //this.gvErrorInfo.RenderControl(htw); + //HC.Response.Write(sw.ToString()); + //HC.Response.End(); + } + + /// + /// 重载VerifyRenderingInServerForm方法,否则运行的时候会出现如下错误提示:“类型“GridView”的控件“GridView1”必须放在具有 runat=server 的窗体标记内” + /// + /// + public override void VerifyRenderingInServerForm(Control control) + { + } + #endregion + + #region 下载模板 + /// + /// 下载模板按钮 + /// + /// + /// + protected void btnDownLoad_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Confirm.GetShowReference("确定下载导入模板吗?", String.Empty, MessageBoxIcon.Question, PageManager1.GetCustomEventReference(false, "Confirm_OK"), PageManager1.GetCustomEventReference("Confirm_Cancel"))); + } + + /// + /// 下载导入模板 + /// + /// + /// + protected void PageManager1_CustomEvent(object sender, CustomEventArgs e) + { + if (e.EventArgument == "Confirm_OK") + { + string rootPath = Server.MapPath("~/"); + string uploadfilepath = rootPath + Const.CompanyPersonTemplateUrl; + string filePath = Const.CompanyPersonTemplateUrl; + string fileName = Path.GetFileName(filePath); + FileInfo info = new FileInfo(uploadfilepath); + long fileSize = info.Length; + Response.ClearContent(); + Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8)); + Response.ContentType = "excel/plain"; + Response.ContentEncoding = System.Text.Encoding.UTF8; + Response.AddHeader("Content-Length", fileSize.ToString().Trim()); + Response.TransmitFile(uploadfilepath, 0, fileSize); + Response.End(); + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx.designer.cs new file mode 100644 index 00000000..2c345082 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonIn.aspx.designer.cs @@ -0,0 +1,123 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Person { + + + public partial class CompanyPersonIn { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// hdfileName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdfileName; + + /// + /// FileExcel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload FileExcel; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnDownLoad 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDownLoad; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// lblBottom 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblBottom; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx new file mode 100644 index 00000000..1df87b99 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx @@ -0,0 +1,75 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyPersonView.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Person.CompanyPersonView" ValidateRequest="false" %> + + + + + + 编辑用户 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx.cs new file mode 100644 index 00000000..ceca2353 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx.cs @@ -0,0 +1,101 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using BLL; + +namespace FineUIPro.Web.ZHGL.Person +{ + public partial class CompanyPersonView : PageBase + { + #region 定义项 + /// + /// 用户主键 + /// + public string CompanyBranchPersonId + { + get + { + return (string)ViewState["CompanyBranchPersonId"]; + } + set + { + ViewState["CompanyBranchPersonId"] = value; + } + } + /// + /// 单位主键 + /// + public string UnitId + { + get + { + return (string)ViewState["UnitId"]; + } + set + { + ViewState["UnitId"] = value; + } + } + #endregion + + /// + /// 用户编辑页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + string type = Request.Params["type"]; + this.CompanyBranchPersonId = Request.Params["CompanyBranchPersonId"]; + WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true); + if (!string.IsNullOrEmpty(this.CompanyBranchPersonId)) + { + var CompanyBranchPerson = BLL.CompanyBranchPersonService.GetCompanyBranchPersonById(this.CompanyBranchPersonId); + if (CompanyBranchPerson != null) + { + this.hdCompanyBranchPersonId.Text = this.CompanyBranchPersonId; + this.txtPersonName.Text = CompanyBranchPerson.PersonName; + if (!string.IsNullOrEmpty(CompanyBranchPerson.Sex)) + { + this.rblSex.SelectedValue = CompanyBranchPerson.Sex; + } + this.txtIdentityCard.Text = CompanyBranchPerson.IdentityCard; + if (!string.IsNullOrEmpty(CompanyBranchPerson.WorkPostId)) + { + this.drpWorkPost.SelectedValue = CompanyBranchPerson.WorkPostId; + } + this.txtTelephone.Text = CompanyBranchPerson.Telephone; + this.txtAddress.Text = CompanyBranchPerson.Address; + if (CompanyBranchPerson.IsOnJob == true) + { + this.rblIsOnJob.SelectedValue = "True"; + } + else + { + this.rblIsOnJob.SelectedValue = "False"; + } + this.txtRemark.Text = CompanyBranchPerson.Remark; + } + } + } + } + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CompanyPersonAttachUrl&menuId={1}&type=-1", this.hdCompanyBranchPersonId.Text, BLL.Const.CompanyPersonMenuId))); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx.designer.cs new file mode 100644 index 00000000..75ecbb27 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/CompanyPersonView.aspx.designer.cs @@ -0,0 +1,159 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Person { + + + public partial class CompanyPersonView { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtPersonName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPersonName; + + /// + /// rblSex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblSex; + + /// + /// txtIdentityCard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtIdentityCard; + + /// + /// drpWorkPost 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWorkPost; + + /// + /// txtTelephone 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTelephone; + + /// + /// txtAddress 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAddress; + + /// + /// rblIsOnJob 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblIsOnJob; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRemark; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + + /// + /// hdCompanyBranchPersonId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCompanyBranchPersonId; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx b/SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx new file mode 100644 index 00000000..696cb3c8 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx @@ -0,0 +1,150 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectPerson.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Person.ProjectPerson" %> + + + + + + 员工信息 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + <%-- + --%> + + + + + + + + + + + <%-- + + + + --%> + <%-- + +
+
+
--%> +
+ + + + + + + + + + + +
+
+
+ + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx.cs new file mode 100644 index 00000000..0de80c7a --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx.cs @@ -0,0 +1,182 @@ +using BLL; +using System; +using System.Linq; + +namespace FineUIPro.Web.ZHGL.Person +{ + public partial class ProjectPerson : PageBase + { + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + ProjectService.InitProjectDropDownList(this.drpProject, false); + Funs.FineUIPleaseSelect(drpProject, "按项目查询"); + Funs.FineUIPleaseSelect(drpUnit, "按单位查询"); + WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, false); + Funs.FineUIPleaseSelect(drpWorkPost, "按岗位查询"); + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + this.drpProject.SelectedValue = this.CurrUser.LoginProjectId; + this.drpProject.Readonly = true; + if (this.CurrUser.UnitId != BLL.Const.UnitId_CWCEC && !string.IsNullOrEmpty(this.CurrUser.UnitId)) + { + UnitService.InitUnitDropDownList(this.drpUnit, this.drpProject.SelectedValue, false); + Funs.FineUIPleaseSelect(drpUnit, "按单位查询"); + this.drpUnit.SelectedValue = this.CurrUser.UnitId; + this.drpUnit.Readonly = true; + } + } + // 绑定表格 + this.BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + var getData = PersonService.getListData(this.drpProject.SelectedValue, this.drpUnit.SelectedValue, this.drpWorkPost.SelectedValue, + this.txtPersonName.Text.Trim(), this.txtIdCard.Text.Trim(), this.rbIsPostStates.SelectedValue, Grid1); + Grid1.RecordCount = PersonService.count; + Grid1.DataSource = getData; + Grid1.DataBind(); + } + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btSearch_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 分页 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region Grid编辑事件 + /// + /// Grid行双击事件 + /// + /// + /// + 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.ShowInParent("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + //if (this.btnMenuEdit.Hidden) + //{ + SeePersonInfo(Grid1.SelectedRowID); + //} + //else + //{ + // string sitepersonId = Funs.GetStrListByStr(Grid1.SelectedRowID, '#')[0]; + // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectPersonEdit.aspx?SitePersonId={0}", sitepersonId, "编辑 - "))); + //} + } + #endregion + + #region 查看人员详细信息 + /// + /// 查看人员详细信息 + /// + /// + /// + protected void btnSee_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInParent("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + + SeePersonInfo(Grid1.SelectedRowID); + } + + /// + /// + /// + /// + private void SeePersonInfo(string PersonId) + { + //string sitepersonId = Funs.GetStrListByStr(Grid1.SelectedRowID, '#')[0]; + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../HSSE/SitePerson/PersonListEdit.aspx?PersonId={0}&Company=Company", PersonId, "查看 - "))); + } + #endregion + + /// + /// + /// + /// + /// + protected void drpProject_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpUnit.Items.Clear(); + UnitService.InitUnitDropDownList(this.drpUnit, this.drpProject.SelectedValue, false); + Funs.FineUIPleaseSelect(drpUnit, "按单位查询"); + this.BindGrid(); + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx.designer.cs new file mode 100644 index 00000000..9cd6c103 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Person/ProjectPerson.aspx.designer.cs @@ -0,0 +1,195 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Person { + + + public partial class ProjectPerson { + + /// + /// 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; + + /// + /// drpProject 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProject; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + + /// + /// drpWorkPost 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWorkPost; + + /// + /// txtPersonName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPersonName; + + /// + /// txtIdCard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtIdCard; + + /// + /// rbIsPostStates 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rbIsPostStates; + + /// + /// btSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btSearch; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnSee 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnSee; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowFileUpload.aspx b/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowFileUpload.aspx index 6c4fa2e1..1bbbaa54 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowFileUpload.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowFileUpload.aspx @@ -48,10 +48,10 @@ - - + diff --git a/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowRectifyItem.aspx b/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowRectifyItem.aspx index dcae285e..ec408d5c 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowRectifyItem.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowRectifyItem.aspx @@ -1,6 +1,7 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowRectifyItem.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Supervise.ShowRectifyItem" %> + @@ -41,17 +42,14 @@ - + - - <%-- - --%> @@ -79,7 +77,12 @@ + OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged"> + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowRectifyItem.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowRectifyItem.aspx.cs index 511310b2..0e7ea68e 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowRectifyItem.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Supervise/ShowRectifyItem.aspx.cs @@ -26,7 +26,6 @@ namespace FineUIPro.Web.ZHGL.Supervise { if (!IsPostBack) { - Funs.DropDownPageSize(this.ddlPageSize); list = new List(); string lists = Request.Params["lists"]; list = Funs.GetStrListByStr(lists, ','); @@ -101,37 +100,33 @@ namespace FineUIPro.Web.ZHGL.Supervise /// private void BindGrid() { - var getData = (from x in Funs.DB.View_Technique_RectifyItem - where x.RectifyId == this.trRectify.SelectedNode.NodeID && x.IsPass == true - select x).ToList(); - if (list.Count() > 0 && getData.Count() > 0) - { - foreach (var item in getData) - { - if (list.Contains(item.RectifyItemId)) + string strSql = "select * from View_Technique_RectifyItem where RectifyId=@RectifyId and IsPass=@IsPass"; + SqlParameter[] parameter = new SqlParameter[] { - item.IsSelected = true; - } - } - } + new SqlParameter("@RectifyId",this.trRectify.SelectedNode.NodeID), + new SqlParameter("@IsPass",true) + }; + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - DataTable tb = this.LINQToDataTable(getData); - Grid1.RecordCount = tb.Rows.Count; + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; Grid1.DataBind(); - //if (list.Count() > 0) - //{ - // for (int i = 0; i < Grid1.Rows.Count; i++) - // { - // string id = Grid1.DataKeys[i][0].ToString(); - // if (list.Contains(id)) - // { - // Grid1.Rows[i].Values[0]= "True"; - // } - // } - //} + if (list.Count() > 0) + { + for (int i = 0; i < Grid1.Rows.Count; i++) + { + CheckBoxField checkField = (CheckBoxField)Grid1.FindColumn("ckbIsSelected"); + string id = Grid1.DataKeys[i][0].ToString(); + if (list.Contains(id)) + { + checkField.SetCheckedState(i, true); + } + } + } } #endregion diff --git a/SGGL/FineUIPro.Web/ZHGL/Supervise/SubUnitCheckRectifyEdit.aspx b/SGGL/FineUIPro.Web/ZHGL/Supervise/SubUnitCheckRectifyEdit.aspx index 889bba62..6d9a26a1 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Supervise/SubUnitCheckRectifyEdit.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Supervise/SubUnitCheckRectifyEdit.aspx @@ -192,10 +192,10 @@ - -
@@ -204,10 +204,10 @@ - - + diff --git a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectify.aspx b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectify.aspx index 0f6ab7f5..ac244cc3 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectify.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectify.aspx @@ -36,10 +36,10 @@ ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch"> @@ -48,13 +48,13 @@ AutoPostBack="true" OnTextChanged="txtName_TextChanged"> - - - @@ -73,10 +73,10 @@ - - @@ -111,7 +111,12 @@ + OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged"> + + + + + @@ -119,7 +124,7 @@ diff --git a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectify.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectify.aspx.cs index 164f60ba..54fe9427 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectify.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectify.aspx.cs @@ -21,7 +21,6 @@ namespace FineUIPro.Web.ZHGL.Supervise { if (!IsPostBack) { - Funs.DropDownPageSize(this.ddlPageSize); ////权限按钮方法 this.GetButtonPower(); //btnNew.OnClientClick = Window1.GetShowReference("SuperviseCheckRectifyEdit.aspx") + "return false;"; @@ -48,6 +47,11 @@ namespace FineUIPro.Web.ZHGL.Supervise strSql += " AND (SuperviseCheckRectifyCode like @name OR ProjectName like @name OR UnitName like @name OR HandleState like @name)"; listStr.Add(new SqlParameter("@name", "%" + this.txtName.Text.Trim() + "%")); } + if (!string.IsNullOrEmpty(this.CurrUser.UnitId) && BLL.Const.UnitId_CWCEC != this.CurrUser.UnitId) + { + strSql += " AND ProjectUnitId = @UnitId"; + listStr.Add(new SqlParameter("@UnitId", this.CurrUser.UnitId)); + } SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); diff --git a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx index e1256ea1..7f73123b 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx @@ -45,10 +45,12 @@
- + - - + + + + @@ -58,11 +60,11 @@ - @@ -75,7 +77,8 @@ - + + @@ -156,13 +159,13 @@ - <%-- --%> - + diff --git a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx.cs index 3ef314e1..84b7fbcc 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx.cs @@ -28,7 +28,7 @@ namespace FineUIPro.Web.ZHGL.Supervise /// /// 定义集合 /// - //private static List superviseCheckRectifyItems = new List(); + private static List superviseCheckRectifyItems = new List(); #endregion #region 加载页面 @@ -69,19 +69,13 @@ namespace FineUIPro.Web.ZHGL.Supervise { this.txtIssueDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); } - if (rectify.HandleState == "4") //已闭环 - { - this.btnSave.Hidden = true; - } + //this.btnUpdata.Hidden = true; //if (rectify.IsFromMainUnit == true) //{ // this.btnUpdata.Hidden = false; //} - var superviseCheckRectifyItems = (from x in Funs.DB.View_Supervise_SuperviseCheckRectifyItem - where x.SuperviseCheckRectifyId == this.SuperviseCheckRectifyId - orderby x.RectifyCode - select x).ToList(); + superviseCheckRectifyItems = (from x in Funs.DB.View_Supervise_SuperviseCheckRectifyItem where x.SuperviseCheckRectifyId == this.SuperviseCheckRectifyId orderby x.RectifyCode select x).ToList(); Grid1.DataSource = superviseCheckRectifyItems; Grid1.DataBind(); } @@ -112,16 +106,14 @@ namespace FineUIPro.Web.ZHGL.Supervise /// private void Save(string type) { - - var superviseCheckRectifyItems = jerqueSaveList(); - var superviseCheckRectify = BLL.SuperviseCheckRectifyService.GetSuperviseCheckRectifyById(Request.Params["SuperviseCheckRectifyId"]); + Model.Supervise_SuperviseCheckRectify superviseCheckRectify = BLL.SuperviseCheckRectifyService.GetSuperviseCheckRectifyById(Request.Params["SuperviseCheckRectifyId"]); superviseCheckRectify.IssueMan = this.txtIssueMan.Text.Trim(); if (!string.IsNullOrEmpty(this.txtIssueDate.Text.Trim())) { superviseCheckRectify.IssueDate = Convert.ToDateTime(this.txtIssueDate.Text.Trim()); } BLL.SuperviseCheckRectifyItemService.DeleteSuperviseCheckRectifyItemBySuperviseCheckRectifyId(Request.Params["SuperviseCheckRectifyId"]); - + jerqueSaveList(); bool result = true; bool resultAll = true; foreach (var item in superviseCheckRectifyItems) @@ -231,18 +223,14 @@ namespace FineUIPro.Web.ZHGL.Supervise /// /// 保存集合 /// - private List jerqueSaveList() + private void jerqueSaveList() { - List newViewList = (from x in Funs.DB.View_Supervise_SuperviseCheckRectifyItem - where x.SuperviseCheckRectifyId == this.SuperviseCheckRectifyId - orderby x.RectifyCode - select x).ToList(); JArray mergedData = Grid1.GetMergedData(); foreach (JObject mergedRow in mergedData) { string status = mergedRow.Value("status"); JObject values = mergedRow.Value("values"); - var item = newViewList.FirstOrDefault(e => e.SuperviseCheckRectifyItemId == values.Value("SuperviseCheckRectifyItemId")); + var item = superviseCheckRectifyItems.FirstOrDefault(e => e.SuperviseCheckRectifyItemId == values.Value("SuperviseCheckRectifyItemId")); item.ConfirmMan = values.Value("ConfirmMan"); item.ConfirmDate = Funs.GetNewDateTime(values.Value("ConfirmDate")); item.OrderEndDate = Funs.GetNewDateTime(values.Value("OrderEndDate")); @@ -252,8 +240,6 @@ namespace FineUIPro.Web.ZHGL.Supervise item.VerifierName = values.Value("VerifierName"); item.VerifierDate = Funs.GetNewDateTime(values.Value("VerifierDate")); } - - return newViewList; } #endregion diff --git a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx.designer.cs index 14392e07..9794f00d 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckRectifyEdit.aspx.designer.cs @@ -93,6 +93,15 @@ namespace FineUIPro.Web.ZHGL.Supervise { /// protected global::FineUIPro.Label Label1; + /// + /// Label22 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label22; + /// /// lbSuperviseCheckRectifyCode 控件。 /// diff --git a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckReport.aspx b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckReport.aspx index 3485e832..2c6e53b5 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckReport.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Supervise/SuperviseCheckReport.aspx @@ -30,7 +30,7 @@ SortDirection="DESC" OnSort="Grid1_Sort" OnRowCommand="Grid1_RowCommand" EnableColumnLines="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" AllowFilters="true" - OnFilterChange="Grid1_FilterChange" EnableTextSelection="True" ForceFit="true"> + OnFilterChange="Grid1_FilterChange" EnableTextSelection="True"> @@ -38,16 +38,16 @@ AutoPostBack="true" OnTextChanged="txtName_TextChanged"> - - - - @@ -81,6 +81,10 @@ FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="检查日期" HeaderTextAlign="Center" TextAlign="Center"> + + + + + + + @@ -113,11 +122,11 @@