From 8aba5b01bc86efce774f070d6a12e3df91b8687a Mon Sep 17 00:00:00 2001 From: Zones <765289303@qq.com> Date: Sun, 6 Apr 2025 23:26:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=B3=E5=8C=97=E4=B8=93=E9=A1=B9=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E5=92=8C=E7=A7=BB=E5=8A=A8=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CreateModel2017.bat | 2 +- CreateModel2017local.bat | 2 +- SGGL/BLL/API/APIBaseInfoService.cs | 4 +- SGGL/BLL/API/APIProjectService.cs | 18 + SGGL/BLL/API/HSSE/APIHazardRegisterService.cs | 36 + SGGL/BLL/API/HSSE/APIMeetingService.cs | 33 + SGGL/BLL/Common/Const.cs | 2 +- SGGL/BLL/Common/UploadAttachmentService.cs | 6 +- .../Inspect/Inspect_InspectionService.cs | 326 +- .../App_GlobalResources/Lan.designer.cs | 194 +- .../App_GlobalResources/Lan.zh-CN.resx | 2 +- SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx | 17 + .../BaseInfo/ProblemTypes.aspx.cs | 21 + .../BaseInfo/ProblemTypes.aspx.designer.cs | 26 + SGGL/FineUIPro.Web/ErrLog.txt | 5715 ++++++++++++++++- SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 9 + .../HJGL/RepairManage/CodeConfirm.aspx | 26 + .../HJGL/RepairManage/CodeConfirm.aspx.cs | 150 + .../RepairManage/CodeConfirm.aspx.designer.cs | 51 + .../HJGL/RepairManage/EMaterialRegist.aspx | 156 + .../HJGL/RepairManage/EMaterialRegist.aspx.cs | 276 + .../EMaterialRegist.aspx.designer.cs | 197 + .../RepairManage/EMaterialRegistEdit.aspx | 147 + .../RepairManage/EMaterialRegistEdit.aspx.cs | 230 + .../EMaterialRegistEdit.aspx.designer.cs | 242 + .../RepairManage/EMaterialRegistEditNew.aspx | 169 + .../EMaterialRegistEditNew.aspx.cs | 252 + .../EMaterialRegistEditNew.aspx.designer.cs | 278 + .../EMaterialRegistIn.aspx.designer.cs | 332 + .../HJGL/RepairManage/EMaterialRegistin.aspx | 243 + .../RepairManage/EMaterialRegistin.aspx.cs | 531 ++ .../HJGL/RepairManage/EMaterialStatic.aspx | 112 + .../HJGL/RepairManage/EMaterialStatic.aspx.cs | 271 + .../EMaterialStatic.aspx.designer.cs | 152 + .../RepairManage/ElectrodeBackRecovery.aspx | 205 + .../ElectrodeBackRecovery.aspx.cs | 442 ++ .../ElectrodeBackRecovery.aspx.designer.cs | 260 + .../ElectrodeBackRecoveryEdit.aspx | 236 + .../ElectrodeBackRecoveryEdit.aspx.cs | 541 ++ ...ElectrodeBackRecoveryEdit.aspx.designer.cs | 242 + .../RepairManage/ElectrodeBakeRecord.aspx | 210 + .../RepairManage/ElectrodeBakeRecord.aspx.cs | 270 + .../ElectrodeBakeRecord.aspx.designer.cs | 206 + .../RepairManage/ElectrodeBakeRecordEdit.aspx | 260 + .../ElectrodeBakeRecordEdit.aspx.cs | 234 + .../ElectrodeBakeRecordEdit.aspx.designer.cs | 341 + .../ElectrodeBakeRecordEditIn.aspx | 270 + .../ElectrodeBakeRecordEditIn.aspx.cs | 543 ++ ...ElectrodeBakeRecordEditIn.aspx.designer.cs | 350 + .../ElectrodeBakeRecordEditNew.aspx | 152 + .../ElectrodeBakeRecordEditNew.aspx.cs | 305 + ...lectrodeBakeRecordEditNew.aspx.designer.cs | 260 + .../HJGL/RepairManage/ElectrodeRecovery.aspx | 205 + .../RepairManage/ElectrodeRecovery.aspx.cs | 440 ++ .../ElectrodeRecovery.aspx.designer.cs | 260 + .../RepairManage/ElectrodeRecoveryBack.aspx | 217 + .../ElectrodeRecoveryBack.aspx.cs | 440 ++ .../ElectrodeRecoveryBack.aspx.designer.cs | 260 + .../RepairManage/ElectrodeRecoveryBatch.aspx | 37 + .../ElectrodeRecoveryBatch.aspx.cs | 49 + .../ElectrodeRecoveryBatch.aspx.designer.cs | 80 + .../RepairManage/ElectrodeRecoveryEdit.aspx | 237 + .../ElectrodeRecoveryEdit.aspx.cs | 539 ++ .../ElectrodeRecoveryEdit.aspx.designer.cs | 242 + .../RepairManage/ElectrodeRecoveryView.aspx | 155 + .../ElectrodeRecoveryView.aspx.cs | 140 + .../ElectrodeRecoveryView.aspx.designer.cs | 197 + .../ElectrodeSecondaryBakeRecord.aspx | 204 + .../ElectrodeSecondaryBakeRecord.aspx.cs | 264 + ...ctrodeSecondaryBakeRecord.aspx.designer.cs | 206 + .../ElectrodeSecondaryBakeRecordEditNew.aspx | 122 + ...lectrodeSecondaryBakeRecordEditNew.aspx.cs | 211 + ...econdaryBakeRecordEditNew.aspx.designer.cs | 233 + .../ElectrodeSecondaryBakeRecordIn.aspx | 271 + .../ElectrodeSecondaryBakeRecordIn.aspx.cs | 544 ++ ...rodeSecondaryBakeRecordIn.aspx.designer.cs | 350 + .../HJGL/RepairManage/MaterialApply.aspx | 128 + .../HJGL/RepairManage/MaterialApply.aspx.cs | 327 + .../MaterialApply.aspx.designer.cs | 206 + .../HJGL/RepairManage/MaterialApplyEdit.aspx | 273 + .../RepairManage/MaterialApplyEdit.aspx.cs | 852 +++ .../MaterialApplyEdit.aspx.designer.cs | 440 ++ .../HJGL/RepairManage/RecycleMat.aspx | 168 + .../HJGL/RepairManage/RecycleMat.aspx.cs | 241 + .../RepairManage/RecycleMat.aspx.designer.cs | 204 + .../HJGL/RepairManage/RecycleMatEdit.aspx | 69 + .../HJGL/RepairManage/RecycleMatEdit.aspx.cs | 200 + .../RecycleMatEdit.aspx.designer.cs | 141 + .../HJGL/RepairManage/ReleaseRecovery.aspx | 135 + .../HJGL/RepairManage/ReleaseRecovery.aspx.cs | 373 ++ .../ReleaseRecovery.aspx.designer.cs | 222 + .../HJGL/RepairManage/ShowPlanWeld.aspx | 91 + .../HJGL/RepairManage/ShowPlanWeld.aspx.cs | 223 + .../ShowPlanWeld.aspx.designer.cs | 141 + .../HJGL/RepairManage/ShowStockIn.aspx | 98 + .../HJGL/RepairManage/ShowStockIn.aspx.cs | 312 + .../RepairManage/ShowStockIn.aspx.designer.cs | 114 + .../HJGL/RepairManage/ShowUsingMan.aspx | 79 + .../HJGL/RepairManage/ShowUsingMan.aspx.cs | 151 + .../ShowUsingMan.aspx.designer.cs | 123 + .../HJGL/RepairManage/ShowWeldInfo.aspx | 77 + .../HJGL/RepairManage/ShowWeldInfo.aspx.cs | 153 + .../ShowWeldInfo.aspx.designer.cs | 123 + .../HJGL/RepairManage/StockIn.aspx | 156 + .../HJGL/RepairManage/StockIn.aspx.cs | 352 + .../RepairManage/StockIn.aspx.designer.cs | 213 + .../HJGL/RepairManage/StockInEdit.aspx | 108 + .../HJGL/RepairManage/StockInEdit.aspx.cs | 316 + .../RepairManage/StockInEdit.aspx.designer.cs | 231 + .../HJGL/RepairManage/StockInit.aspx | 144 + .../HJGL/RepairManage/StockInit.aspx.cs | 392 ++ .../RepairManage/StockInit.aspx.designer.cs | 186 + .../HJGL/RepairManage/StockMove.aspx | 123 + .../HJGL/RepairManage/StockMove.aspx.cs | 202 + .../RepairManage/StockMove.aspx.designer.cs | 186 + .../HJGL/RepairManage/StockSelect.aspx | 122 + .../HJGL/RepairManage/StockSelect.aspx.cs | 236 + .../RepairManage/StockSelect.aspx.designer.cs | 168 + .../HJGL/RepairManage/StockSelectDetail.aspx | 97 + .../RepairManage/StockSelectDetail.aspx.cs | 178 + .../StockSelectDetail.aspx.designer.cs | 150 + .../HJGL/RepairManage/UnitStore.aspx | 177 + .../HJGL/RepairManage/UnitStore.aspx.cs | 359 ++ .../RepairManage/UnitStore.aspx.designer.cs | 222 + .../HJGL/RepairManage/UsingMat.aspx | 257 + .../HJGL/RepairManage/UsingMat.aspx.cs | 1113 ++++ .../RepairManage/UsingMat.aspx.designer.cs | 357 + .../HJGL/RepairManage/UsingMatCheck.aspx | 203 + .../HJGL/RepairManage/UsingMatCheck.aspx.cs | 395 ++ .../UsingMatCheck.aspx.designer.cs | 177 + .../HJGL/RepairManage/UsingPlan.aspx | 195 + .../HJGL/RepairManage/UsingPlan.aspx.cs | 625 ++ .../RepairManage/UsingPlan.aspx.designer.cs | 267 + .../HJGL/RepairManage/UsingPlanEdit.aspx | 142 + .../HJGL/RepairManage/UsingPlanEdit.aspx.cs | 495 ++ .../UsingPlanEdit.aspx.designer.cs | 294 + .../HJGL/RepairManage/UsingtMatSelect.aspx | 141 + .../HJGL/RepairManage/UsingtMatSelect.aspx.cs | 337 + .../UsingtMatSelect.aspx.designer.cs | 231 + .../HJGL/RepairManage/WeldMatStatistics.aspx | 95 + .../RepairManage/WeldMatStatistics.aspx.cs | 215 + .../WeldMatStatistics.aspx.designer.cs | 150 + .../HJGL/RepairManage/WeldUseAmount.aspx | 89 + .../HJGL/RepairManage/WeldUseAmount.aspx.cs | 189 + .../WeldUseAmount.aspx.designer.cs | 159 + .../HJGL/RepairManage/WelderMaterial.aspx | 116 + .../HJGL/RepairManage/WelderMaterial.aspx.cs | 354 + .../WelderMaterial.aspx.designer.cs | 278 + .../HJGL/RepairManage/WelderRecordPrint.aspx | 265 + .../RepairManage/WelderRecordPrint.aspx.cs | 45 + .../WelderRecordPrint.aspx.designer.cs | 384 ++ .../HJGL/RepairManage/WelderUsing.aspx | 88 + .../HJGL/RepairManage/WelderUsing.aspx.cs | 17 + .../RepairManage/WelderUsing.aspx.designer.cs | 33 + .../HSSE/Check/CheckSpecialRecord.aspx | 214 +- .../HSSE/Check/CheckSpecialRecord.aspx.cs | 299 +- .../Check/CheckSpecialRecord.aspx.designer.cs | 163 +- .../HSSE/Check/CheckSpecialView.aspx | 187 +- .../HSSE/Check/CheckSpecialView.aspx.cs | 189 +- .../Check/CheckSpecialView.aspx.designer.cs | 123 +- .../HiddenRectificationList.aspx | 147 +- .../HiddenRectificationList.aspx.cs | 266 +- .../HiddenRectificationList.aspx.designer.cs | 177 +- .../HiddenRectificationView.aspx.cs | 5 +- .../HSSE/Meeting/ClassMeeting.aspx | 192 +- .../HSSE/Meeting/ClassMeeting.aspx.cs | 22 +- .../Meeting/ClassMeeting.aspx.designer.cs | 78 +- SGGL/FineUIPro.Web/Login.aspx | 91 +- .../ProjectSafetyInspectionEdit.aspx.cs | 36 +- .../ProjectSafetyInspectionRectify.aspx.cs | 112 +- .../Inspect/SafetyInspectionEdit.aspx.cs | 188 +- .../Inspect/SafetyInspectionRectify.aspx.cs | 106 +- SGGL/FineUIPro.Web/common/Menu_CQMS.xml | 19 +- SGGL/FineUIPro.Web/common/Menu_DigData.xml | 4 + SGGL/FineUIPro.Web/common/Menu_HSSE.xml | 44 +- SGGL/FineUIPro.Web/common/Menu_Server.xml | 10 +- SGGL/FineUIPro.Web/common/Menu_SysSet.xml | 1 + SGGL/FineUIPro.Web/common/Menu_TestRun.xml | 2 +- SGGL/FineUIPro.Web/common/PageBase.cs | 510 +- SGGL/FineUIPro.Web/common/main3.aspx | 772 +-- SGGL/FineUIPro.Web/common/main3.aspx.cs | 89 +- .../common/main3.aspx.designer.cs | 47 +- SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx | 2 +- SGGL/FineUIPro.Web/common/mainProject.aspx | 495 +- SGGL/FineUIPro.Web/common/mainProject.aspx.cs | 100 +- .../common/mainProject.aspx.designer.cs | 158 +- SGGL/FineUIPro.Web/favicon.ico | Bin 1150 -> 1150 bytes SGGL/FineUIPro.Web/index.aspx | 2 +- SGGL/FineUIPro.Web/index.aspx.cs | 13 +- SGGL/FineUIPro.Web/index1.aspx | 1 + SGGL/FineUIPro.Web/indexProject.aspx | 34 +- SGGL/FineUIPro.Web/indexProject.aspx.cs | 27 +- .../indexProject.aspx.designer.cs | 90 +- SGGL/FineUIPro.Web/indexProjects.aspx | 1 + SGGL/FineUIPro.Web/res/css/base.css | 9 +- SGGL/FineUIPro.Web/res/css/mainindex.css | 34 +- SGGL/FineUIPro.Web/res/css/projectIndex.css | 5 +- .../res/indexv2/assets/image/hidepw.png | Bin 0 -> 934 bytes .../res/indexv2/assets/image/showpw.png | Bin 0 -> 1028 bytes SGGL/Model/Model.cs | 514 +- .../HSSE/HazardRegisterController.cs | 4 +- .../Controllers/HSSE/RectifyController.cs | 109 + .../HSSE/SafetyInspectionController.cs | 275 +- SGGL/WebAPI/Controllers/ProjectController.cs | 18 + 204 files changed, 41904 insertions(+), 3226 deletions(-) create mode 100644 SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx create mode 100644 SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx.cs create mode 100644 SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistin.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistin.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/res/indexv2/assets/image/hidepw.png create mode 100644 SGGL/FineUIPro.Web/res/indexv2/assets/image/showpw.png diff --git a/CreateModel2017.bat b/CreateModel2017.bat index 1717f72..c918b4e 100644 --- a/CreateModel2017.bat +++ b/CreateModel2017.bat @@ -27,7 +27,7 @@ REM -------------- @echo. @call "%VS150%" -SqlMetal /views /server:. /database:SGGLDB_HBAZ /code:%Model_ROOT%\Model.cs /namespace:Model +SqlMetal /views /server:47.104.102.122,14333:SGGLDB_HBAZ /code:%Model_ROOT%\Model.cs /namespace:Model @ECHO pause diff --git a/CreateModel2017local.bat b/CreateModel2017local.bat index 730ed1b..1496eda 100644 --- a/CreateModel2017local.bat +++ b/CreateModel2017local.bat @@ -27,7 +27,7 @@ REM -------------- @echo. @call "%VS150%" -SqlMetal /views /server:. /user:sa /password:1111 /database:SGGLDB_TCC /code:%Model_ROOT%\Model.cs /namespace:Model +SqlMetal /views /server:DESKTOP-MEED9GU\SQLSERVER /user:sa /password:303303 /database:SGGLDB_HBAZ /code:%Model_ROOT%\Model.cs /namespace:Model @ECHO pause diff --git a/SGGL/BLL/API/APIBaseInfoService.cs b/SGGL/BLL/API/APIBaseInfoService.cs index fb134ad..25b3eed 100644 --- a/SGGL/BLL/API/APIBaseInfoService.cs +++ b/SGGL/BLL/API/APIBaseInfoService.cs @@ -614,7 +614,9 @@ namespace BLL var getDataLists = (from x in Funs.DB.ProjectData_TeamGroup where x.ProjectId == projectId && (unitId == null || x.UnitId == unitId) orderby x.TeamGroupCode - select new Model.BaseInfoItem { BaseInfoId = x.TeamGroupId, BaseInfoCode = x.TeamGroupCode, BaseInfoName = x.TeamGroupName }).ToList(); + select new Model.BaseInfoItem { BaseInfoId = x.TeamGroupId, BaseInfoCode = x.TeamGroupCode, BaseInfoName = x.TeamGroupName, GroupLeaderId=x.GroupLeaderId, + GroupLeaderName= Funs.DB.SitePerson_Person.FirstOrDefault(p=>p.PersonId == x.GroupLeaderId).PersonName, + Remark = x.Remark }).ToList(); return getDataLists; } diff --git a/SGGL/BLL/API/APIProjectService.cs b/SGGL/BLL/API/APIProjectService.cs index c3b202c..bec9f39 100644 --- a/SGGL/BLL/API/APIProjectService.cs +++ b/SGGL/BLL/API/APIProjectService.cs @@ -1,4 +1,5 @@ using EmitMapper; +using Model; using System.Collections.Generic; using System.Linq; @@ -6,6 +7,23 @@ namespace BLL { public static class APIProjectService { + #region 获取所有项目列表 + public static List geProjects() + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + + return (from x in db.Base_Project + select new Model.ProjectItem() + { + ProjectId = x.ProjectId, + ProjectName = x.ProjectName + }).ToList(); ; + } + + } + #endregion + /// /// 根据userId获取用户信息 /// diff --git a/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs b/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs index 1059d3b..58dd30a 100644 --- a/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs +++ b/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs @@ -150,6 +150,42 @@ namespace BLL } + #region 按项目和检查日期获取日常巡检 + public static List getHazardRegisterByProjectIdStates(string projectId, string date) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + DateTime mdate = Funs.GetNewDateTimeOrNow(date); + var hazardRegisters = (from x in db.HSSE_Hazard_HazardRegister + //join y in db.Base_Project on x.ProjectId equals projectId + where x.ProjectId == projectId + && x.CheckTime.Value.Year == mdate.Year + && x.CheckTime.Value.Month == mdate.Month + && x.CheckTime.Value.Day == mdate.Day + select new Model.HazardRegisterItem + { + HazardRegisterId = x.HazardRegisterId, + ProjectId = x.ProjectId, + ProjectName = db.Base_Project.First(p=>p.ProjectId == x.ProjectId).ProjectName, + States = x.States, + Place = x.Place, + CheckTime = x.CheckTime, + CheckManName = db.Sys_User.First(u => u.UserId == x.CheckManId).UserName, + RectifyName = x.RectifyName, + RegisterDef = x.RegisterDef, + RegisterTypesName = db.HSSE_Hazard_HazardRegisterTypes.First(T => x.RegisterTypesId == T.RegisterTypesId).RegisterTypesName, + Rectification = x.Rectification, + ResponsibilityUnitName = db.Base_Unit.First(U => x.ResponsibleUnit == U.UnitId).UnitName, + ResponsibilityManName = db.Sys_User.First(User => x.ResponsibleMan == User.UserId).UserName, + RectificationTime = x.RectificationTime, + Risk_Level = x.Risk_Level, + + }).OrderBy(x => x.CheckTime).ToList(); + return hazardRegisters; + } + } + #endregion + /// /// 安全巡检 /// diff --git a/SGGL/BLL/API/HSSE/APIMeetingService.cs b/SGGL/BLL/API/HSSE/APIMeetingService.cs index 7223616..efe92ba 100644 --- a/SGGL/BLL/API/HSSE/APIMeetingService.cs +++ b/SGGL/BLL/API/HSSE/APIMeetingService.cs @@ -653,6 +653,39 @@ namespace BLL } #endregion + #region 根据日期获取当前项目的班前会列表(不分页) + public static List getClassMeetingList(string projectId, string meetingDate) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + List getMeetItem = new List(); + DateTime mdate = Funs.GetNewDateTimeOrNow(meetingDate); + getMeetItem = (from x in db.Meeting_ClassMeeting + where x.ProjectId == projectId + && x.ClassMeetingDate.Value.Year == mdate.Year && x.ClassMeetingDate.Value.Month == mdate.Month && x.ClassMeetingDate.Value.Day == mdate.Day + select new Model.MeetingItem + { + MeetingId = x.ClassMeetingId, + ProjectId = x.ProjectId, + UnitId = x.UnitId, + UnitName = db.Base_Unit.First(u => u.UnitId == x.UnitId).UnitName, + TeamGroupId = x.TeamGroupId, + TeamGroupName = db.ProjectData_TeamGroup.First(u => u.TeamGroupId == x.TeamGroupId).TeamGroupName, + MeetingCode = x.ClassMeetingCode, + MeetingName = x.ClassMeetingName, + CompileDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.CompileDate), + MeetingHostManOther = x.MeetingHostManOther, + CompileManId = x.CompileMan, + CompileManName = db.Sys_User.First(u => u.UserId == x.CompileMan).UserName, + AttentPersonNum = x.AttentPersonNum ?? 0, + + }).ToList(); + + return getMeetItem; + } + } + #endregion + #region 根据时间获取各单位班会情况 /// /// 根据时间获取各单位班会情况 diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 72031ef..094b0d1 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -949,7 +949,7 @@ namespace BLL /// /// 天辰单位id /// - public const string UnitId_TCC = "b4f3d912-ca6d-440c-a8d7-bc6a5d5a1f84"; + public const string UnitId_TCC = "d792cef6-1025-4e1e-ad86-4c76298fad83"; /// /// 天辰 /// diff --git a/SGGL/BLL/Common/UploadAttachmentService.cs b/SGGL/BLL/Common/UploadAttachmentService.cs index d38ef52..28057d0 100644 --- a/SGGL/BLL/Common/UploadAttachmentService.cs +++ b/SGGL/BLL/Common/UploadAttachmentService.cs @@ -172,7 +172,7 @@ namespace BLL string htmlStr = string.Empty; if (!string.IsNullOrEmpty(path)) { - htmlStr = ""; + htmlStr = "
"; string[] arrStr = path.Split(new string[] { "," }, System.StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrStr.Length; i++) { @@ -190,11 +190,11 @@ namespace BLL string fileName = subUrl[subUrl.Count() - 1]; string newFileName = fileName.Substring(fileName.IndexOf("~") + 1); - htmlStr += "
"; + htmlStr += ""; } } - htmlStr += "

"; + htmlStr += ""; } return htmlStr; diff --git a/SGGL/BLL/OfficeCheck/Inspect/Inspect_InspectionService.cs b/SGGL/BLL/OfficeCheck/Inspect/Inspect_InspectionService.cs index ebed688..19b6a36 100644 --- a/SGGL/BLL/OfficeCheck/Inspect/Inspect_InspectionService.cs +++ b/SGGL/BLL/OfficeCheck/Inspect/Inspect_InspectionService.cs @@ -1,10 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Collections; -using Model; -using static BLL.SafetyResponsibilitiesService; namespace BLL.OfficeCheck.Inspect { @@ -15,73 +11,179 @@ namespace BLL.OfficeCheck.Inspect /// 添加安全专项检查 ///
/// - public static void AddInspection(Model.Inspect_Inspection Inspection) + public static Model.Inspect_Inspection SaveInspection(Model.Inspect_Inspection Inspection) { Model.SGGLDB db = Funs.DB; + int count = (from x in db.Inspect_Inspection where x.InspectType == "1" select x).Count(); + if (Inspection.InspectionId == null) + { + Inspection.InspectionId = SQLHelper.GetNewID(); + } Model.Inspect_Inspection newInspection = new Model.Inspect_Inspection { InspectionId = Inspection.InspectionId, - InspectionCode = Inspection.InspectionCode, + InspectionCode = "1-"+count.ToString("D6"), ProjectId = Inspection.ProjectId, - PersonResponsible = Inspection.PersonResponsible, - InspectTime = Inspection.InspectTime, Description = Inspection.Description, States = Inspection.States, - InspectMan = Inspection.InspectMan, - InspectType = Inspection.InspectType, - InspectItemSetId = Inspection.InspectItemSetId, - ProjectStates = Inspection.ProjectStates, CreateMan = Inspection.CreateMan, - CreateTime = Inspection.CreateTime, + CreateTime = DateTime.Today, + CheckMan = Inspection.CheckMan, + PersonResponsible = Inspection.PersonResponsible, + InspectType = Inspection.InspectType, + ProblemTypeId = Inspection.ProblemTypeId, + ProblemTypeName = Inspection.ProblemTypeName, + Place = Inspection.Place, }; db.Inspect_Inspection.InsertOnSubmit(newInspection); db.SubmitChanges(); - // ////增加一条编码记录 - // BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.SafetyInspectionMenuId, - // Inspection.ProjectId, null, Inspection.InspectionId, new DateTime()); - } - /// - /// 添加安全专项明细检查 - /// - /// - public static void AddInspectionItem(Model.Inspect_InspectionItem InspectionItem) + return newInspection; + } + #region 更新专检主项 + public static void UpdateInspection(Model.Inspect_Inspection Inspection) { Model.SGGLDB db = Funs.DB; + Model.Inspect_Inspection newInspection = + db.Inspect_Inspection.FirstOrDefault(e => e.InspectionId == Inspection.InspectionId); + if (newInspection != null) + { + newInspection.States = Inspection.States; + db.SubmitChanges(); + ClosedInspection(Inspection.InspectionId); + } + } + + #endregion + #region 根据专项检查ID获取专项信息 + public static Object GetInspectionById(string InspectionId) + { + return (from x in Funs.DB.Inspect_Inspection + where x.InspectionId == InspectionId + select new + { + InspectionId = x.InspectionId, + InspectionCode = x.InspectionCode, + ProjectId = x.ProjectId, + ProjectName = (from y in Funs.DB.Base_Project where y.ProjectId == x.ProjectId select y).First().ProjectName, + Description = x.Description, + States = x.States, + PersonResponsible = x.PersonResponsible, + PersonResponsibleName = (from y in Funs.DB.Sys_User where y.UserId == x.PersonResponsible select y.UserName).FirstOrDefault(), + CreateTime = x.CreateTime, + CreateMan = x.CreateMan, + CheckMan = x.CheckMan, + CreateManName = (from y in Funs.DB.Sys_User where y.UserId == x.CreateMan select y.UserName).FirstOrDefault(), + ProblemTypeId = x.ProblemTypeId, + ProblemTypeName = x.ProblemTypeName, + Place = x.Place, + children = (from a in Funs.DB.Inspect_InspectionItem + where a.InspectionId == x.InspectionId + orderby a.CompileTime descending + select new + { + InspectionItemId = a.InspectionItemId, + InspectionId = a.InspectionId, + ProjectId = a.ProjectId, + BeforelUrl = a.BeforelUrl, + States = a.States, + CompileTime = a.CompileTime, + AfterUrl = a.AfterUrl, + RectificationDate = a.RectificationDate, + EvaluateResults = a.EvaluateResults, + WorkAreaName = a.WorkAreaName + }).ToList() + }).FirstOrDefault(e => e.InspectionId == InspectionId); + } + #endregion + /// + /// 添加安全专项子项检查 + /// + /// + public static void SaveInspectionItem(Model.Inspect_InspectionItem InspectionItem) + { + Model.SGGLDB db = Funs.DB; + InspectionItem.InspectionItemId = SQLHelper.GetNewID(); Model.Inspect_InspectionItem newInspectionItem = new Model.Inspect_InspectionItem { InspectionItemId = InspectionItem.InspectionItemId, InspectionId = InspectionItem.InspectionId, - InspectionItemCode = InspectionItem.InspectionItemCode, + ProblemDetial = InspectionItem.ProblemDetial, ProjectId = InspectionItem.ProjectId, - InspectionDescribe = InspectionItem.InspectionDescribe, - PhotoUrl = InspectionItem.PhotoUrl, - VideoUrl = InspectionItem.VideoUrl, + ProblemTypeId = InspectionItem.ProblemTypeId, + BeforelUrl = InspectionItem.BeforelUrl, EvaluateResults = InspectionItem.EvaluateResults, TimeLimited = InspectionItem.TimeLimited, RectificationDescription = InspectionItem.RectificationDescription, RectificationResults = InspectionItem.RectificationResults, States = InspectionItem.States, - CompileMan = InspectionItem.CompileMan, - CompileTime = DateTime.Now, + CreateMan = InspectionItem.CreateMan, + CompileTime = InspectionItem.CompileTime, + AfterUrl = InspectionItem.AfterUrl, + ResponsiblePersonId = InspectionItem.ResponsiblePersonId, + RectificationDate = InspectionItem.RectificationDate, + Level = InspectionItem.Level, + WorkAreaName = InspectionItem.WorkAreaName, }; db.Inspect_InspectionItem.InsertOnSubmit(newInspectionItem); db.SubmitChanges(); + ClosedInspection(InspectionItem.InspectionId); } - - - /// - /// 根据专项检查ID获取专项明细信息 - /// - /// - /// - public static Model.Inspect_InspectionItem GetInspectItemsById(string InspectionItemId) + #region 专检主项闭环 + public static void ClosedInspection(string InspectionId) { - return Funs.DB.Inspect_InspectionItem.FirstOrDefault(e => e.InspectionItemId == InspectionItemId); + int count = Funs.DB.Inspect_InspectionItem.Count(x=>x.InspectionId == InspectionId && x.States != "3"); + if(count == 0) + { + Model.SGGLDB db = Funs.DB; + Model.Inspect_Inspection newInspection = + db.Inspect_Inspection.FirstOrDefault(e => e.InspectionId == InspectionId); + newInspection.States = "3"; + db.SubmitChanges(); + } } + #endregion + + + #region 获取专检子项详细 + public static Object GetInspectItemsById(string InspectionItemId) + { + return (from x in Funs.DB.Inspect_InspectionItem + join y in Funs.DB.Inspect_Inspection on x.InspectionId equals y.InspectionId + //join b in Funs.DB.Technique_Rectify on x.ProblemTypeId equals b.RectifyId + where x.InspectionItemId == InspectionItemId + select new + { + InspectionItemId = x.InspectionItemId, + InspectionId = x.InspectionId, + ProjectId = x.ProjectId, + ProjectName = Funs.DB.Base_Project.FirstOrDefault(p => p.ProjectId == x.ProjectId).ProjectName, + CreateTime = x.CompileTime, + CreateMan = x.CreateMan, + CreateManName = Funs.DB.Sys_User.FirstOrDefault(u => u.UserId == x.CreateMan).UserName, + CheckMan = y.CheckMan, + EvaluateResults = x.EvaluateResults, + WorkAreaName = x.WorkAreaName, + States = x.States, + BeforelUrl = x.BeforelUrl, + RectificationResults = x.RectificationResults, + AfterUrl = x.AfterUrl, + RectificationDate = x.RectificationDate, + InspectionCode = y.InspectionCode, + Description = y.Description, + InspectType = y.InspectType, + ProblemTypeId = y.ProblemTypeId, + ProblemTypeName = y.ProblemTypeName, + Place = y.Place, + + } + ).FirstOrDefault(e => e.InspectionItemId == InspectionItemId); + } + #endregion + /// /// 根据专项检查ID获取专项信息 @@ -93,27 +195,7 @@ namespace BLL.OfficeCheck.Inspect return Funs.DB.Inspect_Inspection.FirstOrDefault(e => e.InspectionId == InspectionId); } - /// - /// 修改安全专项检查 - /// - /// - public static void UpdateInspection(Model.Inspect_Inspection Inspection) - { - Model.SGGLDB db = Funs.DB; - Model.Inspect_Inspection newInspection = - db.Inspect_Inspection.FirstOrDefault(e => e.InspectionId == Inspection.InspectionId); - if (newInspection != null) - { - newInspection.InspectionCode = Inspection.InspectionCode; - //newInspection.ProjectId = Inspection.ProjectId; - newInspection.PersonResponsible = Inspection.PersonResponsible; - newInspection.InspectTime = Inspection.InspectTime; - newInspection.Description = Inspection.Description; - newInspection.States = Inspection.States; - db.SubmitChanges(); - } - } - + /// /// 修改安全专项检查状态信息 /// @@ -141,19 +223,25 @@ namespace BLL.OfficeCheck.Inspect db.Inspect_InspectionItem.FirstOrDefault(e => e.InspectionItemId == InspectionItem.InspectionItemId); if (newInspectionItem != null) { - newInspectionItem.InspectionItemCode = InspectionItem.InspectionItemCode; - //newInspection.ProjectId = Inspection.ProjectId; - newInspectionItem.InspectionDescribe = InspectionItem.InspectionDescribe; - newInspectionItem.PhotoUrl = InspectionItem.PhotoUrl; - newInspectionItem.VideoUrl = InspectionItem.VideoUrl; + newInspectionItem.InspectionItemId = InspectionItem.InspectionItemId; + newInspectionItem.InspectionId = InspectionItem.InspectionId; newInspectionItem.EvaluateResults = InspectionItem.EvaluateResults; - newInspectionItem.TimeLimited = InspectionItem.TimeLimited; - newInspectionItem.RectificationDescription = InspectionItem.RectificationDescription; + newInspectionItem.BeforelUrl = InspectionItem.BeforelUrl; + newInspectionItem.States = InspectionItem.States; + newInspectionItem.RectificationResults = InspectionItem.RectificationResults; + newInspectionItem.AfterUrl = InspectionItem.AfterUrl; + newInspectionItem.AuditTime = InspectionItem.AuditTime; + newInspectionItem.AuditMan = InspectionItem.AuditMan; + + newInspectionItem.BeforelUrl = InspectionItem.BeforelUrl; newInspectionItem.RectificationResults = InspectionItem.RectificationResults; newInspectionItem.States = InspectionItem.States; - newInspectionItem.CompileMan = InspectionItem.CompileMan; - newInspectionItem.CompileTime = InspectionItem.CompileTime; + + newInspectionItem.ResponsiblePersonId = InspectionItem.ResponsiblePersonId; + newInspectionItem.RectificationDate = InspectionItem.RectificationDate; + newInspectionItem.WorkAreaName = InspectionItem.WorkAreaName; db.SubmitChanges(); + ClosedInspection(InspectionItem.InspectionId); } } @@ -213,35 +301,29 @@ namespace BLL.OfficeCheck.Inspect /// /// /// - public static List GetInspectionList(string ProjectId, string States, string PersonResponsible, int PageNumber, int PageSize) + public static List GetInspectionList(string ProjectId, string States, int PageNumber, int PageSize) { var getDataLists = (from x in Funs.DB.Inspect_Inspection - join user in Funs.DB.Sys_User on x.InspectMan equals user.UserId into userJoin1 - from subUser1 in userJoin1.DefaultIfEmpty() - join user in Funs.DB.Sys_User on x.CreateMan equals user.UserId into userJoin2 - from subUser2 in userJoin2.DefaultIfEmpty() - join user in Funs.DB.Sys_User on x.PersonResponsible equals user.UserId into userJoin3 - from subUser3 in userJoin3.DefaultIfEmpty() - join p in Funs.DB.Base_Project on x.ProjectId equals p.ProjectId into project - from pro in project.DefaultIfEmpty() select new InspectionDto { InspectionId = x.InspectionId, InspectionCode = x.InspectionCode, ProjectId = x.ProjectId, - ProjectName = pro.ProjectName, + ProjectName = Funs.DB.Base_Project.FirstOrDefault(p=>p.ProjectId == x.ProjectId).ProjectName, PersonResponsible = x.PersonResponsible, - PersonResponsibleName = subUser3.UserName, - InspectTime = x.InspectTime, + PersonResponsibleName = Funs.DB.Sys_User.FirstOrDefault(u => u.UserId == x.PersonResponsible).UserName, Description = x.Description, States = x.States, - InspectMan = subUser1.UserName, - InspectManId = x.InspectMan, - InspectType = x.InspectType, - InspectItemSetId = x.InspectItemSetId, - CreateMan = subUser2.UserName, + CreateManName = Funs.DB.Sys_User.FirstOrDefault(u=>u.UserId == x.CreateMan).UserName, + CreateMan = x.CreateMan, CreateTime = x.CreateTime, + CheckMan = x.CheckMan, + InspectType = x.InspectType, + ProblemTypeId = x.ProblemTypeId, + ProblemTypeName = x.ProblemTypeName, + Place = x.Place, + ChildsCount = Funs.DB.Inspect_InspectionItem.Count(itm=>itm.InspectionId == x.InspectionId).ToString() }); if (!string.IsNullOrEmpty(ProjectId)) { @@ -253,11 +335,6 @@ namespace BLL.OfficeCheck.Inspect getDataLists = getDataLists.Where(q => q.States == States); } - if (!string.IsNullOrEmpty(PersonResponsible)) - { - getDataLists = getDataLists.Where(q => q.PersonResponsible == PersonResponsible); - } - if (PageNumber > 0 && PageSize > 0) { getDataLists = getDataLists.Skip((PageNumber - 1) * PageSize).Take(PageSize); @@ -276,28 +353,26 @@ namespace BLL.OfficeCheck.Inspect { List getDataLists = (from x in Funs.DB.Inspect_InspectionItem - join user in Funs.DB.Sys_User on x.CompileMan equals user.UserId into userJoin1 - from subUser1 in userJoin1.DefaultIfEmpty() join p in Funs.DB.Base_Project on x.ProjectId equals p.ProjectId into project from pro in project.DefaultIfEmpty() where x.InspectionId == InspectionId select new InspectionItemDto { - InspectionItemId = x.InspectionItemId, - InspectionId = x.InspectionId, - InspectionItemCode = x.InspectionItemCode, - ProjectId = x.ProjectId, - ProjectName = pro.ProjectName, - InspectionDescribe = x.InspectionDescribe, - PhotoUrl = x.PhotoUrl, - VideoUrl = x.VideoUrl, - EvaluateResults = x.EvaluateResults, - TimeLimited = x.TimeLimited, - RectificationDescription = x.RectificationDescription, - RectificationResults = x.RectificationResults, - States = x.States, - CompileMan = subUser1.UserName, - CompileTime = x.CompileTime, + //InspectionItemId = x.InspectionItemId, + //InspectionId = x.InspectionId, + //InspectionItemCode = x.InspectionItemCode, + //ProjectId = x.ProjectId, + //ProjectName = pro.ProjectName, + //InspectionDescribe = x.InspectionDescribe, + //PhotoUrl = x.PhotoUrl, + //VideoUrl = x.VideoUrl, + //EvaluateResults = x.EvaluateResults, + //TimeLimited = x.TimeLimited, + //RectificationDescription = x.RectificationDescription, + //RectificationResults = x.RectificationResults, + //States = x.States, + //CompileMan = subUser1.UserName, + //CompileTime = x.CompileTime, }).ToList(); if (PageNumber > 0 && PageSize > 0) { @@ -325,7 +400,6 @@ namespace BLL.OfficeCheck.Inspect public class InspectionDto { - public string InspectionId { get; @@ -360,12 +434,6 @@ namespace BLL.OfficeCheck.Inspect set; } - public System.Nullable InspectTime - { - get; - set; - } - public string Description { get; @@ -378,12 +446,6 @@ namespace BLL.OfficeCheck.Inspect set; } - public string InspectMan - { - get; - set; - } - public string InspectManId { get; @@ -395,22 +457,36 @@ namespace BLL.OfficeCheck.Inspect get; set; } - public string InspectItemSetId - { - get; - set; - } + public string CreateMan { get; set; } + public string CreateManName + { + get; + set; + } + public System.Nullable CreateTime { get; set; } - + public string ProblemTypeId { get; set; } + public string ProblemTypeName { get; set; } + public string Place { get; set; } + public string CheckMan + { + get; + set; + } + public string ChildsCount + { + get; + set; + } } diff --git a/SGGL/FineUIPro.Web/App_GlobalResources/Lan.designer.cs b/SGGL/FineUIPro.Web/App_GlobalResources/Lan.designer.cs index b9a3789..05c5f9b 100644 --- a/SGGL/FineUIPro.Web/App_GlobalResources/Lan.designer.cs +++ b/SGGL/FineUIPro.Web/App_GlobalResources/Lan.designer.cs @@ -13,13 +13,13 @@ namespace Resources { /// - /// 强类型资源类,用于查找本地化字符串等。 + /// 一个强类型的资源类,用于查找本地化的字符串等。 /// // 此类是由 StronglyTypedResourceBuilder // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 - // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen // (以 /str 作为命令选项),或重新生成 Visual Studio 项目。 - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder", "15.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Lan { @@ -33,7 +33,7 @@ namespace Resources { } /// - /// 返回此类使用的缓存 ResourceManager 实例。 + /// 返回此类使用的缓存的 ResourceManager 实例。 /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { @@ -47,8 +47,8 @@ namespace Resources { } /// - /// 覆盖当前线程的 CurrentUICulture 属性 - /// 使用此强类型的资源类的资源查找。 + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { @@ -61,7 +61,7 @@ namespace Resources { } /// - /// 查找类似 大数据中心 的本地化字符串。 + /// 查找类似 大数据中心 的本地化字符串。 /// internal static string BigDataCenter { get { @@ -70,7 +70,7 @@ namespace Resources { } /// - /// 查找类似 证书预警 的本地化字符串。 + /// 查找类似 证书预警 的本地化字符串。 /// internal static string CertificateWarning { get { @@ -79,7 +79,7 @@ namespace Resources { } /// - /// 查找类似 中国 的本地化字符串。 + /// 查找类似 中国 的本地化字符串。 /// internal static string China { get { @@ -88,7 +88,7 @@ namespace Resources { } /// - /// 查找类似 中文 的本地化字符串。 + /// 查找类似 中文 的本地化字符串。 /// internal static string Chinese { get { @@ -97,7 +97,7 @@ namespace Resources { } /// - /// 查找类似 土建基础交安 的本地化字符串。 + /// 查找类似 土建基础交安 的本地化字符串。 /// internal static string CivilInfrastructure { get { @@ -106,7 +106,7 @@ namespace Resources { } /// - /// 查找类似 已完成 的本地化字符串。 + /// 查找类似 已完成 的本地化字符串。 /// internal static string completed { get { @@ -115,7 +115,7 @@ namespace Resources { } /// - /// 查找类似 参建人数 的本地化字符串。 + /// 查找类似 参建人数 的本地化字符串。 /// internal static string ConPersonCount { get { @@ -124,7 +124,7 @@ namespace Resources { } /// - /// 查找类似 施工单位 的本地化字符串。 + /// 查找类似 施工单位 的本地化字符串。 /// internal static string ConstructionUnit { get { @@ -133,7 +133,7 @@ namespace Resources { } /// - /// 查找类似 合同到期时间 的本地化字符串。 + /// 查找类似 合同到期时间 的本地化字符串。 /// internal static string ContractExpirationTime { get { @@ -142,7 +142,7 @@ namespace Resources { } /// - /// 查找类似 当前现场人数 的本地化字符串。 + /// 查找类似 当前现场人数 的本地化字符串。 /// internal static string CurrentPersonnel { get { @@ -151,7 +151,7 @@ namespace Resources { } /// - /// 查找类似 隐患总数 的本地化字符串。 + /// 查找类似 隐患总数 的本地化字符串。 /// internal static string DangersCount { get { @@ -160,7 +160,7 @@ namespace Resources { } /// - /// 查找类似 员工管理 的本地化字符串。 + /// 查找类似 员工管理 的本地化字符串。 /// internal static string EmployeeManage { get { @@ -169,7 +169,7 @@ namespace Resources { } /// - /// 查找类似 英文 的本地化字符串。 + /// 查找类似 英文 的本地化字符串。 /// internal static string English { get { @@ -178,7 +178,7 @@ namespace Resources { } /// - /// 查找类似 现场动态 的本地化字符串。 + /// 查找类似 现场动态 的本地化字符串。 /// internal static string FieldDynamics { get { @@ -187,7 +187,7 @@ namespace Resources { } /// - /// 查找类似 首台设备到货 的本地化字符串。 + /// 查找类似 首台设备到货 的本地化字符串。 /// internal static string FirstEquipmentArrived { get { @@ -196,7 +196,7 @@ namespace Resources { } /// - /// 查找类似 焊接一次合格率 的本地化字符串。 + /// 查找类似 焊接一次合格率 的本地化字符串。 /// internal static string FistPassRateWelding { get { @@ -205,7 +205,7 @@ namespace Resources { } /// - /// 查找类似 全屏 的本地化字符串。 + /// 查找类似 全屏 的本地化字符串。 /// internal static string FullScreen { get { @@ -214,7 +214,7 @@ namespace Resources { } /// - /// 查找类似 总承包商施工计划 的本地化字符串。 + /// 查找类似 总承包商施工计划 的本地化字符串。 /// internal static string GeneralConPlan { get { @@ -223,7 +223,7 @@ namespace Resources { } /// - /// 查找类似 一般风险 的本地化字符串。 + /// 查找类似 一般风险 的本地化字符串。 /// internal static string GeneralRisk { get { @@ -232,7 +232,7 @@ namespace Resources { } /// - /// 查找类似 较大风险 的本地化字符串。 + /// 查找类似 较大风险 的本地化字符串。 /// internal static string GreaterRisk { get { @@ -241,7 +241,7 @@ namespace Resources { } /// - /// 查找类似 总部检查 的本地化字符串。 + /// 查找类似 总部检查 的本地化字符串。 /// internal static string HeadquartersInspection { get { @@ -250,7 +250,7 @@ namespace Resources { } /// - /// 查找类似 首页 的本地化字符串。 + /// 查找类似 首页 的本地化字符串。 /// internal static string HomePage { get { @@ -259,7 +259,7 @@ namespace Resources { } /// - /// 查找类似 安全管理 的本地化字符串。 + /// 查找类似 安全管理 的本地化字符串。 /// internal static string HSEManage { get { @@ -268,7 +268,7 @@ namespace Resources { } /// - /// 查找类似 湿度 的本地化字符串。 + /// 查找类似 湿度 的本地化字符串。 /// internal static string humidness { get { @@ -277,7 +277,7 @@ namespace Resources { } /// - /// 查找类似 综合管理 的本地化字符串。 + /// 查找类似 综合管理 的本地化字符串。 /// internal static string IntegratedManage { get { @@ -286,7 +286,7 @@ namespace Resources { } /// - /// 查找类似 在施危大工程数 的本地化字符串。 + /// 查找类似 在施危大工程数 的本地化字符串。 /// internal static string LargeRisk { get { @@ -295,7 +295,7 @@ namespace Resources { } /// - /// 查找类似 级 的本地化字符串。 + /// 查找类似 级 的本地化字符串。 /// internal static string Level { get { @@ -304,7 +304,7 @@ namespace Resources { } /// - /// 查找类似 现场视频 的本地化字符串。 + /// 查找类似 现场视频 的本地化字符串。 /// internal static string LiveVideo { get { @@ -313,7 +313,7 @@ namespace Resources { } /// - /// 查找类似 现场相册 的本地化字符串。 + /// 查找类似 现场相册 的本地化字符串。 /// internal static string Live_photo_album { get { @@ -322,7 +322,7 @@ namespace Resources { } /// - /// 查找类似 低风险 的本地化字符串。 + /// 查找类似 低风险 的本地化字符串。 /// internal static string LowRisk { get { @@ -331,7 +331,7 @@ namespace Resources { } /// - /// 查找类似 重大风险 的本地化字符串。 + /// 查找类似 重大风险 的本地化字符串。 /// internal static string MajorRisk { get { @@ -340,7 +340,7 @@ namespace Resources { } /// - /// 查找类似 管理人员总数 的本地化字符串。 + /// 查找类似 管理人员总数 的本地化字符串。 /// internal static string managersCount { get { @@ -349,7 +349,7 @@ namespace Resources { } /// - /// 查找类似 最大化 的本地化字符串。 + /// 查找类似 最大化 的本地化字符串。 /// internal static string maximize { get { @@ -358,7 +358,7 @@ namespace Resources { } /// - /// 查找类似 机械竣工 的本地化字符串。 + /// 查找类似 机械竣工 的本地化字符串。 /// internal static string MechanicalCompletion { get { @@ -367,7 +367,7 @@ namespace Resources { } /// - /// 查找类似 机械预警 的本地化字符串。 + /// 查找类似 机械预警 的本地化字符串。 /// internal static string MechanicalWarning { get { @@ -376,7 +376,7 @@ namespace Resources { } /// - /// 查找类似 消息 的本地化字符串。 + /// 查找类似 消息 的本地化字符串。 /// internal static string message { get { @@ -385,7 +385,7 @@ namespace Resources { } /// - /// 查找类似 更多 的本地化字符串。 + /// 查找类似 更多 的本地化字符串。 /// internal static string more { get { @@ -394,7 +394,7 @@ namespace Resources { } /// - /// 查找类似 您没有此模块操作权限,请联系管理员授权! 的本地化字符串。 + /// 查找类似 您没有此模块操作权限,请联系管理员授权! 的本地化字符串。 /// internal static string NoAuthorize { get { @@ -403,7 +403,7 @@ namespace Resources { } /// - /// 查找类似 噪音 的本地化字符串。 + /// 查找类似 噪音 的本地化字符串。 /// internal static string noise { get { @@ -412,7 +412,7 @@ namespace Resources { } /// - /// 查找类似 您没有权限进入项目管理模块! 的本地化字符串。 + /// 查找类似 您没有权限进入项目管理模块! 的本地化字符串。 /// internal static string NoPermission { get { @@ -421,7 +421,7 @@ namespace Resources { } /// - /// 查找类似 通知管理 的本地化字符串。 + /// 查找类似 通知管理 的本地化字符串。 /// internal static string NoticeManage { get { @@ -430,7 +430,7 @@ namespace Resources { } /// - /// 查找类似 现场考勤 的本地化字符串。 + /// 查找类似 现场考勤 的本地化字符串。 /// internal static string OnSiteAttendance { get { @@ -439,7 +439,7 @@ namespace Resources { } /// - /// 查找类似 在新标签页中打开 的本地化字符串。 + /// 查找类似 在新标签页中打开 的本地化字符串。 /// internal static string OpensNewTab { get { @@ -448,7 +448,7 @@ namespace Resources { } /// - /// 查找类似 合格率 的本地化字符串。 + /// 查找类似 合格率 的本地化字符串。 /// internal static string PassRate { get { @@ -457,7 +457,7 @@ namespace Resources { } /// - /// 查找类似 桩基施工 的本地化字符串。 + /// 查找类似 桩基施工 的本地化字符串。 /// internal static string Pilefoundationconstruction { get { @@ -466,7 +466,7 @@ namespace Resources { } /// - /// 查找类似 管道安装开始 的本地化字符串。 + /// 查找类似 管道安装开始 的本地化字符串。 /// internal static string PipeInstallationStarts { get { @@ -475,7 +475,7 @@ namespace Resources { } /// - /// 查找类似 变电所受电 的本地化字符串。 + /// 查找类似 变电所受电 的本地化字符串。 /// internal static string PowerReceived { get { @@ -484,7 +484,7 @@ namespace Resources { } /// - /// 查找类似 问题总数 的本地化字符串。 + /// 查找类似 问题总数 的本地化字符串。 /// internal static string ProblemTotal { get { @@ -493,7 +493,7 @@ namespace Resources { } /// - /// 查找类似 项目地址 的本地化字符串。 + /// 查找类似 项目地址 的本地化字符串。 /// internal static string ProjectAddress { get { @@ -502,7 +502,7 @@ namespace Resources { } /// - /// 查找类似 项目清单 的本地化字符串。 + /// 查找类似 项目清单 的本地化字符串。 /// internal static string ProjectList { get { @@ -511,7 +511,7 @@ namespace Resources { } /// - /// 查找类似 项目名称 的本地化字符串。 + /// 查找类似 项目名称 的本地化字符串。 /// internal static string ProjectName { get { @@ -520,7 +520,7 @@ namespace Resources { } /// - /// 查找类似 项目进度计划 的本地化字符串。 + /// 查找类似 项目进度计划 的本地化字符串。 /// internal static string ProjectSchedule { get { @@ -529,7 +529,7 @@ namespace Resources { } /// - /// 查找类似 项目统计 的本地化字符串。 + /// 查找类似 项目统计 的本地化字符串。 /// internal static string ProjectStatistics { get { @@ -538,7 +538,7 @@ namespace Resources { } /// - /// 查找类似 在建项目 的本地化字符串。 + /// 查找类似 在建项目 的本地化字符串。 /// internal static string ProjectUnderConstruction { get { @@ -547,7 +547,7 @@ namespace Resources { } /// - /// 查找类似 质量管理 的本地化字符串。 + /// 查找类似 质量管理 的本地化字符串。 /// internal static string QualityManage { get { @@ -556,7 +556,7 @@ namespace Resources { } /// - /// 查找类似 质量统计 的本地化字符串。 + /// 查找类似 质量统计 的本地化字符串。 /// internal static string QualityStatistics { get { @@ -565,7 +565,7 @@ namespace Resources { } /// - /// 查找类似 质量预警 的本地化字符串。 + /// 查找类似 质量预警 的本地化字符串。 /// internal static string QualityWarning { get { @@ -574,7 +574,7 @@ namespace Resources { } /// - /// 查找类似 质量问题统计 的本地化字符串。 + /// 查找类似 质量问题统计 的本地化字符串。 /// internal static string Quality_problem_statistics { get { @@ -583,7 +583,7 @@ namespace Resources { } /// - /// 查找类似 资质预警 的本地化字符串。 + /// 查找类似 资质预警 的本地化字符串。 /// internal static string Quawarning { get { @@ -592,7 +592,7 @@ namespace Resources { } /// - /// 查找类似 退出 的本地化字符串。 + /// 查找类似 退出 的本地化字符串。 /// internal static string quit { get { @@ -601,7 +601,7 @@ namespace Resources { } /// - /// 查找类似 实时视频 的本地化字符串。 + /// 查找类似 实时视频 的本地化字符串。 /// internal static string RealTimeVideo { get { @@ -610,7 +610,7 @@ namespace Resources { } /// - /// 查找类似 整改率 的本地化字符串。 + /// 查找类似 整改率 的本地化字符串。 /// internal static string RectificationRate { get { @@ -619,7 +619,7 @@ namespace Resources { } /// - /// 查找类似 刷新 的本地化字符串。 + /// 查找类似 刷新 的本地化字符串。 /// internal static string Refresh { get { @@ -628,7 +628,7 @@ namespace Resources { } /// - /// 查找类似 刷新本页 的本地化字符串。 + /// 查找类似 刷新本页 的本地化字符串。 /// internal static string RefreshPage { get { @@ -637,7 +637,7 @@ namespace Resources { } /// - /// 查找类似 距竣工剩余 的本地化字符串。 + /// 查找类似 距竣工剩余 的本地化字符串。 /// internal static string RemainingTimeCompletion { get { @@ -646,7 +646,7 @@ namespace Resources { } /// - /// 查找类似 风险管控 的本地化字符串。 + /// 查找类似 风险管控 的本地化字符串。 /// internal static string RiskControl { get { @@ -655,7 +655,7 @@ namespace Resources { } /// - /// 查找类似 安全人工时 的本地化字符串。 + /// 查找类似 安全人工时 的本地化字符串。 /// internal static string SafeLaborHours { get { @@ -664,7 +664,7 @@ namespace Resources { } /// - /// 查找类似 安全问题统计 的本地化字符串。 + /// 查找类似 安全问题统计 的本地化字符串。 /// internal static string SafeProStat { get { @@ -673,7 +673,7 @@ namespace Resources { } /// - /// 查找类似 累计安全人工时 的本地化字符串。 + /// 查找类似 累计安全人工时 的本地化字符串。 /// internal static string SafetyLaborHours { get { @@ -682,7 +682,7 @@ namespace Resources { } /// - /// 查找类似 安全统计 的本地化字符串。 + /// 查找类似 安全统计 的本地化字符串。 /// internal static string SafetyStatistics { get { @@ -691,7 +691,7 @@ namespace Resources { } /// - /// 查找类似 工程管理 的本地化字符串。 + /// 查找类似 工程管理 的本地化字符串。 /// internal static string ScheduleManage { get { @@ -700,7 +700,7 @@ namespace Resources { } /// - /// 查找类似 选择语言 的本地化字符串。 + /// 查找类似 选择语言 的本地化字符串。 /// internal static string SelectLanguage { get { @@ -709,7 +709,7 @@ namespace Resources { } /// - /// 查找类似 劳务数据 的本地化字符串。 + /// 查找类似 劳务数据 的本地化字符串。 /// internal static string ServiceData { get { @@ -718,7 +718,7 @@ namespace Resources { } /// - /// 查找类似 设置 的本地化字符串。 + /// 查找类似 设置 的本地化字符串。 /// internal static string Settings { get { @@ -727,7 +727,7 @@ namespace Resources { } /// - /// 查找类似 注销 的本地化字符串。 + /// 查找类似 注销 的本地化字符串。 /// internal static string SignOUT { get { @@ -736,7 +736,7 @@ namespace Resources { } /// - /// 查找类似 开工时间 的本地化字符串。 + /// 查找类似 开工时间 的本地化字符串。 /// internal static string Start_time { get { @@ -745,7 +745,7 @@ namespace Resources { } /// - /// 查找类似 分包管理 的本地化字符串。 + /// 查找类似 分包管理 的本地化字符串。 /// internal static string SubManagement { get { @@ -754,7 +754,7 @@ namespace Resources { } /// - /// 查找类似 监理单位 的本地化字符串。 + /// 查找类似 监理单位 的本地化字符串。 /// internal static string SupervisionUnit { get { @@ -763,7 +763,7 @@ namespace Resources { } /// - /// 查找类似 切换首页 的本地化字符串。 + /// 查找类似 切换首页 的本地化字符串。 /// internal static string SwitchHomePage { get { @@ -772,7 +772,7 @@ namespace Resources { } /// - /// 查找类似 系统菜单 的本地化字符串。 + /// 查找类似 系统菜单 的本地化字符串。 /// internal static string SystemMenu { get { @@ -781,7 +781,7 @@ namespace Resources { } /// - /// 查找类似 智慧施工管理信息系统 的本地化字符串。 + /// 查找类似 智慧施工管理信息系统 的本地化字符串。 /// internal static string SystemName { get { @@ -790,7 +790,7 @@ namespace Resources { } /// - /// 查找类似 温度 的本地化字符串。 + /// 查找类似 温度 的本地化字符串。 /// internal static string temperature { get { @@ -799,7 +799,7 @@ namespace Resources { } /// - /// 查找类似 竣工时间 的本地化字符串。 + /// 查找类似 竣工时间 的本地化字符串。 /// internal static string TimeCompletion { get { @@ -808,7 +808,7 @@ namespace Resources { } /// - /// 查找类似 待办事项 的本地化字符串。 + /// 查找类似 待办事项 的本地化字符串。 /// internal static string TodoList { get { @@ -817,7 +817,7 @@ namespace Resources { } /// - /// 查找类似 合同总工期 的本地化字符串。 + /// 查找类似 合同总工期 的本地化字符串。 /// internal static string TotalContractDuration { get { @@ -826,7 +826,7 @@ namespace Resources { } /// - /// 查找类似 未完成 的本地化字符串。 + /// 查找类似 未完成 的本地化字符串。 /// internal static string uncompleted { get { @@ -835,7 +835,7 @@ namespace Resources { } /// - /// 查找类似 用户 的本地化字符串。 + /// 查找类似 用户 的本地化字符串。 /// internal static string user { get { @@ -844,7 +844,7 @@ namespace Resources { } /// - /// 查找类似 视频监控 的本地化字符串。 + /// 查找类似 视频监控 的本地化字符串。 /// internal static string VideoSurveillance { get { @@ -853,7 +853,7 @@ namespace Resources { } /// - /// 查找类似 焊接管理 的本地化字符串。 + /// 查找类似 焊接管理 的本地化字符串。 /// internal static string WeldingManage { get { @@ -862,7 +862,7 @@ namespace Resources { } /// - /// 查找类似 风速 的本地化字符串。 + /// 查找类似 风速 的本地化字符串。 /// internal static string WindSpeed { get { @@ -871,7 +871,7 @@ namespace Resources { } /// - /// 查找类似 作业人员总数 的本地化字符串。 + /// 查找类似 作业人员总数 的本地化字符串。 /// internal static string WorkPersonnel { get { diff --git a/SGGL/FineUIPro.Web/App_GlobalResources/Lan.zh-CN.resx b/SGGL/FineUIPro.Web/App_GlobalResources/Lan.zh-CN.resx index 63324e0..2a168a2 100644 --- a/SGGL/FineUIPro.Web/App_GlobalResources/Lan.zh-CN.resx +++ b/SGGL/FineUIPro.Web/App_GlobalResources/Lan.zh-CN.resx @@ -232,7 +232,7 @@ 合同到期时间 - 当前现场人数 + 现场人数 隐患总数 diff --git a/SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx b/SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx new file mode 100644 index 0000000..f06ae21 --- /dev/null +++ b/SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx @@ -0,0 +1,17 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProblemTypes.aspx.cs" Inherits="FineUIPro.Web.BaseInfo.ProblemTypes" %> + + + + + + + + + +
+
+ 11111111111 +
+
+ + diff --git a/SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx.cs b/SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx.cs new file mode 100644 index 0000000..0666d04 --- /dev/null +++ b/SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx.cs @@ -0,0 +1,21 @@ +using BLL; +using System; +using System.Web; +using System.Web.UI.WebControls; +using System.Xml; +using System.Linq; +using System.Configuration; + +namespace FineUIPro.Web.BaseInfo +{ + public partial class ProblemTypes : PageBase + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx.designer.cs b/SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx.designer.cs new file mode 100644 index 0000000..fbaf637 --- /dev/null +++ b/SGGL/FineUIPro.Web/BaseInfo/ProblemTypes.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.BaseInfo +{ + + + public partial class ProblemTypes + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +} diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index 5f28270..fc3c329 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -1 +1,5714 @@ - \ No newline at end of file + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/MyPage.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 10:32:11 +出错文件:http://localhost:4528/MyPage.aspx/MyServerSideMethod +IP地址:::1 + +出错时间:03/27/2025 10:32:12 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 10:33:12 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 10:33:12 + + +错误信息开始=====> +错误类型:HttpException +错误信息:不允许使用类似“<%$ Resources:Lan,userId %>”的文本表达式。请改用 。 +错误堆栈: + 在 System.Web.UI.TemplateParser.ProcessError(String message) + 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) + 在 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) +出错时间:03/27/2025 10:38:45 +出错文件:http://localhost:4528/indexProject.aspx?projectId=b74e7c07-93e6-4fc6-9526-01bb80bd3d62 +IP地址:::1 + +出错时间:03/27/2025 10:38:45 + + +错误信息开始=====> +错误类型:HttpParseException +错误信息:表达式“<%$ CurrUser.UserId %>”无效。表达式使用语法 <%$ prefix:value %>。 +错误堆栈: + 在 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) +出错时间:03/27/2025 10:45:35 +出错文件:http://localhost:4528/indexProject.aspx +IP地址:::1 + +出错时间:03/27/2025 10:45:36 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:25:47 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:25:47 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:26:29 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:26:29 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:29:15 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:29:15 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:30:38 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:30:38 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:32:38 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:32:39 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:33:00 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:33:00 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:35:01 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:35:01 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:36:08 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:36:08 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:37:40 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:37:40 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:37:48 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:37:48 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:44:44 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:44:44 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:52:12 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:52:12 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:52:41 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:52:42 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:53:02 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:53:02 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:55:06 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:55:06 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 str。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:03/27/2025 11:55:18 +出错文件:http://localhost:4528/indexProject.aspx/str +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 11:55:19 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.common.mainProject.get_VideoUserName() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 735 + 在 ASP.common_mainproject_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) 位置 e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx:行号 796 + 在 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) + 在 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) + 在 System.Web.UI.Page.Render(HtmlTextWriter writer) + 在 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) + 在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) + 在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/27/2025 17:20:30 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 +操作人员:JT + +出错时间:03/27/2025 17:20:30 + + +错误信息开始=====> +错误类型:SqlException +错误信息:列名 'UserId' 无效。 +错误堆栈: + 在 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_HBAZ\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.HSSE.Meeting.ClassMeeting.BindGrid() + 在 FineUIPro.Web.HSSE.Meeting.ClassMeeting.Page_Load(Object sender, EventArgs e) + 在 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) +出错时间:03/29/2025 10:48:22 +出错文件:http://localhost:4528/HSSE/Meeting/ClassMeeting.aspx +IP地址:::1 +操作人员:JT + +出错时间:03/29/2025 10:48:22 + + +错误信息开始=====> +错误类型:SqlException +错误信息:列名 'UserId' 无效。 +错误堆栈: + 在 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_HBAZ\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.HSSE.Meeting.ClassMeeting.BindGrid() + 在 FineUIPro.Web.HSSE.Meeting.ClassMeeting.Page_Load(Object sender, EventArgs e) + 在 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) +出错时间:03/29/2025 10:48:43 +出错文件:http://localhost:4528/HSSE/Meeting/ClassMeeting.aspx +IP地址:::1 +操作人员:JT + +出错时间:03/29/2025 10:48:43 + + +错误信息开始=====> +错误类型:SqlException +错误信息:列名 'UserId' 无效。 +错误堆栈: + 在 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_HBAZ\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.HSSE.Meeting.ClassMeeting.BindGrid() + 在 FineUIPro.Web.HSSE.Meeting.ClassMeeting.Page_Load(Object sender, EventArgs e) + 在 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) +出错时间:03/29/2025 10:49:36 +出错文件:http://localhost:4528/HSSE/Meeting/ClassMeeting.aspx +IP地址:::1 +操作人员:JT + +出错时间:03/29/2025 10:49:36 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 08:19:51 +出错文件:http://localhost:4528/indexProject.aspx?projectId=60556884-400e-4809-ba30-49d3a588d00c +IP地址:::1 + +出错时间:03/30/2025 08:19:51 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 08:20:45 +出错文件:http://localhost:4528/indexProject.aspx?projectId=60556884-400e-4809-ba30-49d3a588d00c +IP地址:::1 + +出错时间:03/30/2025 08:20:45 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 08:20:47 +出错文件:http://localhost:4528/indexProject.aspx?projectId=60556884-400e-4809-ba30-49d3a588d00c +IP地址:::1 + +出错时间:03/30/2025 08:20:48 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.ProjectData.TeamGroup.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\ProjectData\TeamGroup.aspx.cs:行号 312 + 在 FineUIPro.Web.ProjectData.TeamGroup.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\ProjectData\TeamGroup.aspx.cs:行号 26 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 08:24:24 +出错文件:http://localhost:4528/ProjectData/TeamGroup.aspx +IP地址:::1 + +出错时间:03/30/2025 08:24:24 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 119 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 50 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 08:24:54 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:03/30/2025 08:24:55 + + +错误信息开始=====> +错误类型:WebException +错误信息:无法连接到远程服务器 +错误堆栈: + 在 System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) + 在 System.Net.HttpWebRequest.GetRequestStream() + 在 BLL.APIGetHttpService.OutsideHttp(String url, String method, String contenttype, Hashtable header, String data) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\BLL\API\APIGetHttpService.cs:行号 120 + 在 FineUIPro.Web.ProjectData.WorkArea.btnImport_Click(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\ProjectData\WorkArea.aspx.cs:行号 346 + 在 FineUIPro.Button.OnClick(EventArgs e) + 在 (Button , EventArgs ) + 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +----错误类型:SocketException +----错误信息: +----由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 123.150.65.29:9090 +----错误堆栈: + 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) + 在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) +出错时间:03/30/2025 12:14:30 +出错文件:http://localhost:4528/ProjectData/WorkArea.aspx +IP地址:::1 +操作人员:JT + +出错时间:03/30/2025 12:14:30 + + +错误信息开始=====> +错误类型:ChangeConflictException +错误信息:找不到行或行已更改。 +错误堆栈: + 在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) + 在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) + 在 System.Data.Linq.DataContext.SubmitChanges() + 在 BLL.WorkAreaService.AddWorkArea(ProjectData_WorkArea WorkArea) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\BLL\ProjectData\WorkAreaService.cs:行号 45 + 在 FineUIPro.Web.common.ProjectSet.WorkAreaEdit.btnSave_Click(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\ProjectData\WorkAreaEdit.aspx.cs:行号 140 + 在 FineUIPro.Button.OnClick(EventArgs e) + 在 (Button , EventArgs ) + 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/30/2025 12:14:50 +出错文件:http://localhost:4528/ProjectData/WorkAreaEdit.aspx +IP地址:::1 +操作人员:JT + +出错时间:03/30/2025 12:14:50 + + +错误信息开始=====> +错误类型:ChangeConflictException +错误信息:找不到行或行已更改。 +错误堆栈: + 在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) + 在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) + 在 System.Data.Linq.DataContext.SubmitChanges() + 在 BLL.WorkAreaService.AddWorkArea(ProjectData_WorkArea WorkArea) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\BLL\ProjectData\WorkAreaService.cs:行号 45 + 在 FineUIPro.Web.common.ProjectSet.WorkAreaEdit.btnSave_Click(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\ProjectData\WorkAreaEdit.aspx.cs:行号 140 + 在 FineUIPro.Button.OnClick(EventArgs e) + 在 (Button , EventArgs ) + 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/30/2025 12:14:57 +出错文件:http://localhost:4528/ProjectData/WorkAreaEdit.aspx +IP地址:::1 +操作人员:JT + +出错时间:03/30/2025 12:14:57 + + +错误信息开始=====> +错误类型:ChangeConflictException +错误信息:找不到行或行已更改。 +错误堆栈: + 在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) + 在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) + 在 System.Data.Linq.DataContext.SubmitChanges() + 在 BLL.UnitWorkService.AddUnitWork(WBS_UnitWork UnitWork) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\BLL\ProjectData\UnitWorkService.cs:行号 41 + 在 FineUIPro.Web.ProjectData.UnitWorkEdit.SaveData(Boolean bl) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\ProjectData\UnitWorkEdit.aspx.cs:行号 185 + 在 FineUIPro.Web.ProjectData.UnitWorkEdit.btnSave_Click(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\ProjectData\UnitWorkEdit.aspx.cs:行号 81 + 在 FineUIPro.Button.OnClick(EventArgs e) + 在 (Button , EventArgs ) + 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/30/2025 12:15:50 +出错文件:http://localhost:4528/ProjectData/UnitWorkEdit.aspx +IP地址:::1 +操作人员:JT + +出错时间:03/30/2025 12:15:50 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 23:09:07 +出错文件:http://localhost:4528/indexProject.aspx +IP地址:::1 + +出错时间:03/30/2025 23:09:08 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 23:09:08 +出错文件:http://localhost:4528/indexProject.aspx?projectId=9f8c1ed9-8021-486e-aab3-4a46f8c715cb +IP地址:::1 + +出错时间:03/30/2025 23:09:08 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.index.Page_Init(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\index.aspx.cs:行号 57 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 在 System.Web.UI.Control.OnInit(EventArgs e) + 在 System.Web.UI.Page.OnInit(EventArgs e) + 在 System.Web.UI.Control.InitRecursive(Control namingContainer) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/30/2025 23:13:23 +出错文件:http://localhost:4528/index.aspx +IP地址:::1 + +出错时间:03/30/2025 23:13:23 + + +错误信息开始=====> +错误类型:ChangeConflictException +错误信息:找不到行或行已更改。 +错误堆栈: + 在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) + 在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) + 在 System.Data.Linq.DataContext.SubmitChanges() + 在 BLL.UserService.UpdateUser(Sys_User user) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\BLL\SysManage\UserService.cs:行号 350 + 在 FineUIPro.Web.SysManage.UserListEdit.btnSave_Click(Object sender, EventArgs e) + 在 FineUIPro.Button.OnClick(EventArgs e) + 在 (Button , EventArgs ) + 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/30/2025 23:19:16 +出错文件:http://localhost:4528/SysManage/UserListEdit.aspx?userId=e8a6e050-635f-4df8-8844-c8f959620fc2&type=0 +IP地址:::1 +操作人员:徐月 + +出错时间:03/30/2025 23:19:16 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 769 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 23:27:37 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:03/30/2025 23:27:37 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 23:33:36 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:03/30/2025 23:33:36 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 88 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 77 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 23:36:06 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:03/30/2025 23:36:06 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 83 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 72 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 23:41:03 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:03/30/2025 23:41:03 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 83 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 72 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/30/2025 23:51:36 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:03/30/2025 23:51:36 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 85 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 73 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/31/2025 00:16:34 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:03/31/2025 00:16:34 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetUnitProject() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 257 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 77 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/31/2025 10:01:25 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:03/31/2025 10:01:25 + + + +错误信息开始=====> +错误类型:NotSupportedException +错误信息:不允许在查询中显式构造实体类型“Model.Base_Unit”。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMemberInit(MemberInitExpression init) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable.GetEnumerator() + 在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) + 在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetResponsibleUnit() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/31/2025 13:15:34 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 13:15:34 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetUnitProject() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 256 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 78 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/31/2025 13:16:55 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:03/31/2025 13:16:55 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetUnitProject() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 228 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 78 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/31/2025 13:25:45 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:03/31/2025 13:25:45 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.index.Page_Init(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\index.aspx.cs:行号 57 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 在 System.Web.UI.Control.OnInit(EventArgs e) + 在 System.Web.UI.Page.OnInit(EventArgs e) + 在 System.Web.UI.Control.InitRecursive(Control namingContainer) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:10:46 +出错文件:http://localhost:4528/index.aspx +IP地址:::1 + +出错时间:03/31/2025 14:10:46 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.index.Page_Init(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\index.aspx.cs:行号 57 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 在 System.Web.UI.Control.OnInit(EventArgs e) + 在 System.Web.UI.Page.OnInit(EventArgs e) + 在 System.Web.UI.Control.InitRecursive(Control namingContainer) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:10:56 +出错文件:http://localhost:4528/index.aspx +IP地址:::1 + +出错时间:03/31/2025 14:10:56 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.index.Page_Init(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\index.aspx.cs:行号 57 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 在 System.Web.UI.Control.OnInit(EventArgs e) + 在 System.Web.UI.Page.OnInit(EventArgs e) + 在 System.Web.UI.Control.InitRecursive(Control namingContainer) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:26:24 +出错文件:http://localhost:4528/index.aspx +IP地址:::1 + +出错时间:03/31/2025 14:26:24 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:37:32 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:37:32 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:43 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:43 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:49 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:49 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:53 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:53 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:54 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:54 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:54 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:54 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:54 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:54 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:54 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:54 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:55 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:55 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:55 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:55 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:55 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:55 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:55 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:55 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:55 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:55 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:55 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:55 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:56 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:56 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:38:57 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:38:57 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:38 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:38 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:42 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:42 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:43 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:43 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:44 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:44 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:45 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:45 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:52 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:52 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:53 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:53 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:54 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:54 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:54 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:54 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:55 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:55 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:56 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:56 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:56 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:56 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:57 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:57 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:39:58 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:39:58 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode , Boolean ) + 在 FineUIPro.Tree.LoadPostData(String postDataKey, NameValueCollection postCollection) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:03/31/2025 14:40:00 +出错文件:http://localhost:4528/SysManage/RolePower.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:03/31/2025 14:40:00 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.BaseInfo.RiskLevel.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\BaseInfo\RiskLevel.aspx.cs:行号 221 + 在 FineUIPro.Web.BaseInfo.RiskLevel.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\BaseInfo\RiskLevel.aspx.cs:行号 23 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/31/2025 15:43:41 +出错文件:http://localhost:4528/BaseInfo/RiskLevel.aspx +IP地址:::1 + +出错时间:03/31/2025 15:43:42 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.OfficeCheck.Inspect.SafetyInspectionEdit.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\SafetyInspectionEdit.aspx.cs:行号 147 + 在 FineUIPro.Web.OfficeCheck.Inspect.SafetyInspectionEdit.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\SafetyInspectionEdit.aspx.cs:行号 85 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:03/31/2025 18:30:33 +出错文件:http://localhost:4528/OfficeCheck/Inspect/SafetyInspectionEdit.aspx +IP地址:::1 + +出错时间:03/31/2025 18:30:33 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 119 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 50 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/03/2025 21:42:07 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/03/2025 21:42:07 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/03/2025 21:54:55 +出错文件:http://localhost:4528/indexProject.aspx +IP地址:::1 + +出错时间:04/03/2025 21:54:55 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(238): error CS0103: 当前上下文中不存在名称“divProjectImg” +错误堆栈: + 在 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) +出错时间:04/03/2025 21:59:36 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/03/2025 21:59:36 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(238): error CS0103: 当前上下文中不存在名称“divProjectImg” +错误堆栈: + 在 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) +出错时间:04/03/2025 21:59:44 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/03/2025 21:59:44 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(242): error CS0103: 当前上下文中不存在名称“divProjectImg” +错误堆栈: + 在 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) +出错时间:04/03/2025 22:01:21 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/03/2025 22:01:21 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(242): error CS0103: 当前上下文中不存在名称“divProjectImg” +错误堆栈: + 在 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) +出错时间:04/03/2025 22:01:29 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/03/2025 22:01:29 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(242): error CS0103: 当前上下文中不存在名称“divProjectImg” +错误堆栈: + 在 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) +出错时间:04/03/2025 22:01:33 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/03/2025 22:01:33 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(242): error CS0103: 当前上下文中不存在名称“divProjectImg” +错误堆栈: + 在 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) +出错时间:04/03/2025 22:01:36 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/03/2025 22:01:36 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(164): error CS1061: “ASP.common_mainproject_aspx”不包含“DatePicker1_TextChanged”的定义,并且找不到可接受类型为“ASP.common_mainproject_aspx”的第一个参数的扩展方法“DatePicker1_TextChanged”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 14:36:49 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 14:36:49 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 119 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 50 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 14:37:28 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 14:37:28 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(164): error CS1061: “ASP.common_mainproject_aspx”不包含“DatePicker1_TextChanged”的定义,并且找不到可接受类型为“ASP.common_mainproject_aspx”的第一个参数的扩展方法“DatePicker1_TextChanged”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 14:42:09 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 14:42:09 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(167): error CS1061: “ASP.common_mainproject_aspx”不包含“DatePicker1_TextChanged”的定义,并且找不到可接受类型为“ASP.common_mainproject_aspx”的第一个参数的扩展方法“DatePicker1_TextChanged”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 14:43:28 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 14:43:28 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(165): error CS1061: “ASP.common_mainproject_aspx”不包含“DatePicker1_TextChanged”的定义,并且找不到可接受类型为“ASP.common_mainproject_aspx”的第一个参数的扩展方法“DatePicker1_TextChanged”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 14:44:30 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 14:44:30 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx(164): error CS1061: “ASP.common_mainproject_aspx”不包含“TextBox_TextChanged”的定义,并且找不到可接受类型为“ASP.common_mainproject_aspx”的第一个参数的扩展方法“TextBox_TextChanged”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 14:47:10 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 14:47:10 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 125 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 50 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 14:47:48 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 14:47:48 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 GetServiceData。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 15:13:00 +出错文件:http://localhost:4528/common/mainProject.aspx/GetServiceData +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 15:13:01 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 GetServiceData。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 15:13:25 +出错文件:http://localhost:4528/common/mainProject.aspx/GetServiceData +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 15:13:25 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 GetServiceData。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 15:14:11 +出错文件:http://localhost:4528/common/mainProject.aspx/GetServiceData +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 15:14:11 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 GetServiceData。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 15:14:44 +出错文件:http://localhost:4528/common/mainProject.aspx/GetServiceData +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 15:14:44 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 GetServiceData。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 15:20:48 +出错文件:http://localhost:4528/common/mainProject.aspx/GetServiceData +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 15:20:48 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 GetServiceData。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 15:21:55 +出错文件:http://localhost:4528/common/mainProject.aspx/GetServiceData +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 15:21:55 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 138 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 15:26:13 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 15:26:13 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 138 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 15:30:18 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 15:30:18 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 138 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 15:32:16 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 15:32:16 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 138 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 15:35:39 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 15:35:39 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 138 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 15:39:35 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 15:39:35 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 148 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 15:48:07 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 15:48:07 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 150 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 16:00:27 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 16:00:27 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (PageManager ) + 在 FineUIPro.ControlBase.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.Component.OnFirstPreRender() + 在 (Component ) + 在 FineUIPro.BoxComponent.OnFirstPreRender() + 在 (BoxComponent ) + 在 FineUIPro.Field.OnFirstPreRender() + 在 (Field ) + 在 FineUIPro.TextField.OnFirstPreRender() + 在 (TextField ) + 在 FineUIPro.RealTextField.OnFirstPreRender() + 在 (RealTextField ) + 在 FineUIPro.DatePicker.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.ControlBase.jcLvABeDsHQyyAbZhsfaLCMRNprM() + 在 (ControlBase ) + 在 xCmAQBtUiwmKoGvxhPONMYvYbMln.jcLvABeDsHQyyAbZhsfaLCMRNprM(Object , EventArgs ) + 在 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/04/2025 16:10:58 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 16:10:58 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (PageManager ) + 在 FineUIPro.ControlBase.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.Component.OnFirstPreRender() + 在 (Component ) + 在 FineUIPro.BoxComponent.OnFirstPreRender() + 在 (BoxComponent ) + 在 FineUIPro.Field.OnFirstPreRender() + 在 (Field ) + 在 FineUIPro.TextField.OnFirstPreRender() + 在 (TextField ) + 在 FineUIPro.RealTextField.OnFirstPreRender() + 在 (RealTextField ) + 在 FineUIPro.DatePicker.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.ControlBase.jcLvABeDsHQyyAbZhsfaLCMRNprM() + 在 (ControlBase ) + 在 xCmAQBtUiwmKoGvxhPONMYvYbMln.jcLvABeDsHQyyAbZhsfaLCMRNprM(Object , EventArgs ) + 在 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/04/2025 16:11:11 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 16:11:11 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (PageManager ) + 在 FineUIPro.ControlBase.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.Component.OnFirstPreRender() + 在 (Component ) + 在 FineUIPro.BoxComponent.OnFirstPreRender() + 在 (BoxComponent ) + 在 FineUIPro.Field.OnFirstPreRender() + 在 (Field ) + 在 FineUIPro.TextField.OnFirstPreRender() + 在 (TextField ) + 在 FineUIPro.RealTextField.OnFirstPreRender() + 在 (RealTextField ) + 在 FineUIPro.DatePicker.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.ControlBase.jcLvABeDsHQyyAbZhsfaLCMRNprM() + 在 (ControlBase ) + 在 xCmAQBtUiwmKoGvxhPONMYvYbMln.jcLvABeDsHQyyAbZhsfaLCMRNprM(Object , EventArgs ) + 在 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/04/2025 16:11:46 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 16:11:46 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 150 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 16:14:13 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 16:14:13 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (PageManager ) + 在 FineUIPro.ControlBase.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.Component.OnFirstPreRender() + 在 (Component ) + 在 FineUIPro.BoxComponent.OnFirstPreRender() + 在 (BoxComponent ) + 在 FineUIPro.Field.OnFirstPreRender() + 在 (Field ) + 在 FineUIPro.TextField.OnFirstPreRender() + 在 (TextField ) + 在 FineUIPro.RealTextField.OnFirstPreRender() + 在 (RealTextField ) + 在 FineUIPro.DatePicker.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.ControlBase.jcLvABeDsHQyyAbZhsfaLCMRNprM() + 在 (ControlBase ) + 在 xCmAQBtUiwmKoGvxhPONMYvYbMln.jcLvABeDsHQyyAbZhsfaLCMRNprM(Object , EventArgs ) + 在 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/04/2025 16:14:25 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 16:14:25 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (PageManager ) + 在 FineUIPro.ControlBase.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.Component.OnFirstPreRender() + 在 (Component ) + 在 FineUIPro.BoxComponent.OnFirstPreRender() + 在 (BoxComponent ) + 在 FineUIPro.Field.OnFirstPreRender() + 在 (Field ) + 在 FineUIPro.TextField.OnFirstPreRender() + 在 (TextField ) + 在 FineUIPro.RealTextField.OnFirstPreRender() + 在 (RealTextField ) + 在 FineUIPro.DatePicker.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.ControlBase.jcLvABeDsHQyyAbZhsfaLCMRNprM() + 在 (ControlBase ) + 在 xCmAQBtUiwmKoGvxhPONMYvYbMln.jcLvABeDsHQyyAbZhsfaLCMRNprM(Object , EventArgs ) + 在 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/04/2025 16:14:37 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 16:14:38 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (PageManager ) + 在 FineUIPro.ControlBase.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.Component.OnFirstPreRender() + 在 (Component ) + 在 FineUIPro.BoxComponent.OnFirstPreRender() + 在 (BoxComponent ) + 在 FineUIPro.Field.OnFirstPreRender() + 在 (Field ) + 在 FineUIPro.TextField.OnFirstPreRender() + 在 (TextField ) + 在 FineUIPro.RealTextField.OnFirstPreRender() + 在 (RealTextField ) + 在 FineUIPro.DatePicker.OnFirstPreRender() + 在 (ControlBase ) + 在 FineUIPro.ControlBase.jcLvABeDsHQyyAbZhsfaLCMRNprM() + 在 (ControlBase ) + 在 xCmAQBtUiwmKoGvxhPONMYvYbMln.jcLvABeDsHQyyAbZhsfaLCMRNprM(Object , EventArgs ) + 在 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/04/2025 16:15:23 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 16:15:23 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 150 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 16:16:01 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 16:16:01 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 GetSafetyProblemStatistics。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/04/2025 17:53:15 +出错文件:http://localhost:4528/common/mainProject.aspx/GetSafetyProblemStatistics +IP地址:::1 +操作人员:徐月 + +出错时间:04/04/2025 17:53:15 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 163 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 17:54:36 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 17:54:36 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 163 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 17:54:42 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 17:54:42 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 163 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 17:54:49 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 17:54:50 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 19:08:51 +出错文件:http://localhost:4528/indexProject.aspx?projectId=0023d936-b97e-484c-9877-2b843514e919 +IP地址:::1 + +出错时间:04/04/2025 19:08:51 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 162 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 52 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 19:18:49 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 19:18:49 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 179 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 53 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 20:57:25 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 20:57:25 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 198 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 53 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 22:16:05 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 22:16:05 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 198 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 53 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 23:11:06 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/04/2025 23:11:07 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/04/2025 23:29:36 +出错文件:http://localhost:4528/indexProject.aspx?projectId=0023d936-b97e-484c-9877-2b843514e919 +IP地址:::1 + +出错时间:04/04/2025 23:29:36 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 198 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 53 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 09:48:08 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/05/2025 09:48:08 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 GetSafetyProblemStatistics。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/05/2025 15:15:08 +出错文件:http://localhost:4528/common/main3.aspx/GetSafetyProblemStatistics +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 15:15:08 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 GetSafetyProblemStatistics。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/05/2025 15:15:17 +出错文件:http://localhost:4528/common/main3.aspx/GetSafetyProblemStatistics +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 15:15:17 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:未知 Web 方法 GetSafetyProblemStatistics。 +参数名: methodName +错误堆栈: + 在 System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) + 在 System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(Object sender, EventArgs eventArgs) + 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/05/2025 15:15:48 +出错文件:http://localhost:4528/common/main3.aspx/GetSafetyProblemStatistics +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 15:15:48 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 198 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 53 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 16:58:38 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/05/2025 16:58:38 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 在 FineUIPro.Web.common.mainProject.getPersonWorkTime() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 198 + 在 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 53 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 17:02:14 +出错文件:http://localhost:4528/common/mainProject.aspx +IP地址:::1 + +出错时间:04/05/2025 17:02:14 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 18:18:07 +出错文件:http://localhost:4528/indexProject.aspx?projectId=0023d936-b97e-484c-9877-2b843514e919 +IP地址:::1 + +出错时间:04/05/2025 18:18:07 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 18:18:16 +出错文件:http://localhost:4528/indexProject.aspx?projectId=0023d936-b97e-484c-9877-2b843514e919 +IP地址:::1 + +出错时间:04/05/2025 18:18:16 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 18:18:36 +出错文件:http://localhost:4528/indexProject.aspx +IP地址:::1 + +出错时间:04/05/2025 18:18:36 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 19:05:32 +出错文件:http://localhost:4528/indexProject.aspx +IP地址:::1 + +出错时间:04/05/2025 19:05:32 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 19:57:21 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 19:57:21 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 19:57:33 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 19:57:33 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 19:58:24 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 19:58:24 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 19:59:10 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 19:59:10 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 20:00:46 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 20:00:47 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 20:01:24 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 20:01:24 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 20:02:34 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 20:02:34 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 20:02:56 +出错文件:http://localhost:4528/indexProject.aspx?projectId=0023d936-b97e-484c-9877-2b843514e919 +IP地址:::1 + +出错时间:04/05/2025 20:02:56 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 20:08:13 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 20:08:13 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 20:09:22 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 20:09:22 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 20:10:42 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 20:10:42 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 20:11:49 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 20:11:49 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 20:13:17 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 20:13:17 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetUnitProject() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 217 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 65 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 20:30:21 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:04/05/2025 20:30:21 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (ITemplate , Control ) + 在 FineUIPro.GridRow.InitTemplateContainers() + 在 (GridRow ) + 在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object ) + 在 (Grid , Int32 , Object ) + 在 FineUIPro.Grid.LDChsdiaqdhUTcxBcQPMKyQFfjEDB(DataTable , Boolean ) + 在 (Grid , DataTable , Boolean ) + 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) + 在 (Grid , Boolean ) + 在 FineUIPro.Grid.DataBind() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 131 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 69 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 20:48:08 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 20:48:08 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (ITemplate , Control ) + 在 FineUIPro.GridRow.InitTemplateContainers() + 在 (GridRow ) + 在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object ) + 在 (Grid , Int32 , Object ) + 在 FineUIPro.Grid.LDChsdiaqdhUTcxBcQPMKyQFfjEDB(DataTable , Boolean ) + 在 (Grid , DataTable , Boolean ) + 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) + 在 (Grid , Boolean ) + 在 FineUIPro.Grid.DataBind() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 131 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 69 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 20:49:12 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 20:49:12 + + +错误信息开始=====> +错误类型:HttpParseException +错误信息:无法从其“HeaderTextAlign”属性的字符串表示形式“Top”创建“FineUIPro.TextAlign”类型的对象。 +错误堆栈: + 在 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 +----错误信息: +----无法从其“HeaderTextAlign”属性的字符串表示形式“Top”创建“FineUIPro.TextAlign”类型的对象。 +----错误堆栈: + 在 System.Web.UI.PropertyConverter.ObjectFromString(Type objType, MemberInfo propertyInfo, String value) + 在 System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode) + 在 System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode, Int32 line, Int32 column) + 在 System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) + 在 System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) + 在 System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) + 在 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) + 在 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +出错时间:04/05/2025 21:22:57 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:04/05/2025 21:22:57 + + +错误信息开始=====> +错误类型:HttpParseException +错误信息:无法从其“HeaderTextAlign”属性的字符串表示形式“Top”创建“FineUIPro.TextAlign”类型的对象。 +错误堆栈: + 在 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 +----错误信息: +----无法从其“HeaderTextAlign”属性的字符串表示形式“Top”创建“FineUIPro.TextAlign”类型的对象。 +----错误堆栈: + 在 System.Web.UI.PropertyConverter.ObjectFromString(Type objType, MemberInfo propertyInfo, String value) + 在 System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode) + 在 System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode, Int32 line, Int32 column) + 在 System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) + 在 System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) + 在 System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) + 在 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) + 在 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +出错时间:04/05/2025 21:26:18 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:04/05/2025 21:26:18 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 21:59:32 +出错文件:http://localhost:4528/indexProject.aspx?projectId=0023d936-b97e-484c-9877-2b843514e919 +IP地址:::1 + +出错时间:04/05/2025 21:59:32 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 22:08:42 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 22:08:42 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 22:10:19 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 22:10:20 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 22:11:03 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 22:11:03 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetUnitProject() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 217 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 65 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 22:13:01 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:04/05/2025 22:13:01 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 22:14:20 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 22:14:20 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 22:16:34 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 22:16:34 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 22:18:37 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 22:18:37 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetUnitProject() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 217 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 65 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 22:23:31 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:04/05/2025 22:23:31 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 22:28:28 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 22:28:28 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/05/2025 22:29:16 +出错文件:http://localhost:4528/indexProject.aspx?projectId=fe0f4acf-c173-4ee9-bed2-4fa05a700a96 +IP地址:::1 + +出错时间:04/05/2025 22:29:16 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.BindGrid() + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.TextBox_TextChanged(Object sender, EventArgs e) + 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e) + 在 (DropDownList , EventArgs ) + 在 FineUIPro.DropDownList.RaisePostDataChangedEvent() + 在 System.Web.UI.Page.RaiseChangedEvents() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/05/2025 22:30:29 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/05/2025 22:30:29 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.btnOut_Click(Object sender, EventArgs e) + 在 FineUIPro.Button.OnClick(EventArgs e) + 在 (Button , EventArgs ) + 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/06/2025 08:52:36 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 08:52:36 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 654 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 08:57:46 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 08:57:46 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 620 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 10:29:24 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 10:29:24 + + +错误信息开始=====> +错误类型:SqlException +错误信息:关键字 'CASE' 附近有语法错误。 +错误堆栈: + 在 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_HBAZ\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 72 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 51 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 10:30:45 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 10:30:45 + + +错误信息开始=====> +错误类型:SqlException +错误信息:关键字 'CASE' 附近有语法错误。 +错误堆栈: + 在 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_HBAZ\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 72 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 51 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 10:32:50 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 10:32:50 + + +错误信息开始=====> +错误类型:SqlException +错误信息:关键字 'CASE' 附近有语法错误。 +错误堆栈: + 在 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_HBAZ\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 10:46:09 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 10:46:09 + + +错误信息开始=====> +错误类型:SqlException +错误信息:“InspectType”附近有语法错误。 +错误堆栈: + 在 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_HBAZ\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 10:48:05 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 10:48:05 + + +错误信息开始=====> +错误类型:IndexOutOfRangeException +错误信息:无法找到列 CheckTime。 +错误堆栈: + 在 System.Data.DataTable.ParseSortString(String sortString) + 在 System.Data.DataView.CheckSort(String sort) + 在 System.Data.DataView.set_Sort(String value) + 在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 10:48:26 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 10:48:26 + + +错误信息开始=====> +错误类型:IndexOutOfRangeException +错误信息:无法找到列 CheckTime。 +错误堆栈: + 在 System.Data.DataTable.ParseSortString(String sortString) + 在 System.Data.DataView.CheckSort(String sort) + 在 System.Data.DataView.set_Sort(String value) + 在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 10:50:08 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 10:50:09 + + +错误信息开始=====> +错误类型:IndexOutOfRangeException +错误信息:无法找到列 CheckTime。 +错误堆栈: + 在 System.Data.DataTable.ParseSortString(String sortString) + 在 System.Data.DataView.CheckSort(String sort) + 在 System.Data.DataView.set_Sort(String value) + 在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 10:57:01 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 10:57:01 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(14): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Grid1_Sort”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Grid1_Sort”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:12:05 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:12:05 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(14): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Grid1_Sort”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Grid1_Sort”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:13:30 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:13:30 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(14): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Grid1_Sort”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Grid1_Sort”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:15:38 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:15:38 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(14): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Grid1_PageIndexChange”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Grid1_PageIndexChange”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:16:43 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:16:43 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(14): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Grid1_PageIndexChange”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Grid1_PageIndexChange”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:18:13 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:18:13 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(87): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“ddlPageSize_SelectedIndexChanged”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“ddlPageSize_SelectedIndexChanged”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:22:00 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:22:01 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(14): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Grid1_RowCommand”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Grid1_RowCommand”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:22:41 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:22:41 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(14): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Grid1_RowCommand”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Grid1_RowCommand”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:24:23 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:24:23 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(14): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Grid1_RowCommand”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Grid1_RowCommand”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:26:47 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:26:48 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(14): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Grid1_RowDoubleClick”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Grid1_RowDoubleClick”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:27:35 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:27:35 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(14): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Grid1_RowDoubleClick”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Grid1_RowDoubleClick”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:28:31 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:28:31 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 54 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 14:30:05 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:30:05 + + +错误信息开始=====> +错误类型:HttpException +错误信息:DataBinding:“System.Data.DataRowView”不包含名为“HazardRegisterId”的属性。 +错误堆栈: + 在 System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) + 在 System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) + 在 System.Web.UI.DataBinder.Eval(Object container, String expression) + 在 System.Web.UI.TemplateControl.Eval(String expression) + 在 ASP.hsse_check_checkspecialrecord_aspx.__DataBindinglbImageUrl1(Object sender, EventArgs e) 位置 e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx:行号 54 + 在 System.Web.UI.Control.OnDataBinding(EventArgs e) + 在 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) + 在 System.Web.UI.Control.DataBind() + 在 System.Web.UI.Control.DataBindChildren() + 在 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) + 在 System.Web.UI.Control.DataBind() + 在 (Control ) + 在 FineUIPro.GridRow.BkpgFeAELTFlAvoTrOBrConfcLJbA() + 在 (GridRow ) + 在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object ) + 在 (Grid , Int32 , Object ) + 在 FineUIPro.Grid.LDChsdiaqdhUTcxBcQPMKyQFfjEDB(DataTable , Boolean ) + 在 (Grid , DataTable , Boolean ) + 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) + 在 (Grid , Boolean ) + 在 FineUIPro.Grid.DataBind() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 63 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 14:30:43 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 14:30:43 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 54 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 14:32:18 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:32:18 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(23): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“TextBox_TextChanged”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“TextBox_TextChanged”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:34:39 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:34:39 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(23): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“TextBox_TextChanged”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“TextBox_TextChanged”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:36:45 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:36:45 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 54 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 14:37:27 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:37:27 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetUnitProject() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 222 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 65 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 14:41:12 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:04/06/2025 14:41:13 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 14:44:11 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:44:11 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(127): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Window1_Close”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Window1_Close”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:44:57 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:44:57 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(127): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Window1_Close”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Window1_Close”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:45:49 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:45:49 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(135): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“Window3_Close”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“Window3_Close”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:46:22 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:46:22 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(146): error CS1061: “ASP.hsse_check_checkspecialrecord_aspx”不包含“btnMenuDelete_Click”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecialrecord_aspx”的第一个参数的扩展方法“btnMenuDelete_Click”(是否缺少 using 指令或程序集引用?) +错误堆栈: + 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:04/06/2025 14:47:25 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:47:25 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 54 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 14:50:07 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:50:07 + + +错误信息开始=====> +错误类型:IndexOutOfRangeException +错误信息:无法找到列 RectificationTime。 +错误堆栈: + 在 System.Data.DataTable.ParseSortString(String sortString) + 在 System.Data.DataView.CheckSort(String sort) + 在 System.Data.DataView.set_Sort(String value) + 在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\PageBase.cs:行号 576 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 60 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 14:50:46 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 14:50:47 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 14:58:28 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 14:58:28 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:00:45 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:00:45 + + +错误信息开始=====> +错误类型:IndexOutOfRangeException +错误信息:无法找到列 CheckTime。 +错误堆栈: + 在 System.Data.DataTable.ParseSortString(String sortString) + 在 System.Data.DataView.CheckSort(String sort) + 在 System.Data.DataView.set_Sort(String value) + 在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\PageBase.cs:行号 576 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 74 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 51 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:01:51 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 15:01:51 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:02:14 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:02:14 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:12:34 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:12:34 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:18:58 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:18:58 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:21:52 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:21:52 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.ProjectData.ProjectUnit.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\ProjectData\ProjectUnit.aspx.cs:行号 31 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:25:16 +出错文件:http://localhost:4528/ProjectData/ProjectUnit.aspx +IP地址:::1 + +出错时间:04/06/2025 15:25:16 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:27:12 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:27:12 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:33:46 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:33:46 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:36:52 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:36:52 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.ProjectData.ProjectUser.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\ProjectData\ProjectUser.aspx.cs:行号 31 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:40:16 +出错文件:http://localhost:4528/ProjectData/ProjectUser.aspx +IP地址:::1 + +出错时间:04/06/2025 15:40:16 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:44:23 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:44:23 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 619 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:48:21 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:48:21 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 621 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:56:43 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:56:43 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 621 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 15:59:33 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 15:59:34 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 621 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:01:05 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:01:05 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 621 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:02:45 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:02:45 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 621 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:08:28 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:08:28 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 621 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:12:02 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:12:02 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 621 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 42 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:15:30 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:15:30 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:24:32 +出错文件:http://localhost:4528/indexProject.aspx?projectId=0023d936-b97e-484c-9877-2b843514e919 +IP地址:::1 + +出错时间:04/06/2025 16:24:32 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 622 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:24:40 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:127.0.0.1 + +出错时间:04/06/2025 16:24:40 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 622 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:29:36 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:29:36 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 622 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:32:05 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:32:05 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 622 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:36:31 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:36:32 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 622 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:38:55 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:38:55 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(79): error CS1502: 与“FineUIPro.Web.HSSE.Check.CheckSpecialRecord.ConvertImageUrlByImage(string)”最匹配的重载方法具有一些无效参数 +错误堆栈: + 在 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) +出错时间:04/06/2025 16:50:06 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:50:06 + + +错误信息开始=====> +错误类型:HttpCompileException +错误信息:e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx(79): error CS1502: 与“FineUIPro.Web.HSSE.Check.CheckSpecialRecord.ConvertImageUrlByImage(string)”最匹配的重载方法具有一些无效参数 +错误堆栈: + 在 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) +出错时间:04/06/2025 16:50:29 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:50:29 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 622 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:52:27 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:52:27 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 560 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 16:58:18 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 16:58:19 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 561 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 17:04:00 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 17:04:00 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 561 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 17:07:44 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 17:07:44 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 617 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 44 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 17:20:18 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 17:20:18 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 617 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 44 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 17:39:06 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 17:39:06 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 617 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 44 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 18:01:23 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 18:01:23 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 617 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 44 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 18:06:08 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 18:06:08 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 561 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 18:08:17 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 18:08:17 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 561 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 18:43:33 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 18:43:33 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 561 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:00:00 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 19:00:01 + + +错误信息开始=====> +错误类型:HttpParseException +错误信息:类型“FineUIPro.Panel”不具有名为“BoxConfigLastChildMargin”的公共属性。 +错误堆栈: + 在 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 +----错误信息: +----类型“FineUIPro.Panel”不具有名为“BoxConfigLastChildMargin”的公共属性。 +----错误堆栈: + 在 System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode) + 在 System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode, Int32 line, Int32 column) + 在 System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) + 在 System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) + 在 System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) + 在 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) + 在 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +出错时间:04/06/2025 19:12:56 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialView.aspx?InspectionItemId=a1cfda95-2e70-432d-bed7-395a7790ebe2 +IP地址:::1 + +出错时间:04/06/2025 19:12:56 + + +错误信息开始=====> +错误类型:HttpParseException +错误信息:类型“FineUIPro.Panel”不具有名为“BoxConfigLastChildMargin”的公共属性。 +错误堆栈: + 在 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 +----错误信息: +----类型“FineUIPro.Panel”不具有名为“BoxConfigLastChildMargin”的公共属性。 +----错误堆栈: + 在 System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode) + 在 System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode, Int32 line, Int32 column) + 在 System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) + 在 System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) + 在 System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) + 在 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) + 在 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +出错时间:04/06/2025 19:14:14 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialView.aspx?InspectionItemId=c12e2c6f-0eeb-4b15-b845-8eba88da1689 +IP地址:::1 + +出错时间:04/06/2025 19:14:15 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialView.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialView.aspx.cs:行号 66 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:22:58 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialView.aspx +IP地址:::1 + +出错时间:04/06/2025 19:22:58 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 558 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:25:22 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 19:25:22 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialView.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:27:57 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialView.aspx?InspectionItemId=a1cfda95-2e70-432d-bed7-395a7790ebe2 +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 19:27:57 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialView.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:28:59 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialView.aspx?InspectionItemId=a1cfda95-2e70-432d-bed7-395a7790ebe2 +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 19:28:59 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialView.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialView.aspx.cs:行号 66 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:30:54 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialView.aspx +IP地址:127.0.0.1 + +出错时间:04/06/2025 19:30:55 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 369 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:30:56 +出错文件:http://localhost:4528/indexProject.aspx?projectId=0023d936-b97e-484c-9877-2b843514e919 +IP地址:127.0.0.1 + +出错时间:04/06/2025 19:30:57 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialView.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialView.aspx.cs:行号 67 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:41:36 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialView.aspx +IP地址:::1 + +出错时间:04/06/2025 19:41:36 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialView.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialView.aspx.cs:行号 68 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:46:37 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialView.aspx +IP地址:::1 + +出错时间:04/06/2025 19:46:37 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialView.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:51:19 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialView.aspx?InspectionItemId=a1cfda95-2e70-432d-bed7-395a7790ebe2 +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 19:51:19 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialView.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialView.aspx.cs:行号 69 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 19:51:53 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialView.aspx +IP地址:::1 + +出错时间:04/06/2025 19:51:53 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 520 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 20:10:41 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 20:10:41 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 20:15:41 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 20:15:41 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetUnitProject() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 222 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 65 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 20:21:59 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:04/06/2025 20:21:59 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.mainMenu_HSSE.get_Two() + 在 ASP.common_mainmenu_hsse_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) 位置 e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainMenu_HSSE.aspx:行号 479 + 在 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) + 在 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) + 在 System.Web.UI.Page.Render(HtmlTextWriter writer) + 在 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) + 在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) + 在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/06/2025 20:49:06 +出错文件:http://localhost:4528/common/mainMenu_HSSE.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 20:49:06 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.mainMenu_HSSE.get_Two() + 在 ASP.common_mainmenu_hsse_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) 位置 e:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainMenu_HSSE.aspx:行号 479 + 在 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) + 在 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) + 在 System.Web.UI.Page.Render(HtmlTextWriter writer) + 在 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) + 在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) + 在 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:04/06/2025 20:51:04 +出错文件:http://localhost:4528/common/mainMenu_HSSE.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 20:51:04 + + +错误信息开始=====> +错误类型:SqlException +错误信息:“b”附近有语法错误。 +错误堆栈: + 在 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_HBAZ\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 21:14:07 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 21:14:07 + + +错误信息开始=====> +错误类型:SqlException +错误信息:“b”附近有语法错误。 +错误堆栈: + 在 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_HBAZ\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 21:14:24 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 21:14:24 + + +错误信息开始=====> +错误类型:SqlException +错误信息:“b”附近有语法错误。 +错误堆栈: + 在 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_HBAZ\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.BindGrid() + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 21:15:05 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 +操作人员:徐月 + +出错时间:04/06/2025 21:15:05 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Meeting.ClassMeeting.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Meeting\ClassMeeting.aspx.cs:行号 40 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 21:20:21 +出错文件:http://localhost:4528/HSSE/Meeting/ClassMeeting.aspx +IP地址:::1 + +出错时间:04/06/2025 21:20:21 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Meeting.ClassMeeting.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Meeting\ClassMeeting.aspx.cs:行号 40 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 21:26:56 +出错文件:http://localhost:4528/HSSE/Meeting/ClassMeeting.aspx +IP地址:::1 + +出错时间:04/06/2025 21:26:56 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 615 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 21:28:44 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 21:28:44 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.GetButtonPower() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 615 + 在 FineUIPro.Web.HSSE.Check.CheckSpecialRecord.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecialRecord.aspx.cs:行号 43 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 21:30:42 +出错文件:http://localhost:4528/HSSE/Check/CheckSpecialRecord.aspx +IP地址:::1 + +出错时间:04/06/2025 21:30:42 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.Meeting.ClassMeeting.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Meeting\ClassMeeting.aspx.cs:行号 40 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 21:36:14 +出错文件:http://localhost:4528/HSSE/Meeting/ClassMeeting.aspx +IP地址:::1 + +出错时间:04/06/2025 21:36:14 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetUnitProject() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 222 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 65 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 22:03:03 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:04/06/2025 22:03:03 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.SetUnitProject() 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 222 + 在 FineUIPro.Web.HSSE.HiddenInspection.HiddenRectificationList.Page_Load(Object sender, EventArgs e) 位置 E:\公司项目\河北安装\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\HiddenInspection\HiddenRectificationList.aspx.cs:行号 65 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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) +出错时间:04/06/2025 22:13:30 +出错文件:http://localhost:4528/HSSE/HiddenInspection/HiddenRectificationList.aspx +IP地址:::1 + +出错时间:04/06/2025 22:13:30 + diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 9a46ce5..197c556 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -245,6 +245,7 @@ + @@ -7668,6 +7669,13 @@ GoodsCategory.aspx + + ProblemTypes.aspx + ASPXCodeBehind + + + ProblemTypes.aspx + RiskLevelEdit.aspx ASPXCodeBehind @@ -19691,6 +19699,7 @@ GlobalResourceProxyGenerator Lan.en-US.designer.cs + Designer diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx new file mode 100644 index 0000000..646604b --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx @@ -0,0 +1,26 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CodeConfirm.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.CodeConfirm" %> + + + + + + + + + + +
+ + + + + +
    + + +     + +
+
+ + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx.cs new file mode 100644 index 0000000..c7d0cc4 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class CodeConfirm : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + string flag = Request.Params["flag"]; //1-焊工,2-保管员 + if (flag == "1") + { + lbcode.Text = "请输入焊工号:"; + } + else + { + lbcode.Text = "请输入保管员账号:"; + } + } + } + + protected void btnConfirm_Click(object sender, EventArgs e) + { + string keyId = Request.Params["keyId"]; + string flag = Request.Params["flag"]; //1-焊工,2-保管员 + string grid = Request.Params["grid"]; //1-领料,2-退料,3-退焊条头,4-保管员结束确认 + + if (grid == "1") // 领料 + { + var usingMat = BLL.UsingMatService.GetUsingMatById(keyId); + if (usingMat != null) + { + if (flag == "1") + { + if (WelderIsSuccess(usingMat.UsingMan)) + { + BLL.UsingMatService.WelderConfirm(keyId, true); + string msg = "焊工:" + txtCode.Text + "已确认领料"; + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('" + msg + "');", true); + //Alert.ShowInTop("焊工:"+txtCode+"已确认领料",MessageBoxIcon.Success); + } + else + { + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('焊工号输入错误!');", true); + } + + } + else + { + if (StoreManIsSuccess(usingMat.StoreMan)) + { + BLL.UsingMatService.StoreManConfirm(keyId, true); + string msg = "保管员:" + txtCode.Text + "已确认"; + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('" + msg + "');", true); + //Alert.ShowInTop("保管员:" + txtCode + "已确认", MessageBoxIcon.Success); + } + else + { + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('保管员账号输入错误!');", true); + } + } + } + else + { + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('请选中要确认的领料记录!');", true); + //Alert.ShowInTop("请选中要确认的领料记录!", MessageBoxIcon.Warning); + return; + } + } + + if (grid == "2") // 退料 + { + var recycleMat = BLL.RecycleMatService.GetRecycleMatById(keyId); + if (recycleMat != null) + { + if (flag == "1") + { + if (WelderIsSuccess(recycleMat.RecycleMan)) + { + BLL.RecycleMatService.WelderConfirm(keyId, true); + + var recycle = BLL.RecycleMatService.GetRecycleMatById(keyId); + var mat = BLL.UsingMatService.GetUsingMatById(recycle.UsingMatId); + if (!string.IsNullOrEmpty(mat.StockInId)) + { + decimal recycleAmount = recycle.RecycleAmount.HasValue ? recycle.RecycleAmount.Value : 0; + BLL.StockInService.UpdateStockInAmount(mat.StockInId, recycleAmount); + } + string msg = "焊工:" + txtCode.Text + "已确认退料"; + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('" + msg + "');", true); + //Alert.ShowInTop("焊工:" + txtCode + "已确认退料", MessageBoxIcon.Success); + } + else + { + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('焊工号输入错误!');", true); + } + } + else + { + if (StoreManIsSuccess(recycleMat.StockMan)) + { + BLL.RecycleMatService.StoreManConfirm(keyId, true); + string msg = "保管员:" + txtCode.Text + "已确认"; + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('" + msg + "');", true); + //Alert.ShowInTop("保管员:" + txtCode + "已确认", MessageBoxIcon.Success); + } + else + { + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('保管员账号输入错误!');", true); + } + } + } + else + { + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('请选中要确认的退料记录!');", true); + //Alert.ShowInTop("请选中要确认的退料记录!", MessageBoxIcon.Warning); + return; + } + } + } + + private bool WelderIsSuccess(string welderId) + { + bool isSuccess = false; + var welder = BLL.WelderService.GetWelderById(welderId); + if (welder != null && welder.WED_Code == this.txtCode.Text.Trim()) + { + isSuccess = true; + } + return isSuccess; + } + + private bool StoreManIsSuccess(string storemanId) + { + bool isSuccess = false; + var user = BLL.UserService.GetUserByUserId(storemanId); + if (user != null && user.Account == txtCode.Text.Trim()) + { + isSuccess = true; + } + return isSuccess; + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx.designer.cs new file mode 100644 index 0000000..79907fd --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/CodeConfirm.aspx.designer.cs @@ -0,0 +1,51 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class CodeConfirm { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// lbcode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbcode; + + /// + /// txtCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.TextBox txtCode; + + /// + /// btnConfirm 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnConfirm; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx new file mode 100644 index 0000000..d96953a --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx @@ -0,0 +1,156 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EMaterialRegist.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.EMaterialRegist" %> + + + + 材料到货登记记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx.cs new file mode 100644 index 0000000..e7abfb8 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx.cs @@ -0,0 +1,276 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class EMaterialRegist : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + else if (GetRequestEventArgument() == "reloadGrid") + { + this.BindGrid(); + } + } + #endregion + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT EMaterialRegist.[EMaterialRegistId] + ,EMaterialRegist.[EMaterialRegistCode] + ,EMaterialRegist.[EMaterialRegistDate] + ,EMaterialRegist.[DeliveryMan] + ,EMaterialRegist.[UnitName] + ,EMaterialRegist.[CompileMan] + ,EMaterialRegist.[CompileDate] + ,EMaterialRegist.[ProjectId] + ,EMaterialRegist.[SystemCode] + ,EMaterialRegist.[PartACode] + ,EMaterialRegist.[Condition] + ,EMaterialRegist.[Name] + ,EMaterialRegist.[SpecificationsModel] + ,EMaterialRegist.[Standard] + ,EMaterialRegist.[Material] + ,EMaterialRegist.[SpecialInstructions] + ,EMaterialRegist.[Unit] + ,EMaterialRegist.[Amount] + ,EMaterialRegist.[FourLocation] + ,EManufacturer.ManufacturerName as [Manufacturer] + ,EMaterialRegist.[DesignUnit] + ,EMaterialRegist.[RealArriveAmount] + ,EMaterialRegist.[OutProve] + ,EMaterialRegist.[OutPrices] + ,CompileManUser.UserName as CompileManName + ,EMaterialRegist.[Supply], Consumables.ConsumablesName " + + @" FROM HJGL_EMaterialRegist AS EMaterialRegist" + + @" LEFT JOIN Sys_User AS CompileManUser ON EMaterialRegist.CompileMan=CompileManUser.UserId" + + @" LEFT JOIN Base_Consumables AS Consumables ON Consumables.ConsumablesId=EMaterialRegist.WMT_ID" + + @" LEFT JOIN HJGL_EManufacturer AS EManufacturer ON EManufacturer.ManufacturerID=EMaterialRegist.Manufacturer" + + @" LEFT JOIN Base_Project AS Project ON EMaterialRegist.ProjectId=Project.ProjectId" + + @" WHERE EMaterialRegist.ProjectId= @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtEMaterialRegistCode.Text.Trim())) + { + strSql += " AND EMaterialRegist.SystemCode LIKE @SystemCode"; + listStr.Add(new SqlParameter("@SystemCode", "%" + this.txtEMaterialRegistCode.Text.Trim() + "%")); + } + + if (!string.IsNullOrEmpty(this.txtStartTime.Text)) + { + strSql += " AND EMaterialRegist.CompileDate >= @DateA"; + listStr.Add(new SqlParameter("@DateA", Funs.GetNewDateTime(this.txtStartTime.Text.Trim()))); + } + + if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + { + strSql += " AND EMaterialRegist.CompileDate < @DateZ"; + listStr.Add(new SqlParameter("@DateZ", Funs.GetNewDateTime(this.txtEndTime.Text.Trim()).Value.AddDays(1))); + } + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 增加材料到货登记及验收记录 + /// + /// 增加材料到货登记及验收记录 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_EMaterialRegistMenuId, Const.BtnAdd)) + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("EMaterialRegistEditNew.aspx?EMaterialRegistId={0}", string.Empty, "新增 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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.HJGL_EMaterialRegistMenuId, Const.BtnDelete)) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string EMaterialRegistId = Grid1.DataKeys[rowIndex][0].ToString(); + Model.SGGLDB db = Funs.DB; + Model.HJGL_EMaterialRegist eMaterialRegist = db.HJGL_EMaterialRegist.First(e => e.EMaterialRegistId == EMaterialRegistId); + //BLL.HJGL_EMaterialRegistService.DeleteEMaterialRegistItem(this.CurrUser.LoginProjectId, eMaterialRegist.Unit, EMaterialRegistId); + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, eMaterialRegist.Unit, eMaterialRegist.WMT_ID, "", "", -decimal.Parse(eMaterialRegist.Amount)); + + db.HJGL_EMaterialRegist.DeleteOnSubmit(eMaterialRegist); + db.SubmitChanges(); + // BLL.HJGL_EMaterialRegistService.DeleteEMaterialRegist(EMaterialRegistId); + this.BindGrid(); + } + } + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 数据编辑事件 + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + this.EditData(); + } + + /// + /// 右键编辑事件通过 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + this.EditData(); + } + + + protected void Window1_Close(object sender, EventArgs e) + { + this.BindGrid(); + } + /// + /// 批量导入 + /// + /// + /// + protected void btnPackageIn_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_EMaterialRegistMenuId, Const.BtnSave)) + { + + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("EMaterialRegistIn.aspx", Grid1.SelectedRowID, "编辑 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + + /// + /// 编辑方法 + /// + private void EditData() + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_EMaterialRegistMenuId, Const.BtnSave)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("EMaterialRegistEditNew.aspx?EMaterialRegistId={0}", Grid1.SelectedRowID, "编辑 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 分页 排序 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + this.BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + this.BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx.designer.cs new file mode 100644 index 0000000..1bbd6f2 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegist.aspx.designer.cs @@ -0,0 +1,197 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class EMaterialRegist + { + + /// + /// 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; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnPackageIn 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPackageIn; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtEMaterialRegistCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtEMaterialRegistCode; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// WindowEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowEdit; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx new file mode 100644 index 0000000..ae6c05e --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx @@ -0,0 +1,147 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EMaterialRegistEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.EMaterialRegistEdit" %> + + + + 材料到货登记记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx.cs new file mode 100644 index 0000000..7b3eaa1 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx.cs @@ -0,0 +1,230 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + public partial class EMaterialRegistEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string EMaterialRegistId + { + get + { + return (string)ViewState["EMaterialRegistId"]; + } + set + { + ViewState["EMaterialRegistId"] = value; + } + } + private bool AppendToEnd = false; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.EMaterialRegistId = Request.Params["EMaterialRegistId"]; + var project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); + if (project != null) + { + this.lblProjectName.Text = project.ProjectName; + } + if (!string.IsNullOrEmpty(this.EMaterialRegistId)) + { + var electrode = BLL.HJGL_EMaterialRegistService.GetEMaterialRegistByID(this.EMaterialRegistId); + if (electrode != null) + { + this.txtUnitName.Text = electrode.UnitName; + this.txtEMaterialRegistCode.Text = electrode.EMaterialRegistCode; + this.txtEMaterialRegistDate.Text = string.Format("{0:yyyy-MM-dd}", electrode.EMaterialRegistDate); + this.txtDeliveryMan.Text = string.Format("{0:yyyy-MM-dd}", electrode.CompileDate); + } + } + else + { + this.txtEMaterialRegistDate.Text = string.Format("{0:yyyy-MM-dd}", System.DateTime.Now); + } + + ///制单人 + /// + this.drpWME_ID.DataTextField = "ConsumablesName"; + this.drpWME_ID.DataValueField = "ConsumablesName"; + this.drpWME_ID.DataSource = (from x in Funs.DB.Base_Consumables orderby x.ConsumablesCode select x).ToList(); + this.drpWME_ID.DataBind(); + + // 删除选中单元格的客户端脚本 + string deleteScript = GetDeleteScript(); + // 新增数据初始值 + JObject defaultObj = new JObject(); + defaultObj.Add("WMT_MatName", ""); + defaultObj.Add("SpecificationsModel", ""); + defaultObj.Add("Models", ""); + defaultObj.Add("UnitName", ""); + defaultObj.Add("MaterialCount", ""); + defaultObj.Add("ItemCode", ""); + defaultObj.Add("Testrecords", ""); + defaultObj.Add("Delete", String.Format("", deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete))); + // 在第一行新增一条数据 + btnNew.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, AppendToEnd); + // 删除选中行按钮 + btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!") + deleteScript; + // 绑定表格 + this.BindGrid(); + } + } + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + string strSql = @"SELECT EMaterialRegistItemId,EMaterialRegistId,SpecificationsModel,UnitName,MaterialCount,ItemCode,Testrecords,Models,Item.WMT_ID,ConsumablesName as WMT_MatName" + + @" FROM HJGL_EMaterialRegistItem AS Item" + + @" LEFT JOIN Base_Consumables AS WeldMaterial ON Item.WMT_ID = WeldMaterial.ConsumablesId" + + @" WHERE EMaterialRegistId=@EMaterialRegistId"; + SqlParameter[] parameter = new SqlParameter[] + { + new SqlParameter("@EMaterialRegistId",this.EMaterialRegistId), + }; + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.DataSource = tb; + Grid1.DataBind(); + } + #endregion + + /// + /// + /// + /// + /// + protected void Grid1_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid1.FindColumn("Delete") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScript(); + } + + /// + /// + /// + /// + private string GetDeleteScript() + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_EMaterialRegistMenuId, Const.BtnDelete)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return null; + } + else + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + } + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + /// + /// + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_EMaterialRegistMenuId, Const.BtnSave)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return; + } + + Model.HJGL_EMaterialRegist eMaterialRegist = new Model.HJGL_EMaterialRegist(); + eMaterialRegist.EMaterialRegistCode = this.txtEMaterialRegistCode.Text.Trim(); + eMaterialRegist.EMaterialRegistDate = Funs.GetNewDateTime(this.txtEMaterialRegistDate.Text); + eMaterialRegist.DeliveryMan = this.txtDeliveryMan.Text.Trim(); + eMaterialRegist.UnitName = this.txtUnitName.Text.Trim(); + eMaterialRegist.CompileMan = this.CurrUser.UserId; + eMaterialRegist.CompileDate = DateTime.Now; + eMaterialRegist.ProjectId = this.CurrUser.LoginProjectId; + //修改 + if (!string.IsNullOrEmpty(this.EMaterialRegistId)) + { + eMaterialRegist.EMaterialRegistId = this.EMaterialRegistId; + BLL.HJGL_EMaterialRegistService.UpdateEMaterialRegist(eMaterialRegist); + /// 删除到货明细 + BLL.HJGL_EMaterialRegistService.DeleteEMaterialRegistItem(this.CurrUser.LoginProjectId, eMaterialRegist.Unit, this.EMaterialRegistId); + //BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改材料到货登记及验收记录!"); + + } + else //添加 + { + eMaterialRegist.EMaterialRegistId = SQLHelper.GetNewID(typeof(Model.HJGL_EMaterialRegist)); + this.EMaterialRegistId = eMaterialRegist.EMaterialRegistId; + BLL.HJGL_EMaterialRegistService.AddEMaterialRegist(eMaterialRegist); + //BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "添加材料到货登记及验收记录!"); + } + + if (Grid1.GetModifiedData().Count > 0) + { + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + //string status = teamGroupRow.Value("status"); + JObject values = teamGroupRow.Value("values"); + Model.HJGL_EMaterialRegistItem newItem = new Model.HJGL_EMaterialRegistItem(); + newItem.EMaterialRegistId = this.EMaterialRegistId; + newItem.EMaterialRegistItemId = SQLHelper.GetNewID(typeof(Model.HJGL_EMaterialRegistItem)); + + var mat = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesName == values.Value("WMT_MatName")); + if (mat != null) + { + newItem.WMT_ID = mat.ConsumablesId; + } + newItem.SpecificationsModel = values.Value("SpecificationsModel"); + newItem.Models = values.Value("Models"); + newItem.UnitName = values.Value("UnitName"); + newItem.MaterialCount = Funs.GetNewInt(values.Value("MaterialCount")); + newItem.ItemCode = values.Value("ItemCode"); + newItem.Testrecords = values.Value("Testrecords"); + BLL.HJGL_EMaterialRegistService.AddEMaterialRegistItem(newItem); + if (newItem.MaterialCount.HasValue && !string.IsNullOrEmpty(newItem.WMT_ID)) + { + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, eMaterialRegist.Unit, newItem.WMT_ID, newItem.Models, newItem.SpecificationsModel, newItem.MaterialCount.Value); + } + } + } + + Alert.ShowInTop("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + + } + } + + +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx.designer.cs new file mode 100644 index 0000000..942fb5b --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEdit.aspx.designer.cs @@ -0,0 +1,242 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class EMaterialRegistEdit + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// Style1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Style1; + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// lbName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbName; + + /// + /// lblProjectName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblProjectName; + + /// + /// txtUnitName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUnitName; + + /// + /// txtEMaterialRegistCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtEMaterialRegistCode; + + /// + /// txtDeliveryMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDeliveryMan; + + /// + /// txtEMaterialRegistDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEMaterialRegistDate; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar5; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// drpWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWME_ID; + + /// + /// txtSpecificationsModel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSpecificationsModel; + + /// + /// txtModels 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtModels; + + /// + /// txtUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUnit; + + /// + /// txtMaterialCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMaterialCount; + + /// + /// txtItemCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtItemCode; + + /// + /// txtTestrecords 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTestrecords; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx new file mode 100644 index 0000000..f32db6f --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx @@ -0,0 +1,169 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EMaterialRegistEditNew.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.EMaterialRegistEditNew" %> + + + + 材料到货登记记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx.cs new file mode 100644 index 0000000..1c710e6 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx.cs @@ -0,0 +1,252 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + public partial class EMaterialRegistEditNew : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string EMaterialRegistId + { + get + { + return (string)ViewState["EMaterialRegistId"]; + } + set + { + ViewState["EMaterialRegistId"] = value; + } + } + private bool AppendToEnd = false; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.EMaterialRegistId = Request.Params["EMaterialRegistId"]; + + this.drpWME_ID.DataTextField = "ConsumablesName"; + this.drpWME_ID.DataValueField = "ConsumablesId"; + this.drpWME_ID.DataSource = (from x in Funs.DB.Base_Consumables orderby x.ConsumablesCode select x).ToList(); + this.drpWME_ID.DataBind(); + var units = UnitService.GetUnitByProjectIdUnitTypeList(this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2); + + this.dpUnit.DataTextField = "UnitName"; + this.dpUnit.DataValueField = "UnitId"; + this.dpUnit.DataSource = units; + this.dpUnit.DataBind(); + Funs.FineUIPleaseSelect(dpUnit); + this.cbJOTSch.DataTextField = "Text"; + this.cbJOTSch.DataValueField = "Value"; + this.cbJOTSch.DataSource = BLL.PW_JointInfoService.GetJOTSchList(); + this.cbJOTSch.DataBind(); + + + this.dpManufacturer.DataTextField = "ManufacturerName"; + this.dpManufacturer.DataValueField = "ManufacturerID"; + this.dpManufacturer.DataSource = Funs.DB.HJGL_EManufacturer.Where(x=>x.ProjectId==CurrUser.LoginProjectId).ToList(); + this.dpManufacturer.DataBind(); + Funs.FineUIPleaseSelect(dpManufacturer); + + if (!string.IsNullOrEmpty(this.EMaterialRegistId)) + { + var eMaterialRegist = BLL.HJGL_EMaterialRegistService.GetEMaterialRegistByID(this.EMaterialRegistId); + if (eMaterialRegist != null) + { + this.txtEMaterialRegistCode.Text = eMaterialRegist.EMaterialRegistCode; + // this.dpUnit.Text = eMaterialRegist.UnitName; + this.txtSystemCode.Text = eMaterialRegist.SystemCode; + this.txtPartACode.Text = eMaterialRegist.PartACode; + this.drpWME_ID.SelectedValue = eMaterialRegist.WMT_ID; + this.txtName.SelectedValue = eMaterialRegist.Name; + if (!string.IsNullOrEmpty(eMaterialRegist.SpecificationsModel)) + { + this.dpSpecificationsModel.Values = eMaterialRegist.SpecificationsModel.Split(','); + } + this.txtMaterial.Text = eMaterialRegist.Material; + this.txtSpecialInstructions.Text = eMaterialRegist.SpecialInstructions; + this.dpUnit.SelectedValue = eMaterialRegist.Unit; + //this.txtUnit.Text = eMaterialRegist.Unit; + this.txtAmount.Text = eMaterialRegist.Amount; + this.txtFourLocation.Text = eMaterialRegist.FourLocation; + this.dpManufacturer.SelectedValue = eMaterialRegist.Manufacturer; + this.txtDesignUnit.Text = eMaterialRegist.DesignUnit; + this.txtRealArriveAmount.Text = eMaterialRegist.RealArriveAmount; + this.txtOutProve.Text = eMaterialRegist.OutProve; + this.txtOutPrices.Text = eMaterialRegist.OutPrices; + this.txtSupply.Text = eMaterialRegist.Supply; + } + } + else + { + + } + + } + } + #endregion + protected void dpUnit_OnSelectedIndexChanged(object sender, EventArgs e) + { + string perfix = string.Empty; + var unit = UnitService.GetUnitByUnitId(this.dpUnit.SelectedValue); + perfix = unit.UnitCode + "-"; + this.txtSystemCode.Text = BLL.SQLHelper.RunProcNewId("SpGetNewCode5ByProjectId", "dbo.HJGL_Batch_BatchTrust", "TrustBatchCode", this.CurrUser.LoginProjectId, perfix); + + } + + + + /// + /// + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_EMaterialRegistMenuId, Const.BtnSave)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return; + } + if (string.IsNullOrEmpty(this.txtEMaterialRegistCode.Text)) + { + ShowNotify("请输入材质证明单号!"); + return; + } + if (string.IsNullOrEmpty(this.txtSystemCode.Text)) + { + ShowNotify("请输入系统编码!"); + return; + } + if (string.IsNullOrEmpty(this.txtPartACode.Text)) + { + ShowNotify("请输入报审文件编号!"); + return; + } + if (string.IsNullOrEmpty(this.txtName.SelectedValue)) + { + ShowNotify("请输入名称!"); + return; + } + + if (string.IsNullOrEmpty(this.dpSpecificationsModel.Text)) + { + ShowNotify("请输入规格型号!"); + return; + } + + if (string.IsNullOrEmpty(this.txtMaterial.Text)) + { + ShowNotify("请输入材质!"); + return; + } + //if (string.IsNullOrEmpty(this.txtUnit.Text)) + //{ + // ShowNotify("请输入单位!"); + // return; + //} + if (string.IsNullOrEmpty(this.txtAmount.Text)) + { + ShowNotify("请输入到货数量!"); + return; + } + + if (this.dpManufacturer.SelectedValue==Const._Null) + { + ShowNotify("请输入制造厂家!"); + return; + } + if (string.IsNullOrEmpty(this.EMaterialRegistId)) + { + var temprm = Funs.DB.HJGL_EMaterialRegist.FirstOrDefault(x=>x.PartACode == this.txtPartACode.Text&&x.FourLocation == this.txtFourLocation.Text); + if (temprm != null) + { + ShowNotify("同一报验文件编号的焊材批号不能重复!"); + return; + } + } + else + { + var temprm = Funs.DB.HJGL_EMaterialRegist.FirstOrDefault(x => x.EMaterialRegistId != this.EMaterialRegistId && x.PartACode == this.txtPartACode.Text && x.FourLocation == this.txtFourLocation.Text); + if (temprm != null) + { + ShowNotify("同一报验文件编号的焊材批号不能重复!"); + return; + } + } + + Model.HJGL_EMaterialRegist eMaterialRegist = new Model.HJGL_EMaterialRegist(); + eMaterialRegist.CompileDate = DateTime.Now; + + eMaterialRegist.EMaterialRegistDate = DateTime.Now; + eMaterialRegist.ProjectId = this.CurrUser.LoginProjectId; + eMaterialRegist.UnitName = this.dpUnit.SelectedText; + eMaterialRegist.SystemCode = this.txtSystemCode.Text; + eMaterialRegist.PartACode = this.txtPartACode.Text; + eMaterialRegist.EMaterialRegistCode = this.txtEMaterialRegistCode.Text; + eMaterialRegist.Name = this.txtName.SelectedText; + if (this.dpSpecificationsModel.Values != null && this.dpSpecificationsModel.Values.Length > 0) + { + eMaterialRegist.SpecificationsModel = string.Join(",", this.dpSpecificationsModel.Values); + } + eMaterialRegist.Material = this.txtMaterial.Text; + eMaterialRegist.SpecialInstructions = this.txtSpecialInstructions.Text; + eMaterialRegist.Unit = this.dpUnit.SelectedValue; + eMaterialRegist.Amount = this.txtAmount.Text; + eMaterialRegist.FourLocation = this.txtFourLocation.Text; + eMaterialRegist.Manufacturer = this.dpManufacturer.SelectedValue; + eMaterialRegist.DesignUnit = this.txtDesignUnit.Text; + eMaterialRegist.RealArriveAmount = this.txtRealArriveAmount.Text; + eMaterialRegist.OutProve = this.txtOutProve.Text; + eMaterialRegist.OutPrices = this.txtOutPrices.Text; + eMaterialRegist.Supply = this.txtSupply.Text; + eMaterialRegist.WMT_ID = this.drpWME_ID.SelectedValue; + //修改 + if (!string.IsNullOrEmpty(this.EMaterialRegistId)) + { + eMaterialRegist.EMaterialRegistId = this.EMaterialRegistId; + var oldeMaterialRegist = Funs.DB.HJGL_EMaterialRegist.Where(x => x.EMaterialRegistId == this.EMaterialRegistId).FirstOrDefault(); + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, oldeMaterialRegist.Unit, oldeMaterialRegist.WMT_ID, "", "", -decimal.Parse(oldeMaterialRegist.Amount)); + + BLL.HJGL_EMaterialRegistService.UpdateEMaterialRegist(eMaterialRegist); + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, this.dpUnit.SelectedValue, eMaterialRegist.WMT_ID, "", "", decimal.Parse(eMaterialRegist.Amount)); + + /// 删除到货明细 + //BLL.HJGL_EMaterialRegistService.DeleteEMaterialRegistItem(this.CurrUser.LoginProjectId, this.dpUnit.SelectedValue, this.EMaterialRegistId); + //BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改材料到货登记及验收记录!"); + + } + else //添加 + { + eMaterialRegist.EMaterialRegistId = SQLHelper.GetNewID(typeof(Model.HJGL_EMaterialRegist)); + eMaterialRegist.CompileMan = this.CurrUser.UserId; + + this.EMaterialRegistId = eMaterialRegist.EMaterialRegistId; + BLL.HJGL_EMaterialRegistService.AddEMaterialRegist(eMaterialRegist); + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, this.dpUnit.SelectedValue, eMaterialRegist.WMT_ID, "", "", decimal.Parse(eMaterialRegist.Amount)); + + //BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "添加材料到货登记及验收记录!"); + } + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + + } + } + + +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx.designer.cs new file mode 100644 index 0000000..d3db351 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistEditNew.aspx.designer.cs @@ -0,0 +1,278 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class EMaterialRegistEditNew + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// Style1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Style1; + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// btnSave1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave1; + + /// + /// txtEMaterialRegistCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtEMaterialRegistCode; + + /// + /// txtPartACode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPartACode; + + /// + /// dpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpUnit; + + /// + /// txtSystemCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystemCode; + + /// + /// txtName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList txtName; + + /// + /// dpSpecificationsModel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownBox dpSpecificationsModel; + + /// + /// SimpleForm2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.SimpleForm SimpleForm2; + + /// + /// cbJOTSch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBoxList cbJOTSch; + + /// + /// txtMaterial 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMaterial; + + /// + /// drpWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWME_ID; + + /// + /// txtSpecialInstructions 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSpecialInstructions; + + /// + /// txtAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtAmount; + + /// + /// txtFourLocation 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtFourLocation; + + /// + /// dpManufacturer 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpManufacturer; + + /// + /// txtDesignUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignUnit; + + /// + /// txtRealArriveAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRealArriveAmount; + + /// + /// txtOutProve 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtOutProve; + + /// + /// txtOutPrices 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtOutPrices; + + /// + /// txtSupply 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSupply; + + /// + /// TextBox1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox1; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistIn.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistIn.aspx.designer.cs new file mode 100644 index 0000000..3927fe5 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistIn.aspx.designer.cs @@ -0,0 +1,332 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class EMaterialRegistIn + { + + /// + /// 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; + + /// + /// btnAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnDownLoad 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDownLoad; + + /// + /// fuAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload fuAttachUrl; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// EMaterialRegistId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField EMaterialRegistId; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// txtEMaterialRegistCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtEMaterialRegistCode; + + /// + /// txtSystemCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystemCode; + + /// + /// txtPartACode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPartACode; + + /// + /// drpWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWME_ID; + + /// + /// txtCondition 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCondition; + + /// + /// txtName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtName; + + /// + /// txtSpecificationsModel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSpecificationsModel; + + /// + /// txtStandard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtStandard; + + /// + /// txtMaterial 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMaterial; + + /// + /// txtSpecialInstructions 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSpecialInstructions; + + /// + /// txtUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUnit; + + /// + /// txtAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAmount; + + /// + /// txtFourLocation 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtFourLocation; + + /// + /// txtManufacturer 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtManufacturer; + + /// + /// txtDesignUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignUnit; + + /// + /// txtRealArriveAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRealArriveAmount; + + /// + /// txtOutProve 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtOutProve; + + /// + /// txtOutPrices 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtOutPrices; + + /// + /// txtSupply 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSupply; + + /// + /// hdFileName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdFileName; + + /// + /// hdCheckResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCheckResult; + + /// + /// lblBottom 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblBottom; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistin.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistin.aspx new file mode 100644 index 0000000..42cff6b --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistin.aspx @@ -0,0 +1,243 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EMaterialRegistIn.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.EMaterialRegistIn" %> + + + + + + 材料到货登记记录 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistin.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistin.aspx.cs new file mode 100644 index 0000000..24e4653 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialRegistin.aspx.cs @@ -0,0 +1,531 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.OleDb; +using System.IO; +using System.Linq; +using System.Web.UI; +using BLL; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class EMaterialRegistIn : PageBase + { + #region 定义变量 + /// + /// 上传预设的虚拟路径 + /// + private string initPath = Const.ExcelUrl; + + /// + /// 材料到货登记记录 + /// + public List eMaterialRegists = new List(); + + /// + /// 错误集合 + /// + public static string errorInfos = string.Empty; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.hdFileName.Text = string.Empty; + this.hdCheckResult.Text = string.Empty; + + this.drpWME_ID.DataTextField = "ConsumablesName"; + this.drpWME_ID.DataValueField = "ConsumablesName"; + var totalWeldMaterials = from x in Funs.DB.Base_Consumables select x; + this.drpWME_ID.DataSource = totalWeldMaterials; + this.drpWME_ID.DataBind(); + + if (eMaterialRegists != null) + { + eMaterialRegists.Clear(); + } + errorInfos = string.Empty; + } + } + #endregion + + #region 审核 + /// + /// 审核 + /// + /// + /// + protected void btnAudit_Click(object sender, EventArgs e) + { + try + { + if (this.fuAttachUrl.HasFile == false) + { + ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning); + return; + } + string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower(); + if (IsXls != ".xls") + { + ShowNotify("只可以选择Excel文件!", MessageBoxIcon.Warning); + return; + } + if (eMaterialRegists != null) + { + eMaterialRegists.Clear(); + } + if (!string.IsNullOrEmpty(errorInfos)) + { + errorInfos = string.Empty; + } + 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; + this.fuAttachUrl.PostedFile.SaveAs(filePath); + //PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PersonDataAudit.aspx?FileName={0}&ProjectId={1}", this.hdFileName.Text, Request.Params["ProjectId"], "审核 - "))); + ImportXlsToData(rootPath + initPath + this.hdFileName.Text); + } + catch (Exception ex) + { + ShowNotify("'" + ex.Message + "'", MessageBoxIcon.Warning); + } + } + + #region 读Excel提取数据 + /// + /// 从Excel提取数据--》Dataset + /// + /// Excel文件路径名 + private void ImportXlsToData(string fileName) + { + try + { + eMaterialRegists.Clear(); + 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.Fill(ds, "m_tableName"); + oleAdMaster.Dispose(); + oleDBConn.Close(); + oleDBConn.Dispose(); + + AddDatasetToSQL(ds.Tables[0]); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + #region 将Dataset的数据导入数据库 + /// + /// 将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 questionType = from x in Funs.DB.Base_QualityQuestionType select x; + for (int i = 0; i < ir; i++) + { + Model.HJGL_EMaterialRegist eMaterialRegist = new Model.HJGL_EMaterialRegist + { + EMaterialRegistId = Guid.NewGuid().ToString(), + CompileDate = DateTime.Now, + ProjectId = this.CurrUser.LoginProjectId + }; + if (!string.IsNullOrEmpty(pds.Rows[i][0].ToString().Trim())) + { + eMaterialRegist.EMaterialRegistCode = pds.Rows[i][0].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "运单号或车号" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][1].ToString().Trim())) + { + eMaterialRegist.SystemCode = pds.Rows[i][1].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "系统编码" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][2].ToString().Trim())) + { + eMaterialRegist.PartACode = pds.Rows[i][2].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "甲方编码" + "," + "此项为必填项!" + "|"; + } + + if (!string.IsNullOrEmpty(pds.Rows[i][3].ToString().Trim())) + { + var mat = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesName == pds.Rows[i][3].ToString().Trim()); + if (mat != null) + { + eMaterialRegist.WMT_ID = pds.Rows[i][3].ToString().Trim() ; + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "牌号" + pds.Rows[i][3].ToString().Trim() + "," + "不存在!" + "|"; + + } + } + else + { + result += "第" + (i + 2).ToString() + "行," + "牌号" + "," + "此项为必填项!" + "|"; + } + + + if (!string.IsNullOrEmpty(pds.Rows[i][4].ToString().Trim())) + { + eMaterialRegist.Condition = pds.Rows[i][4].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "技术条件(描述)" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim())) + { + eMaterialRegist.Name = pds.Rows[i][5].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "名称" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][6].ToString().Trim())) + { + eMaterialRegist.SpecificationsModel = pds.Rows[i][6].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "规格型号" + "," + "此项为必填项!" + "|"; + } + + if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim())) + { + eMaterialRegist.Standard = pds.Rows[i][7].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "标准规范" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][8].ToString().Trim())) + { + eMaterialRegist.Material = pds.Rows[i][8].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "材质" + "," + "此项为必填项!" + "|"; + } + + + if (!string.IsNullOrEmpty(pds.Rows[i][9].ToString().Trim())) + { + eMaterialRegist.SpecialInstructions = pds.Rows[i][9].ToString().Trim(); + } + + if (!string.IsNullOrEmpty(pds.Rows[i][10].ToString().Trim())) + { + eMaterialRegist.Unit = pds.Rows[i][10].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "单位" + "," + "此项为必填项!" + "|"; + } + + if (!string.IsNullOrEmpty(pds.Rows[i][11].ToString().Trim())) + { + eMaterialRegist.Amount = pds.Rows[i][11].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "到货量" + "," + "此项为必填项!" + "|"; + } + + if (!string.IsNullOrEmpty(pds.Rows[i][12].ToString().Trim())) + { + eMaterialRegist.FourLocation = pds.Rows[i][12].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "四号定位" + "," + "此项为必填项!" + "|"; + } + + + if (!string.IsNullOrEmpty(pds.Rows[i][13].ToString().Trim())) + { + eMaterialRegist.Manufacturer = pds.Rows[i][13].ToString().Trim(); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "制造厂家" + "," + "此项为必填项!" + "|"; + } + + if (!string.IsNullOrEmpty(pds.Rows[i][14].ToString().Trim())) + { + eMaterialRegist.DesignUnit = pds.Rows[i][14].ToString().Trim(); + } + + if (!string.IsNullOrEmpty(pds.Rows[i][15].ToString().Trim())) + { + eMaterialRegist.RealArriveAmount = pds.Rows[i][15].ToString().Trim(); + } + + + if (!string.IsNullOrEmpty(pds.Rows[i][16].ToString().Trim())) + { + eMaterialRegist.OutProve = pds.Rows[i][16].ToString().Trim(); + } + + + + if (!string.IsNullOrEmpty(pds.Rows[i][17].ToString().Trim())) + { + eMaterialRegist.OutPrices = pds.Rows[i][17].ToString().Trim(); + } + ///加入用户视图 + eMaterialRegists.Add(eMaterialRegist); + } + if (!string.IsNullOrEmpty(result)) + { + eMaterialRegists.Clear(); + result = result.Substring(0, result.LastIndexOf("|")); + errorInfos = result; + Alert alert = new Alert + { + Message = result, + Target = Target.Self + }; + alert.Show(); + } + else + { + errorInfos = string.Empty; + if (eMaterialRegists.Count > 0) + { + this.Grid1.Hidden = false; + this.Grid1.DataSource = eMaterialRegists; + this.Grid1.DataBind(); + Alert.ShowInTop("审核完成,请点击保存!", MessageBoxIcon.Success); + } + else + { + Alert.ShowInTop("导入数据为空!", MessageBoxIcon.Warning); + } + } + } + else + { + Alert.ShowInTop("导入数据为空!", MessageBoxIcon.Warning); + } + return true; + } + #endregion + #endregion + + #region 保存 + /// + /// 保存 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(errorInfos)) + { List eMaterialRegists = new List(); + + if (Grid1.Rows.Count > 0) + { + foreach (JObject mergedRow in Grid1.GetMergedData()) + { + int i = mergedRow.Value("index"); + GridRow row = Grid1.Rows[i]; + JObject values = mergedRow.Value("values"); + //System.Web.UI.WebControls.DropDownList handtype = (System.Web.UI.WebControls.DropDownList)(row.FindControl("drpHandleType")); + System.Web.UI.WebControls.HiddenField EMaterialRegistId = (System.Web.UI.WebControls.HiddenField)(row.FindControl("EMaterialRegistId")); + + Model.HJGL_EMaterialRegist eMaterialRegist = new Model.HJGL_EMaterialRegist + { + EMaterialRegistId = EMaterialRegistId.Value, + CompileDate = DateTime.Now, + ProjectId = this.CurrUser.LoginProjectId + }; + + + eMaterialRegist.EMaterialRegistCode = values.Value("EMaterialRegistCode"); + eMaterialRegist.UnitName = values.Value("UnitName"); + eMaterialRegist.SystemCode = values.Value("SystemCode"); + + eMaterialRegist.PartACode = values.Value("PartACode"); + eMaterialRegist.Condition = values.Value("Condition"); + eMaterialRegist.Name = values.Value("Name"); + eMaterialRegist.SpecificationsModel = values.Value("SpecificationsModel"); + eMaterialRegist.Standard = values.Value("Standard"); + eMaterialRegist.Material = values.Value("Material"); + eMaterialRegist.SpecialInstructions = values.Value("SpecialInstructions"); + eMaterialRegist.Unit = values.Value("Unit"); + eMaterialRegist.Amount = values.Value("Amount"); + eMaterialRegist.FourLocation = values.Value("FourLocation"); + eMaterialRegist.Manufacturer = values.Value("Manufacturer"); + eMaterialRegist.DesignUnit = values.Value("DesignUnit"); + eMaterialRegist.RealArriveAmount = values.Value("RealArriveAmount"); + eMaterialRegist.OutProve = values.Value("OutProve"); + eMaterialRegist.OutPrices = values.Value("OutPrices"); + eMaterialRegist.Supply = values.Value("Supply"); + eMaterialRegist.CompileMan = this.CurrUser.UserId; + + + var mat = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesName == values.Value("WMT_ID")); + if (mat != null) + { + eMaterialRegist.WMT_ID = mat.ConsumablesId; + } + + eMaterialRegists.Add(eMaterialRegist); + Funs.DB.HJGL_EMaterialRegist.InsertOnSubmit(eMaterialRegist); + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, eMaterialRegist.Unit, eMaterialRegist.WMT_ID, "", "", int.Parse( eMaterialRegist.Amount) ); + + } + //setHandelMan(); + } + Funs.DB.SubmitChanges(); + string rootPath = Server.MapPath("~/"); + string initFullPath = rootPath + initPath; + string filePath = initFullPath + this.hdFileName.Text; + if (filePath != string.Empty && File.Exists(filePath)) + { + File.Delete(filePath);//删除上传的XLS文件 + } + ShowNotify("导入完成!插入" + eMaterialRegists.Count.ToString() + "条。", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + else + { + Alert.ShowInTop("请先将错误数据修正,再重新导入保存!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭导入弹出窗口 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + + } + + #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 filePath = Const.HJGLEMaterialRegistTemplateUrl; + string uploadfilepath = rootPath + filePath; + 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(); + } + } + protected string ConvertType(object state) + { + if (state != null) + { + if (state.ToString() == "1") + { + return "建筑工程"; + } + else if (state.ToString() == "2") + { + return "安装工程"; + } + } + return ""; + } + protected string ConvertProjectName(object state) + { + if (state != null) + { + var type = Funs.DB.Base_QualityQuestionType.Where(u => u.QualityQuestionTypeId == state.ToString()).FirstOrDefault(); + if (type != null) + { + return type.QualityQuestionType; + } + } + return ""; + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx new file mode 100644 index 0000000..b201092 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx @@ -0,0 +1,112 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EMaterialStatic.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.EMaterialStatic" %> + + + + 统计 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx.cs new file mode 100644 index 0000000..bca674d --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx.cs @@ -0,0 +1,271 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class EMaterialStatic : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + else if (GetRequestEventArgument() == "reloadGrid") + { + this.BindGrid(); + } + } + #endregion + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"select ConsumablesCode,records.UnitId,UnitName, + ConsumablesName, + ConsumablesType, + MaterialCount, + RecipientsCount, + RecoveryCount, + ElectrodeCount1, + ElectrodeCount2 + from HJGL_EMInventoryRecords as records + left join(select WMT_ID,UnitId,sum(RecipientsCount) as RecipientsCount,sum([RecoveryCount])as RecoveryCount + from HJGL_ElectrodeRecoveryItem ritem left join HJGL_ElectrodeRecovery r on ritem.ElectrodeRecoveryId=r.ElectrodeRecoveryId + where ProjectId = @ProjectId + group by WMT_ID,UnitId + ) as rstatic on records.WMT_ID=rstatic.WMT_ID and records.UnitId=rstatic.UnitId + left join ( + select WMT_ID,UnitId,sum(ElectrodeCount) as ElectrodeCount1 + from HJGL_ElectrodeBake + where ProjectId = @ProjectId + group by WMT_ID,UnitId + ) as bake on bake.WMT_ID = records.WMT_ID and bake.UnitId = records.UnitId + left join ( + select WMT_ID,UnitId,sum(ElectrodeCount) as ElectrodeCount2 + from HJGL_ElectrodeSecondaryBake + where ProjectId = @ProjectId + group by WMT_ID,UnitId + ) as bakes on bakes.WMT_ID = records.WMT_ID and bakes.UnitId = records.UnitId + left join Base_Consumables consumble on consumble.ConsumablesId=rstatic.WMT_ID + left join Base_Unit unit on unit.UnitId = records.UnitId + where [ConsumablesCode] is not null"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + + + if (!string.IsNullOrEmpty(this.txtStartTime.Text)) + { + strSql += " AND ConsumablesName like @ConsumablesName"; + listStr.Add(new SqlParameter("@ConsumablesName", "%"+ txtEMaterialRegistCode .Text.Trim()+ "%")); + + } + + //if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + //{ + // strSql += " AND EMaterialRegist.EMaterialRegistDate <= @EMaterialRegistDate"; + // listStr.Add(new SqlParameter("@EMaterialRegistDate", Funs.GetNewDateTime(this.txtEndTime.Text.Trim()))); + //} + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 增加材料到货登记及验收记录 + /// + /// 增加材料到货登记及验收记录 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_EMaterialRegistMenuId, Const.BtnAdd)) + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("EMaterialRegistEditNew.aspx?EMaterialRegistId={0}", string.Empty, "新增 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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.HJGL_EMaterialRegistMenuId, Const.BtnDelete)) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string EMaterialRegistId = Grid1.DataKeys[rowIndex][0].ToString(); + + Model.SGGLDB db = Funs.DB; + Model.HJGL_EMaterialRegist eMaterialRegist = db.HJGL_EMaterialRegist.First(e => e.EMaterialRegistId == EMaterialRegistId); + + + BLL.HJGL_EMaterialRegistService.DeleteEMaterialRegistItem(this.CurrUser.LoginProjectId, eMaterialRegist.Unit, EMaterialRegistId); + // BLL.HJGL_EMaterialRegistService.DeleteEMaterialRegist(EMaterialRegistId); + db.HJGL_EMaterialRegist.DeleteOnSubmit(eMaterialRegist); + db.SubmitChanges(); + this.BindGrid(); + } + } + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 数据编辑事件 + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + this.EditData(); + } + + /// + /// 右键编辑事件通过 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + this.EditData(); + } + + + protected void Window1_Close(object sender, EventArgs e) + { + this.BindGrid(); + } + /// + /// 批量导入 + /// + /// + /// + protected void btnPackageIn_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_EMaterialRegistMenuId, Const.BtnSave)) + { + + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("EMaterialRegistIn.aspx", Grid1.SelectedRowID, "编辑 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + + /// + /// 编辑方法 + /// + private void EditData() + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_EMaterialRegistMenuId, Const.BtnSave)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("EMaterialRegistEditNew.aspx?EMaterialRegistId={0}", Grid1.SelectedRowID, "编辑 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 分页 排序 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + this.BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + this.BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx.designer.cs new file mode 100644 index 0000000..091da6d --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/EMaterialStatic.aspx.designer.cs @@ -0,0 +1,152 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class EMaterialStatic + { + + /// + /// 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; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtEMaterialRegistCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtEMaterialRegistCode; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// WindowEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowEdit; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx new file mode 100644 index 0000000..0af40a9 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx @@ -0,0 +1,205 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeBackRecovery.aspx.cs" + Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeBackRecovery" %> + + + + + 焊条回收记录 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx.cs new file mode 100644 index 0000000..2c236d8 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx.cs @@ -0,0 +1,442 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using BLL; +using System.IO; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeBackRecovery : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + // 表头过滤 + FilterDataRowItem = FilterDataRowItemImplement; + if (!IsPostBack) + { + //删除人脸识别保存的附件图片 + string strFolderPath = Funs.RootPath + "FileUpload"; + var lstFiles = new List(); + lstFiles = Directory.GetFiles(strFolderPath, "*.jpg").ToList(); + foreach (var lstFile in lstFiles) + { + if (File.Exists(lstFile)) + { + File.Delete(lstFile); + } + } + + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + this.txtStartTime.Text = String.Format("{0:yyyy-MM-dd}", System.DateTime.Now.AddMonths(-1)); + this.txtEndTime.Text = String.Format("{0:yyyy-MM-dd}", System.DateTime.Now); + // 绑定表格 + this.BindGrid(); + } + else if (GetRequestEventArgument() == "reloadGrid") + { + this.BindGrid(); + } + } + #endregion + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + //string strSql = @"SELECT ElectrodeRecovery.ElectrodeRecoveryId,ElectrodeRecovery.ElectrodeRecoveryCode,ElectrodeRecovery.ElectrodeRecoveryDate,ElectrodeRecovery.CompileDate,CompileManUser.UserName AS CompileManName,Project.ProjectId,Project.ProjectName" + // + @" ,ElectrodeRecovery.AuditDate,AuditManUser.UserName AS AuditManName" + // + @" FROM HJGL_ElectrodeRecovery AS ElectrodeRecovery" + // + @" LEFT JOIN Sys_User AS CompileManUser ON ElectrodeRecovery.CompileMan=CompileManUser.UserId" + // + @" LEFT JOIN Sys_User AS AuditManUser ON ElectrodeRecovery.AuditMan=AuditManUser.UserId" + // + @" LEFT JOIN Base_Project AS Project ON ElectrodeRecovery.ProjectId=Project.ProjectId" + //+ @" WHERE ElectrodeRecovery.ProjectId= @ProjectId"; + string strSql = @"SELECT ElectrodeRecoveryId,ElectrodeRecoveryItemID,CompileDate,ElectrodeRecoveryCode,ElectrodeRecoveryDate,WelderCode,WED_Name,UnitName,ProjectName,WorkAreaName,CnProfession,Equipment" + + @",WMT_MatName,STE_Name,WMT_MatType,Specifications,RecipientsCount,AuditDate,RoleAuditManName,AuditManName,ProjectId,AuditMan" + + @" FROM dbo.HJGL_View_ElectrodeRecovery" + + @" WHERE Type=2 and RecipientsCount is not null and ProjectId= @ProjectId"; + + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtElectrodeRecoveryCode.Text.Trim())) + { + strSql += " AND ElectrodeRecoveryCode LIKE @ElectrodeRecoveryCode"; + listStr.Add(new SqlParameter("@ElectrodeRecoveryCode", "%" + this.txtElectrodeRecoveryCode.Text.Trim() + "%")); + } + + if (!string.IsNullOrEmpty(this.txtStartTime.Text)) + { + strSql += " AND ElectrodeRecoveryDate >= @ElectrodeRecoveryStartDate"; + listStr.Add(new SqlParameter("@ElectrodeRecoveryStartDate", Funs.GetNewDateTime(this.txtStartTime.Text.Trim()))); + } + + if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + { + strSql += " AND ElectrodeRecoveryDate < @ElectrodeRecoveryEndDate"; + listStr.Add(new SqlParameter("@ElectrodeRecoveryEndDate", Funs.GetNewDateTime(this.txtEndTime.Text.Trim()).Value.AddDays(1))); + } + + //if ((this.cbIsAudit.Items[0].Selected && !this.cbIsAudit.Items[1].Selected)) + //{ + // strSql += " AND (AuditDate IS NULL OR AuditMan IS NULL)"; + //} + //if ((this.cbIsAudit.Items[1].Selected && !this.cbIsAudit.Items[0].Selected)) + //{ + // strSql += " AND (AuditDate IS NOT NULL AND AuditMan IS NOT NULL)"; + //} + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 增加焊条发放回收记录 + /// + /// 增加焊条发放回收记录 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnAdd)) + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeBackRecoveryEdit.aspx?ElectrodeRecoveryId={0}", string.Empty, "新增 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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.HJGL_ElectrodeRecoveryMenuId, Const.BtnDelete)) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string ElectrodeRecoveryId = Grid1.DataKeys[rowIndex][0].ToString(); + Model.HJGL_ElectrodeRecovery electrodeRecovery = Funs.DB.HJGL_ElectrodeRecovery.First(e => e.ElectrodeRecoveryId == ElectrodeRecoveryId); + + BLL.HJGL_ElectrodeRecoveryService.DeleteElectrodeRecoveryItem(this.CurrUser.LoginProjectId, electrodeRecovery.UnitId, ElectrodeRecoveryId); + // BLL.HJGL_ElectrodeRecoveryService.DeleteElectrodeRecovery(ElectrodeRecoveryId); + Funs.DB.HJGL_ElectrodeRecovery.DeleteOnSubmit(electrodeRecovery); + Funs.DB.SubmitChanges(); + //BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除焊丝烘烤记录!"); + } + } + this.BindGrid(); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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() + { + var electr = BLL.HJGL_ElectrodeRecoveryService.GetElectrodeRecoveryByItemID(Grid1.SelectedRowID); + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnSave)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + + if (electr != null) + { + //if (electr.AuditDate.HasValue && !string.IsNullOrEmpty(electr.AuditMan)) + //{ + // PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeRecoveryView.aspx?ElectrodeRecoveryId={0}", Grid1.SelectedRowID, "查看 - "))); + + //} + //else + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeBackRecoveryEdit.aspx?ElectrodeRecoveryId={0}", electr.ElectrodeRecoveryId, "编辑 - "))); + } + } + } + else + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeRecoveryView.aspx?ElectrodeRecoveryId={0}", electr.ElectrodeRecoveryId, "查看 - "))); + } + } + #endregion + + #region 批量审核事件 + /// + /// 右键编辑事件通过 + /// + /// + /// + protected void btnBatch_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnSave)) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ElectrodeRecoveryBatch.aspx", "查看 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 分页 排序 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + this.BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + this.BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 过滤表头 + /// + /// 过滤表头 + /// + /// + /// + protected void Grid1_FilterChange(object sender, EventArgs e) + { + BindGrid(); + } + + /// + /// 根据表头信息过滤列表数据 + /// + /// + /// + /// + /// + /// + private bool FilterDataRowItemImplement(object sourceObj, string fillteredOperator, object fillteredObj, string column) + { + bool valid = false; + if (column == "WelderCode") + { + string sourceValue = sourceObj.ToString(); + string fillteredValue = fillteredObj.ToString(); + if (fillteredOperator == "equal" && sourceValue == fillteredValue) + { + valid = true; + } + else if (fillteredOperator == "contain" && sourceValue.Contains(fillteredValue)) + { + valid = true; + } + } + return valid; + } + #endregion + + #region Grid行点击事件 + /// + /// Grid行点击事件 + /// + /// + /// + protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) + { + string electrodeRecoveryId = Grid1.DataKeys[e.RowIndex][0].ToString(); + if (!string.IsNullOrEmpty(electrodeRecoveryId)) + { + if (e.CommandName == "print") + { + //ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + Model.HJGL_ElectrodeRecoveryItem electrodeRecoveryItem = BLL.HJGL_ElectrodeRecoveryService.GetElectrodeRecoveryItemByRecoveryID(electrodeRecoveryId)[0]; + Model.BS_Welder welder = BLL.WelderService.GetWelderByCode(this.CurrUser.LoginProjectId,electrodeRecoveryItem.WelderCode); + if (welder != null) + { + //var proccess = new RLSBProccess(); + //string fileName = proccess.GetImageByLabel(welder.IdentityCard); + //if (fileName == "未找到匹配的图片") + //{ + // fileName = string.Empty; + //} + //PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("WelderRecordPrint.aspx?electrodeRecoveryId={0}&fileName={1}&identityCard={2}", electrodeRecoveryId, fileName, welder.IdentityCard, "打印 - "))); + //PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("../../RLSB/WelderRecordPrint.aspx?electrodeRecoveryId={0}&fileName={1}&identityCard={2}&noAuto={3}", electrodeRecoveryId, fileName, welder.IdentityCard,"noAuto", "打印 - "))); + //PageContext.RegisterStartupScript(String.Format("WelderRecordPrint('"+electrodeRecoveryId+"','"+fileName+"','"+welder.IdentityCard+"','noAuto');")); + } + else + { + ShowNotify("焊工不存在!", MessageBoxIcon.Warning); + } + } + } + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.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; + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) + { + this.Grid1.PageSize = 10000; + BindGrid(); + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnID != "Print") + { + sb.AppendFormat("", column.HeaderText); + } + } + sb.Append(""); + foreach (GridRow row in grid.Rows) + { + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnID != "Print") + { + string html = row.Values[column.ColumnIndex].ToString(); + if (column.ColumnID == "tfNumber") + { + html = (row.FindControl("labNumber") 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/HJGL/RepairManage/ElectrodeBackRecovery.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx.designer.cs new file mode 100644 index 0000000..63c85d4 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecovery.aspx.designer.cs @@ -0,0 +1,260 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeBackRecovery + { + + /// + /// 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; + + /// + /// cbIsAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBoxList cbIsAudit; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnEdit; + + /// + /// btnBatch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnBatch; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtElectrodeRecoveryCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtElectrodeRecoveryCode; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// DropDowsnList1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDowsnList1; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// WindowEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowEdit; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Window4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window4; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx new file mode 100644 index 0000000..89765a0 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx @@ -0,0 +1,236 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeBackRecoveryEdit.aspx.cs" + Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeBackRecoveryEdit" %> + + + + + 焊条发放记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --%> + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx.cs new file mode 100644 index 0000000..fe551b1 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx.cs @@ -0,0 +1,541 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeBackRecoveryEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string ElectrodeRecoveryId + { + get + { + return (string)ViewState["ElectrodeRecoveryId"]; + } + set + { + ViewState["ElectrodeRecoveryId"] = value; + } + } + private bool AppendToEnd = false; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ElectrodeRecoveryId = Request.Params["ElectrodeRecoveryId"]; + ///编制人 + //this.drpCompileMan.DataTextField = "UserName"; + //this.drpCompileMan.DataValueField = "UserId"; + //this.drpCompileMan.DataSource = BLL.UserService.GetProjectUserListByProjectId(this.CurrUser.LoginProjectId); + //this.drpCompileMan.DataBind(); + //Funs.FineUIPleaseSelect(this.drpCompileMan); + this.dpBake.DataTextField = "BatchCode"; + this.dpBake.DataValueField = "ElectrodeID"; + this.dpBake.DataSource = Funs.DB.HJGL_ElectrodeBake.OrderByDescending(x => x.CompileDate); + this.dpBake.DataBind(); + Funs.FineUIPleaseSelect(dpBake); + + var list = (from x in Funs.DB.Base_WeldingMethod + orderby x.WeldingMethodCode + select x).ToList(); + ddlWME_ID.DataValueField = "WeldingMethodName"; + ddlWME_ID.DataTextField = "WeldingMethodName"; + ddlWME_ID.DataSource = list; + ddlWME_ID.DataBind(); + Funs.FineUIPleaseSelect(ddlWME_ID); + var units = UnitService.GetUnitByProjectIdUnitTypeList(this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2); + + this.dpUnit.DataTextField = "UnitName"; + this.dpUnit.DataValueField = "UnitId"; + this.dpUnit.DataSource = units; + this.dpUnit.DataBind(); + Funs.FineUIPleaseSelect(dpUnit); + + if (!string.IsNullOrEmpty(this.ElectrodeRecoveryId)) + { + var electrode = BLL.HJGL_ElectrodeRecoveryService.GetElectrodeRecoveryByID(this.ElectrodeRecoveryId); + if (electrode != null) + { + this.txtEletrodeCode.Text = electrode.ElectrodeRecoveryCode; + this.txtElectrodeRecoveryDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", electrode.ElectrodeRecoveryDate); + //this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", electrode.CompileDate); + //this.drpCompileMan.SelectedValue = electrode.CompileMan; + + if (!string.IsNullOrEmpty(electrode.UnitId)) + { + this.dpUnit.SelectedValue = electrode.UnitId; + this.dpWelderCode.DataTextField = "WED_Code"; + this.dpWelderCode.DataValueField = "WED_Code"; + var welderList = Funs.DB.BS_Welder.Where(x => x.WED_Unit == this.dpUnit.SelectedValue).ToList(); + dpWelderCode.DataSource = welderList; + dpWelderCode.DataBind(); + this.drpWorkArea.DataTextField = "WorkAreaName"; + this.drpWorkArea.DataValueField = "WorkAreaName"; + this.drpWorkArea.DataSource = Funs.DB.ProjectData_WorkArea.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == this.dpUnit.SelectedValue).ToList(); + this.drpWorkArea.DataBind(); + + } + + if (!string.IsNullOrEmpty(electrode.BakeId)) + { + this.dpBake.SelectedValue = electrode.BakeId; + + var bake = Funs.DB.HJGL_ElectrodeBake.FirstOrDefault(x => x.ElectrodeID == electrode.BakeId); + if (bake != null) + { + var consumables = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesId == bake.WMT_ID); + if (consumables != null) + { + this.drpWME_ID.Items.Clear(); + drpWME_ID.DataBind(); + ListItem[] listItem = new ListItem[1]; + listItem[0] = new ListItem(consumables.ConsumablesCode, consumables.ConsumablesCode); + this.drpWME_ID.DataTextField = "Text"; + this.drpWME_ID.DataValueField = "Value"; + drpWME_ID.DataSource = listItem; + drpWME_ID.DataBind(); + drpWME_ID.SelectedValue = consumables.ConsumablesCode; + } + } + } + + } + } + else + { + this.txtElectrodeRecoveryDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", System.DateTime.Now); + //this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", System.DateTime.Now); + // this.drpCompileMan.SelectedValue = this.CurrUser.UserId; + //this.txtEletrodeCode.Text = BLL.SQLHelper.RunProcNewId("Sp_GetNewCode3ByProjectIdAndDate", "HJGL_ElectrodeRecovery", "ElectrodeRecoveryCode", "CompileDate", this.CurrUser.LoginProjectId, System.DateTime.Now.ToString("yyyy-MM-dd"), System.DateTime.Now.AddDays(1).ToString("yyyy-MM-dd")); + } + + ///焊条 + //this.drpWME_ID.DataTextField = "WMT_MatName"; + //this.drpWME_ID.DataValueField = "WMT_MatName"; + //this.drpWME_ID.DataSource = BLL.HJGL_ConsumablesService.GetMaterialList("2"); + //this.drpWME_ID.DataBind(); + + //单元编号/专业名称 + //this.drpCnProfession.DataTextField = "Text"; + //this.drpCnProfession.DataValueField = "Text"; + //this.drpCnProfession.DataSource = BLL.DropListService.HJGL_CnProfession(); + //this.drpCnProfession.DataBind(); + //Funs.FineUIPleaseSelect(this.drpCnProfession); + //使用钢结构、设备代号、管道号 + this.drpEquipment.DataTextField = "Text"; + this.drpEquipment.DataValueField = "Text"; + this.drpEquipment.DataSource = BLL.DropListService.HJGL_Equipment(); + this.drpEquipment.DataBind(); + //Funs.FineUIPleaseSelect(this.drpEquipment); + + // 删除选中单元格的客户端脚本 + string deleteScript = GetDeleteScript(); + // 新增数据初始值 + JObject defaultObj = new JObject(); + defaultObj.Add("WelderCode", ""); + defaultObj.Add("WorkAreaName", ""); + defaultObj.Add("CnProfession", ""); + defaultObj.Add("Equipment", ""); + defaultObj.Add("WMT_MatName", ""); + //defaultObj.Add("WMT_MatName", ""); + //defaultObj.Add("ElectrodeRecoveryModel", ""); + //defaultObj.Add("ElectrodeGrade", ""); + //defaultObj.Add("BatchNumber", ""); + //defaultObj.Add("InLibCode", ""); + //defaultObj.Add("Specifications", ""); + + //defaultObj.Add("WelderCode", ""); + //defaultObj.Add("UseSite", ""); + //defaultObj.Add("WeldingMaterial", ""); + defaultObj.Add("RecipientsCount", "0"); + //defaultObj.Add("RecoveryCount", "0.0"); + //defaultObj.Add("GrantMan", this.CurrUser.UserName); + defaultObj.Add("Delete", String.Format("", deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete))); + // 在第一行新增一条数据 + btnNew.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, AppendToEnd); + // 删除选中行按钮 + btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!") + deleteScript; + // 绑定表格 + this.BindGrid(); + } + } + #endregion + protected void dpBake_OnSelectedIndexChanged(object sender, EventArgs e) + { + var bake = Funs.DB.HJGL_ElectrodeBake.FirstOrDefault(x => x.ElectrodeID == dpBake.SelectedValue); + if (bake != null) + { + var consumables = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesId == bake.WMT_ID); + if (consumables != null) + { + this.drpWME_ID.Items.Clear(); + drpWME_ID.DataBind(); + ListItem[] listItem = new ListItem[1]; + listItem[0] = new ListItem(consumables.ConsumablesCode, consumables.ConsumablesCode); + this.drpWME_ID.DataTextField = "Text"; + this.drpWME_ID.DataValueField = "Value"; + drpWME_ID.DataSource = listItem; + drpWME_ID.DataBind(); + drpWME_ID.SelectedValue = consumables.ConsumablesCode; + } + } + } + + protected void dpUnit_OnSelectedIndexChanged(object sender, EventArgs e) + { + string perfix = string.Empty; + var unit = UnitService.GetUnitByUnitId(this.dpUnit.SelectedValue); + perfix = unit.UnitCode + "-HS-"; + this.txtEletrodeCode.Text = BLL.SQLHelper.RunProcNewId("SpGetNewCode5ByProjectId", "dbo.HJGL_ElectrodeRecovery", "ElectrodeRecoveryCode", this.CurrUser.LoginProjectId, perfix); + + this.dpWelderCode.DataTextField = "WED_Code"; + this.dpWelderCode.DataValueField = "WED_Code"; + var welderList = Funs.DB.BS_Welder.Where(x => x.WED_Unit == this.dpUnit.SelectedValue).ToList(); + dpWelderCode.DataSource = welderList; + dpWelderCode.DataBind(); + this.drpWorkArea.DataTextField = "WorkAreaName"; + this.drpWorkArea.DataValueField = "WorkAreaName"; + this.drpWorkArea.DataSource = Funs.DB.ProjectData_WorkArea.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == this.dpUnit.SelectedValue).ToList(); + this.drpWorkArea.DataBind(); + + } + /// + /// 焊工号的输入框事件 + /// + /// drpInstallation + /// + protected void Text_TextChanged(object sender, EventArgs e) + { + + var w = Funs.DB.BS_Welder.FirstOrDefault(x => x.WED_Code == this.dpUnit.SelectedValue); + if (w != null) + { + //if (!string.IsNullOrEmpty(w.WED_Unit)) + //{ + // var unit = BLL.Base_UnitService.GetUnit(w.WED_Unit); + // if (unit != null) + // { + // this.txtUnitName.Text = unit.UnitName; + // } + //} + //this.drpInstallation.DataTextField = "Text"; + //this.drpInstallation.DataValueField = "Text"; + //this.drpInstallation.DataSource = BLL.Project_InstallationService.GetInstallationList(w.ProjectId, w.WED_Unit); + //this.drpInstallation.DataBind(); + + /////焊条 + //this.drpWME_ID.DataTextField = "ConsumablesName"; + //this.drpWME_ID.DataValueField = "ConsumablesName"; + //var totalWeldMaterials = from x in Funs.DB.Base_Consumables select x; + //List welderQualifiedProjects = (from x in Funs.DB.BS_WelderQualifiedProject + // where x.WED_ID == w.WED_ID && x.LimitDate > DateTime.Now + // select x).ToList(); + List weldMaterials = new List(); + // if (welderQualifiedProjects.Count > 0) + //{ + // foreach (var welderQualifiedProject in welderQualifiedProjects) + // { + // if (welderQualifiedProject.QualifiedProjectCode.Contains("FeⅠ")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "1")); //碳钢 + // } + // else if (welderQualifiedProject.QualifiedProjectCode.Contains("FeⅡ")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "1" || x.SteelType == "4")); //碳钢、低合金钢 + // } + // else if (welderQualifiedProject.QualifiedProjectCode.Contains("FeⅢ")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "1" || x.SteelType == "3" || x.SteelType == "4")); //碳钢、铬钼钢、低合金钢 + // } + // else if (welderQualifiedProject.QualifiedProjectCode.Contains("FeⅣ")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "2")); //不锈钢 + // } + // else if (welderQualifiedProject.QualifiedProjectCode.Contains("Ni")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "5")); //镍合金钢 + // } + // else if (welderQualifiedProject.QualifiedProjectCode.Contains("Ti")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "6")); //钛合金钢 + // } + // } + //} + //this.drpWME_ID.DataSource = totalWeldMaterials; + + //this.drpWME_ID.DataBind(); + } + + } + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + string strSql = @"SELECT Item.ElectrodeRecoveryItemID" + + @" ,Item.ElectrodeRecoveryId" + + @" ,Item.ElectrodeGrade" + + @" ,Item.BatchNumber" + + @" ,Item.InLibCode" + + @" ,Item.Specifications" + + @" ,Item.WelderCode" + + @" ,Item.UseSite" + + @" ,Item.WeldingMaterial" + + @" ,Item.RecipientsCount" + + @" ,Item.RecoveryCount" + + @" ,Item.GrantMan" + + @" ,Item.ElectrodeRecoveryModel" + + @" ,Item.WMT_ID" + + @" ,Item.InstallationId" + + @" ,(CASE Item.CnProfession WHEN '1' THEN '管道安装工程' WHEN '2' THEN '钢结构安装工程' WHEN '3' THEN '仪表安装工程' END) AS CnProfession" + + @" ,(CASE Item.Equipment WHEN '1' THEN '管道' WHEN '2' THEN '结构' WHEN '3' THEN '设备' END) AS Equipment" + + @" ,WorkArea.WorkAreaName" + + @",WeldMaterial.ConsumablesName as WMT_MatName" + + @",method.WeldingMethodName as WMT_MethodName" + + @",Welder.WED_Name AS WelderName" + + @" FROM HJGL_ElectrodeRecoveryItem AS Item" + + @" LEFT JOIN ProjectData_WorkArea AS WorkArea ON WorkArea.WorkAreaId = Item.InstallationId" + + @" LEFT JOIN Base_Consumables AS WeldMaterial ON WeldMaterial.ConsumablesId = Item.WMT_ID " + + @" LEFT JOIN BS_Welder AS Welder ON Welder.WED_Code = Item.WelderCode" + + @" LEFT JOIN Base_WeldingMethod AS method ON method.WeldingMethodId = Item.WME_ID" + + @" WHERE ElectrodeRecoveryId=@ElectrodeRecoveryId"; + SqlParameter[] parameter = new SqlParameter[] + { + new SqlParameter("@ElectrodeRecoveryId",this.ElectrodeRecoveryId), + }; + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.DataSource = tb; + Grid1.DataBind(); + } + #endregion + + /// + /// Grid1加载前事件 + /// + /// + /// + protected void Grid1_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid1.FindColumn("Delete") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScript(); + } + + /// + /// 删除提示 + /// + /// + private string GetDeleteScript() + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnDelete)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return null; + } + else + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + } + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 保存、审核 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnSave)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return; + } + + this.SavaData(BLL.Const.BtnSave); + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + /// + /// 审核按钮 + /// + /// + /// + protected void btnAudit_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnAuditing)) + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Information); + return; + } + this.SavaData(BLL.Const.BtnAuditing); + ShowNotify("审核成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + /// + /// 保存数据 + /// + /// + private void SavaData(string type) + { + Model.HJGL_ElectrodeRecovery newElectrodeRecovery = new Model.HJGL_ElectrodeRecovery(); + newElectrodeRecovery.ElectrodeRecoveryCode = this.txtEletrodeCode.Text.Trim(); + newElectrodeRecovery.ElectrodeRecoveryDate = Funs.GetNewDateTime(this.txtElectrodeRecoveryDate.Text).Value; + newElectrodeRecovery.AuditDate = DateTime.Now; + newElectrodeRecovery.AuditMan = this.CurrUser.UserId; + newElectrodeRecovery.UnitId = this.dpUnit.SelectedValue; + newElectrodeRecovery.CompileMan = this.CurrUser.UserId; + newElectrodeRecovery.Type = "2"; + if (this.dpBake.SelectedValue != Const._Null) + { + newElectrodeRecovery.BakeId = this.dpBake.SelectedValue; + } + //if (this.drpCompileMan.SelectedValue != BLL.Const._Null) + //{ + // newElectrodeRecovery.CompileMan = this.drpCompileMan.SelectedValue; + //} + newElectrodeRecovery.CompileDate = DateTime.Now;// Funs.GetNewDateTime(this.txtCompileDate.Text); + newElectrodeRecovery.ProjectId = this.CurrUser.LoginProjectId; + if (type == BLL.Const.BtnAuditing) + { + newElectrodeRecovery.AuditMan = this.CurrUser.UserId; + newElectrodeRecovery.AuditDate = System.DateTime.Now; + } + if (!string.IsNullOrEmpty(ElectrodeRecoveryId)) + { + newElectrodeRecovery.ElectrodeRecoveryId = ElectrodeRecoveryId; + BLL.HJGL_ElectrodeRecoveryService.UpdateElectrodeRecovery(newElectrodeRecovery); //修改焊丝烘烤记录 + BLL.HJGL_ElectrodeRecoveryService.DeleteElectrodeRecoveryItem(this.CurrUser.LoginProjectId, newElectrodeRecovery.UnitId, this.ElectrodeRecoveryId); + // BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改焊条发放回收记录!"); + } + else + { + newElectrodeRecovery.ElectrodeRecoveryId = SQLHelper.GetNewID(typeof(Model.HJGL_ElectrodeRecovery)); + BLL.HJGL_ElectrodeRecoveryService.AddElectrodeRecovery(newElectrodeRecovery); //添加焊丝烘烤记录主表信息 + // BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "添加焊条发放回收记录!"); + } + + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + Model.HJGL_ElectrodeRecoveryItem newElectrodeRecoveryItem = new Model.HJGL_ElectrodeRecoveryItem(); + newElectrodeRecoveryItem.ElectrodeRecoveryItemID = SQLHelper.GetNewID(typeof(Model.HJGL_ElectrodeRecoveryItem)); + newElectrodeRecoveryItem.ElectrodeRecoveryId = newElectrodeRecovery.ElectrodeRecoveryId; + newElectrodeRecoveryItem.WelderCode = values.Value("WelderCode"); + var workArea = Funs.DB.ProjectData_WorkArea.FirstOrDefault(x => x.WorkAreaName == values.Value("WorkAreaName") && x.ProjectId == this.CurrUser.LoginProjectId); + if (workArea != null) + { + workArea.InstallationId = workArea.WorkAreaId; + } + //if (values.Value("CnProfession") == "管道安装工程") + //{ + // newElectrodeRecoveryItem.CnProfession = "1"; + //} + //else if (values.Value("CnProfession") == "钢结构安装工程") + //{ + // newElectrodeRecoveryItem.CnProfession = "2"; + //} + //else if (values.Value("CnProfession") == "仪表安装工程") + //{ + // newElectrodeRecoveryItem.CnProfession = "3"; + //} + if (values.Value("Equipment") == "管道") + { + newElectrodeRecoveryItem.Equipment = "1"; + } + else if (values.Value("Equipment") == "结构") + { + newElectrodeRecoveryItem.Equipment = "2"; + } + else if (values.Value("Equipment") == "设备") + { + newElectrodeRecoveryItem.Equipment = "3"; + } + var mat = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesCode == values.Value("WMT_MatName")); + if (mat != null) + { + newElectrodeRecoveryItem.WMT_ID = mat.ConsumablesId; + } + + + var method = Funs.DB.Base_WeldingMethod.FirstOrDefault(x => x.WeldingMethodName == values.Value("WMT_MethodName")); + if (method != null) + { + newElectrodeRecoveryItem.WME_ID = method.WeldingMethodId; + } + + newElectrodeRecoveryItem.RecipientsCount = Funs.GetNewIntOrZero(values.Value("RecipientsCount")); + var workarea = Funs.DB.ProjectData_WorkArea.FirstOrDefault(x => x.WorkAreaName == values.Value("WorkAreaName") && x.ProjectId == CurrUser.LoginProjectId); + if (workarea != null) + { + newElectrodeRecoveryItem.InstallationId = workarea.WorkAreaId; + } + + //newElectrodeRecoveryItem.ElectrodeRecoveryModel = values.Value("ElectrodeRecoveryModel"); + //newElectrodeRecoveryItem.ElectrodeGrade = values.Value("ElectrodeGrade"); + //newElectrodeRecoveryItem.BatchNumber = values.Value("BatchNumber"); + //newElectrodeRecoveryItem.InLibCode = values.Value("InLibCode"); + //newElectrodeRecoveryItem.Specifications = values.Value("Specifications"); + //newElectrodeRecoveryItem.WelderCode = values.Value("WelderCode"); + //newElectrodeRecoveryItem.UseSite = values.Value("UseSite"); + //newElectrodeRecoveryItem.WeldingMaterial = values.Value("WeldingMaterial"); + //newElectrodeRecoveryItem.RecipientsCount = Funs.GetNewIntOrZero(values.Value("RecipientsCount")); + //newElectrodeRecoveryItem.RecoveryCount = Funs.GetNewDecimalOrZero(values.Value("RecoveryCount")); + //newElectrodeRecoveryItem.GrantMan = values.Value("GrantMan"); + //newElectrodeRecoveryItem.GrantMan = this.CurrUser.UserId; + + BLL.HJGL_ElectrodeRecoveryService.AddElectrodeRecoveryItem(newElectrodeRecoveryItem); + + if (!string.IsNullOrEmpty(newElectrodeRecoveryItem.WMT_ID) && type == BLL.Const.BtnAuditing) + { + decimal count = 0; + if (newElectrodeRecoveryItem.RecipientsCount.HasValue) + { + count = count - newElectrodeRecoveryItem.RecipientsCount.Value; + } + + if (newElectrodeRecoveryItem.RecoveryCount.HasValue) + { + count = count + newElectrodeRecoveryItem.RecoveryCount.Value; + } + + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, newElectrodeRecovery.UnitId, newElectrodeRecoveryItem.WMT_ID, newElectrodeRecoveryItem.ElectrodeRecoveryModel, newElectrodeRecoveryItem.Specifications, count); + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx.designer.cs new file mode 100644 index 0000000..0f82fe5 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBackRecoveryEdit.aspx.designer.cs @@ -0,0 +1,242 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeBackRecoveryEdit + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// Style1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Style1; + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// dpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpUnit; + + /// + /// txtEletrodeCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtEletrodeCode; + + /// + /// txtElectrodeRecoveryDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtElectrodeRecoveryDate; + + /// + /// dpBake 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpBake; + + /// + /// drpCompileMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpCompileMan; + + /// + /// txtCompileDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCompileDate; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar5; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// dpWelderCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpWelderCode; + + /// + /// drpWorkArea 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWorkArea; + + /// + /// drpEquipment 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpEquipment; + + /// + /// drpWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWME_ID; + + /// + /// ddlWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlWME_ID; + + /// + /// txtRecipientsCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtRecipientsCount; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx new file mode 100644 index 0000000..5b10d7e --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx @@ -0,0 +1,210 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeBakeRecord.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeBakeRecord" %> + + + + 焊条烘烤记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx.cs new file mode 100644 index 0000000..b762662 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx.cs @@ -0,0 +1,270 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeBakeRecord : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + else if (GetRequestEventArgument() == "reloadGrid") + { + this.BindGrid(); + } + } + #endregion + + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT ElectrodeBake.[ElectrodeID] + ,ElectrodeBake.[ElectrodeCode] + ,ElectrodeBake.[ElectrodeDate] + ,ElectrodeBake.[UnitId] + ,ElectrodeBake.[CompileMan] + ,ElectrodeBake.[CompileDate] + ,ElectrodeBake.[ProjectId] + ,ElectrodeBake.[CardCode] + ,HJGL_EMaterialRegist.SystemCode as [InLibCode] + ,ElectrodeBake.[BatchCode] + ,ElectrodeBake.[Specifications] + ,ElectrodeBake.[ElectrodeCount] + ,ElectrodeBake.[OvenElectricHours] + ,ElectrodeBake.[OvenElectricMinute] + ,ElectrodeBake.[OvenElectricTemperature] + ,ElectrodeBake.[ConstantTemperature] + ,ElectrodeBake.[ConstantStartHours] + ,ElectrodeBake.[ConstantStartMinute] + ,ElectrodeBake.[ConstantEndHours] + ,ElectrodeBake.[ConstantEndMinute] + ,ElectrodeBake.[MoveInBoxHours] + ,ElectrodeBake.[MoveInBoxMinute] + ,ElectrodeBake.[MoveInTemperature] + ,ElectrodeBake.[BakeNumber] + ,ElectrodeBake.[BakeHead] + ,ElectrodeBake.[ElectrodeModel] ,CompileManUser.UserName as CompileManName, Consumables.ConsumablesName" + + @" FROM HJGL_ElectrodeBake AS ElectrodeBake" + + @" LEFT JOIN Sys_User AS CompileManUser ON ElectrodeBake.CompileMan=CompileManUser.UserId" + + @" LEFT JOIN HJGL_EMaterialRegist AS HJGL_EMaterialRegist ON ElectrodeBake. InLibCode=HJGL_EMaterialRegist.EMaterialRegistId" + + @" LEFT JOIN Base_Consumables AS Consumables ON Consumables.ConsumablesId=ElectrodeBake.WMT_ID" + + @" LEFT JOIN Base_Project AS Project ON ElectrodeBake.ProjectId=Project.ProjectId" + + @" WHERE ElectrodeBake.ProjectId= @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtElectrodeCode.Text.Trim())) + { + strSql += " AND ElectrodeBake.BatchCode LIKE @ElectrodeCode"; + listStr.Add(new SqlParameter("@ElectrodeCode", "%" + this.txtElectrodeCode.Text.Trim() + "%")); + } + + if (!string.IsNullOrEmpty(this.txtStartTime.Text)) + { + strSql += " AND ElectrodeBake.CompileDate >= @DateA"; + listStr.Add(new SqlParameter("@DateA", Funs.GetNewDateTime(this.txtStartTime.Text.Trim()))); + } + + if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + { + strSql += " AND ElectrodeBake.CompileDate < @DateZ"; + listStr.Add(new SqlParameter("@DateZ", Funs.GetNewDateTime(this.txtEndTime.Text.Trim()).Value.AddDays(1))); + } + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 增加焊条烘烤记录 + /// + /// 增加焊条烘烤记录 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnAdd)) + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeBakeRecordEditNew.aspx?ElectrodeID={0}", string.Empty, "新增 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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.HJGL_ElectrodeBakeMenuId, Const.BtnDelete)) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string electrodeId = Grid1.DataKeys[rowIndex][0].ToString(); + var electrodeBake = BLL.HJGL_ElectrodeBakeService.GetElecrodeBakeByElectrodeId(electrodeId); + BLL.HJGL_ElectrodeBakeService.DeleteElectrodeBakeItem(electrodeId); + BLL.HJGL_ElectrodeBakeService.DeleteElectrodeBake(electrodeId); + if (electrodeBake != null) + { + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, electrodeBake.UnitId, electrodeBake.WMT_ID, "", "", -decimal.Parse(electrodeBake.ElectrodeCount.Value.ToString("0.##"))); + } + this.BindGrid(); + // BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除焊丝烘烤记录!"); + } + } + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 数据编辑事件 + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + this.EditData(); + } + + protected void btnPackageIn_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnSave)) + { + + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ElectrodeBakeRecordEditIn.aspx", Grid1.SelectedRowID, "编辑 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + + + } + + + /// + /// 右键编辑事件通过 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + this.EditData(); + } + + /// + /// 编辑方法 + /// + private void EditData() + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnSave)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeBakeRecordEditNew.aspx?ElectrodeID={0}", Grid1.SelectedRowID, "编辑 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 分页 排序 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + this.BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + this.BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + } + +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx.designer.cs new file mode 100644 index 0000000..16d82e3 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecord.aspx.designer.cs @@ -0,0 +1,206 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeBakeRecord + { + + /// + /// 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; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnPackageIn 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPackageIn; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtElectrodeCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtElectrodeCode; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// WindowEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowEdit; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx new file mode 100644 index 0000000..964bbb7 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx @@ -0,0 +1,260 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeBakeRecordEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeBakeRecordEdit" %> + + + + 焊条烘烤记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx.cs new file mode 100644 index 0000000..eaafdef --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx.cs @@ -0,0 +1,234 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +using Newtonsoft.Json.Linq; + + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeBakeRecordEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string ElectrodeID + { + get + { + return (string)ViewState["ElectrodeID"]; + } + set + { + ViewState["ElectrodeID"] = value; + } + } + private bool AppendToEnd = false; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ElectrodeID = Request.Params["ElectrodeID"]; + var project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); + if (project != null) + { + this.lblProjectName.Text = project.ProjectName; + } + if (!string.IsNullOrEmpty(this.ElectrodeID)) + { + var electrode = BLL.HJGL_ElectrodeBakeService.GetElecrodeBakeByElectrodeId(this.ElectrodeID); + if (electrode != null) + { + this.txtEletrodeCode.Text = electrode.ElectrodeCode; + this.txtElectrodeDate.Text = string.Format("{0:yyyy-MM-dd}", electrode.ElectrodeDate); + this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", electrode.CompileDate); + } + } + else + { + this.txtElectrodeDate.Text = string.Format("{0:yyyy-MM-dd}", System.DateTime.Now); + this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", System.DateTime.Now); + } + + // 删除选中单元格的客户端脚本 + string deleteScript = GetDeleteScript(); + // 新增数据初始值 + JObject defaultObj = new JObject(); + defaultObj.Add("ElectrodeModel", ""); + defaultObj.Add("CardCode", ""); + defaultObj.Add("BatchCode", ""); + defaultObj.Add("InLibCode", ""); + defaultObj.Add("Specifications", ""); + defaultObj.Add("ElectrodeCount", ""); + defaultObj.Add("OvenElectricHours", ""); + defaultObj.Add("OvenElectricMinute", ""); + defaultObj.Add("OvenElectricTemperature", ""); + + defaultObj.Add("ConstantTemperature", ""); + defaultObj.Add("ConstantStartHours", ""); + defaultObj.Add("ConstantStartMinute", ""); + defaultObj.Add("ConstantEndHours", ""); + defaultObj.Add("ConstantEndMinute", ""); + defaultObj.Add("MoveInBoxHours", ""); + defaultObj.Add("MoveInBoxMinute", ""); + defaultObj.Add("MoveInTemperature", ""); + defaultObj.Add("BakeNumber", ""); + defaultObj.Add("BakeHead", this.CurrUser.UserName); + defaultObj.Add("Delete", String.Format("", deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete))); + // 在第一行新增一条数据 + btnNew.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, AppendToEnd); + // 删除选中行按钮 + btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!") + deleteScript; + // 绑定表格 + this.BindGrid(); + } + } + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + string strSql = @"SELECT ElectrodeItemID,ElectrodeID,CardCode,BatchCode,InLibCode,Specifications,ElectrodeCount,OvenElectricHours,OvenElectricMinute ,OvenElectricTemperature," + + @" ConstantTemperature,ConstantStartHours,ConstantStartMinute,ConstantEndHours,ConstantEndMinute,MoveInBoxHours,MoveInBoxMinute,MoveInTemperature,BakeNumber,BakeHead,ElectrodeModel" + + @" FROM HJGL_ElectrodeBakeItem" + + @" WHERE ElectrodeID=@ElectrodeID"; + SqlParameter[] parameter = new SqlParameter[] + { + new SqlParameter("@ElectrodeID",this.ElectrodeID), + }; + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.DataSource = tb; + Grid1.DataBind(); + } + #endregion + + /// + /// + /// + /// + /// + protected void Grid1_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid1.FindColumn("Delete") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScript(); + } + + /// + /// + /// + /// + private string GetDeleteScript() + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnDelete)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return null; + } + else + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + } + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + /// + /// + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnSave)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return; + } + + Model.HJGL_ElectrodeBake newElectrodeBake = new Model.HJGL_ElectrodeBake(); + newElectrodeBake.ElectrodeCode = this.txtEletrodeCode.Text.Trim(); + newElectrodeBake.ElectrodeDate = Funs.GetNewDateTime(this.txtElectrodeDate.Text); + newElectrodeBake.UnitId = null; + newElectrodeBake.CompileMan = this.CurrUser.UserId; + newElectrodeBake.CompileDate = Funs.GetNewDateTime(this.txtCompileDate.Text); + newElectrodeBake.ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(ElectrodeID)) + { + newElectrodeBake.ElectrodeID = ElectrodeID; + BLL.HJGL_ElectrodeBakeService.UpdateElectrodeBake(newElectrodeBake); //修改焊丝烘烤记录 + BLL.HJGL_ElectrodeBakeService.DeleteElectrodeBakeItem(this.ElectrodeID); + //BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改焊丝烘烤记录!"); + } + else + { + newElectrodeBake.ElectrodeID = SQLHelper.GetNewID(typeof(Model.HJGL_ElectrodeBake)); + BLL.HJGL_ElectrodeBakeService.AddElectrodeBake(newElectrodeBake); //添加焊丝烘烤记录主表信息 + // BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "添加焊丝烘烤记录!"); + } + + if (Grid1.GetModifiedData().Count > 0) + { + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + //string status = teamGroupRow.Value("status"); + JObject values = teamGroupRow.Value("values"); + Model.HJGL_ElectrodeBakeItem newElectrodeBakeItem = new Model.HJGL_ElectrodeBakeItem(); + newElectrodeBakeItem.ElectrodeItemID = SQLHelper.GetNewID(typeof(Model.HJGL_ElectrodeBakeItem)); + newElectrodeBakeItem.ElectrodeID = newElectrodeBake.ElectrodeID; + newElectrodeBakeItem.ElectrodeModel = values.Value("ElectrodeModel"); + newElectrodeBakeItem.CardCode = values.Value("CardCode"); + newElectrodeBakeItem.BatchCode = values.Value("BatchCode"); + newElectrodeBakeItem.InLibCode = values.Value("InLibCode"); + newElectrodeBakeItem.Specifications = values.Value("Specifications"); + newElectrodeBakeItem.ElectrodeCount = Funs.GetNewInt(values.Value("ElectrodeCount")); + newElectrodeBakeItem.OvenElectricHours = Funs.GetNewInt(values.Value("OvenElectricHours")); + newElectrodeBakeItem.OvenElectricMinute = Funs.GetNewInt(values.Value("OvenElectricMinute")); + newElectrodeBakeItem.OvenElectricTemperature = Funs.GetNewInt(values.Value("OvenElectricTemperature")); + + newElectrodeBakeItem.ConstantTemperature = Funs.GetNewInt(values.Value("ConstantTemperature")); + newElectrodeBakeItem.ConstantStartHours = Funs.GetNewInt(values.Value("ConstantStartHours")); + newElectrodeBakeItem.ConstantStartMinute = Funs.GetNewInt(values.Value("ConstantStartMinute")); + newElectrodeBakeItem.ConstantEndHours = Funs.GetNewInt(values.Value("ConstantEndHours")); + newElectrodeBakeItem.ConstantEndMinute = Funs.GetNewInt(values.Value("ConstantEndMinute")); + newElectrodeBakeItem.MoveInBoxHours = Funs.GetNewInt(values.Value("MoveInBoxHours")); + newElectrodeBakeItem.MoveInBoxMinute = Funs.GetNewInt(values.Value("MoveInBoxMinute")); + newElectrodeBakeItem.MoveInTemperature = Funs.GetNewInt(values.Value("MoveInTemperature")); + newElectrodeBakeItem.BakeNumber = Funs.GetNewInt(values.Value("BakeNumber")); + newElectrodeBakeItem.BakeHead = values.Value("BakeHead"); + BLL.HJGL_ElectrodeBakeService.AddElectrodeBakeItem(newElectrodeBakeItem); + } + } + + Alert.ShowInTop("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + + } + } + +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx.designer.cs new file mode 100644 index 0000000..910bb51 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEdit.aspx.designer.cs @@ -0,0 +1,341 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeBakeRecordEdit + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// Style1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Style1; + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// lbName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbName; + + /// + /// lblProjectName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblProjectName; + + /// + /// txtEletrodeCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtEletrodeCode; + + /// + /// txtElectrodeDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtElectrodeDate; + + /// + /// txtCompileDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCompileDate; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar5; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// txtElectrodeModel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtElectrodeModel; + + /// + /// txtCardCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCardCode; + + /// + /// txtBatchCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBatchCode; + + /// + /// txtInLibCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtInLibCode; + + /// + /// txtSpecifications 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSpecifications; + + /// + /// txtElectrodeCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtElectrodeCount; + + /// + /// txtOvenElectricHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricHours; + + /// + /// txtOvenElectricMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricMinute; + + /// + /// txtOvenElectricTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricTemperature; + + /// + /// txtConstantTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantTemperature; + + /// + /// txtConstantStartHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantStartHours; + + /// + /// txtConstantStartMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantStartMinute; + + /// + /// txtConstantEndHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantEndHours; + + /// + /// txtConstantEndMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantEndMinute; + + /// + /// txtMoveInBoxHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInBoxHours; + + /// + /// txtMoveInBoxMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInBoxMinute; + + /// + /// txtMoveInTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInTemperature; + + /// + /// txtBakeNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtBakeNumber; + + /// + /// txtBakeHead 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBakeHead; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx new file mode 100644 index 0000000..2d7df18 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx @@ -0,0 +1,270 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeBakeRecordEditIn.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeBakeRecordEditIn" %> + + + + 焊条烘烤记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx.cs new file mode 100644 index 0000000..b8dd86d --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx.cs @@ -0,0 +1,543 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.OleDb; +using System.IO; +using System.Linq; +using System.Web.UI; +using BLL; +using Newtonsoft.Json.Linq; + + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeBakeRecordEditIn : PageBase + { + #region 定义变量 + /// + /// 上传预设的虚拟路径 + /// + private string initPath = Const.ExcelUrl; + + /// + /// 材料到货登记记录 + /// + public List electrodeBakes = new List(); + + /// + /// 错误集合 + /// + public static string errorInfos = string.Empty; + #endregion + + + #region 定义项 + /// + /// 主键 + /// + public string ElectrodeID + { + get + { + return (string)ViewState["ElectrodeID"]; + } + set + { + ViewState["ElectrodeID"] = value; + } + } + private bool AppendToEnd = false; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ElectrodeID = Request.Params["ElectrodeID"]; + + ///焊条 + this.drpWME_ID.DataTextField = "ConsumablesName"; + this.drpWME_ID.DataValueField = "ConsumablesName"; + var totalWeldMaterials = from x in Funs.DB.Base_Consumables select x; + this.drpWME_ID.DataSource = totalWeldMaterials; + this.drpWME_ID.DataBind(); + + // 删除选中单元格的客户端脚本 + string deleteScript = GetDeleteScript(); + // 新增数据初始值 + JObject defaultObj = new JObject(); + defaultObj.Add("ElectrodeModel", "1"); + defaultObj.Add("CardCode", "2"); + defaultObj.Add("BatchCode", "3"); + defaultObj.Add("InLibCode", "4"); + defaultObj.Add("Specifications", "5"); + defaultObj.Add("ElectrodeCount", "6"); + defaultObj.Add("OvenElectricHours", "7"); + defaultObj.Add("OvenElectricMinute", "8"); + defaultObj.Add("OvenElectricTemperature", "9"); + + defaultObj.Add("ConstantTemperature", "10"); + defaultObj.Add("ConstantStartHours", "11"); + defaultObj.Add("ConstantStartMinute", "12"); + defaultObj.Add("ConstantEndHours", "13"); + defaultObj.Add("ConstantEndMinute", "14"); + defaultObj.Add("MoveInBoxHours", "15"); + defaultObj.Add("MoveInBoxMinute", "16"); + defaultObj.Add("MoveInTemperature", "17"); + defaultObj.Add("BakeNumber", "1"); + defaultObj.Add("BakeHead", this.CurrUser.UserName); + defaultObj.Add("Delete", String.Format("", deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete))); + // 在第一行新增一条数据 + btnNew.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, AppendToEnd); + // 删除选中行按钮 + btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!") + deleteScript; + + + } + } + #endregion + + + #region 审核 + /// + /// 审核 + /// + /// + /// + protected void btnAudit_Click(object sender, EventArgs e) + { + try + { + if (this.fuAttachUrl.HasFile == false) + { + ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning); + return; + } + string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower(); + if (IsXls != ".xls") + { + ShowNotify("只可以选择Excel文件!", MessageBoxIcon.Warning); + return; + } + if (electrodeBakes != null) + { + electrodeBakes.Clear(); + } + if (!string.IsNullOrEmpty(errorInfos)) + { + errorInfos = string.Empty; + } + 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; + this.fuAttachUrl.PostedFile.SaveAs(filePath); + //PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PersonDataAudit.aspx?FileName={0}&ProjectId={1}", this.hdFileName.Text, Request.Params["ProjectId"], "审核 - "))); + ImportXlsToData(rootPath + initPath + this.hdFileName.Text); + } + catch (Exception ex) + { + ShowNotify("'" + ex.Message + "'", MessageBoxIcon.Warning); + } + } + + #region 读Excel提取数据 + /// + /// 从Excel提取数据--》Dataset + /// + /// Excel文件路径名 + private void ImportXlsToData(string fileName) + { + try + { + electrodeBakes.Clear(); + 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.Fill(ds, "m_tableName"); + oleAdMaster.Dispose(); + oleDBConn.Close(); + oleDBConn.Dispose(); + + AddDatasetToSQL(ds.Tables[0]); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + #region 将Dataset的数据导入数据库 + /// + /// 将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) + { + for (int i = 0; i < ir; i++) + { + JObject defaultObj = new JObject(); + defaultObj.Add("ElectrodeID", Guid.NewGuid().ToString()); + + if (!string.IsNullOrEmpty(pds.Rows[i][0].ToString().Trim())) + { + defaultObj.Add("ElectrodeModel", pds.Rows[i][0].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "型号" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][1].ToString().Trim())) + { + var mat = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesName == pds.Rows[i][1].ToString().Trim()); + if (mat != null) + { + defaultObj.Add("WMT_MatName", pds.Rows[i][1].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "牌号"+ pds.Rows[i][1].ToString().Trim() + "," + "不存在!" + "|"; + + } + } + else + { + result += "第" + (i + 2).ToString() + "行," + "牌号" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][2].ToString().Trim())) + { + defaultObj.Add("BatchCode", pds.Rows[i][2].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "批号" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][3].ToString().Trim())) + { + defaultObj.Add("InLibCode", pds.Rows[i][3].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "入库自编号" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][4].ToString().Trim())) + { + defaultObj.Add("Specifications", pds.Rows[i][4].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "规格mm" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim())) + { + defaultObj.Add("ElectrodeCount", pds.Rows[i][5].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "数量kg" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim())&& pds.Rows[i][6].ToString().Trim().Split(':').Length>0) + { + defaultObj.Add("OvenElectricHours", pds.Rows[i][6].ToString().Trim().Split(':')[0]); + defaultObj.Add("OvenElectricMinute", pds.Rows[i][6].ToString().Trim().Split(':')[1]); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "烘箱送电时间" + "," + "此项为必填项或格式不正确!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim())) + { + defaultObj.Add("OvenElectricTemperature", pds.Rows[i][7].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "烘箱送电温度" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][8].ToString().Trim())) + { + defaultObj.Add("ConstantTemperature", pds.Rows[i][8].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "恒温温度" + "," + "此项为必填项!" + "|"; + } + + + + if (!string.IsNullOrEmpty(pds.Rows[i][9].ToString().Trim()) && pds.Rows[i][9].ToString().Trim().Split(':').Length > 0) + { + defaultObj.Add("ConstantStartHours", pds.Rows[i][9].ToString().Trim().Split(':')[0]); + defaultObj.Add("ConstantStartMinute", pds.Rows[i][9].ToString().Trim().Split(':')[1]); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "恒温开始时间" + "," + "此项为必填项或格式不正确!" + "|"; + } + + if (!string.IsNullOrEmpty(pds.Rows[i][10].ToString().Trim()) && pds.Rows[i][10].ToString().Trim().Split(':').Length > 0) + { + defaultObj.Add("ConstantEndHours", pds.Rows[i][10].ToString().Trim().Split(':')[0]); + defaultObj.Add("ConstantEndMinute", pds.Rows[i][10].ToString().Trim().Split(':')[1]); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "恒温结束时间" + "," + "此项为必填项或格式不正确!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][11].ToString().Trim()) && pds.Rows[i][11].ToString().Trim().Split(':').Length > 0) + { + defaultObj.Add("MoveInBoxHours", pds.Rows[i][11].ToString().Trim().Split(':')[0]); + defaultObj.Add("MoveInBoxMinute", pds.Rows[i][11].ToString().Trim().Split(':')[1]); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "移入保温箱时间" + "," + "此项为必填项或格式不正确!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][12].ToString().Trim())) + { + defaultObj.Add("MoveInTemperature", pds.Rows[i][12].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "移入保温箱温度" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][13].ToString().Trim())) + { + defaultObj.Add("BakeHead", pds.Rows[i][13].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "烘烤负责人" + "," + "此项为必填项!" + "|"; + } + ///加入用户视图 + electrodeBakes.Add(defaultObj); + + } + if (!string.IsNullOrEmpty(result)) + { + electrodeBakes.Clear(); + result = result.Substring(0, result.LastIndexOf("|")); + errorInfos = result; + Alert alert = new Alert + { + Message = result, + Target = Target.Self + }; + alert.Show(); + } + else + { + errorInfos = string.Empty; + if (electrodeBakes.Count > 0) + { + this.Grid1.Hidden = false; + this.Grid1.DataSource = electrodeBakes; + this.Grid1.DataBind(); + Alert.ShowInTop("审核完成,请点击保存!", MessageBoxIcon.Success); + } + else + { + Alert.ShowInTop("导入数据为空!", MessageBoxIcon.Warning); + } + } + } + else + { + Alert.ShowInTop("导入数据为空!", MessageBoxIcon.Warning); + } + return true; + } + #endregion + #endregion + /// + /// + /// + /// + /// + protected void Grid1_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid1.FindColumn("Delete") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScript(); + } + + /// + /// + /// + /// + private string GetDeleteScript() + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnDelete)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return null; + } + else + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + } + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + //BindGrid(); + } + #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 filePath = Const.ElectrodeBakeRecordTemplateUrl; + string uploadfilepath = rootPath + filePath; + 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 + /// + /// + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnSave)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return; + } + + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + int i = teamGroupRow.Value("index"); + + //string status = teamGroupRow.Value("status"); + JObject values = teamGroupRow.Value("values"); + GridRow row = Grid1.Rows[i]; + System.Web.UI.WebControls.HiddenField ElectrodeID = (System.Web.UI.WebControls.HiddenField)(row.FindControl("hdElectrodeID")); + + Model.HJGL_ElectrodeBake newElectrodeBakeItem = new Model.HJGL_ElectrodeBake(); + newElectrodeBakeItem.ProjectId = CurrUser.LoginProjectId; + newElectrodeBakeItem.CompileDate = DateTime.Now; + newElectrodeBakeItem.CompileMan = CurrUser.UserId; + newElectrodeBakeItem.ElectrodeID = ElectrodeID.Value; + newElectrodeBakeItem.ElectrodeModel = values.Value("ElectrodeModel"); + //newElectrodeBakeItem.CardCode = values.Value("CardCode"); + newElectrodeBakeItem.BatchCode = values.Value("BatchCode"); + newElectrodeBakeItem.InLibCode = values.Value("InLibCode"); + newElectrodeBakeItem.Specifications = values.Value("Specifications"); + newElectrodeBakeItem.ElectrodeCount = Funs.GetNewInt(values.Value("ElectrodeCount")); + newElectrodeBakeItem.OvenElectricHours = Funs.GetNewInt(values.Value("OvenElectricHours")); + newElectrodeBakeItem.OvenElectricMinute = Funs.GetNewInt(values.Value("OvenElectricMinute")); + newElectrodeBakeItem.OvenElectricTemperature = Funs.GetNewInt(values.Value("OvenElectricTemperature")); + + newElectrodeBakeItem.ConstantTemperature = Funs.GetNewInt(values.Value("ConstantTemperature")); + newElectrodeBakeItem.ConstantStartHours = Funs.GetNewInt(values.Value("ConstantStartHours")); + newElectrodeBakeItem.ConstantStartMinute = Funs.GetNewInt(values.Value("ConstantStartMinute")); + newElectrodeBakeItem.ConstantEndHours = Funs.GetNewInt(values.Value("ConstantEndHours")); + newElectrodeBakeItem.ConstantEndMinute = Funs.GetNewInt(values.Value("ConstantEndMinute")); + newElectrodeBakeItem.MoveInBoxHours = Funs.GetNewInt(values.Value("MoveInBoxHours")); + newElectrodeBakeItem.MoveInBoxMinute = Funs.GetNewInt(values.Value("MoveInBoxMinute")); + newElectrodeBakeItem.MoveInTemperature = Funs.GetNewInt(values.Value("MoveInTemperature")); + newElectrodeBakeItem.BakeNumber = Funs.GetNewInt(values.Value("BakeNumber")); + newElectrodeBakeItem.BakeHead = values.Value("BakeHead"); + + var mat = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesName == values.Value("WMT_MatName")); + if (mat != null) + { + newElectrodeBakeItem.WMT_ID = mat.ConsumablesId; + } + BLL.HJGL_ElectrodeBakeService.AddElectrodeBake(newElectrodeBakeItem); + } + + + //Alert.ShowInTop("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + + } + } + +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx.designer.cs new file mode 100644 index 0000000..56edfb5 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditIn.aspx.designer.cs @@ -0,0 +1,350 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeBakeRecordEditIn + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// Style1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Style1; + + /// + /// 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; + + /// + /// btnAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit; + + /// + /// Button1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button1; + + /// + /// btnDownLoad 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDownLoad; + + /// + /// fuAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload fuAttachUrl; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar5; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// hdElectrodeID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField hdElectrodeID; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// txtElectrodeModel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtElectrodeModel; + + /// + /// drpWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWME_ID; + + /// + /// txtBatchCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBatchCode; + + /// + /// txtInLibCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtInLibCode; + + /// + /// txtSpecifications 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSpecifications; + + /// + /// txtElectrodeCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtElectrodeCount; + + /// + /// txtOvenElectricHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricHours; + + /// + /// txtOvenElectricMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricMinute; + + /// + /// txtOvenElectricTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricTemperature; + + /// + /// txtConstantTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantTemperature; + + /// + /// txtConstantStartHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantStartHours; + + /// + /// txtConstantStartMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantStartMinute; + + /// + /// txtConstantEndHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantEndHours; + + /// + /// txtConstantEndMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantEndMinute; + + /// + /// txtMoveInBoxHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInBoxHours; + + /// + /// txtMoveInBoxMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInBoxMinute; + + /// + /// txtMoveInTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInTemperature; + + /// + /// txtBakeHead 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBakeHead; + + /// + /// hdFileName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdFileName; + + /// + /// hdCheckResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCheckResult; + + /// + /// lblBottom 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblBottom; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx new file mode 100644 index 0000000..536d615 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx @@ -0,0 +1,152 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeBakeRecordEditNew.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeBakeRecordEditNew" %> + + + + 焊条烘烤记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx.cs new file mode 100644 index 0000000..b6651f2 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx.cs @@ -0,0 +1,305 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +using Newtonsoft.Json.Linq; + + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeBakeRecordEditNew : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string ElectrodeID + { + get + { + return (string)ViewState["ElectrodeID"]; + } + set + { + ViewState["ElectrodeID"] = value; + } + } + public string UnitId + { + get + { + return (string)ViewState["UnitId"]; + } + set + { + ViewState["UnitId"] = value; + } + } + + private bool AppendToEnd = false; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ElectrodeID = Request.Params["ElectrodeID"]; + + + string perfix = string.Empty; + + perfix = "HK-"; + this.txtBatchCode.Text = BLL.SQLHelper.RunProcNewId("SpGetNewCode5ByProjectId", "dbo.HJGL_ElectrodeBake", "BatchCode", this.CurrUser.LoginProjectId, perfix); + + var units = UnitService.GetUnitByProjectIdUnitTypeList(this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2); + + this.dpUnit.DataTextField = "UnitName"; + this.dpUnit.DataValueField = "UnitId"; + this.dpUnit.DataSource = units; + this.dpUnit.DataBind(); + Funs.FineUIPleaseSelect(dpUnit); + ///焊条 + this.drpWME_ID.DataTextField = "ConsumablesName"; + this.drpWME_ID.DataValueField = "ConsumablesId"; + var totalWeldMaterials = from x in Funs.DB.Base_Consumables select x; + this.drpWME_ID.DataSource = totalWeldMaterials; + this.drpWME_ID.DataBind(); + string strSql = @"SELECT EMaterialRegist.[EMaterialRegistId] + ,EMaterialRegist.[EMaterialRegistCode] + ,EMaterialRegist.[EMaterialRegistDate] + ,EMaterialRegist.[DeliveryMan] + ,EMaterialRegist.[UnitName] + ,EMaterialRegist.[CompileMan] + ,EMaterialRegist.[CompileDate] + ,EMaterialRegist.[ProjectId] + ,EMaterialRegist.[SystemCode] + ,EMaterialRegist.[PartACode] + ,EMaterialRegist.[Condition] + ,EMaterialRegist.[Name] + ,EMaterialRegist.[SpecificationsModel] + ,EMaterialRegist.[Standard] + ,EMaterialRegist.[Material] + ,EMaterialRegist.[SpecialInstructions] + ,EMaterialRegist.[Unit] + ,EMaterialRegist.[Amount] + ,EMaterialRegist.[FourLocation] + ,EMaterialRegist.[Manufacturer] + ,EMaterialRegist.[DesignUnit] + ,EMaterialRegist.[RealArriveAmount] + ,EMaterialRegist.[OutProve] + ,EMaterialRegist.[OutPrices] + ,CompileManUser.UserName as CompileManName + ,EMaterialRegist.[Supply], Consumables.ConsumablesName " + + @" FROM HJGL_EMaterialRegist AS EMaterialRegist" + + @" LEFT JOIN Sys_User AS CompileManUser ON EMaterialRegist.CompileMan=CompileManUser.UserId" + + @" LEFT JOIN Base_Consumables AS Consumables ON Consumables.ConsumablesId=EMaterialRegist.WMT_ID" + + @" LEFT JOIN Base_Project AS Project ON EMaterialRegist.ProjectId=Project.ProjectId" + + @" WHERE EMaterialRegist.ProjectId= @ProjectId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + //if (!string.IsNullOrEmpty(this.txtEMaterialRegistCode.Text.Trim())) + //{ + // strSql += " AND EMaterialRegist.EMaterialRegistCode LIKE @EMaterialRegistCode"; + // listStr.Add(new SqlParameter("@EMaterialRegistCode", "%" + this.txtEMaterialRegistCode.Text.Trim() + "%")); + //} + + strSql += " order by EMaterialRegistDate desc "; + + + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + this.gvRegist.DataSource = tb; + this.gvRegist.DataBind(); + + if (!string.IsNullOrEmpty(this.ElectrodeID)) + { + var electrode = BLL.HJGL_ElectrodeBakeService.GetElecrodeBakeByElectrodeId(this.ElectrodeID); + if (electrode != null) + { + if (!string.IsNullOrEmpty(electrode.Specifications)) + { + this.dpSpecificationsModel.Values = electrode.Specifications.Split(','); + } + ; + if (!string.IsNullOrEmpty(electrode.UnitId)) + { + this.dpUnit.SelectedValue = electrode.UnitId; + } + var records = Funs.DB.HJGL_EMInventoryRecords.Where(x => x.WMT_ID == electrode.WMT_ID && x.UnitId == electrode.UnitId && x.ProjectId == electrode.ProjectId).FirstOrDefault(); + if (records != null && records.MaterialCount.HasValue) + { + this.txtReElectrodeCount.Text = records.MaterialCount.Value.ToString("0.##"); + } + //txtCardCode.Text = electrode.CardCode; + this.drpWME_ID.SelectedValue = electrode.WMT_ID; + txtBatchCode.Text = electrode.BatchCode; + if (!string.IsNullOrEmpty(electrode.InLibCode)) + { + var eMaterialRegist = BLL.HJGL_EMaterialRegistService.GetEMaterialRegistByID(electrode.InLibCode); + if (!string.IsNullOrEmpty(eMaterialRegist.SpecificationsModel)) + { + var items = eMaterialRegist.SpecificationsModel.Split(','); + List res = new List(); + + foreach (string item in items) + { + res.Add(new ListItem(item, item)); + } + + this.cbJOTSch.DataTextField = "Text"; + this.cbJOTSch.DataValueField = "Value"; + this.cbJOTSch.DataSource = res; + this.cbJOTSch.DataBind(); + } + } + txtInLibCode.Value = electrode.InLibCode; + // txtSpecifications.Text = electrode.Specifications; + if (electrode.ElectrodeCount.HasValue) + txtElectrodeCount.Text = electrode.ElectrodeCount.Value.ToString(); + if (electrode.OvenElectricHours.HasValue && electrode.OvenElectricMinute.HasValue) + tpOvenElectricTime.Text = electrode.OvenElectricHours.Value.ToString("D2") + ":" + electrode.OvenElectricMinute.Value.ToString("D2"); + if (electrode.OvenElectricTemperature.HasValue) + txtOvenElectricTemperature.Text = electrode.OvenElectricTemperature.Value.ToString(); + if (electrode.ConstantTemperature.HasValue) + txtConstantTemperature.Text = electrode.ConstantTemperature.Value.ToString(); + if (electrode.ConstantStartHours.HasValue && electrode.ConstantStartMinute.HasValue) + tpConstantStartTime.Text = electrode.ConstantStartHours.Value.ToString("D2") + ":" + electrode.ConstantStartMinute.Value.ToString("D2"); + if (electrode.ConstantEndHours.HasValue && electrode.ConstantEndMinute.HasValue) + tpConstantEndTime.Text = electrode.ConstantEndHours.Value.ToString("D2") + ":" + electrode.ConstantEndMinute.Value.ToString("D2"); + if (electrode.MoveInBoxHours.HasValue && electrode.MoveInBoxMinute.HasValue) + tpMoveInBoxHours.Text = electrode.MoveInBoxHours.Value.ToString("D2") + ":" + electrode.MoveInBoxMinute.Value.ToString("D2"); + if (electrode.MoveInTemperature.HasValue) + txtMoveInTemperature.Text = electrode.MoveInTemperature.Value.ToString(); + txtBakeHead.Text = electrode.BakeHead; + } + } + else + { + } + + // 删除选中单元格的客户端脚本 + + } + } + #endregion + + + + + protected void txtInLibCode_OnTextChanged(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.txtInLibCode.Value)) + { + var regist = Funs.DB.HJGL_EMaterialRegist.Where(x => x.EMaterialRegistId == this.txtInLibCode.Value).FirstOrDefault(); + if (regist != null) + { + if (!string.IsNullOrEmpty(regist.SpecificationsModel)) + { + var items = regist.SpecificationsModel.Split(','); + List res = new List(); + + foreach (string item in items) + { + res.Add(new ListItem(item, item)); + } + + this.cbJOTSch.DataTextField = "Text"; + this.cbJOTSch.DataValueField = "Value"; + this.cbJOTSch.DataSource = res; + this.cbJOTSch.DataBind(); + } + this.drpWME_ID.SelectedValue = regist.WMT_ID; + this.dpUnit.SelectedValue = regist.Unit; + var records = Funs.DB.HJGL_EMInventoryRecords.Where(x => x.WMT_ID == regist.WMT_ID && x.UnitId == regist.Unit && x.ProjectId == regist.ProjectId).FirstOrDefault(); + if (records.MaterialCount.HasValue) + { + this.txtReElectrodeCount.Text = records.MaterialCount.Value.ToString("0.##"); + } + } + } + } + + /// + /// + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnSave)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return; + } + + Model.HJGL_ElectrodeBake newElectrodeBake = new Model.HJGL_ElectrodeBake(); + newElectrodeBake.CompileDate = DateTime.Now; + newElectrodeBake.CompileMan = this.CurrUser.UserId; + newElectrodeBake.UnitId = this.dpUnit.SelectedValue; + + if (this.dpSpecificationsModel.Values != null && this.dpSpecificationsModel.Values.Length > 0) + { + newElectrodeBake.Specifications = string.Join(",", this.dpSpecificationsModel.Values); + } + //newElectrodeBake.CardCode = txtCardCode.Text.Trim(); + newElectrodeBake.WMT_ID = this.drpWME_ID.SelectedValue; + + newElectrodeBake.BatchCode = txtBatchCode.Text.Trim(); + newElectrodeBake.InLibCode = txtInLibCode.Value; + //newElectrodeBake.Specifications = txtSpecifications.Text.Trim(); + newElectrodeBake.ElectrodeCount = Funs.GetNewDouble(txtElectrodeCount.Text.Trim()); + newElectrodeBake.OvenElectricHours = Funs.GetNewInt(tpOvenElectricTime.Text.Split(':')[0]); + newElectrodeBake.OvenElectricMinute = Funs.GetNewInt(tpOvenElectricTime.Text.Split(':')[1]); + newElectrodeBake.OvenElectricTemperature = Funs.GetNewInt(txtOvenElectricTemperature.Text.Trim()); + + newElectrodeBake.ConstantTemperature = Funs.GetNewInt(txtConstantTemperature.Text.Trim()); + newElectrodeBake.ConstantStartHours = Funs.GetNewInt(tpConstantStartTime.Text.Split(':')[0]); + newElectrodeBake.ConstantStartMinute = Funs.GetNewInt(tpConstantStartTime.Text.Split(':')[1]); + newElectrodeBake.ConstantEndHours = Funs.GetNewInt(tpConstantEndTime.Text.Split(':')[0]); + newElectrodeBake.ConstantEndMinute = Funs.GetNewInt(tpConstantEndTime.Text.Split(':')[1]); + newElectrodeBake.MoveInBoxHours = Funs.GetNewInt(tpMoveInBoxHours.Text.Split(':')[0]); + newElectrodeBake.MoveInBoxMinute = Funs.GetNewInt(tpMoveInBoxHours.Text.Split(':')[1]); + newElectrodeBake.MoveInTemperature = Funs.GetNewInt(txtMoveInTemperature.Text.Trim()); + newElectrodeBake.BakeHead = txtBakeHead.Text.Trim(); + newElectrodeBake.ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(ElectrodeID)) + { + newElectrodeBake.ElectrodeID = ElectrodeID; + var oldEelectrode = BLL.HJGL_ElectrodeBakeService.GetElecrodeBakeByElectrodeId(this.ElectrodeID); + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, oldEelectrode.UnitId, oldEelectrode.WMT_ID, "", "", decimal.Parse(oldEelectrode.ElectrodeCount.Value.ToString("0.##"))); + + BLL.HJGL_ElectrodeBakeService.UpdateElectrodeBake(newElectrodeBake); //修改焊丝烘烤记录 + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, newElectrodeBake.UnitId, newElectrodeBake.WMT_ID, "", "", -decimal.Parse(newElectrodeBake.ElectrodeCount.Value.ToString("0.##"))); + + // BLL.HJGL_ElectrodeBakeService.DeleteElectrodeBakeItem(this.ElectrodeID); + //BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改焊丝烘烤记录!"); + } + else + { + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, newElectrodeBake.UnitId, newElectrodeBake.WMT_ID, "", "", -decimal.Parse(newElectrodeBake.ElectrodeCount.Value.ToString("0.##"))); + + newElectrodeBake.ElectrodeID = SQLHelper.GetNewID(typeof(Model.HJGL_ElectrodeBake)); + BLL.HJGL_ElectrodeBakeService.AddElectrodeBake(newElectrodeBake); //添加焊丝烘烤记录主表信息 + + // BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "添加焊丝烘烤记录!"); + } + + + + // Alert.ShowInTop("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + + } + } + +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx.designer.cs new file mode 100644 index 0000000..91d2171 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeBakeRecordEditNew.aspx.designer.cs @@ -0,0 +1,260 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeBakeRecordEditNew + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// Style1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Style1; + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// btnSave1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave1; + + /// + /// txtBatchCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBatchCode; + + /// + /// txtInLibCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownBox txtInLibCode; + + /// + /// gvRegist 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvRegist; + + /// + /// drpWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWME_ID; + + /// + /// dpSpecificationsModel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownBox dpSpecificationsModel; + + /// + /// SimpleForm2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.SimpleForm SimpleForm2; + + /// + /// cbJOTSch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBoxList cbJOTSch; + + /// + /// dpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpUnit; + + /// + /// txtElectrodeCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtElectrodeCount; + + /// + /// txtReElectrodeCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtReElectrodeCount; + + /// + /// tpOvenElectricTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TimePicker tpOvenElectricTime; + + /// + /// txtOvenElectricTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricTemperature; + + /// + /// tpConstantStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TimePicker tpConstantStartTime; + + /// + /// tpConstantEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TimePicker tpConstantEndTime; + + /// + /// txtConstantTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantTemperature; + + /// + /// tpMoveInBoxHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TimePicker tpMoveInBoxHours; + + /// + /// txtMoveInTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInTemperature; + + /// + /// txtBakeHead 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBakeHead; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx new file mode 100644 index 0000000..0677653 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx @@ -0,0 +1,205 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeRecovery.aspx.cs" + Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeRecovery" %> + + + + + 焊条发放回收记录 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx.cs new file mode 100644 index 0000000..81867a2 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx.cs @@ -0,0 +1,440 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using BLL; +using System.IO; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeRecovery : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + // 表头过滤 + FilterDataRowItem = FilterDataRowItemImplement; + if (!IsPostBack) + { + //删除人脸识别保存的附件图片 + string strFolderPath = Funs.RootPath + "FileUpload"; + var lstFiles = new List(); + lstFiles = Directory.GetFiles(strFolderPath, "*.jpg").ToList(); + foreach (var lstFile in lstFiles) + { + if (File.Exists(lstFile)) + { + File.Delete(lstFile); + } + } + + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + else if (GetRequestEventArgument() == "reloadGrid") + { + this.BindGrid(); + } + } + #endregion + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + //string strSql = @"SELECT ElectrodeRecovery.ElectrodeRecoveryId,ElectrodeRecovery.ElectrodeRecoveryCode,ElectrodeRecovery.ElectrodeRecoveryDate,ElectrodeRecovery.CompileDate,CompileManUser.UserName AS CompileManName,Project.ProjectId,Project.ProjectName" + // + @" ,ElectrodeRecovery.AuditDate,AuditManUser.UserName AS AuditManName" + // + @" FROM HJGL_ElectrodeRecovery AS ElectrodeRecovery" + // + @" LEFT JOIN Sys_User AS CompileManUser ON ElectrodeRecovery.CompileMan=CompileManUser.UserId" + // + @" LEFT JOIN Sys_User AS AuditManUser ON ElectrodeRecovery.AuditMan=AuditManUser.UserId" + // + @" LEFT JOIN Base_Project AS Project ON ElectrodeRecovery.ProjectId=Project.ProjectId" + //+ @" WHERE ElectrodeRecovery.ProjectId= @ProjectId"; + string strSql = @"SELECT ElectrodeRecoveryId,ElectrodeRecoveryItemID,CompileDate,ElectrodeRecoveryCode,ElectrodeRecoveryDate,WelderCode,WED_Name,UnitName,ProjectName,WorkAreaName,CnProfession,Equipment" + + @",WMT_MatName,STE_Name,WMT_MatType,Specifications,RecipientsCount,AuditDate,RoleAuditManName,AuditManName,ProjectId,AuditMan" + + @" FROM dbo.HJGL_View_ElectrodeRecovery" + + @" WHERE Type=1 and RecipientsCount is not null and ProjectId= @ProjectId"; + + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtElectrodeRecoveryCode.Text.Trim())) + { + strSql += " AND ElectrodeRecoveryCode LIKE @ElectrodeRecoveryCode"; + listStr.Add(new SqlParameter("@ElectrodeRecoveryCode", "%" + this.txtElectrodeRecoveryCode.Text.Trim() + "%")); + } + + if (!string.IsNullOrEmpty(this.txtStartTime.Text)) + { + strSql += " AND ElectrodeRecoveryDate >= @ElectrodeRecoveryStartDate"; + listStr.Add(new SqlParameter("@ElectrodeRecoveryStartDate", Funs.GetNewDateTime(this.txtStartTime.Text.Trim()))); + } + + if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + { + strSql += " AND ElectrodeRecoveryDate < @ElectrodeRecoveryEndDate"; + listStr.Add(new SqlParameter("@ElectrodeRecoveryEndDate", Funs.GetNewDateTime(this.txtEndTime.Text.Trim()).Value.AddDays(1))); + } + + //if ((this.cbIsAudit.Items[0].Selected && !this.cbIsAudit.Items[1].Selected)) + //{ + // strSql += " AND (AuditDate IS NULL OR AuditMan IS NULL)"; + //} + //if ((this.cbIsAudit.Items[1].Selected && !this.cbIsAudit.Items[0].Selected)) + //{ + // strSql += " AND (AuditDate IS NOT NULL AND AuditMan IS NOT NULL)"; + //} + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 增加焊条发放回收记录 + /// + /// 增加焊条发放回收记录 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnAdd)) + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeRecoveryEdit.aspx?ElectrodeRecoveryId={0}", string.Empty, "新增 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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.HJGL_ElectrodeRecoveryMenuId, Const.BtnDelete)) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string ElectrodeRecoveryId = Grid1.DataKeys[rowIndex][0].ToString(); + Model.HJGL_ElectrodeRecovery electrodeRecovery = Funs.DB.HJGL_ElectrodeRecovery.First(e => e.ElectrodeRecoveryId == ElectrodeRecoveryId); + + BLL.HJGL_ElectrodeRecoveryService.DeleteElectrodeRecoveryItem(this.CurrUser.LoginProjectId, electrodeRecovery.UnitId, ElectrodeRecoveryId); + // BLL.HJGL_ElectrodeRecoveryService.DeleteElectrodeRecovery(ElectrodeRecoveryId); + Funs.DB.HJGL_ElectrodeRecovery.DeleteOnSubmit(electrodeRecovery); + Funs.DB.SubmitChanges(); + //BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除焊丝烘烤记录!"); + } + } + this.BindGrid(); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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() + { + var electr = BLL.HJGL_ElectrodeRecoveryService.GetElectrodeRecoveryByItemID(Grid1.SelectedRowID); + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnSave)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + + if (electr != null) + { + //if (electr.AuditDate.HasValue && !string.IsNullOrEmpty(electr.AuditMan)) + //{ + // PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeRecoveryView.aspx?ElectrodeRecoveryId={0}", Grid1.SelectedRowID, "查看 - "))); + + //} + //else + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeRecoveryEdit.aspx?ElectrodeRecoveryId={0}", electr.ElectrodeRecoveryId, "编辑 - "))); + } + } + } + else + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeRecoveryView.aspx?ElectrodeRecoveryId={0}", electr.ElectrodeRecoveryId, "查看 - "))); + } + } + #endregion + + #region 批量审核事件 + /// + /// 右键编辑事件通过 + /// + /// + /// + protected void btnBatch_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnSave)) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ElectrodeRecoveryBatch.aspx", "查看 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 分页 排序 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + this.BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + this.BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 过滤表头 + /// + /// 过滤表头 + /// + /// + /// + protected void Grid1_FilterChange(object sender, EventArgs e) + { + BindGrid(); + } + + /// + /// 根据表头信息过滤列表数据 + /// + /// + /// + /// + /// + /// + private bool FilterDataRowItemImplement(object sourceObj, string fillteredOperator, object fillteredObj, string column) + { + bool valid = false; + if (column == "WelderCode") + { + string sourceValue = sourceObj.ToString(); + string fillteredValue = fillteredObj.ToString(); + if (fillteredOperator == "equal" && sourceValue == fillteredValue) + { + valid = true; + } + else if (fillteredOperator == "contain" && sourceValue.Contains(fillteredValue)) + { + valid = true; + } + } + return valid; + } + #endregion + + #region Grid行点击事件 + /// + /// Grid行点击事件 + /// + /// + /// + protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) + { + string electrodeRecoveryId = Grid1.DataKeys[e.RowIndex][0].ToString(); + if (!string.IsNullOrEmpty(electrodeRecoveryId)) + { + if (e.CommandName == "print") + { + //ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + Model.HJGL_ElectrodeRecoveryItem electrodeRecoveryItem = BLL.HJGL_ElectrodeRecoveryService.GetElectrodeRecoveryItemByRecoveryID(electrodeRecoveryId)[0]; + Model.BS_Welder welder = BLL.WelderService.GetWelderByCode(this.CurrUser.LoginProjectId,electrodeRecoveryItem.WelderCode); + if (welder != null) + { + //var proccess = new RLSBProccess(); + //string fileName = proccess.GetImageByLabel(welder.IdentityCard); + //if (fileName == "未找到匹配的图片") + //{ + // fileName = string.Empty; + //} + //PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("WelderRecordPrint.aspx?electrodeRecoveryId={0}&fileName={1}&identityCard={2}", electrodeRecoveryId, fileName, welder.IdentityCard, "打印 - "))); + //PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("../../RLSB/WelderRecordPrint.aspx?electrodeRecoveryId={0}&fileName={1}&identityCard={2}&noAuto={3}", electrodeRecoveryId, fileName, welder.IdentityCard,"noAuto", "打印 - "))); + //PageContext.RegisterStartupScript(String.Format("WelderRecordPrint('"+electrodeRecoveryId+"','"+fileName+"','"+welder.IdentityCard+"','noAuto');")); + } + else + { + ShowNotify("焊工不存在!", MessageBoxIcon.Warning); + } + } + } + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.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; + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) + { + this.Grid1.PageSize = 10000; + BindGrid(); + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnID != "Print") + { + sb.AppendFormat("", column.HeaderText); + } + } + sb.Append(""); + foreach (GridRow row in grid.Rows) + { + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnID != "Print") + { + string html = row.Values[column.ColumnIndex].ToString(); + if (column.ColumnID == "tfNumber") + { + html = (row.FindControl("labNumber") 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/HJGL/RepairManage/ElectrodeRecovery.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx.designer.cs new file mode 100644 index 0000000..bd787ad --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecovery.aspx.designer.cs @@ -0,0 +1,260 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeRecovery + { + + /// + /// 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; + + /// + /// cbIsAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBoxList cbIsAudit; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnEdit; + + /// + /// btnBatch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnBatch; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtElectrodeRecoveryCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtElectrodeRecoveryCode; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// DropDowsnList1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDowsnList1; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// WindowEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowEdit; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Window4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window4; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx new file mode 100644 index 0000000..ad28fd3 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx @@ -0,0 +1,217 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeRecoveryBack.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeRecoveryBack" %> + + + + + 焊条发放回收记录 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx.cs new file mode 100644 index 0000000..24ab25f --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx.cs @@ -0,0 +1,440 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using BLL; +using System.IO; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeRecoveryBack : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + // 表头过滤 + FilterDataRowItem = FilterDataRowItemImplement; + if (!IsPostBack) + { + //删除人脸识别保存的附件图片 + string strFolderPath = Funs.RootPath + "FileUpload"; + var lstFiles = new List(); + lstFiles = Directory.GetFiles(strFolderPath, "*.jpg").ToList(); + foreach (var lstFile in lstFiles) + { + if (File.Exists(lstFile)) + { + File.Delete(lstFile); + } + } + + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + this.txtStartTime.Text = String.Format("{0:yyyy-MM-dd}", System.DateTime.Now.AddMonths(-1)); + this.txtEndTime.Text = String.Format("{0:yyyy-MM-dd}", System.DateTime.Now); + // 绑定表格 + this.BindGrid(); + } + else if (GetRequestEventArgument() == "reloadGrid") + { + this.BindGrid(); + } + } + #endregion + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + //string strSql = @"SELECT ElectrodeRecovery.ElectrodeRecoveryId,ElectrodeRecovery.ElectrodeRecoveryCode,ElectrodeRecovery.ElectrodeRecoveryDate,ElectrodeRecovery.CompileDate,CompileManUser.UserName AS CompileManName,Project.ProjectId,Project.ProjectName" + // + @" ,ElectrodeRecovery.AuditDate,AuditManUser.UserName AS AuditManName" + // + @" FROM HJGL_ElectrodeRecovery AS ElectrodeRecovery" + // + @" LEFT JOIN Sys_User AS CompileManUser ON ElectrodeRecovery.CompileMan=CompileManUser.UserId" + // + @" LEFT JOIN Sys_User AS AuditManUser ON ElectrodeRecovery.AuditMan=AuditManUser.UserId" + // + @" LEFT JOIN Base_Project AS Project ON ElectrodeRecovery.ProjectId=Project.ProjectId" + //+ @" WHERE ElectrodeRecovery.ProjectId= @ProjectId"; + string strSql = @"SELECT ElectrodeRecoveryId,ElectrodeRecoveryItemID,CompileDate,ElectrodeRecoveryCode,ElectrodeRecoveryDate,WelderCode,WED_Name,UnitName,ProjectName,InstallationName,CnProfession,Equipment" + + @",WMT_MatName,STE_Name,WMT_MatType,Specifications,RecipientsCount,RecoveryCount,AuditDate,RoleAuditManName,AuditManName,ProjectId,AuditMan" + + @" FROM dbo.HJGL_View_ElectrodeRecovery" + + @" WHERE RecoveryCount is not null and ProjectId= @ProjectId"; + + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtElectrodeRecoveryCode.Text.Trim())) + { + strSql += " AND ElectrodeRecoveryCode LIKE @ElectrodeRecoveryCode"; + listStr.Add(new SqlParameter("@ElectrodeRecoveryCode", "%" + this.txtElectrodeRecoveryCode.Text.Trim() + "%")); + } + + if (!string.IsNullOrEmpty(this.txtStartTime.Text)) + { + strSql += " AND ElectrodeRecoveryDate >= @ElectrodeRecoveryStartDate"; + listStr.Add(new SqlParameter("@ElectrodeRecoveryStartDate", Funs.GetNewDateTime(this.txtStartTime.Text.Trim()))); + } + + if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + { + strSql += " AND ElectrodeRecoveryDate < @ElectrodeRecoveryEndDate"; + listStr.Add(new SqlParameter("@ElectrodeRecoveryEndDate", Funs.GetNewDateTime(this.txtEndTime.Text.Trim()).Value.AddDays(1))); + } + + //if ((this.cbIsAudit.Items[0].Selected && !this.cbIsAudit.Items[1].Selected)) + //{ + // strSql += " AND (AuditDate IS NULL OR AuditMan IS NULL)"; + //} + //if ((this.cbIsAudit.Items[1].Selected && !this.cbIsAudit.Items[0].Selected)) + //{ + // strSql += " AND (AuditDate IS NOT NULL AND AuditMan IS NOT NULL)"; + //} + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 增加焊条发放回收记录 + /// + /// 增加焊条发放回收记录 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnAdd)) + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeRecoveryEditBack.aspx?ElectrodeRecoveryId={0}", string.Empty, "新增 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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.HJGL_ElectrodeRecoveryMenuId, Const.BtnDelete)) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string ElectrodeRecoveryId = Grid1.DataKeys[rowIndex][0].ToString(); + Model.SGGLDB db = Funs.DB; + Model.HJGL_ElectrodeRecovery electrodeRecovery = db.HJGL_ElectrodeRecovery.First(e => e.ElectrodeRecoveryId == ElectrodeRecoveryId); + BLL.HJGL_ElectrodeRecoveryService.DeleteElectrodeRecoveryItem(this.CurrUser.LoginProjectId, electrodeRecovery.UnitId, ElectrodeRecoveryId); + db.HJGL_ElectrodeRecovery.DeleteOnSubmit(electrodeRecovery); + db.SubmitChanges(); + //BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除焊丝烘烤记录!"); + } + } + this.BindGrid(); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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 (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnSave)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + var electr = BLL.HJGL_ElectrodeRecoveryService.GetElectrodeRecoveryByID(Grid1.SelectedRowID); + if (electr != null) + { + //if (electr.AuditDate.HasValue && !string.IsNullOrEmpty(electr.AuditMan)) + //{ + // PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeRecoveryView.aspx?ElectrodeRecoveryId={0}", Grid1.SelectedRowID, "查看 - "))); + + //} + //else + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeRecoveryEditBack.aspx?ElectrodeRecoveryId={0}", Grid1.SelectedRowID, "编辑 - "))); + } + } + } + else + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeRecoveryView.aspx?ElectrodeRecoveryId={0}", Grid1.SelectedRowID, "查看 - "))); + } + } + #endregion + + #region 批量审核事件 + /// + /// 右键编辑事件通过 + /// + /// + /// + protected void btnBatch_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryBackMenuId, Const.BtnSave)) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ElectrodeRecoveryBatch.aspx", "查看 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 分页 排序 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + this.BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + this.BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 过滤表头 + /// + /// 过滤表头 + /// + /// + /// + protected void Grid1_FilterChange(object sender, EventArgs e) + { + BindGrid(); + } + + /// + /// 根据表头信息过滤列表数据 + /// + /// + /// + /// + /// + /// + private bool FilterDataRowItemImplement(object sourceObj, string fillteredOperator, object fillteredObj, string column) + { + bool valid = false; + if (column == "WelderCode") + { + string sourceValue = sourceObj.ToString(); + string fillteredValue = fillteredObj.ToString(); + if (fillteredOperator == "equal" && sourceValue == fillteredValue) + { + valid = true; + } + else if (fillteredOperator == "contain" && sourceValue.Contains(fillteredValue)) + { + valid = true; + } + } + return valid; + } + #endregion + + #region Grid行点击事件 + /// + /// Grid行点击事件 + /// + /// + /// + protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) + { + string electrodeRecoveryId = Grid1.DataKeys[e.RowIndex][0].ToString(); + if (!string.IsNullOrEmpty(electrodeRecoveryId)) + { + if (e.CommandName == "print") + { + //ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + Model.HJGL_ElectrodeRecoveryItem electrodeRecoveryItem = BLL.HJGL_ElectrodeRecoveryService.GetElectrodeRecoveryItemByRecoveryID(electrodeRecoveryId)[0]; + Model.BS_Welder welder = BLL.WelderService.GetWelderByCode(this.CurrUser.LoginProjectId,electrodeRecoveryItem.WelderCode); + if (welder != null) + { + //var proccess = new RLSBProccess(); + //string fileName = proccess.GetImageByLabel(welder.IdentityCard); + //if (fileName == "未找到匹配的图片") + //{ + // fileName = string.Empty; + //} + //PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("WelderRecordPrint.aspx?electrodeRecoveryId={0}&fileName={1}&identityCard={2}", electrodeRecoveryId, fileName, welder.IdentityCard, "打印 - "))); + //PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("../../RLSB/WelderRecordPrint.aspx?electrodeRecoveryId={0}&fileName={1}&identityCard={2}&noAuto={3}", electrodeRecoveryId, fileName, welder.IdentityCard,"noAuto", "打印 - "))); + //PageContext.RegisterStartupScript(String.Format("WelderRecordPrint('"+electrodeRecoveryId+"','"+fileName+"','"+welder.IdentityCard+"','noAuto');")); + } + else + { + ShowNotify("焊工不存在!", MessageBoxIcon.Warning); + } + } + } + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.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; + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) + { + this.Grid1.PageSize = 10000; + BindGrid(); + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnID != "Print") + { + sb.AppendFormat("", column.HeaderText); + } + } + sb.Append(""); + foreach (GridRow row in grid.Rows) + { + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnID != "Print") + { + string html = row.Values[column.ColumnIndex].ToString(); + if (column.ColumnID == "tfNumber") + { + html = (row.FindControl("labNumber") 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/HJGL/RepairManage/ElectrodeRecoveryBack.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx.designer.cs new file mode 100644 index 0000000..e7ad054 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBack.aspx.designer.cs @@ -0,0 +1,260 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeRecoveryBack + { + + /// + /// 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; + + /// + /// cbIsAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBoxList cbIsAudit; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnEdit; + + /// + /// btnBatch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnBatch; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtElectrodeRecoveryCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtElectrodeRecoveryCode; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// DropDowsnList1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDowsnList1; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// WindowEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowEdit; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Window4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window4; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx new file mode 100644 index 0000000..e54e68c --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx @@ -0,0 +1,37 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeRecoveryBatch.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeRecoveryBatch" %> + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx.cs new file mode 100644 index 0000000..001667a --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx.cs @@ -0,0 +1,49 @@ +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.HJGL.MaterialManage +{ + public partial class ElectrodeRecoveryBatch : PageBase + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + btnClose.OnClientClick = ActiveWindow.GetHideReference(); + } + } + + /// + /// 批量审核 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.txtCode.Text.Trim())) + { + DateTime date1 = DateTime.Now.Date; + DateTime date2 = date1.AddDays(1); + var electrodeRecoverys = from x in Funs.DB.HJGL_ElectrodeRecovery where x.ProjectId == this.CurrUser.LoginProjectId && x.CompileDate > date1 && x.CompileDate < date2 select x; + string[] strs = this.txtCode.Text.Trim().Split(','); + foreach (var str in strs) + { + Model.HJGL_ElectrodeRecovery electrodeRecovery = electrodeRecoverys.FirstOrDefault(x => x.ElectrodeRecoveryCode == str); + if (electrodeRecovery != null) + { + electrodeRecovery.AuditMan = this.CurrUser.UserId; + electrodeRecovery.AuditDate = System.DateTime.Now; + Funs.DB.SubmitChanges(); + } + } + Alert.ShowInTop("批量审核成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx.designer.cs new file mode 100644 index 0000000..59a5172 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryBatch.aspx.designer.cs @@ -0,0 +1,80 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeRecoveryBatch + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtCode; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx new file mode 100644 index 0000000..bd2c95e --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx @@ -0,0 +1,237 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeRecoveryEdit.aspx.cs" + Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeRecoveryEdit" %> + + + + + 焊条发放记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --%> + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx.cs new file mode 100644 index 0000000..4d72ec5 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx.cs @@ -0,0 +1,539 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeRecoveryEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string ElectrodeRecoveryId + { + get + { + return (string)ViewState["ElectrodeRecoveryId"]; + } + set + { + ViewState["ElectrodeRecoveryId"] = value; + } + } + private bool AppendToEnd = false; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + var list = (from x in Funs.DB.Base_WeldingMethod + orderby x.WeldingMethodCode + select x).ToList(); + ddlWME_ID.DataValueField = "WeldingMethodName"; + ddlWME_ID.DataTextField = "WeldingMethodName"; + ddlWME_ID.DataSource = list; + ddlWME_ID.DataBind(); + Funs.FineUIPleaseSelect(ddlWME_ID); + this.ElectrodeRecoveryId = Request.Params["ElectrodeRecoveryId"]; + ///编制人 + //this.drpCompileMan.DataTextField = "UserName"; + //this.drpCompileMan.DataValueField = "UserId"; + //this.drpCompileMan.DataSource = BLL.UserService.GetProjectUserListByProjectId(this.CurrUser.LoginProjectId); + //this.drpCompileMan.DataBind(); + //Funs.FineUIPleaseSelect(this.drpCompileMan); + this.dpBake.DataTextField = "BatchCode"; + this.dpBake.DataValueField = "ElectrodeID"; + this.dpBake.DataSource = Funs.DB.HJGL_ElectrodeBake.OrderByDescending(x=>x.CompileDate); + this.dpBake.DataBind(); + Funs.FineUIPleaseSelect(dpBake); + + var units = UnitService.GetUnitByProjectIdUnitTypeList(this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2); + + this.dpUnit.DataTextField = "UnitName"; + this.dpUnit.DataValueField = "UnitId"; + this.dpUnit.DataSource = units; + this.dpUnit.DataBind(); + Funs.FineUIPleaseSelect(dpUnit); + + if (!string.IsNullOrEmpty(this.ElectrodeRecoveryId)) + { + var electrode = BLL.HJGL_ElectrodeRecoveryService.GetElectrodeRecoveryByID(this.ElectrodeRecoveryId); + if (electrode != null) + { + this.txtEletrodeCode.Text = electrode.ElectrodeRecoveryCode; + this.txtElectrodeRecoveryDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", electrode.ElectrodeRecoveryDate); + //this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", electrode.CompileDate); + //this.drpCompileMan.SelectedValue = electrode.CompileMan; + + if (!string.IsNullOrEmpty(electrode.UnitId)) + { + this.dpUnit.SelectedValue = electrode.UnitId; + this.dpWelderCode.DataTextField = "WED_Code"; + this.dpWelderCode.DataValueField = "WED_Code"; + var welderList = Funs.DB.BS_Welder.Where(x => x.WED_Unit == this.dpUnit.SelectedValue).ToList(); + dpWelderCode.DataSource = welderList; + dpWelderCode.DataBind(); + this.drpWorkArea.DataTextField = "WorkAreaName"; + this.drpWorkArea.DataValueField = "WorkAreaName"; + this.drpWorkArea.DataSource = Funs.DB.ProjectData_WorkArea.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == this.dpUnit.SelectedValue).ToList(); + this.drpWorkArea.DataBind(); + + } + + if (!string.IsNullOrEmpty(electrode.BakeId)) + { + this.dpBake.SelectedValue = electrode.BakeId; + + var bake = Funs.DB.HJGL_ElectrodeBake.FirstOrDefault(x => x.ElectrodeID == electrode.BakeId); + if (bake != null) + { + var consumables = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesId == bake.WMT_ID); + if (consumables != null) + { + this.drpWME_ID.Items.Clear(); + drpWME_ID.DataBind(); + ListItem[] listItem = new ListItem[1]; + listItem[0] = new ListItem(consumables.ConsumablesCode, consumables.ConsumablesCode); + this.drpWME_ID.DataTextField = "Text"; + this.drpWME_ID.DataValueField = "Value"; + drpWME_ID.DataSource = listItem; + drpWME_ID.DataBind(); + drpWME_ID.SelectedValue = consumables.ConsumablesCode; + } + } + } + + } + } + else + { + this.txtElectrodeRecoveryDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", System.DateTime.Now); + //this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", System.DateTime.Now); + // this.drpCompileMan.SelectedValue = this.CurrUser.UserId; + //this.txtEletrodeCode.Text = BLL.SQLHelper.RunProcNewId("Sp_GetNewCode3ByProjectIdAndDate", "HJGL_ElectrodeRecovery", "ElectrodeRecoveryCode", "CompileDate", this.CurrUser.LoginProjectId, System.DateTime.Now.ToString("yyyy-MM-dd"), System.DateTime.Now.AddDays(1).ToString("yyyy-MM-dd")); + } + + ///焊条 + //this.drpWME_ID.DataTextField = "WMT_MatName"; + //this.drpWME_ID.DataValueField = "WMT_MatName"; + //this.drpWME_ID.DataSource = BLL.HJGL_ConsumablesService.GetMaterialList("2"); + //this.drpWME_ID.DataBind(); + + //单元编号/专业名称 + //this.drpCnProfession.DataTextField = "Text"; + //this.drpCnProfession.DataValueField = "Text"; + //this.drpCnProfession.DataSource = BLL.DropListService.HJGL_CnProfession(); + //this.drpCnProfession.DataBind(); + //Funs.FineUIPleaseSelect(this.drpCnProfession); + //使用钢结构、设备代号、管道号 + this.drpEquipment.DataTextField = "Text"; + this.drpEquipment.DataValueField = "Text"; + this.drpEquipment.DataSource = BLL.DropListService.HJGL_Equipment(); + this.drpEquipment.DataBind(); + //Funs.FineUIPleaseSelect(this.drpEquipment); + + // 删除选中单元格的客户端脚本 + string deleteScript = GetDeleteScript(); + // 新增数据初始值 + JObject defaultObj = new JObject(); + defaultObj.Add("WelderCode", ""); + defaultObj.Add("WorkAreaName", ""); + defaultObj.Add("CnProfession", ""); + defaultObj.Add("Equipment", ""); + defaultObj.Add("WMT_MatName", ""); + //defaultObj.Add("WMT_MatName", ""); + //defaultObj.Add("ElectrodeRecoveryModel", ""); + //defaultObj.Add("ElectrodeGrade", ""); + //defaultObj.Add("BatchNumber", ""); + //defaultObj.Add("InLibCode", ""); + //defaultObj.Add("Specifications", ""); + + //defaultObj.Add("WelderCode", ""); + //defaultObj.Add("UseSite", ""); + //defaultObj.Add("WeldingMaterial", ""); + defaultObj.Add("RecipientsCount", "0"); + //defaultObj.Add("RecoveryCount", "0.0"); + //defaultObj.Add("GrantMan", this.CurrUser.UserName); + defaultObj.Add("Delete", String.Format("", deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete))); + // 在第一行新增一条数据 + btnNew.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, AppendToEnd); + // 删除选中行按钮 + btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!") + deleteScript; + // 绑定表格 + this.BindGrid(); + } + } + #endregion + protected void dpBake_OnSelectedIndexChanged(object sender, EventArgs e) + { + var bake = Funs.DB.HJGL_ElectrodeBake.FirstOrDefault(x => x.ElectrodeID == dpBake.SelectedValue); + if (bake != null) + { + + var consumables = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesId == bake.WMT_ID); + if (consumables != null) + { + this.drpWME_ID.Items.Clear(); + drpWME_ID.DataBind(); + ListItem[] listItem = new ListItem[1]; + listItem[0] = new ListItem(consumables.ConsumablesCode, consumables.ConsumablesCode); + this.drpWME_ID.DataTextField = "Text"; + this.drpWME_ID.DataValueField = "Value"; + drpWME_ID.DataSource = listItem; + drpWME_ID.DataBind(); + drpWME_ID.SelectedValue = consumables.ConsumablesCode; + } + } + } + + protected void dpUnit_OnSelectedIndexChanged(object sender, EventArgs e) + { + string perfix = string.Empty; + var unit = UnitService.GetUnitByUnitId(this.dpUnit.SelectedValue); + perfix = unit.UnitCode + "-FF-"; + this.txtEletrodeCode.Text = BLL.SQLHelper.RunProcNewId("SpGetNewCode5ByProjectId", "dbo.HJGL_ElectrodeRecovery", "ElectrodeRecoveryCode", this.CurrUser.LoginProjectId, perfix); + + this.dpWelderCode.DataTextField = "WED_Code"; + this.dpWelderCode.DataValueField = "WED_Code"; + var welderList = Funs.DB.BS_Welder.Where(x =>x.WED_Unit == this.dpUnit.SelectedValue).ToList(); + dpWelderCode.DataSource = welderList; + dpWelderCode.DataBind(); + this.drpWorkArea.DataTextField = "WorkAreaName"; + this.drpWorkArea.DataValueField = "WorkAreaName"; + this.drpWorkArea.DataSource= Funs.DB.ProjectData_WorkArea.Where(x=>x.ProjectId==this.CurrUser.LoginProjectId&&x.UnitId==this.dpUnit.SelectedValue ).ToList(); + this.drpWorkArea.DataBind(); + + } + /// + /// 焊工号的输入框事件 + /// + /// drpInstallation + /// + protected void Text_TextChanged(object sender, EventArgs e) + { + + var w = Funs.DB.BS_Welder.FirstOrDefault(x => x.WED_Code == this.dpUnit.SelectedValue); + if (w != null) + { + //if (!string.IsNullOrEmpty(w.WED_Unit)) + //{ + // var unit = BLL.Base_UnitService.GetUnit(w.WED_Unit); + // if (unit != null) + // { + // this.txtUnitName.Text = unit.UnitName; + // } + //} + //this.drpInstallation.DataTextField = "Text"; + //this.drpInstallation.DataValueField = "Text"; + //this.drpInstallation.DataSource = BLL.Project_InstallationService.GetInstallationList(w.ProjectId, w.WED_Unit); + //this.drpInstallation.DataBind(); + + /////焊条 + //this.drpWME_ID.DataTextField = "ConsumablesName"; + //this.drpWME_ID.DataValueField = "ConsumablesName"; + //var totalWeldMaterials = from x in Funs.DB.Base_Consumables select x; + //List welderQualifiedProjects = (from x in Funs.DB.BS_WelderQualifiedProject + // where x.WED_ID == w.WED_ID && x.LimitDate > DateTime.Now + // select x).ToList(); + List weldMaterials = new List(); + // if (welderQualifiedProjects.Count > 0) + //{ + // foreach (var welderQualifiedProject in welderQualifiedProjects) + // { + // if (welderQualifiedProject.QualifiedProjectCode.Contains("FeⅠ")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "1")); //碳钢 + // } + // else if (welderQualifiedProject.QualifiedProjectCode.Contains("FeⅡ")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "1" || x.SteelType == "4")); //碳钢、低合金钢 + // } + // else if (welderQualifiedProject.QualifiedProjectCode.Contains("FeⅢ")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "1" || x.SteelType == "3" || x.SteelType == "4")); //碳钢、铬钼钢、低合金钢 + // } + // else if (welderQualifiedProject.QualifiedProjectCode.Contains("FeⅣ")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "2")); //不锈钢 + // } + // else if (welderQualifiedProject.QualifiedProjectCode.Contains("Ni")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "5")); //镍合金钢 + // } + // else if (welderQualifiedProject.QualifiedProjectCode.Contains("Ti")) + // { + // weldMaterials.AddRange(totalWeldMaterials.Where(x => x.SteelType == "6")); //钛合金钢 + // } + // } + //} + //this.drpWME_ID.DataSource = totalWeldMaterials; + + //this.drpWME_ID.DataBind(); + } + + } + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + string strSql = @"SELECT Item.ElectrodeRecoveryItemID" + + @" ,Item.ElectrodeRecoveryId" + + @" ,Item.ElectrodeGrade" + + @" ,Item.BatchNumber" + + @" ,Item.InLibCode" + + @" ,Item.Specifications" + + @" ,Item.WelderCode" + + @" ,Item.UseSite" + + @" ,Item.WeldingMaterial" + + @" ,Item.RecipientsCount" + + @" ,Item.RecoveryCount" + + @" ,Item.GrantMan" + + @" ,Item.ElectrodeRecoveryModel" + + @" ,Item.WMT_ID" + + @" ,Item.InstallationId" + + @" ,(CASE Item.CnProfession WHEN '1' THEN '管道安装工程' WHEN '2' THEN '钢结构安装工程' WHEN '3' THEN '仪表安装工程' END) AS CnProfession" + + @" ,(CASE Item.Equipment WHEN '1' THEN '管道' WHEN '2' THEN '结构' WHEN '3' THEN '设备' END) AS Equipment" + + @" ,WorkArea.WorkAreaName" + + @",WeldMaterial.ConsumablesName as WMT_MatName" + + @",method.WeldingMethodName as WMT_MethodName" + + @",Welder.WED_Name AS WelderName" + + @" FROM HJGL_ElectrodeRecoveryItem AS Item" + + @" LEFT JOIN ProjectData_WorkArea AS WorkArea ON WorkArea.WorkAreaId = Item.InstallationId" + + @" LEFT JOIN Base_Consumables AS WeldMaterial ON WeldMaterial.ConsumablesId = Item.WMT_ID " + + @" LEFT JOIN BS_Welder AS Welder ON Welder.WED_Code = Item.WelderCode" + + @" LEFT JOIN Base_WeldingMethod AS method ON method.WeldingMethodId = Item.WME_ID" + + @" WHERE ElectrodeRecoveryId=@ElectrodeRecoveryId"; + SqlParameter[] parameter = new SqlParameter[] + { + new SqlParameter("@ElectrodeRecoveryId",this.ElectrodeRecoveryId), + }; + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.DataSource = tb; + Grid1.DataBind(); + } + #endregion + + /// + /// Grid1加载前事件 + /// + /// + /// + protected void Grid1_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid1.FindColumn("Delete") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScript(); + } + + /// + /// 删除提示 + /// + /// + private string GetDeleteScript() + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnDelete)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return null; + } + else + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + } + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 保存、审核 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnSave)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return; + } + + this.SavaData(BLL.Const.BtnSave); + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + /// + /// 审核按钮 + /// + /// + /// + protected void btnAudit_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeRecoveryMenuId, Const.BtnAuditing)) + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Information); + return; + } + this.SavaData(BLL.Const.BtnAuditing); + ShowNotify("审核成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + } + + /// + /// 保存数据 + /// + /// + private void SavaData(string type) + { + Model.HJGL_ElectrodeRecovery newElectrodeRecovery = new Model.HJGL_ElectrodeRecovery(); + newElectrodeRecovery.ElectrodeRecoveryCode = this.txtEletrodeCode.Text.Trim(); + newElectrodeRecovery.ElectrodeRecoveryDate = Funs.GetNewDateTime(this.txtElectrodeRecoveryDate.Text).Value; + newElectrodeRecovery.AuditDate = DateTime.Now; + newElectrodeRecovery.AuditMan = this.CurrUser.UserId; + newElectrodeRecovery.UnitId = this.dpUnit.SelectedValue; + newElectrodeRecovery.CompileMan = this.CurrUser.UserId; + newElectrodeRecovery.Type = "1"; + if (this.dpBake.SelectedValue != Const._Null) + { + newElectrodeRecovery.BakeId = this.dpBake.SelectedValue; + } + //if (this.drpCompileMan.SelectedValue != BLL.Const._Null) + //{ + // newElectrodeRecovery.CompileMan = this.drpCompileMan.SelectedValue; + //} + newElectrodeRecovery.CompileDate = DateTime.Now;// Funs.GetNewDateTime(this.txtCompileDate.Text); + newElectrodeRecovery.ProjectId = this.CurrUser.LoginProjectId; + if (type == BLL.Const.BtnAuditing) + { + newElectrodeRecovery.AuditMan = this.CurrUser.UserId; + newElectrodeRecovery.AuditDate = System.DateTime.Now; + } + if (!string.IsNullOrEmpty(ElectrodeRecoveryId)) + { + newElectrodeRecovery.ElectrodeRecoveryId = ElectrodeRecoveryId; + BLL.HJGL_ElectrodeRecoveryService.UpdateElectrodeRecovery(newElectrodeRecovery); //修改焊丝烘烤记录 + BLL.HJGL_ElectrodeRecoveryService.DeleteElectrodeRecoveryItem(this.CurrUser.LoginProjectId,newElectrodeRecovery.UnitId, this.ElectrodeRecoveryId); + // BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改焊条发放回收记录!"); + } + else + { + newElectrodeRecovery.ElectrodeRecoveryId = SQLHelper.GetNewID(typeof(Model.HJGL_ElectrodeRecovery)); + BLL.HJGL_ElectrodeRecoveryService.AddElectrodeRecovery(newElectrodeRecovery); //添加焊丝烘烤记录主表信息 + // BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "添加焊条发放回收记录!"); + } + + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + Model.HJGL_ElectrodeRecoveryItem newElectrodeRecoveryItem = new Model.HJGL_ElectrodeRecoveryItem(); + newElectrodeRecoveryItem.ElectrodeRecoveryItemID = SQLHelper.GetNewID(typeof(Model.HJGL_ElectrodeRecoveryItem)); + newElectrodeRecoveryItem.ElectrodeRecoveryId = newElectrodeRecovery.ElectrodeRecoveryId; + newElectrodeRecoveryItem.WelderCode = values.Value("WelderCode"); + var workArea = Funs.DB.ProjectData_WorkArea.FirstOrDefault(x => x.WorkAreaName == values.Value("WorkAreaName") && x.ProjectId == this.CurrUser.LoginProjectId); + if (workArea != null) + { + workArea.InstallationId = workArea.WorkAreaId; + } + //if (values.Value("CnProfession") == "管道安装工程") + //{ + // newElectrodeRecoveryItem.CnProfession = "1"; + //} + //else if (values.Value("CnProfession") == "钢结构安装工程") + //{ + // newElectrodeRecoveryItem.CnProfession = "2"; + //} + //else if (values.Value("CnProfession") == "仪表安装工程") + //{ + // newElectrodeRecoveryItem.CnProfession = "3"; + //} + if (values.Value("Equipment") == "管道") + { + newElectrodeRecoveryItem.Equipment = "1"; + } + else if (values.Value("Equipment") == "结构") + { + newElectrodeRecoveryItem.Equipment = "2"; + } + else if (values.Value("Equipment") == "设备") + { + newElectrodeRecoveryItem.Equipment = "3"; + } + var mat = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesCode == values.Value("WMT_MatName")); + if (mat != null) + { + newElectrodeRecoveryItem.WMT_ID = mat.ConsumablesId; + } + newElectrodeRecoveryItem.RecipientsCount = Funs.GetNewIntOrZero(values.Value("RecipientsCount")); + var workarea = Funs.DB.ProjectData_WorkArea.FirstOrDefault(x => x.WorkAreaName == values.Value("WorkAreaName") && x.ProjectId==CurrUser.LoginProjectId); + if (workarea != null) + { + newElectrodeRecoveryItem.InstallationId = workarea.WorkAreaId; + } + var method = Funs.DB.Base_WeldingMethod.FirstOrDefault(x => x.WeldingMethodName == values.Value("WMT_MethodName")); + if (method != null) + { + newElectrodeRecoveryItem.WME_ID = method.WeldingMethodId; + } + + //newElectrodeRecoveryItem.ElectrodeRecoveryModel = values.Value("ElectrodeRecoveryModel"); + //newElectrodeRecoveryItem.ElectrodeGrade = values.Value("ElectrodeGrade"); + //newElectrodeRecoveryItem.BatchNumber = values.Value("BatchNumber"); + //newElectrodeRecoveryItem.InLibCode = values.Value("InLibCode"); + //newElectrodeRecoveryItem.Specifications = values.Value("Specifications"); + //newElectrodeRecoveryItem.WelderCode = values.Value("WelderCode"); + //newElectrodeRecoveryItem.UseSite = values.Value("UseSite"); + //newElectrodeRecoveryItem.WeldingMaterial = values.Value("WeldingMaterial"); + //newElectrodeRecoveryItem.RecipientsCount = Funs.GetNewIntOrZero(values.Value("RecipientsCount")); + //newElectrodeRecoveryItem.RecoveryCount = Funs.GetNewDecimalOrZero(values.Value("RecoveryCount")); + //newElectrodeRecoveryItem.GrantMan = values.Value("GrantMan"); + //newElectrodeRecoveryItem.GrantMan = this.CurrUser.UserId; + + BLL.HJGL_ElectrodeRecoveryService.AddElectrodeRecoveryItem(newElectrodeRecoveryItem); + + if (!string.IsNullOrEmpty(newElectrodeRecoveryItem.WMT_ID) && type == BLL.Const.BtnAuditing) + { + decimal count = 0; + if (newElectrodeRecoveryItem.RecipientsCount.HasValue) + { + count = count - newElectrodeRecoveryItem.RecipientsCount.Value; + } + + if (newElectrodeRecoveryItem.RecoveryCount.HasValue) + { + count = count + newElectrodeRecoveryItem.RecoveryCount.Value; + } + + BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, newElectrodeRecovery.UnitId,newElectrodeRecoveryItem.WMT_ID, newElectrodeRecoveryItem.ElectrodeRecoveryModel, newElectrodeRecoveryItem.Specifications, count); + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx.designer.cs new file mode 100644 index 0000000..c42b504 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryEdit.aspx.designer.cs @@ -0,0 +1,242 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeRecoveryEdit + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// Style1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Style1; + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// dpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpUnit; + + /// + /// txtEletrodeCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtEletrodeCode; + + /// + /// txtElectrodeRecoveryDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtElectrodeRecoveryDate; + + /// + /// dpBake 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpBake; + + /// + /// drpCompileMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpCompileMan; + + /// + /// txtCompileDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCompileDate; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar5; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// dpWelderCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpWelderCode; + + /// + /// drpWorkArea 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWorkArea; + + /// + /// drpEquipment 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpEquipment; + + /// + /// drpWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWME_ID; + + /// + /// ddlWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlWME_ID; + + /// + /// txtRecipientsCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtRecipientsCount; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx new file mode 100644 index 0000000..a15e3d9 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx @@ -0,0 +1,155 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeRecoveryView.aspx.cs" + Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeRecoveryView" %> + + + + + 焊条发放回收记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + + + + + + + + + + + + + + + + --%> + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx.cs new file mode 100644 index 0000000..db0feec --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx.cs @@ -0,0 +1,140 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeRecoveryView : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string ElectrodeRecoveryId + { + get + { + return (string)ViewState["ElectrodeRecoveryId"]; + } + set + { + ViewState["ElectrodeRecoveryId"] = value; + } + } + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ElectrodeRecoveryId = Request.Params["ElectrodeRecoveryId"]; + ///编制人 + + if (!string.IsNullOrEmpty(this.ElectrodeRecoveryId)) + { + var electrode = BLL.HJGL_ElectrodeRecoveryService.GetElectrodeRecoveryByID(this.ElectrodeRecoveryId); + if (electrode != null) + { + var project = BLL.ProjectService.GetProjectByProjectId(electrode.ProjectId); + if (project != null) + { + this.lblProjectName.Text = project.ProjectName; + } + + this.lbEletrodeCode.Text = electrode.ElectrodeRecoveryCode; + this.lbElectrodeRecoveryDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", electrode.ElectrodeRecoveryDate); + this.lbCompileDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", electrode.CompileDate); + this.lbCompileMan.Text = BLL.UserService.GetUserNameByUserId(electrode.CompileMan); + this.lbAuditDate.Text = string.Format("{0:yyyy-MM-dd hh:mm:ss}", electrode.AuditDate); + this.lbAuditMan.Text = BLL.UserService.GetUserNameByUserId(electrode.AuditMan); + } + } + + // 绑定表格 + this.BindGrid(); + } + } + + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + //string strSql = @"SELECT ElectrodeRecoveryItemID,ElectrodeRecoveryId,ElectrodeGrade,BatchNumber,InLibCode,Specifications" + // + @" ,WelderCode,UseSite,WeldingMaterial,ISNULL(RecipientsCount,0) AS RecipientsCount,ISNULL(RecoveryCount,0) AS RecoveryCount,GrantMan,ElectrodeRecoveryModel,Item.WMT_ID,WeldMaterial.WMT_MatName" + // + @" FROM HJGL_ElectrodeRecoveryItem AS Item" + // + @" LEFT JOIN HJGL_BS_WeldMaterial AS WeldMaterial ON Item.WMT_ID = WeldMaterial.WMT_ID" + // + @" WHERE ElectrodeRecoveryId=@ElectrodeRecoveryId"; + string strSql = @"SELECT Item.ElectrodeRecoveryItemID" + + @" ,Item.ElectrodeRecoveryId" + + @" ,Item.ElectrodeGrade" + + @" ,Item.BatchNumber" + + @" ,Item.InLibCode" + + @" ,Item.Specifications" + + @" ,Item.WelderCode" + + @" ,Item.UseSite" + + @" ,Item.WeldingMaterial" + + @" ,Item.RecipientsCount" + + @" ,Item.RecoveryCount" + + @" ,Item.GrantMan" + + @" ,Item.ElectrodeRecoveryModel" + + @" ,Item.WMT_ID" + + @" ,Item.InstallationId" + + @" ,(CASE Item.CnProfession WHEN '1' THEN '管道安装工程' WHEN '2' THEN '钢结构安装工程' WHEN '3' THEN '仪表安装工程' END) AS CnProfession" + + @" ,(CASE Item.Equipment WHEN '1' THEN '管道' WHEN '2' THEN '钢结构' WHEN '3' THEN '仪表' END) AS Equipment" + + @" ,Installation.InstallationName" + + @",WeldMaterial.WMT_MatName" + + @" FROM HJGL_ElectrodeRecoveryItem AS Item" + + @" LEFT JOIN Project_Installation AS Installation ON Installation.InstallationId = Item.InstallationId" + + @" LEFT JOIN HJGL_BS_WeldMaterial AS WeldMaterial ON WeldMaterial.WMT_ID = Item.WMT_ID " + + @" WHERE ElectrodeRecoveryId=@ElectrodeRecoveryId"; + SqlParameter[] parameter = new SqlParameter[] + { + new SqlParameter("@ElectrodeRecoveryId",this.ElectrodeRecoveryId), + }; + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.DataSource = tb; + Grid1.DataBind(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + /// + /// 打印 + /// + /// + /// + protected void btnPrint_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.ElectrodeRecoveryId)) + { + string reportId = BLL.Const.HJGL_ElectrodeRecoveryReportId; //13表示焊条发放回收纪录 + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId={3}", reportId, this.ElectrodeRecoveryId, string.Empty, this.CurrUser.LoginProjectId, "打印 - "))); + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx.designer.cs new file mode 100644 index 0000000..20eeb70 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeRecoveryView.aspx.designer.cs @@ -0,0 +1,197 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeRecoveryView + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// Style1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Style1; + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPrint; + + /// + /// lbName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbName; + + /// + /// lblProjectName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblProjectName; + + /// + /// lbEletrodeCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbEletrodeCode; + + /// + /// lbElectrodeRecoveryDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbElectrodeRecoveryDate; + + /// + /// lbCompileMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbCompileMan; + + /// + /// lbCompileDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbCompileDate; + + /// + /// lbAuditMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbAuditMan; + + /// + /// lbAuditDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbAuditDate; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx new file mode 100644 index 0000000..e9ebaea --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx @@ -0,0 +1,204 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeSecondaryBakeRecord.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeSecondaryBakeRecord" %> + + + + 焊条烘烤记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx.cs new file mode 100644 index 0000000..6f3b4a3 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx.cs @@ -0,0 +1,264 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeSecondaryBakeRecord : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + else if (GetRequestEventArgument() == "reloadGrid") + { + this.BindGrid(); + } + } + #endregion + + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT ElectrodeBake.[ElectrodeID] + ,ElectrodeBake.[ElectrodeCode] + ,ElectrodeBake.[ElectrodeDate] + ,ElectrodeBake.[UnitId] + ,ElectrodeBake.[CompileMan] + ,ElectrodeBake.[CompileDate] + ,ElectrodeBake.[ProjectId] + ,ElectrodeBake.[CardCode] + ,ElectrodeBake.[BatchCode] + ,ElectrodeBake.[InLibCode] + ,ElectrodeBake.[Specifications] + ,ElectrodeBake.[ElectrodeCount] + ,ElectrodeBake.[OvenElectricHours] + ,ElectrodeBake.[OvenElectricMinute] + ,ElectrodeBake.[OvenElectricTemperature] + ,ElectrodeBake.[ConstantTemperature] + ,ElectrodeBake.[ConstantStartHours] + ,ElectrodeBake.[ConstantStartMinute] + ,ElectrodeBake.[ConstantEndHours] + ,ElectrodeBake.[ConstantEndMinute] + ,ElectrodeBake.[MoveInBoxHours] + ,ElectrodeBake.[MoveInBoxMinute] + ,ElectrodeBake.[MoveInTemperature] + ,ElectrodeBake.[BakeNumber] + ,ElectrodeBake.[BakeHead] + ,ElectrodeBake.[ElectrodeModel] ,CompileManUser.UserName as CompileManName, Consumables.ConsumablesName" + + @" FROM HJGL_ElectrodeSecondaryBake AS ElectrodeBake" + + @" LEFT JOIN Sys_User AS CompileManUser ON ElectrodeBake.CompileMan=CompileManUser.UserId" + + @" LEFT JOIN Base_Consumables AS Consumables ON Consumables.ConsumablesId=ElectrodeBake.WMT_ID" + + @" LEFT JOIN Base_Project AS Project ON ElectrodeBake.ProjectId=Project.ProjectId" + + @" WHERE ElectrodeBake.ProjectId= @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtElectrodeCode.Text.Trim())) + { + strSql += " AND ElectrodeBake.BatchCode LIKE @ElectrodeCode"; + listStr.Add(new SqlParameter("@ElectrodeCode", "%" + this.txtElectrodeCode.Text.Trim() + "%")); + } + + if (!string.IsNullOrEmpty(this.txtStartTime.Text)) + { + strSql += " AND ElectrodeBake.CompileDate >= @dateA"; + listStr.Add(new SqlParameter("@dateA", Funs.GetNewDateTime(this.txtStartTime.Text.Trim()))); + } + + if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + { + strSql += " AND ElectrodeBake.CompileDate < @dateZ"; + listStr.Add(new SqlParameter("@dateZ", Funs.GetNewDateTime(this.txtEndTime.Text.Trim()).Value.AddDays(1))); + } + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 增加焊条烘烤记录 + /// + /// 增加焊条烘烤记录 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeSecondaryBakeMenuId, Const.BtnAdd)) + { + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeSecondaryBakeRecordEditNew.aspx?ElectrodeID={0}", string.Empty, "新增 - "))); + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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.HJGL_ElectrodeBakeMenuId, Const.BtnDelete)) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string electrodeId = Grid1.DataKeys[rowIndex][0].ToString(); + BLL.HJGL_ElectrodeBakeService.DeleteElectrodeBakeItem(electrodeId); + BLL.HJGL_ElectrodeBakeService.DeleteElectrodeBake(electrodeId); + this.BindGrid(); + // BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除焊丝烘烤记录!"); + } + } + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 数据编辑事件 + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + this.EditData(); + } + + protected void btnPackageIn_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnSave)) + { + + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ElectrodeSecondaryBakeRecordIn.aspx", Grid1.SelectedRowID, "编辑 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + + + } + + + /// + /// 右键编辑事件通过 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + this.EditData(); + } + + /// + /// 编辑方法 + /// + private void EditData() + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnSave)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(WindowEdit.GetShowReference(String.Format("ElectrodeSecondaryBakeRecordEditNew.aspx?ElectrodeID={0}", Grid1.SelectedRowID, "编辑 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 分页 排序 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + this.BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + this.BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + } + +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx.designer.cs new file mode 100644 index 0000000..9d6c4b1 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecord.aspx.designer.cs @@ -0,0 +1,206 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeSecondaryBakeRecord + { + + /// + /// 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; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnPackageIn 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPackageIn; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtElectrodeCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtElectrodeCode; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// WindowEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowEdit; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx new file mode 100644 index 0000000..a64ac87 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx @@ -0,0 +1,122 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeSecondaryBakeRecordEditNew.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeSecondaryBakeRecordEditNew" %> + + + + 焊条烘烤记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx.cs new file mode 100644 index 0000000..513cf49 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx.cs @@ -0,0 +1,211 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; +using Newtonsoft.Json.Linq; + + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeSecondaryBakeRecordEditNew : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string ElectrodeID + { + get + { + return (string)ViewState["ElectrodeID"]; + } + set + { + ViewState["ElectrodeID"] = value; + } + } + public string UnitId + { + get + { + return (string)ViewState["UnitId"]; + } + set + { + ViewState["UnitId"] = value; + } + } + + private bool AppendToEnd = false; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ElectrodeID = Request.Params["ElectrodeID"]; + + + string perfix = string.Empty; + + perfix = "HK2-"; + this.txtBatchCode.Text = BLL.SQLHelper.RunProcNewId("SpGetNewCode5ByProjectId", "dbo.HJGL_ElectrodeSecondaryBake", "BatchCode", this.CurrUser.LoginProjectId, perfix); + + var units = UnitService.GetUnitByProjectIdUnitTypeList(this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2); + + this.dpUnit.DataTextField = "UnitName"; + this.dpUnit.DataValueField = "UnitId"; + this.dpUnit.DataSource = units; + this.dpUnit.DataBind(); + Funs.FineUIPleaseSelect(dpUnit); + ///焊条 + this.drpWME_ID.DataTextField = "ConsumablesName"; + this.drpWME_ID.DataValueField = "ConsumablesId"; + var totalWeldMaterials = from x in Funs.DB.Base_Consumables select x; + this.drpWME_ID.DataSource = totalWeldMaterials; + this.drpWME_ID.DataBind(); + + this.cbJOTSch.DataTextField = "Text"; + this.cbJOTSch.DataValueField = "Value"; + this.cbJOTSch.DataSource = BLL.PW_JointInfoService.GetJOTSchList(); + this.cbJOTSch.DataBind(); + + + if (!string.IsNullOrEmpty(this.ElectrodeID)) + { + var electrode = BLL.HJGL_ElectrodeBakeService.GetElecrodeBakeByElectrodeId(this.ElectrodeID); + if (electrode != null) + { + if (!string.IsNullOrEmpty(electrode.Specifications)) + { + this.dpSpecificationsModel.Values = electrode.Specifications.Split(','); + } + ; + if (!string.IsNullOrEmpty(electrode.UnitId)) + { + this.dpUnit.SelectedValue = electrode.UnitId; + } + + //txtCardCode.Text = electrode.CardCode; + this.drpWME_ID.SelectedValue = electrode.WMT_ID; + txtBatchCode.Text = electrode.BatchCode; + + // txtSpecifications.Text = electrode.Specifications; + if (electrode.ElectrodeCount.HasValue) + txtElectrodeCount.Text = electrode.ElectrodeCount.Value.ToString(); + if (electrode.OvenElectricHours.HasValue && electrode.OvenElectricMinute.HasValue) + tpOvenElectricTime.Text = electrode.OvenElectricHours.Value.ToString("D2") + ":" + electrode.OvenElectricMinute.Value.ToString("D2"); + if (electrode.OvenElectricTemperature.HasValue) + txtOvenElectricTemperature.Text = electrode.OvenElectricTemperature.Value.ToString(); + if (electrode.ConstantTemperature.HasValue) + txtConstantTemperature.Text = electrode.ConstantTemperature.Value.ToString(); + if (electrode.ConstantStartHours.HasValue && electrode.ConstantStartMinute.HasValue) + tpConstantStartTime.Text = electrode.ConstantStartHours.Value.ToString("D2") + ":" + electrode.ConstantStartMinute.Value.ToString("D2"); + if (electrode.ConstantEndHours.HasValue && electrode.ConstantEndMinute.HasValue) + tpConstantEndTime.Text = electrode.ConstantEndHours.Value.ToString("D2") + ":" + electrode.ConstantEndMinute.Value.ToString("D2"); + if (electrode.MoveInBoxHours.HasValue && electrode.MoveInBoxMinute.HasValue) + tpMoveInBoxHours.Text = electrode.MoveInBoxHours.Value.ToString("D2") + ":" + electrode.MoveInBoxMinute.Value.ToString("D2"); + if (electrode.MoveInTemperature.HasValue) + txtMoveInTemperature.Text = electrode.MoveInTemperature.Value.ToString(); + txtBakeHead.Text = electrode.BakeHead; + } + } + else + { + } + + // 删除选中单元格的客户端脚本 + + } + } + #endregion + + + + + protected void txtInLibCode_OnTextChanged(object sender, EventArgs e) + { + + } + + /// + /// + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnSave)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return; + } + + Model.HJGL_ElectrodeSecondaryBake newElectrodeBake = new Model.HJGL_ElectrodeSecondaryBake(); + newElectrodeBake.CompileDate = DateTime.Now; + newElectrodeBake.CompileMan = this.CurrUser.UserId; + newElectrodeBake.UnitId = this.dpUnit.SelectedValue; + + if (this.dpSpecificationsModel.Values != null && this.dpSpecificationsModel.Values.Length > 0) + { + newElectrodeBake.Specifications = string.Join(",", this.dpSpecificationsModel.Values); + } + //newElectrodeBake.CardCode = txtCardCode.Text.Trim(); + newElectrodeBake.WMT_ID = this.drpWME_ID.SelectedValue; + + newElectrodeBake.BatchCode = txtBatchCode.Text.Trim(); + //newElectrodeBake.Specifications = txtSpecifications.Text.Trim(); + newElectrodeBake.ElectrodeCount = Funs.GetNewDouble(txtElectrodeCount.Text.Trim()); + newElectrodeBake.OvenElectricHours = Funs.GetNewInt(tpOvenElectricTime.Text.Split(':')[0]); + newElectrodeBake.OvenElectricMinute = Funs.GetNewInt(tpOvenElectricTime.Text.Split(':')[1]); + newElectrodeBake.OvenElectricTemperature = Funs.GetNewInt(txtOvenElectricTemperature.Text.Trim()); + + newElectrodeBake.ConstantTemperature = Funs.GetNewInt(txtConstantTemperature.Text.Trim()); + newElectrodeBake.ConstantStartHours = Funs.GetNewInt(tpConstantStartTime.Text.Split(':')[0]); + newElectrodeBake.ConstantStartMinute = Funs.GetNewInt(tpConstantStartTime.Text.Split(':')[1]); + newElectrodeBake.ConstantEndHours = Funs.GetNewInt(tpConstantEndTime.Text.Split(':')[0]); + newElectrodeBake.ConstantEndMinute = Funs.GetNewInt(tpConstantEndTime.Text.Split(':')[1]); + newElectrodeBake.MoveInBoxHours = Funs.GetNewInt(tpMoveInBoxHours.Text.Split(':')[0]); + newElectrodeBake.MoveInBoxMinute = Funs.GetNewInt(tpMoveInBoxHours.Text.Split(':')[1]); + newElectrodeBake.MoveInTemperature = Funs.GetNewInt(txtMoveInTemperature.Text.Trim()); + newElectrodeBake.BakeHead = txtBakeHead.Text.Trim(); + newElectrodeBake.ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(ElectrodeID)) + { + newElectrodeBake.ElectrodeID = ElectrodeID; + var oldEelectrode = BLL.HJGL_ElectrodeBakeService.GetElecrodeBakeByElectrodeId(this.ElectrodeID); + // BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, oldEelectrode.UnitId, oldEelectrode.WMT_ID, "", "", decimal.Parse(oldEelectrode.ElectrodeCount.Value.ToString("0.##"))); + + BLL.HJGL_ElectrodeSecondaryBakeService.UpdateElectrodeBake(newElectrodeBake); //修改焊丝烘烤记录 + // BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, newElectrodeBake.UnitId, newElectrodeBake.WMT_ID, "", "", -decimal.Parse(newElectrodeBake.ElectrodeCount.Value.ToString("0.##"))); + + // BLL.HJGL_ElectrodeBakeService.DeleteElectrodeBakeItem(this.ElectrodeID); + //BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改焊丝烘烤记录!"); + } + else + { + //BLL.HJGL_EMInventoryRecordsService.UpdateEMInventoryRecords(this.CurrUser.LoginProjectId, newElectrodeBake.UnitId, newElectrodeBake.WMT_ID, "", "", -decimal.Parse(newElectrodeBake.ElectrodeCount.Value.ToString("0.##"))); + + newElectrodeBake.ElectrodeID = SQLHelper.GetNewID(typeof(Model.HJGL_ElectrodeBake)); + BLL.HJGL_ElectrodeSecondaryBakeService.AddElectrodeBake(newElectrodeBake); //添加焊丝烘烤记录主表信息 + + // BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "添加焊丝烘烤记录!"); + } + + + + // Alert.ShowInTop("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + + } + } + +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx.designer.cs new file mode 100644 index 0000000..602afe4 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordEditNew.aspx.designer.cs @@ -0,0 +1,233 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeSecondaryBakeRecordEditNew + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// Style1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Style1; + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// btnSave1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave1; + + /// + /// txtBatchCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBatchCode; + + /// + /// drpWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWME_ID; + + /// + /// dpSpecificationsModel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownBox dpSpecificationsModel; + + /// + /// SimpleForm2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.SimpleForm SimpleForm2; + + /// + /// cbJOTSch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBoxList cbJOTSch; + + /// + /// dpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpUnit; + + /// + /// txtElectrodeCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtElectrodeCount; + + /// + /// tpOvenElectricTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TimePicker tpOvenElectricTime; + + /// + /// txtOvenElectricTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricTemperature; + + /// + /// tpConstantStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TimePicker tpConstantStartTime; + + /// + /// tpConstantEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TimePicker tpConstantEndTime; + + /// + /// txtConstantTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantTemperature; + + /// + /// tpMoveInBoxHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TimePicker tpMoveInBoxHours; + + /// + /// txtMoveInTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInTemperature; + + /// + /// txtBakeHead 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBakeHead; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx new file mode 100644 index 0000000..1ac069d --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx @@ -0,0 +1,271 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrodeSecondaryBakeRecordIn.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ElectrodeSecondaryBakeRecordIn" %> + + + + 焊条烘烤记录 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx.cs new file mode 100644 index 0000000..2de1187 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx.cs @@ -0,0 +1,544 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.OleDb; +using System.IO; +using System.Linq; +using System.Web.UI; +using BLL; +using Newtonsoft.Json.Linq; + + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ElectrodeSecondaryBakeRecordIn : PageBase + { + #region 定义变量 + /// + /// 上传预设的虚拟路径 + /// + private string initPath = Const.ExcelUrl; + + /// + /// 材料到货登记记录 + /// + public List electrodeBakes = new List(); + + /// + /// 错误集合 + /// + public static string errorInfos = string.Empty; + #endregion + + + #region 定义项 + /// + /// 主键 + /// + public string ElectrodeID + { + get + { + return (string)ViewState["ElectrodeID"]; + } + set + { + ViewState["ElectrodeID"] = value; + } + } + private bool AppendToEnd = false; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ElectrodeID = Request.Params["ElectrodeID"]; + + this.drpWME_ID.DataTextField = "ConsumablesName"; + this.drpWME_ID.DataValueField = "ConsumablesName"; + var totalWeldMaterials = from x in Funs.DB.Base_Consumables select x; + this.drpWME_ID.DataSource = totalWeldMaterials; + this.drpWME_ID.DataBind(); + + // 删除选中单元格的客户端脚本 + string deleteScript = GetDeleteScript(); + // 新增数据初始值 + JObject defaultObj = new JObject(); + defaultObj.Add("ElectrodeModel", "1"); + defaultObj.Add("CardCode", "2"); + defaultObj.Add("BatchCode", "3"); + defaultObj.Add("InLibCode", "4"); + defaultObj.Add("Specifications", "5"); + defaultObj.Add("ElectrodeCount", "6"); + defaultObj.Add("OvenElectricHours", "7"); + defaultObj.Add("OvenElectricMinute", "8"); + defaultObj.Add("OvenElectricTemperature", "9"); + + defaultObj.Add("ConstantTemperature", "10"); + defaultObj.Add("ConstantStartHours", "11"); + defaultObj.Add("ConstantStartMinute", "12"); + defaultObj.Add("ConstantEndHours", "13"); + defaultObj.Add("ConstantEndMinute", "14"); + defaultObj.Add("MoveInBoxHours", "15"); + defaultObj.Add("MoveInBoxMinute", "16"); + defaultObj.Add("MoveInTemperature", "17"); + defaultObj.Add("BakeNumber", "1"); + defaultObj.Add("BakeHead", this.CurrUser.UserName); + defaultObj.Add("Delete", String.Format("", deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete))); + // 在第一行新增一条数据 + btnNew.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, AppendToEnd); + // 删除选中行按钮 + btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!") + deleteScript; + + + } + } + #endregion + + + #region 审核 + /// + /// 审核 + /// + /// + /// + protected void btnAudit_Click(object sender, EventArgs e) + { + try + { + if (this.fuAttachUrl.HasFile == false) + { + ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning); + return; + } + string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower(); + if (IsXls != ".xls") + { + ShowNotify("只可以选择Excel文件!", MessageBoxIcon.Warning); + return; + } + if (electrodeBakes != null) + { + electrodeBakes.Clear(); + } + if (!string.IsNullOrEmpty(errorInfos)) + { + errorInfos = string.Empty; + } + 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; + this.fuAttachUrl.PostedFile.SaveAs(filePath); + //PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PersonDataAudit.aspx?FileName={0}&ProjectId={1}", this.hdFileName.Text, Request.Params["ProjectId"], "审核 - "))); + ImportXlsToData(rootPath + initPath + this.hdFileName.Text); + } + catch (Exception ex) + { + ShowNotify("'" + ex.Message + "'", MessageBoxIcon.Warning); + } + } + + #region 读Excel提取数据 + /// + /// 从Excel提取数据--》Dataset + /// + /// Excel文件路径名 + private void ImportXlsToData(string fileName) + { + try + { + electrodeBakes.Clear(); + 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.Fill(ds, "m_tableName"); + oleAdMaster.Dispose(); + oleDBConn.Close(); + oleDBConn.Dispose(); + + AddDatasetToSQL(ds.Tables[0]); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + #region 将Dataset的数据导入数据库 + /// + /// 将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) + { + for (int i = 0; i < ir; i++) + { + JObject defaultObj = new JObject(); + defaultObj.Add("ElectrodeID", Guid.NewGuid().ToString()); + + if (!string.IsNullOrEmpty(pds.Rows[i][0].ToString().Trim())) + { + defaultObj.Add("ElectrodeModel", pds.Rows[i][0].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "型号" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][1].ToString().Trim())) + { + var mat = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesName == pds.Rows[i][1].ToString().Trim()); + if (mat != null) + { + defaultObj.Add("WMT_MatName", pds.Rows[i][1].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "牌号" + pds.Rows[i][1].ToString().Trim() + "," + "不存在!" + "|"; + + } + } + else + { + result += "第" + (i + 2).ToString() + "行," + "牌号" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][2].ToString().Trim())) + { + defaultObj.Add("BatchCode", pds.Rows[i][2].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "批号" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][3].ToString().Trim())) + { + defaultObj.Add("InLibCode", pds.Rows[i][3].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "入库自编号" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][4].ToString().Trim())) + { + defaultObj.Add("Specifications", pds.Rows[i][4].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "规格mm" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim())) + { + defaultObj.Add("ElectrodeCount", pds.Rows[i][5].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "数量kg" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim())&& pds.Rows[i][6].ToString().Trim().Split(':').Length>0) + { + defaultObj.Add("OvenElectricHours", pds.Rows[i][6].ToString().Trim().Split(':')[0]); + defaultObj.Add("OvenElectricMinute", pds.Rows[i][6].ToString().Trim().Split(':')[1]); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "烘箱送电时间" + "," + "此项为必填项或格式不正确!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim())) + { + defaultObj.Add("OvenElectricTemperature", pds.Rows[i][7].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "烘箱送电温度" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][8].ToString().Trim())) + { + defaultObj.Add("ConstantTemperature", pds.Rows[i][8].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "恒温温度" + "," + "此项为必填项!" + "|"; + } + + + + if (!string.IsNullOrEmpty(pds.Rows[i][9].ToString().Trim()) && pds.Rows[i][9].ToString().Trim().Split(':').Length > 0) + { + defaultObj.Add("ConstantStartHours", pds.Rows[i][9].ToString().Trim().Split(':')[0]); + defaultObj.Add("ConstantStartMinute", pds.Rows[i][9].ToString().Trim().Split(':')[1]); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "恒温开始时间" + "," + "此项为必填项或格式不正确!" + "|"; + } + + if (!string.IsNullOrEmpty(pds.Rows[i][10].ToString().Trim()) && pds.Rows[i][10].ToString().Trim().Split(':').Length > 0) + { + defaultObj.Add("ConstantEndHours", pds.Rows[i][10].ToString().Trim().Split(':')[0]); + defaultObj.Add("ConstantEndMinute", pds.Rows[i][10].ToString().Trim().Split(':')[1]); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "恒温结束时间" + "," + "此项为必填项或格式不正确!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][11].ToString().Trim()) && pds.Rows[i][11].ToString().Trim().Split(':').Length > 0) + { + defaultObj.Add("MoveInBoxHours", pds.Rows[i][11].ToString().Trim().Split(':')[0]); + defaultObj.Add("MoveInBoxMinute", pds.Rows[i][11].ToString().Trim().Split(':')[1]); + } + else + { + result += "第" + (i + 2).ToString() + "行," + "移入保温箱时间" + "," + "此项为必填项或格式不正确!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][12].ToString().Trim())) + { + defaultObj.Add("MoveInTemperature", pds.Rows[i][12].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "移入保温箱温度" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][13].ToString().Trim())) + { + defaultObj.Add("BakeHead", pds.Rows[i][13].ToString().Trim()); + + } + else + { + result += "第" + (i + 2).ToString() + "行," + "烘烤负责人" + "," + "此项为必填项!" + "|"; + } + ///加入用户视图 + electrodeBakes.Add(defaultObj); + + } + if (!string.IsNullOrEmpty(result)) + { + electrodeBakes.Clear(); + result = result.Substring(0, result.LastIndexOf("|")); + errorInfos = result; + Alert alert = new Alert + { + Message = result, + Target = Target.Self + }; + alert.Show(); + } + else + { + errorInfos = string.Empty; + if (electrodeBakes.Count > 0) + { + this.Grid1.Hidden = false; + this.Grid1.DataSource = electrodeBakes; + this.Grid1.DataBind(); + Alert.ShowInTop("审核完成,请点击保存!", MessageBoxIcon.Success); + } + else + { + Alert.ShowInTop("导入数据为空!", MessageBoxIcon.Warning); + } + } + } + else + { + Alert.ShowInTop("导入数据为空!", MessageBoxIcon.Warning); + } + return true; + } + #endregion + #endregion + /// + /// + /// + /// + /// + protected void Grid1_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid1.FindColumn("Delete") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScript(); + } + + /// + /// + /// + /// + private string GetDeleteScript() + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnDelete)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return null; + } + else + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + } + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + //BindGrid(); + } + #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 filePath = Const.ElectrodeBakeRecordTemplateUrl; + string uploadfilepath = rootPath + filePath; + 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 + /// + /// + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_ElectrodeBakeMenuId, Const.BtnSave)) + { + ShowNotify("您没有这个权限,请与管理员联系!"); + return; + } + + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + int i = teamGroupRow.Value("index"); + + //string status = teamGroupRow.Value("status"); + JObject values = teamGroupRow.Value("values"); + GridRow row = Grid1.Rows[i]; + System.Web.UI.WebControls.HiddenField ElectrodeID = (System.Web.UI.WebControls.HiddenField)(row.FindControl("hdElectrodeID")); + + Model.HJGL_ElectrodeSecondaryBake newElectrodeBakeItem = new Model.HJGL_ElectrodeSecondaryBake(); + newElectrodeBakeItem.ProjectId = CurrUser.LoginProjectId; + newElectrodeBakeItem.CompileDate = DateTime.Now; + newElectrodeBakeItem.CompileMan = CurrUser.UserId; + newElectrodeBakeItem.ElectrodeID = ElectrodeID.Value; + newElectrodeBakeItem.ElectrodeModel = values.Value("ElectrodeModel"); + //newElectrodeBakeItem.CardCode = values.Value("CardCode"); + newElectrodeBakeItem.BatchCode = values.Value("BatchCode"); + newElectrodeBakeItem.InLibCode = values.Value("InLibCode"); + newElectrodeBakeItem.Specifications = values.Value("Specifications"); + newElectrodeBakeItem.ElectrodeCount = Funs.GetNewInt(values.Value("ElectrodeCount")); + newElectrodeBakeItem.OvenElectricHours = Funs.GetNewInt(values.Value("OvenElectricHours")); + newElectrodeBakeItem.OvenElectricMinute = Funs.GetNewInt(values.Value("OvenElectricMinute")); + newElectrodeBakeItem.OvenElectricTemperature = Funs.GetNewInt(values.Value("OvenElectricTemperature")); + + newElectrodeBakeItem.ConstantTemperature = Funs.GetNewInt(values.Value("ConstantTemperature")); + newElectrodeBakeItem.ConstantStartHours = Funs.GetNewInt(values.Value("ConstantStartHours")); + newElectrodeBakeItem.ConstantStartMinute = Funs.GetNewInt(values.Value("ConstantStartMinute")); + newElectrodeBakeItem.ConstantEndHours = Funs.GetNewInt(values.Value("ConstantEndHours")); + newElectrodeBakeItem.ConstantEndMinute = Funs.GetNewInt(values.Value("ConstantEndMinute")); + newElectrodeBakeItem.MoveInBoxHours = Funs.GetNewInt(values.Value("MoveInBoxHours")); + newElectrodeBakeItem.MoveInBoxMinute = Funs.GetNewInt(values.Value("MoveInBoxMinute")); + newElectrodeBakeItem.MoveInTemperature = Funs.GetNewInt(values.Value("MoveInTemperature")); + newElectrodeBakeItem.BakeNumber = Funs.GetNewInt(values.Value("BakeNumber")); + newElectrodeBakeItem.BakeHead = values.Value("BakeHead"); + var mat = Funs.DB.Base_Consumables.FirstOrDefault(x => x.ConsumablesName == values.Value("WMT_MatName")); + if (mat != null) + { + newElectrodeBakeItem.WMT_ID = mat.ConsumablesId; + } + + BLL.HJGL_ElectrodeSecondaryBakeService.AddElectrodeBake(newElectrodeBakeItem); + } + + + //Alert.ShowInTop("保存成功!", MessageBoxIcon.Success)-'-\- + + + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + + } + } + +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx.designer.cs new file mode 100644 index 0000000..04451c9 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ElectrodeSecondaryBakeRecordIn.aspx.designer.cs @@ -0,0 +1,350 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class ElectrodeSecondaryBakeRecordIn + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// Style1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Style1; + + /// + /// 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; + + /// + /// btnAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit; + + /// + /// Button1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button1; + + /// + /// btnDownLoad 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDownLoad; + + /// + /// fuAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload fuAttachUrl; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar5; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// hdElectrodeID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField hdElectrodeID; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// txtElectrodeModel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtElectrodeModel; + + /// + /// drpWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWME_ID; + + /// + /// txtBatchCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBatchCode; + + /// + /// txtInLibCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtInLibCode; + + /// + /// txtSpecifications 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSpecifications; + + /// + /// txtElectrodeCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtElectrodeCount; + + /// + /// txtOvenElectricHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricHours; + + /// + /// txtOvenElectricMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricMinute; + + /// + /// txtOvenElectricTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOvenElectricTemperature; + + /// + /// txtConstantTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantTemperature; + + /// + /// txtConstantStartHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantStartHours; + + /// + /// txtConstantStartMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantStartMinute; + + /// + /// txtConstantEndHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantEndHours; + + /// + /// txtConstantEndMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtConstantEndMinute; + + /// + /// txtMoveInBoxHours 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInBoxHours; + + /// + /// txtMoveInBoxMinute 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInBoxMinute; + + /// + /// txtMoveInTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtMoveInTemperature; + + /// + /// txtBakeHead 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBakeHead; + + /// + /// hdFileName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdFileName; + + /// + /// hdCheckResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCheckResult; + + /// + /// lblBottom 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblBottom; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx new file mode 100644 index 0000000..d5bb979 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx @@ -0,0 +1,128 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialApply.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.MaterialApply" %> + + + + + 焊接耗材 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx.cs new file mode 100644 index 0000000..6c0d990 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx.cs @@ -0,0 +1,327 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class MaterialApply : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + Funs.DropDownPageSize(this.ddlPageSize); + + // 绑定表格 + this.BindGrid(); + //this.btnNew.Hidden = true; + //this.btnMenuEdit.Hidden = true; + //this.btnMenuDelete.Hidden = true; + //this.Grid1.EnableRowDoubleClickEvent = false; + + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT [ID] + ,[ProjectId] + ,[ApplyUnitId] + ,[ApplyDate] + ,[ApplyName] + ,[ApplyCode] + ,[ApplyDes] + ,[CreateMan] + ,[CreateDate] + ,[State] + FROM [dbo].[HJGL_Material_Apply] where projectid='" + CurrUser.LoginProjectId+"'"; + List listStr = new List(); + + if (!string.IsNullOrEmpty(this.txtApplyName.Text.Trim())) + { + strSql += " AND ApplyName LIKE @txtApplyName"; + listStr.Add(new SqlParameter("@txtApplyName", "%" + this.txtApplyName.Text.Trim() + "%")); + } + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + 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(); + } + + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 增加按钮事件 + /// + /// 增加按钮事件 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (GetButtonPower(Const.BtnAdd)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MaterialApplyEdit.aspx", "新增 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #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; + } + var app = BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.getCurrMaterialApplyApprove(Grid1.SelectedRowID); + var apply = BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.getMaterialApply(Grid1.SelectedRowID); + + if (app != null && app.ApproveMan == CurrUser.UserId) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MaterialApplyEdit.aspx?Id={0}", Grid1.SelectedRowID, "编辑 - "))); + } + else if (app == null&& apply.CreateMan == CurrUser.UserId) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MaterialApplyEdit.aspx?Id={0}", Grid1.SelectedRowID, "编辑 - "))); + + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 删除 + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + if (GetButtonPower(Const.BtnDelete)) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + string strShowNotify = string.Empty; + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.DeleteElectrodeRecovery(rowID); + + } + BindGrid(); + ShowNotify("删除成功!", MessageBoxIcon.Success); + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnQuery_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 查看 + /// + /// 查看按钮 + /// + /// + /// + protected void btnView_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConsumablesView.aspx?ConsumablesId={0}", Grid1.SelectedRowID, "查看 - "))); + } + #endregion + + #region 格式化字符串 + /// + /// 获取人员名称 + /// + /// + /// + protected string ConvertUserName(object userid) + { + string name = string.Empty; + if (userid != null) + { + var user = BLL.UserService.GetUserByUserId( userid.ToString()); + if (user != null) + { + name = user.UserName; + } + } + + return name; + } + /// + /// 获取人员名称 + /// + /// + /// + protected string ConvertState(object state) + { + + if (state != null) + { + if (state.ToString() == BLL.Const.MaterialApply_ReCompile) + { + return "重新编制"; + } + else if (state.ToString() == BLL.Const.MaterialApply_Compile) + { + return "编制"; + } + else if (state.ToString() == BLL.Const.MaterialApply_Audit1) + { + return "总包负责人审批"; + } + + else if (state.ToString() == BLL.Const.MaterialApply_Complete) + { + return "审批完成"; + } + + else + { + return ""; + } + } + return ""; + } + /// + /// 获取单位名称 + /// + /// + /// + protected string ConvertUnitName(object unitId) + { + string name = string.Empty; + if (unitId != null) + { + var unit = BLL.UnitService.GetUnitByUnitId(unitId.ToString()); + if (unit != null) + { + name = unit.UnitName; + } + } + + return name; + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private bool GetButtonPower(string button) + { + return BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HJGL_MaterialApplyMenuId, button); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx.designer.cs new file mode 100644 index 0000000..1640fc9 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApply.aspx.designer.cs @@ -0,0 +1,206 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class MaterialApply + { + + /// + /// 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; + + /// + /// txtApplyName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtApplyName; + + /// + /// btnQuery 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnQuery; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label4; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label3; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// 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; + + /// + /// btnView 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnView; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx new file mode 100644 index 0000000..769edeb --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx @@ -0,0 +1,273 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialApplyEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.MaterialApplyEdit" %> + + + + + + 导入员工信息 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx.cs new file mode 100644 index 0000000..49e564f --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx.cs @@ -0,0 +1,852 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.OleDb; +using System.IO; +using System.Linq; +using System.Web.UI; +using BLL; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class MaterialApplyEdit : PageBase + { + #region 定义变量 + + public string ApplyID + { + get + { + return (string)ViewState["ApplyID"]; + } + set + { + ViewState["ApplyID"] = value; + } + } + public string State + { + get + { + return (string)ViewState["State"]; + } + set + { + ViewState["State"] = value; + } + } + /// + /// 上传预设的虚拟路径 + /// + private string initPath = Const.ExcelUrl; + + /// + /// 请购单明细 + /// + public List applyItems = new List(); + + /// + /// 错误集合 + /// + public static string errorInfos = string.Empty; + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + State = "1"; + this.txtProjectName.Text = ProjectService.GetProjectNameByProjectId(CurrUser.LoginProjectId); + UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.dpApplyUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, false); + if (CurrUser.UnitId != Const.UnitId_TCC && CurrUser.UserId != Const.hfnbdId) + { + this.dpApplyUnit.SelectedValue = CurrUser.UnitId; + this.dpApplyUnit.Enabled = false; + } + + + if (applyItems != null) + { + applyItems.Clear(); + } + errorInfos = string.Empty; + //下一步审核人 + var db = Funs.DB; + var userList = from x in db.Sys_User + join y in db.Project_ProjectUnit + on x.UnitId equals y.UnitId + join p in db.Project_ProjectUser + on x.UserId equals p.UserId + where y.UnitId == Const.UnitId_TCC && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId + where p.RoleId.Contains(Const.ZBCNEngineer) + select new { UserId = x.UserId, UserName = x.UserName }; + drpHandleMan.DataValueField = "UserId"; + drpHandleMan.DataTextField = "UserName"; + this.drpHandleMan.DataSource = userList.ToList(); + this.drpHandleMan.DataBind(); + + + ListItem[] lis = new ListItem[1]; + lis[0] = new ListItem("总包负责人审核","2"); + drpHandleType.DataValueField = "Value"; + drpHandleType.DataTextField = "Text"; + this.drpHandleType.DataSource = lis; + this.drpHandleType.DataBind(); + + JObject defaultObj = new JObject(); + defaultObj.Add("ID", Guid.NewGuid().ToString()); + defaultObj.Add("MaterialCode", ""); + defaultObj.Add("LocNum", ""); + defaultObj.Add("Des", ""); + defaultObj.Add("Unit", ""); + defaultObj.Add("Amount_Design", ""); + defaultObj.Add("Amount_Re", ""); + defaultObj.Add("Amount_This", ""); + defaultObj.Add("Amount_Total", ""); + defaultObj.Add("Size1", ""); + defaultObj.Add("Size2", ""); + btnNew.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, false); + // 删除选中行按钮 + btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!") + GetDeleteScript(); + ApplyID = Request.Params["Id"]; + + if (!string.IsNullOrEmpty(ApplyID)) + { + var materialApply = BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.getMaterialApply(ApplyID); + if (materialApply != null) + { + this.btnSubmit.Hidden = true; + this.btnSave1.Hidden = true; + this.dpApplyUnit.SelectedValue = materialApply.ApplyUnitId; + this.txtApplyName.Text = materialApply.ApplyName; + this.txtApplyDes.Text = materialApply.ApplyDes; + this.txtApplyCode.Text = materialApply.ApplyCode; + State = materialApply.State; + if (materialApply.ApplyDate.HasValue) + { + this.dpApplyDate.Text = materialApply.ApplyDate.Value.ToString("yyyy-MM-dd"); + } + var currentApprove = BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.getCurrMaterialApplyApprove(ApplyID); + //编辑 或者 重新编辑 按钮可见 + if (CurrUser.UserId == materialApply.CreateMan && (materialApply.State == BLL.Const.MaterialApply_ReCompile || materialApply.State == BLL.Const.MaterialApply_Compile)) + { + + this.btnSubmit.Hidden = false; + this.btnSave1.Hidden = false; + }else if (materialApply.State == BLL.Const.MaterialApply_Audit1 && currentApprove != null) + { + this.txtApplyName.Enabled = false; + this.dpApplyUnit.Enabled = false; + this.txtApplyCode.Enabled = false; + this.dpApplyDate.Enabled = false; + this.txtApplyDes.Enabled = false; + this.FrUpload.Hidden = true; + this.Toolbar1.Hidden = true; + Grid1.AllowCellEditing = false; + Grid1.EnableCheckBoxSelect = false; + this.FrApprove1.Hidden = false; + this.FrYesOrNo.Hidden = false; + this.frStap.Hidden = true; + this.btnSubmit.Hidden = false; + this.btnSave1.Hidden = false; + } + else if (materialApply.State == BLL.Const.MaterialApply_Complete) + { + this.dpApplyUnit.Enabled = false; + this.txtApplyName.Enabled = false; + this.txtApplyCode.Enabled = false; + this.dpApplyDate.Enabled = false; + this.txtApplyDes.Enabled = false; + this.FrUpload.Hidden = true; + this.Toolbar1.Hidden = true; + Grid1.AllowCellEditing = false; + Grid1.EnableCheckBoxSelect = false; + this.frStap.Hidden = true; + this.btnSubmit.Hidden = true; + this.btnSave1.Hidden = true; + } + else + { + this.dpApplyUnit.Enabled = false; + this.txtApplyName.Enabled = false; + this.txtApplyCode.Enabled = false; + this.dpApplyDate.Enabled = false; + this.txtApplyDes.Enabled = false; + this.FrUpload.Hidden = true; + this.Toolbar1.Hidden = true; + Grid1.AllowCellEditing = false; + Grid1.EnableCheckBoxSelect = false; + this.frStap.Hidden = true; + this.btnSubmit.Hidden = true; + this.btnSave1.Hidden = true; + } + } + + applyItems.AddRange(BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.getMaterialApplyItem(ApplyID)); + Grid1.DataSource = applyItems; + Grid1.DataBind(); + + var approveItems = BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.getMaterialApplyApproveList(ApplyID); + gvApprove.DataSource = approveItems; + gvApprove.DataBind(); + } + } + } + #endregion + protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) + { + if (e.CommandName == "Delete") + { + Grid1.Rows.RemoveAt(e.RowIndex); + + } + } + + // 删除选中行的脚本 + private string GetDeleteScript() + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + #region 审核 + /// + /// 审核 + /// + /// + /// + protected void btnAudit_Click(object sender, EventArgs e) + { + try + { + if (this.fuAttachUrl.HasFile == false) + { + ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning); + return; + } + string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower(); + if (IsXls != ".xls") + { + ShowNotify("只可以选择Excel文件!", MessageBoxIcon.Warning); + return; + } + if (applyItems != null) + { + applyItems.Clear(); + } + if (!string.IsNullOrEmpty(errorInfos)) + { + errorInfos = string.Empty; + } + 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; + this.fuAttachUrl.PostedFile.SaveAs(filePath); + //PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PersonDataAudit.aspx?FileName={0}&ProjectId={1}", this.hdFileName.Text, Request.Params["ProjectId"], "审核 - "))); + ImportXlsToData(rootPath + initPath + this.hdFileName.Text); + } + catch (Exception ex) + { + ShowNotify("'" + ex.Message + "'", MessageBoxIcon.Warning); + } + } + + #region 读Excel提取数据 + /// + /// 从Excel提取数据--》Dataset + /// + /// Excel文件路径名 + private void ImportXlsToData(string fileName) + { + try + { + applyItems.Clear(); + 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.Fill(ds, "m_tableName"); + oleAdMaster.Dispose(); + oleDBConn.Close(); + oleDBConn.Dispose(); + + AddDatasetToSQL(ds.Tables[0]); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + #region 将Dataset的数据导入数据库 + /// + /// 将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 questionType = from x in Funs.DB.Base_QualityQuestionType select x; + for (int i = 0; i < ir; i++) + { + Model.HJGL_Material_Apply_Item item = new Model.HJGL_Material_Apply_Item + { + ID = Guid.NewGuid().ToString() , + MaterialCode = pds.Rows[i][0].ToString().Trim(), + LocNum = pds.Rows[i][1].ToString().Trim(), + Des = pds.Rows[i][2].ToString().Trim(), + Unit = pds.Rows[i][3].ToString().Trim(), + Amount_Design = pds.Rows[i][4].ToString().Trim(), + Amount_Re = pds.Rows[i][5].ToString().Trim(), + Amount_This = pds.Rows[i][6].ToString().Trim(), + Amount_Total = pds.Rows[i][7].ToString().Trim(), + Size1 = pds.Rows[i][8].ToString().Trim(), + Size2 = pds.Rows[i][9].ToString().Trim() + }; + + + ///加入用户视图 + applyItems.Add(item); + } + if (!string.IsNullOrEmpty(result)) + { + applyItems.Clear(); + result = result.Substring(0, result.LastIndexOf("|")); + errorInfos = result; + Alert alert = new Alert + { + Message = result, + Target = Target.Self + }; + alert.Show(); + } + else + { + errorInfos = string.Empty; + if (applyItems.Count > 0) + { + this.Grid1.Hidden = false; + this.Grid1.DataSource = applyItems; + this.Grid1.DataBind(); + } + else + { + Alert.ShowInTop("导入数据为空!", MessageBoxIcon.Warning); + } + } + } + else + { + Alert.ShowInTop("导入数据为空!", MessageBoxIcon.Warning); + } + return true; + } + #endregion + #endregion + + #region 保存 + /// + /// 保存 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + + Model.HJGL_Material_Apply applyNew= new Model.HJGL_Material_Apply(); + applyNew.ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(ApplyID)) + { + applyNew.ID = ApplyID; + } + else + { + applyNew.ID = Guid.NewGuid().ToString(); + } + applyNew.CreateDate = DateTime.Now; + applyNew.CreateMan = CurrUser.UserId; + applyNew.ApplyUnitId = this.dpApplyUnit.SelectedValue; + applyNew.ApplyName = this.txtApplyName.Text; + applyNew.ApplyDes = this.txtApplyDes.Text; + applyNew.ApplyCode = this.txtApplyCode.Text; + applyNew.State = "1"; + applyNew.ApplyDate = Convert.ToDateTime(this.dpApplyDate.Text); + if (string.IsNullOrEmpty(ApplyID)) + { + + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.AddMaterialApply(applyNew); + } + else + { + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.UpdateMaterialApply(applyNew); + + } + + + int a = applyItems.Count(); + + List applyItem = new List(); + if (Grid1.GetMergedData().Count > 0) + { + foreach (JObject mergedRow in Grid1.GetMergedData()) + { + int i = mergedRow.Value("index"); + JObject values = mergedRow.Value("values"); + string ID = values.Value("ID"); + + string MaterialCode = values.Value("MaterialCode"); + string LocNum = values.Value("LocNum"); + string Des = values.Value("Des"); + string Unit = values.Value("Unit"); + string Amount_Design = values.Value("Amount_Design"); + string Amount_Re = values.Value("Amount_Re"); + string Amount_This = values.Value("Amount_This"); + string Amount_Total = values.Value("Amount_Total"); + string Size1 = values.Value("Size1"); + string Size2 = values.Value("Size2"); + + //FineUIPro.TextBox txtMaterialCode = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtMaterialCode"); + //FineUIPro.TextBox txtLocNum = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtLocNum"); + //FineUIPro.TextBox txtDes = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtDes"); + //FineUIPro.TextBox txtUnit = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtUnit"); + //FineUIPro.TextBox txtAmount_Design = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtAmount_Design"); + //FineUIPro.TextBox txtAmount_Re = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtAmount_Re"); + //FineUIPro.TextBox txtAmount_This = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtAmount_This"); + //FineUIPro.TextBox txtAmount_Total = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtAmount_Total"); + //FineUIPro.TextBox txtSize1 = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtSize1"); + //FineUIPro.TextBox txtSize2 = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtSize2"); + + Model.HJGL_Material_Apply_Item apply = new Model.HJGL_Material_Apply_Item + { + ID = ID, + ApplyID = applyNew.ID, + MaterialCode = MaterialCode, + LocNum = LocNum, + Des = Des, + Unit = Unit, + Amount_Design = Amount_Design, + Amount_Re = Amount_Re, + Amount_This = Amount_This, + Amount_Total = Amount_Total, + Size1 = Size1, + Size2 = Size2 + }; + applyItem.Add(apply); + + } + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.UpdateMaterialApplyItem(applyItem); + } + else + { + Alert.ShowInTop("请输入请购内容!", MessageBoxIcon.Warning); + } + + //for (int i = 0; i < a; i++) + //{ + // Model.HJGL_Material_Apply_Item apply = new Model.HJGL_Material_Apply_Item + // { + // ID = applyItems[i].ID, + // ApplyID = applyNew.ID, + // MaterialCode = applyItems[i].MaterialCode, + // LocNum = applyItems[i].LocNum, + // Des = applyItems[i].Des, + // Unit = applyItems[i].Unit, + // Amount_Design = applyItems[i].Amount_Design, + // Amount_Re = applyItems[i].Amount_Re, + // Amount_This = applyItems[i].Amount_This, + // Amount_Total = applyItems[i].Amount_Total, + // Size1 = applyItems[i].Size1, + // Size2 = applyItems[i].Size2 + // }; + // Funs.DB.HJGL_Material_Apply_Item.InsertOnSubmit(apply); + // //newUser.UserId = getUser.UserId; + + // insertCount++; + + //} + Funs.DB.SubmitChanges(); + string rootPath = Server.MapPath("~/"); + string initFullPath = rootPath + initPath; + string filePath = initFullPath + this.hdFileName.Text; + if (filePath != string.Empty && File.Exists(filePath)) + { + File.Delete(filePath);//删除上传的XLS文件 + } + ShowNotify("保存成功", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + + } + + #endregion + #region 提交 + /// + /// 提交 + /// + /// + /// + protected void btnSubmit_Click(object sender, EventArgs e) + { + + Model.HJGL_Material_Apply applyNew = new Model.HJGL_Material_Apply(); + applyNew.ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(ApplyID)) + { + applyNew.ID = ApplyID; + } + else + { + applyNew.ID = Guid.NewGuid().ToString(); + } + applyNew.CreateDate = DateTime.Now; + applyNew.CreateMan = CurrUser.UserId; + applyNew.ApplyUnitId = this.dpApplyUnit.SelectedValue; + applyNew.ApplyName = this.txtApplyName.Text; + applyNew.ApplyDes = this.txtApplyDes.Text; + applyNew.ApplyCode = this.txtApplyCode.Text; + applyNew.State = BLL.Const.MaterialApply_Audit1; + applyNew.ApplyDate = Convert.ToDateTime(this.dpApplyDate.Text); + if (string.IsNullOrEmpty(ApplyID)) + { + + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.AddMaterialApply(applyNew); + } + else + { + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.UpdateMaterialApply(applyNew); + + } + + + int a = applyItems.Count(); + + List applyItem = new List(); + if (Grid1.GetMergedData()!=null&&Grid1.GetMergedData().Count > 0) + { + foreach (JObject mergedRow in Grid1.GetMergedData()) + { + int i = mergedRow.Value("index"); + JObject values = mergedRow.Value("values"); + string ID = values.Value("ID"); + + string MaterialCode = values.Value("MaterialCode"); + string LocNum = values.Value("LocNum"); + string Des = values.Value("Des"); + string Unit = values.Value("Unit"); + string Amount_Design = values.Value("Amount_Design"); + string Amount_Re = values.Value("Amount_Re"); + string Amount_This = values.Value("Amount_This"); + string Amount_Total = values.Value("Amount_Total"); + string Size1 = values.Value("Size1"); + string Size2 = values.Value("Size2"); + + //FineUIPro.TextBox txtMaterialCode = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtMaterialCode"); + //FineUIPro.TextBox txtLocNum = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtLocNum"); + //FineUIPro.TextBox txtDes = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtDes"); + //FineUIPro.TextBox txtUnit = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtUnit"); + //FineUIPro.TextBox txtAmount_Design = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtAmount_Design"); + //FineUIPro.TextBox txtAmount_Re = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtAmount_Re"); + //FineUIPro.TextBox txtAmount_This = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtAmount_This"); + //FineUIPro.TextBox txtAmount_Total = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtAmount_Total"); + //FineUIPro.TextBox txtSize1 = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtSize1"); + //FineUIPro.TextBox txtSize2 = (FineUIPro.TextBox)Grid1.Rows[i].FindControl("txtSize2"); + + Model.HJGL_Material_Apply_Item apply = new Model.HJGL_Material_Apply_Item + { + ID = ID, + ApplyID = applyNew.ID, + MaterialCode = MaterialCode, + LocNum = LocNum, + Des = Des, + Unit = Unit, + Amount_Design = Amount_Design, + Amount_Re = Amount_Re, + Amount_This = Amount_This, + Amount_Total = Amount_Total, + Size1 = Size1, + Size2 = Size2 + }; + applyItem.Add(apply); + + } + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.UpdateMaterialApplyItem(applyItem); + if (State == BLL.Const.MaterialApply_Compile) + { + Model.HJGL_Material_Apply_Approve approve = new Model.HJGL_Material_Apply_Approve(); + approve.MaterialApplyApproveId = Guid.NewGuid().ToString(); + approve.ApproveMan = applyNew.CreateMan; + approve.ApproveType = BLL.Const.MaterialApply_Compile; + approve.MaterialApplyId = applyNew.ID; + approve.ApproveDate = DateTime.Now; + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.AddMaterialApplyApprove(approve); + + Model.HJGL_Material_Apply_Approve nextapprove = new Model.HJGL_Material_Apply_Approve(); + nextapprove.MaterialApplyApproveId = Guid.NewGuid().ToString(); + nextapprove.ApproveMan = this.drpHandleMan.SelectedValue; + nextapprove.ApproveType = BLL.Const.MaterialApply_Audit1; + nextapprove.MaterialApplyId = applyNew.ID; + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.AddMaterialApplyApprove(nextapprove); + + + } + else if (State == BLL.Const.MaterialApply_ReCompile) + { + Model.HJGL_Material_Apply_Approve approve = BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.getCurrMaterialApplyApprove(applyNew.ID); + approve.ApproveDate = DateTime.Now; + approve.ApproveIdea = this.txtOpinions.Text; + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.UpdateMaterialApplyApprove(approve); + + Model.HJGL_Material_Apply_Approve nextapprove = new Model.HJGL_Material_Apply_Approve(); + nextapprove.MaterialApplyApproveId = Guid.NewGuid().ToString(); + nextapprove.ApproveMan = this.drpHandleMan.SelectedValue; + nextapprove.ApproveType = BLL.Const.MaterialApply_Audit1; + nextapprove.MaterialApplyId = applyNew.ID; + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.AddMaterialApplyApprove(nextapprove); + } + else if(State == BLL.Const.MaterialApply_Audit1) + { + + Model.HJGL_Material_Apply_Approve approve = BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.getCurrMaterialApplyApprove(applyNew.ID); + approve.ApproveDate = DateTime.Now; + approve.ApproveIdea = this.txtOpinions.Text; + approve.IsAgree = Convert.ToBoolean(this.rblIsAgree.SelectedValue); + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.UpdateMaterialApplyApprove(approve); + + if (approve.IsAgree.Value) + { + Model.HJGL_Material_Apply_Approve nextapprove = new Model.HJGL_Material_Apply_Approve(); + nextapprove.MaterialApplyApproveId = Guid.NewGuid().ToString(); + nextapprove.ApproveMan = applyNew.CreateMan; + nextapprove.ApproveType = BLL.Const.MaterialApply_Complete; + nextapprove.MaterialApplyId = applyNew.ID; + nextapprove.ApproveDate = DateTime.Now.AddSeconds(10); + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.AddMaterialApplyApprove(nextapprove); + applyNew.State = BLL.Const.MaterialApply_Complete; + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.UpdateMaterialApply(applyNew); + } + else + { + Model.HJGL_Material_Apply_Approve nextapprove = new Model.HJGL_Material_Apply_Approve(); + nextapprove.MaterialApplyApproveId = Guid.NewGuid().ToString(); + nextapprove.ApproveMan = this.CurrUser.UserId; + nextapprove.ApproveType = BLL.Const.MaterialApply_ReCompile; + nextapprove.MaterialApplyId = applyNew.ID; + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.AddMaterialApplyApprove(nextapprove); + applyNew.State = BLL.Const.MaterialApply_ReCompile; + BLL.HJGL.MaterialManage.HJGL_MaterialApplyService.UpdateMaterialApply(applyNew); + } + + + + + + } + + + + + } + else + { + Alert.ShowInTop("请输入请购内容!", MessageBoxIcon.Warning); + } + + //for (int i = 0; i < a; i++) + //{ + // Model.HJGL_Material_Apply_Item apply = new Model.HJGL_Material_Apply_Item + // { + // ID = applyItems[i].ID, + // ApplyID = applyNew.ID, + // MaterialCode = applyItems[i].MaterialCode, + // LocNum = applyItems[i].LocNum, + // Des = applyItems[i].Des, + // Unit = applyItems[i].Unit, + // Amount_Design = applyItems[i].Amount_Design, + // Amount_Re = applyItems[i].Amount_Re, + // Amount_This = applyItems[i].Amount_This, + // Amount_Total = applyItems[i].Amount_Total, + // Size1 = applyItems[i].Size1, + // Size2 = applyItems[i].Size2 + // }; + // Funs.DB.HJGL_Material_Apply_Item.InsertOnSubmit(apply); + // //newUser.UserId = getUser.UserId; + + // insertCount++; + + //} + Funs.DB.SubmitChanges(); + string rootPath = Server.MapPath("~/"); + string initFullPath = rootPath + initPath; + string filePath = initFullPath + this.hdFileName.Text; + if (filePath != string.Empty && File.Exists(filePath)) + { + File.Delete(filePath);//删除上传的XLS文件 + } + ShowNotify("保存成功", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + + } + + #endregion + #region 关闭弹出窗口 + /// + /// 关闭导入弹出窗口 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + if (Session["applyItems"] != null) + { + applyItems = Session["applyItems"] as List; + } + if (applyItems.Count > 0) + { + this.Grid1.Hidden = false; + this.Grid1.DataSource = applyItems; + this.Grid1.DataBind(); + } + } + + #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 filePath = Const.MaterialApplyTemplateUrl; + string uploadfilepath = rootPath + filePath; + 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(); + } + } + + protected string ConvertProjectName(object state) + { + if (state != null) + { + var type= Funs.DB.Base_QualityQuestionType.Where(u=>u.QualityQuestionTypeId==state.ToString()).FirstOrDefault(); + if (type != null) + { + return type.QualityQuestionType; + } + } + return ""; + } + + + protected string ConvertState(object state) + { + if (state != null) + { + if (state.ToString() == BLL.Const.MaterialApply_ReCompile) + { + return "重新编制"; + } + else if (state.ToString() == BLL.Const.MaterialApply_Compile) + { + return "编制"; + } + else if (state.ToString() == BLL.Const.MaterialApply_Audit1) + { + return "总包负责人审批"; + } + + else if (state.ToString() == BLL.Const.MaterialApply_Complete) + { + return "审批完成"; + } + + else + { + return ""; + } + } + return ""; + } + /// + /// 获取人员名称 + /// + /// + /// + protected string ConvertUserName(object userid) + { + string name = string.Empty; + if (userid != null) + { + var user = BLL.UserService.GetUserByUserId(userid.ToString()); + if (user != null) + { + name = user.UserName; + } + } + + return name; + } + #endregion + + + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx.designer.cs new file mode 100644 index 0000000..7b37e1e --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/MaterialApplyEdit.aspx.designer.cs @@ -0,0 +1,440 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class MaterialApplyEdit + { + + /// + /// 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; + + /// + /// btnSave1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave1; + + /// + /// btnSubmit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSubmit; + + /// + /// txtProjectName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProjectName; + + /// + /// dpApplyUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList dpApplyUnit; + + /// + /// txtApplyName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtApplyName; + + /// + /// txtApplyCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtApplyCode; + + /// + /// dpApplyDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker dpApplyDate; + + /// + /// txtApplyDes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtApplyDes; + + /// + /// FrUpload 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FormRow FrUpload; + + /// + /// fuAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload fuAttachUrl; + + /// + /// btnAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit; + + /// + /// btnDownLoad 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDownLoad; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// txtMaterialCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMaterialCode; + + /// + /// txtLocNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtLocNum; + + /// + /// txtDes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDes; + + /// + /// txtUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUnit; + + /// + /// txtAmount_Design 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAmount_Design; + + /// + /// txtAmount_Re 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAmount_Re; + + /// + /// txtAmount_This 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAmount_This; + + /// + /// txtAmount_Total 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAmount_Total; + + /// + /// txtSize1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSize1; + + /// + /// txtSize2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSize2; + + /// + /// hdFileName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdFileName; + + /// + /// hdCheckResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCheckResult; + + /// + /// lblBottom 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblBottom; + + /// + /// ContentPanel5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel5; + + /// + /// Form5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form5; + + /// + /// frStap 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FormRow frStap; + + /// + /// drpHandleType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpHandleType; + + /// + /// drpHandleMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpHandleMan; + + /// + /// FrYesOrNo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FormRow FrYesOrNo; + + /// + /// rblIsAgree 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblIsAgree; + + /// + /// FrApprove1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FormRow FrApprove1; + + /// + /// txtOpinions 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtOpinions; + + /// + /// plApprove2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FormRow plApprove2; + + /// + /// gvApprove 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvApprove; + + /// + /// lbtype 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbtype; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx new file mode 100644 index 0000000..656fa16 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx @@ -0,0 +1,168 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RecycleMat.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.RecycleMat" %> + + + + + + 焊材回收查询 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx.cs new file mode 100644 index 0000000..cba7cbb --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx.cs @@ -0,0 +1,241 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Data.SqlClient; +using System.Data; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class RecycleMat : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + BindGrid(); + + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT m.UsingMatId, m.ProjectId, m.UsePosition, m.WeldId,weld.ConsumablesCode,weld.ConsumablesName,weld.SteelFormat, m.UsingPlanId, + m.Amount,m.TwoAmount,usingMat.WED_Code AS UsingMan, m.UsingDate,m.Warrantybook,m.Number,r.RecycleAmount, + r.RecycleDate,storeman.UserName as StoreName,welder.WED_Name AS RecycleMan,r.ReturnMatTop, + (CASE WHEN m.IsOnTime=1 THEN '是' ELSE '否' END ) AS IsOnTime, + (CASE WHEN r.IsWelderConfirm=1 THEN '是' ELSE '否' END) AS IsRecycleMat + FROM dbo.Weld_UsingMat m + LEFT JOIN dbo.Weld_RecycleMat r ON m.UsingMatId=r.UsingMatId + LEFT JOIN dbo.Sys_User AS storeman ON storeman.UserId=r.StockMan + LEFT JOIN dbo.BS_Welder AS welder ON welder.WED_ID=r.RecycleMan + LEFT JOIN dbo.Base_Consumables weld ON weld.ConsumablesId = m.WeldId + LEFT JOIN dbo.BS_Welder usingMat ON usingmat.WED_ID=m.UsingMan + WHERE m.IsWelderConfirm=1 AND m.IsStoreManConfirm=1"; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.txtWelderCode.Text.Trim())) + { + strSql += " AND usingMat.WED_Code LIKE @WelderCode"; + listStr.Add(new SqlParameter("@WelderCode", "%" + this.txtWelderCode.Text.Trim() + "%")); + } + strSql += " AND m.ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtWelderCode.Text.Trim())) + { + strSql += " AND weld.ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtWelderCode.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtUsingMan.Text.Trim())) + { + strSql += " AND welder.WED_Name LIKE @UsingMan"; + listStr.Add(new SqlParameter("@UsingMan", "%" + this.txtUsingMan.Text.Trim() + "%")); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + tb = GetSortTable(Grid1, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region Grid右键菜单事件 + /// + /// 焊材退回 + /// + /// + /// + protected void btnMenuRecycleMat_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + var mat = BLL.UsingMatService.GetUsingMatById(this.Grid1.SelectedRowID); + bool isRec = false; + + if (mat.UsingDate.Value.AddHours(24) < DateTime.Now) + { + isRec = true; + } + + if (isRec) + { + var rec = BLL.RecycleMatService.GetRecycleMatByUsingMatId(this.Grid1.SelectedRowID); + if (rec != null && rec.IsStoreManConfirm == true && rec.IsWelderConfirm == true) + { + ShowNotify("焊材已退!"); + } + else + { + string window = String.Format("RecycleMatEdit.aspx?usingMatId={0}&isOnTime=0", this.Grid1.SelectedRowID, "编辑 - "); + PageContext.RegisterStartupScript(Window1.GetShowReference(window)); + } + + } + else + { + ShowNotify("未超过指定退料时间,请到焊工领料页面进行正常退料!"); + } + } + } + + protected void btnRecycleFind_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + string window = String.Format("RecycleMatEdit.aspx?usingMatId={0}&flag=1", this.Grid1.SelectedRowID, "编辑 - "); + PageContext.RegisterStartupScript(Window1.GetShowReference(window)); + } + } + + protected void menuRecycleMatConfirm_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + string weldMatId = this.Grid1.SelectedRowID; + var rec = BLL.RecycleMatService.GetRecycleMatByUsingMatId(weldMatId); + if (rec != null) + { + if (rec.IsStoreManConfirm == true && rec.IsWelderConfirm == true) + { + ShowNotify("保管员和焊工已确认!"); + } + else + { + string window = String.Format("UsingMatCheck.aspx?keyId={0}&grid=2&isFinger=0", rec.RecycleMatId, "编辑 - "); + PageContext.RegisterStartupScript(Window3.GetShowReference(window)); + } + } + else + { + ShowNotify("请先保存退回材料的记录!"); + } + } + } + + #endregion + + #region Grid行点击双击事件 + /// + /// + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + string weldMatId = e.RowID; + var rec = BLL.RecycleMatService.GetRecycleMatByUsingMatId(weldMatId); + if (rec != null) + { + if (rec.IsStoreManConfirm == true && rec.IsWelderConfirm == true) + { + ShowNotify("保管员和焊工已确认!"); + } + else + { + string window = String.Format("UsingMatCheck.aspx?keyId={0}&grid=2", weldMatId, "编辑 - "); + PageContext.RegisterStartupScript(Window3.GetShowReference(window)); + } + } + else + { + ShowNotify("请先保存记录!"); + } + } + #endregion + + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + + protected void Window3_Close(object sender, WindowCloseEventArgs e) + { + + } + + #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 TextBox_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx.designer.cs new file mode 100644 index 0000000..c5ecc28 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMat.aspx.designer.cs @@ -0,0 +1,204 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class RecycleMat { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel2; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// txtWelderCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWelderCode; + + /// + /// txtWeldCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldCode; + + /// + /// txtUsingMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUsingMan; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// Toolbar3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar3; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// 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; + + /// + /// Window3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window3; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuRecycleMat 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuRecycleMat; + + /// + /// btnRecycleFind 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnRecycleFind; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx new file mode 100644 index 0000000..834480b --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx @@ -0,0 +1,69 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RecycleMatEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.RecycleMatEdit" %> + + + + + + 退料 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx.cs new file mode 100644 index 0000000..c062178 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx.cs @@ -0,0 +1,200 @@ +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.HJGL.MaterialManage +{ + public partial class RecycleMatEdit : PageBase + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + string usingMatId = Request.Params["usingMatId"]; + string welderId = Request.Params["welderId"]; + string flag = Request.Params["flag"]; // 标记1-查看 + if (flag == "1") + { + this.btnSave.Hidden = true; + } + else + { + this.btnSave.Hidden = false; + } + var mat = BLL.UsingMatService.GetUsingMatById(usingMatId); + var weld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(mat.WeldId); + var type = string.Empty; + var dropValue = BLL.DropListService.HJGL_ConsumablesTypeList().FirstOrDefault(x => x.Value == weld.ConsumablesType); + if (dropValue != null) + { + type = dropValue.Text; + } + + // 焊工 + this.drpWelder.Items.Clear(); + drpWelder.DataTextField = "Text"; + drpWelder.DataValueField = "Value"; + drpWelder.DataSource = BLL.WelderService.GetWelderByUsingPlan(mat.UsingPlanId); + drpWelder.DataBind(); + if (!string.IsNullOrEmpty(welderId)) + { + this.drpWelder.SelectedValue = welderId; + this.drpWelder.Readonly = true; + } + + // 保管员 + this.drpStoreMan.Items.Clear(); + drpStoreMan.DataTextField = "UserName"; + drpStoreMan.DataValueField = "UserId"; + drpStoreMan.DataSource = BLL.UserService.GetProjectUserListByProjectId(this.CurrUser.LoginProjectId); + drpStoreMan.DataBind(); + + + this.txtWeldName.Text = weld.ConsumablesCode; + txtWeldSpec.Text = weld.SteelFormat; + txtWarrantybook.Text = mat.Warrantybook; + txtNumber.Text = mat.Number; + this.txtRecycleAmount.Text = "0"; + //drpWelder.SelectedValue = mat.UsingMan; + txtRecycleDate.Text = DateTime.Now.ToString(); + var curUser = BLL.UserService.GetUserByUserId(this.CurrUser.UserId); + if (curUser != null) + { + drpStoreMan.SelectedValue = curUser.UserId; + } + + var recycleMat = BLL.RecycleMatService.GetRecycleMatByUsingMatId(usingMatId); + if (recycleMat != null) + { + txtRecycleDate.Text = recycleMat.RecycleDate.Value.ToString(); + if (recycleMat.RecycleAmount != null) + { + txtRecycleAmount.Text = recycleMat.RecycleAmount.Value.ToString(); + } + if (recycleMat.ReturnMatTop != null) + { + txtRecycleTopAmount.Text = recycleMat.ReturnMatTop.Value.ToString(); + } + if (recycleMat.StockMan != null) + { + drpStoreMan.SelectedValue = recycleMat.StockMan; + } + if (recycleMat.RecycleMan != null) + { + drpWelder.SelectedValue = recycleMat.RecycleMan; + } + } + + if (type == "焊条") + { + this.txtRecycleTopAmount.Hidden = false; + decimal oneNum = mat.Amount != null ? mat.Amount.Value : 0; + decimal twoNum = mat.TwoAmount != null ? mat.TwoAmount.Value : 0; + this.txtRecycleTopAmount.Text = (oneNum + twoNum).ToString(); + } + else + { + this.txtRecycleTopAmount.Hidden = true; + } + } + } + + /// + /// 提交按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + string usingMatId = Request.Params["usingMatId"]; + string isOnTime = Request.Params["isOnTime"]; // 是否准时 0-否 + + var mat = BLL.UsingMatService.GetUsingMatById(usingMatId); + var recycleMat = BLL.RecycleMatService.GetRecycleMatByUsingMatId(usingMatId); + if (this.txtRecycleAmount.Text == string.Empty) + { + ShowNotify("请输入退回数量!"); + return; + } + Model.Weld_RecycleMat newRecycleMat = new Model.Weld_RecycleMat(); + newRecycleMat.ProjectId = mat.ProjectId; + newRecycleMat.WeldId = mat.WeldId; + newRecycleMat.UsingPlanId = mat.UsingPlanId; + if (this.txtRecycleAmount.Text != "") + { + newRecycleMat.RecycleAmount = Convert.ToDecimal(this.txtRecycleAmount.Text); + } + if (this.txtRecycleTopAmount.Text != "") + { + newRecycleMat.ReturnMatTop = Convert.ToInt32(this.txtRecycleTopAmount.Text); + } + newRecycleMat.RecycleMan = drpWelder.SelectedValue; + newRecycleMat.StockMan = this.drpStoreMan.SelectedValue; + newRecycleMat.RecycleDate = Convert.ToDateTime(this.txtRecycleDate.Text); + newRecycleMat.Warrantybook = mat.Warrantybook; + newRecycleMat.Number = mat.Number; + newRecycleMat.UsePosition = mat.UsePosition; + newRecycleMat.UsingMatId = usingMatId; + newRecycleMat.IsStoreManConfirm = true; + newRecycleMat.IsWelderConfirm = true; + + if (newRecycleMat.RecycleAmount > mat.Amount) + { + ShowNotify("退回数量不能大于领用数量!"); + return; + } + if (recycleMat == null) + { + newRecycleMat.RecycleMatId = SQLHelper.GetNewID(typeof(Model.Weld_RecycleMat)); + BLL.RecycleMatService.AddRecycleMat(newRecycleMat); + + // 不需要确认,直接退回库存 + if (!string.IsNullOrEmpty(mat.StockInId)) + { + if (this.txtRecycleAmount.Text != "" && this.txtRecycleAmount.Text != "0") + { + decimal recycleAmount = Convert.ToDecimal(this.txtRecycleAmount.Text); + BLL.StockInService.UpdateStockInAmount(mat.StockInId, recycleAmount); + } + } + } + else + { + //if (recycleMat.IsStoreManConfirm == true || recycleMat.IsWelderConfirm == true) + //{ + // ShowNotify("保管员或焊工已确认,不能修改!"); + // return; + //} + //else + //{ + newRecycleMat.RecycleMatId = recycleMat.RecycleMatId; + BLL.RecycleMatService.UpdateRecycleMat(newRecycleMat); + if (!string.IsNullOrEmpty(mat.StockInId)) + { + if (this.txtRecycleAmount.Text != "" && this.txtRecycleAmount.Text != "0") + { + decimal oldRecycleAmount = recycleMat.RecycleAmount != null ? recycleMat.RecycleAmount.Value : 0; + decimal newRecycleAmount = Convert.ToDecimal(this.txtRecycleAmount.Text); + BLL.StockInService.UpdateStockInAmount(mat.StockInId, oldRecycleAmount, newRecycleAmount); + } + } + + //} + } + + if (isOnTime == "0") // 违规 + { + BLL.UsingMatService.UsingMatIsOnTime(usingMatId, true); + } + + // 闭环 + BLL.UsingMatService.UsingMatIsColse(usingMatId, true); + ShowNotify("焊材已退回仓库!"); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx.designer.cs new file mode 100644 index 0000000..5b3098d --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/RecycleMatEdit.aspx.designer.cs @@ -0,0 +1,141 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class RecycleMatEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtWeldName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtWeldName; + + /// + /// txtWeldSpec 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtWeldSpec; + + /// + /// txtWarrantybook 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtWarrantybook; + + /// + /// txtNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtNumber; + + /// + /// txtRecycleAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtRecycleAmount; + + /// + /// txtRecycleTopAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtRecycleTopAmount; + + /// + /// txtRecycleDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtRecycleDate; + + /// + /// drpWelder 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWelder; + + /// + /// drpStoreMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpStoreMan; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx new file mode 100644 index 0000000..3eff145 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx @@ -0,0 +1,135 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReleaseRecovery.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ReleaseRecovery" %> + + + + + + 焊接材料发放回收记录 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx.cs new file mode 100644 index 0000000..429ac7f --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx.cs @@ -0,0 +1,373 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Data.SqlClient; +using System.Data; +using Newtonsoft.Json.Linq; +using BLL; +using System.Text; +using System.Web; +using System.Reflection; +using System.Diagnostics; +using System.IO; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ReleaseRecovery : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + + this.drpWeldType.DataTextField = "Text"; + this.drpWeldType.DataValueField = "Value"; + this.drpWeldType.DataSource = BLL.DropListService.HJGL_ConsumablesTypeList(); + this.drpWeldType.DataBind(); + Funs.FineUIPleaseSelect(this.drpWeldType); + + //Funs.FineUIPleaseSelect(this.drpTeamGroup); + this.drpWelder.DataTextField = "Text"; + this.drpWelder.DataValueField = "Value"; + this.drpWelder.DataSource = BLL.WelderService.GetWelderCodeListByProjectId(this.CurrUser.LoginProjectId); + this.drpWelder.DataBind(); + Funs.FineUIPleaseSelect(this.drpWelder); + + BLL.UserService.InitUserDropDownList(this.drpStoreMan,this.CurrUser.LoginProjectId,true); + BindGrid(); + } + } + #endregion + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT * FROM Weld_View_ReleaseRecovery WHERE ProjectId=@ProjectId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + + if (drpWelder.SelectedValue != Const._Null && drpWelder.SelectedValue != null) + { + strSql += " AND WED_ID =@WED_ID"; + listStr.Add(new SqlParameter("@WED_ID", drpWelder.SelectedValue)); + } + + if (drpStoreMan.SelectedValue != Const._Null && drpStoreMan.SelectedValue != null) + { + strSql += " AND StoreMan =@StoreMan"; + listStr.Add(new SqlParameter("@StoreMan", drpStoreMan.SelectedValue)); + } + + if (drpWeldType.SelectedValue != Const._Null) + { + strSql += " AND ConsumablesType =@WeldTypeId"; + listStr.Add(new SqlParameter("@WeldTypeId", drpWeldType.SelectedValue)); + } + + if (!string.IsNullOrEmpty(this.txtWeldCode.Text.Trim())) + { + strSql += " AND ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtWeldCode.Text.Trim() + "%")); + } + //if (!string.IsNullOrEmpty(this.txtJOT_ID.Text.Trim())) + //{ + // strSql += " AND UsePosition LIKE @UsePosition"; + // listStr.Add(new SqlParameter("@UsePosition", "%" + this.txtJOT_ID.Text.Trim() + "%")); + //} + + if (!string.IsNullOrEmpty(this.txtStarTime.Text)) + { + strSql += " AND UsingDate >=@StarTime"; + listStr.Add(new SqlParameter("@StarTime", Convert.ToDateTime(this.txtStarTime.Text.Trim()))); + } + + if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + { + strSql += " AND UsingDate <=@EndTime"; + listStr.Add(new SqlParameter("@EndTime", Convert.ToDateTime(this.txtEndTime.Text.Trim()).AddDays(1))); + } + + strSql += " ORDER BY Years DESC,Months DESC,Dayt DESC ,UsePosition"; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + this.OutputSummaryData(tb); ///取合计值 + Grid1.DataSource = table; + Grid1.DataBind(); + + } + #endregion + + #region 计算合计 + /// + /// 计算合计 + /// + private void OutputSummaryData(DataTable tb) + { + decimal usingMatSum = 0; //领用数量 + decimal recycleMatSum = 0; //退回数量 + int RecycleMatTopSum = 0; //退回焊材头数量 + + for (int i = 0; i < tb.Rows.Count; i++) + { + usingMatSum += Funs.GetNewDecimalOrZero(tb.Rows[i]["Amount"].ToString()); + recycleMatSum += Funs.GetNewDecimalOrZero(tb.Rows[i]["RecycleAmount"].ToString()); + RecycleMatTopSum += Funs.GetNewIntOrZero(tb.Rows[i]["MatTopAmount"].ToString()); + } + JObject summary = new JObject(); + summary.Add("UsePosition", "合计:"); + summary.Add("Amount", usingMatSum); + summary.Add("RecycleAmount", recycleMatSum); + summary.Add("MatTopAmount", RecycleMatTopSum); + Grid1.SummaryData = summary; + } + #endregion + + #region 表头过滤 + protected void Grid1_FilterChange(object sender, EventArgs e) + { + 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 btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 导出 + + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + // 测试图片 + //string reportId = BLL.Const.HGGL_TestReportId; + //PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", reportId, "", "", "打印 - "))); + } + + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) + { + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + + this.Grid1.PageSize = 10000; + BindGrid(); + + 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("labNumber") as AspNet.Label).Text; + //} + sb.AppendFormat("", html); + } + + sb.Append(""); + } + + sb.Append("
{0}
{0}
"); + + return sb.ToString(); + } + #endregion + + #region 打印 + /// + /// 打印 + /// + /// + /// + protected void btnPrint_Click(object sender, EventArgs e) + { + //string projectId = this.tvControlItem.SelectedNodeID; + //if (!string.IsNullOrEmpty(projectId)) + //{ + // var unit = BLL.Base_UnitService.GetUnit(Const.zzfgsId); + // var project = BLL.Base_ProjectService.GetProjectByProjectId(projectId); + // string varValue = "工程名称:" + project.ProjectName; + // if (unit != null) + // { + // varValue = varValue + "|" + unit.UnitName + "|" + unit.UnitName; + // } + // varValue = HttpUtility.UrlEncodeUnicode(varValue); + // string replaceParameter = projectId; + // if (drpWeldType.SelectedValue != Const._Null) + // { + // replaceParameter = replaceParameter + "|" + drpWeldType.SelectedValue; + // } + // else + // { + // replaceParameter = replaceParameter + "|" + "NULL"; + // } + + // if (drpStoreMan.SelectedValue != Const._Null) + // { + // replaceParameter = replaceParameter + "|" + drpStoreMan.SelectedValue; + // } + // else + // { + // replaceParameter = replaceParameter + "|" + "NULL"; + // } + + // if (txtStarTime.Text != string.Empty) + // { + // replaceParameter = replaceParameter + "|" + txtStarTime.Text.Trim(); + // } + // else + // { + // replaceParameter = replaceParameter + "|" + "NULL"; + // } + + // if (this.txtEndTime.Text != string.Empty) + // { + // replaceParameter = replaceParameter + "|" + txtEndTime.Text.Trim(); + // } + // else + // { + // replaceParameter = replaceParameter + "|" + "NULL"; + // } + // string reportId = string.Empty; + + // if (drpWeldType.SelectedValue != Const._Null) + // { + // if (drpWeldType.SelectedText == "焊条") + // { + // reportId = BLL.Const.CLGL_ReleaseRecoveryReportId; + // } + // else + // { + // reportId = BLL.Const.HJGL_ElectrodeRecoveryReportId; + // } + // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", reportId, replaceParameter, varValue, "打印 - "))); + // } + // else + // { + // ShowNotify("请选择焊材类型!", MessageBoxIcon.Warning); + // return; + // } + //} + //else + //{ + // ShowNotify("请选择施工号!", MessageBoxIcon.Warning); + // return; + //} + } + #endregion + + + protected void btnPrint2_Click(object sender, EventArgs e) + { + string projectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(projectId)) + { + //var project = BLL.Base_ProjectService.GetProjectByProjectId(projectId); + //string varValue = project.ProjectCode + "|" + project.ProjectName; + //varValue = HttpUtility.UrlEncodeUnicode(varValue); + //string replaceParameter = projectId; + //if (txtStarTime.Text != string.Empty) + //{ + // replaceParameter = replaceParameter + "|" + txtStarTime.Text.Trim(); + //} + //else + //{ + // replaceParameter = replaceParameter + "|" + "NULL"; + //} + + //if (this.txtEndTime.Text != string.Empty) + //{ + // replaceParameter = replaceParameter + "|" + txtEndTime.Text.Trim(); + //} + //else + //{ + // replaceParameter = replaceParameter + "|" + "NULL"; + //} + + string window = String.Format("ReleaseRecoveryPrint.aspx?projectId={0}&&startDate={1}&&endDate={2}", projectId, this.txtStarTime.Text.Trim(), this.txtEndTime.Text.Trim(), "编辑 - "); + PageContext.RegisterStartupScript(Window1.GetShowReference(window)); + } + else + { + ShowNotify("请选择施工号!", MessageBoxIcon.Warning); + return; + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx.designer.cs new file mode 100644 index 0000000..d90e088 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ReleaseRecovery.aspx.designer.cs @@ -0,0 +1,222 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class ReleaseRecovery { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// drpWelder 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWelder; + + /// + /// drpStoreMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpStoreMan; + + /// + /// drpWeldType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWeldType; + + /// + /// txtWeldCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldCode; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// btnPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPrint; + + /// + /// btnPrint2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPrint2; + + /// + /// GroupField2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupField GroupField2; + + /// + /// GroupField1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupField GroupField1; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx new file mode 100644 index 0000000..76e25de --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx @@ -0,0 +1,91 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowPlanWeld.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ShowPlanWeld" %> + + + + + + 焊材信息 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + <%-- + + + + --%> + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx.cs new file mode 100644 index 0000000..26cd3c0 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx.cs @@ -0,0 +1,223 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ShowPlanWeld : PageBase + { + #region 定义项 + /// + /// 主键 + /// + private string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + #endregion + + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ProjectId = Request.Params["projectId"]; + + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + this.drpWeldType.DataTextField = "Text"; + this.drpWeldType.DataValueField = "Value"; + this.drpWeldType.DataSource = BLL.DropListService.HJGL_ConsumablesTypeList(); + this.drpWeldType.DataBind(); + Funs.FineUIPleaseSelect(this.drpWeldType); + // 绑定表格 + BindGrid(); + } + } + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT weld.ConsumablesId, weld.ConsumablesCode, weld.ConsumablesName, weld.SteelFormat,weld.SteelType, + case weld.ConsumablesType when '1' then '焊丝' when '2' then '焊条' when '3' then '焊剂' else '' end as WeldTypeName,weld.WeldUnit + FROM dbo.Base_Consumables weld + left join Weld_StockIn stockIn on weld.ConsumablesId=stockIn.WeldId + WHERE stockIn.StockInId is not null and ProjectId=@ProjectId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (drpWeldType.SelectedValue != BLL.Const._Null) + { + strSql += " AND weld.ConsumablesType = @WeldTypeId"; + listStr.Add(new SqlParameter("@WeldTypeId", drpWeldType.SelectedValue)); + } + if (!string.IsNullOrEmpty(this.txtName.Text.Trim())) + { + strSql += " AND weld.ConsumablesName LIKE @ConsumablesName"; + listStr.Add(new SqlParameter("@ConsumablesName", "%" + this.txtName.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtCode.Text.Trim())) + { + strSql += " AND weld.ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtCode.Text.Trim() + "%")); + } + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页排序 + /// + /// + /// + /// + /// + 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_FilterChange(object sender, EventArgs e) + { + BindGrid(); + } + + protected void drpWeldType_SelectedIndexChanged(object sender, EventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region Grid双击事件 + /// + /// Grid双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + string itemsString = this.Grid1.SelectedRowID; + + PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(itemsString) + + ActiveWindow.GetHidePostBackReference()); + } + #endregion + + + #region 格式化字符串 + /// + /// 获取剩余数量 + /// + /// + /// + protected string ConvertAmount(object WeldId) + { + decimal? sumUsingAmount = 0;//领用数量 + decimal? sumRecycleAmount = 0;//回收数量 + decimal? totalAmount = 0;//总领用数量 + if (WeldId != null) + { + var usingMat = from x in Funs.DB.Weld_UsingMat where x.ProjectId == this.ProjectId && x.WeldId == WeldId.ToString() select x; + if (usingMat.Count() > 0) + { + sumUsingAmount = usingMat.Sum(e => e.Amount); + } + + var recycleMat = from x in Funs.DB.Weld_RecycleMat where x.ProjectId == this.ProjectId && x.WeldId == WeldId.ToString() select x; + if (recycleMat.Count() > 0) + { + sumRecycleAmount = recycleMat.Sum(e => e.RecycleAmount); + } + + //totalAmount = sumUsingAmount ?? 0 - sumRecycleAmount ?? 0; + //var weld = BLL.WeldInfoService.GetWeldInfoById(WeldId.ToString()); + //var weldType = BLL.WeldTypeService.GetWeldTypeById(weld.WeldTypeId); + //if (weldType.WeldTypeName.Contains("焊条")) + //{ + // totalAmount = (totalAmount ?? 0) / weld.ConvertValue; + //} + } + return string.Format("{0:0.##}", totalAmount); + } + #endregion + + /// + /// 获取焊材类型 + /// + /// + /// + protected string ConvertSteelType(object SteelType) + { + string name = string.Empty; + if (SteelType != null) + { + var dropValue = BLL.DropListService.HJGL_GetSteTypeList().FirstOrDefault(x => x.Value == SteelType.ToString()); + if (dropValue != null) + { + name = dropValue.Text; + } + } + + return name; + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx.designer.cs new file mode 100644 index 0000000..1285c25 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowPlanWeld.aspx.designer.cs @@ -0,0 +1,141 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class ShowPlanWeld { + + /// + /// 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; + + /// + /// txtCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCode; + + /// + /// txtName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtName; + + /// + /// drpWeldType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWeldType; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx new file mode 100644 index 0000000..1c65d00 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx @@ -0,0 +1,98 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowStockIn.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ShowStockIn" %> + + + + + + 焊材库存信息 + + + +
+ + + + + + + + + <%-- + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx.cs new file mode 100644 index 0000000..12a3457 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx.cs @@ -0,0 +1,312 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Data.SqlClient; +using System.Data; +using Newtonsoft.Json.Linq; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ShowStockIn : PageBase + { + /// + /// 计划ID + /// + private string UsingPlanId + { + get + { + return (string)ViewState["UsingPlanId"]; + } + set + { + ViewState["UsingPlanId"] = value; + } + } + + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.UsingPlanId = Request.Params["UsingPlanId"]; + var plan = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + var welder = BLL.WelderService.GetWelderById(plan.UsingManOne); + decimal usedAmount = BLL.UsingMatService.GetUsingAmountSum(this.UsingPlanId); + string strUsing = string.Empty; + if (plan != null && welder != null) + { + strUsing = "焊工:" + welder.WED_Code + "-" + welder.WED_Name + "计划领用焊材数量为:" + plan.Amount.Value.ToString(); + } + if (usedAmount > 0) + { + strUsing = strUsing + "已领用:" + usedAmount.ToString(); + } + this.lbUsingMatInfo.Text = strUsing; + // 绑定表格 + BindGrid(); + } + } + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + var plan = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + string strSql = @" SELECT StockIn.StockInId, StockIn.WeldId,StockIn.Warrantybook, + WeldInfo.ConsumablesCode,WeldInfo.ConsumablesName,WeldInfo.SteelFormat, + case WeldInfo.ConsumablesType when '1' then '焊丝' when '2' then '焊条' when '3' then '焊剂' else '' end as WeldTypeName,'根' AS WeldUnit,store.UnitStoreName, + (StockIn.Amount-ISNULL(StockIn.UsingAmount,0)) AS StockAmount, + StockIn.HeartNo, StockIn.RecycleAmount, @OneAmount as OneAmount + FROM Weld_StockIn AS StockIn + LEFT JOIN Base_Consumables AS WeldInfo ON WeldInfo.ConsumablesId = StockIn.WeldId + LEFT JOIN dbo.Weld_UnitStore store ON store.UnitStoreId = StockIn.UnitStoreId + WHERE (StockIn.Amount-ISNULL(StockIn.UsingAmount,0)+ISNULL(StockIn.RecycleAmount,0))>0 + AND StockIn.WeldId=@WeldId AND (StockIn.Amount-ISNULL(StockIn.UsingAmount,0))>0 and store.UnitId=@UnitId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@UnitId", plan.UsingUnit)); + if (plan != null) + { + listStr.Add(new SqlParameter("@OneAmount", plan.Amount)); + listStr.Add(new SqlParameter("@WeldId", plan.WeldId)); + } + else + { + listStr.Add(new SqlParameter("@WeldId", null)); + } + //if (CurrUser.UnitId != null) + //{ + // listStr.Add(new SqlParameter("@UnitId", CurrUser.UnitId)); + //} + //else + //{ + // listStr.Add(new SqlParameter("@UnitId", null)); + //} + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetSortTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 确定按钮 + /// + /// 确定按钮 + /// + /// + /// + protected void btnSure_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string selectRowId = Grid1.SelectedRowID; + decimal oneAmount = 0; + decimal twoAmount = 0; + JArray mergedData = Grid1.GetMergedData(); + + foreach (JObject mergedRow in mergedData) + { + JObject values = mergedRow.Value("values"); + string stockInId = values.Value("StockInId"); + + if (Grid1.SelectedRowIDArray.Contains(stockInId)) + { + if (values.Value("OneAmount") != "" && values.Value("StockAmount") != "") + { + if (values.Value("OneAmount") > values.Value("StockAmount")) + { + Alert.ShowInTop("一次领用数量的库存不足!", MessageBoxIcon.Warning); + return; + } + } + if (values.Value("TwoAmount") != "" && values.Value("RecycleAmount") != "") + { + if (values.Value("TwoAmount") > values.Value("RecycleAmount")) + { + Alert.ShowInTop("二次领用数量的库存不足!", MessageBoxIcon.Warning); + return; + } + } + + if (values.Value("OneAmount") != "") + { + oneAmount += values.Value("OneAmount"); + } + if (values.Value("TwoAmount") != "") + { + twoAmount += values.Value("TwoAmount"); + } + } + } + var plan = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + if (plan != null) + { + if (oneAmount + twoAmount > plan.Amount) + { + Alert.ShowInTop("领用数量要不能大于计划数量,请重新录入数量!", MessageBoxIcon.Warning); + return; + } + string UsingMan = string.Empty; + string UsingMatId = string.Empty; + foreach (JObject mergedRow in mergedData) + { + JObject values = mergedRow.Value("values"); + string stockInId = values.Value("StockInId"); + if (Grid1.SelectedRowIDArray.Contains(stockInId)) + { + var stockIn = BLL.StockInService.GetStockInById(stockInId); + + Model.Weld_UsingMat usingMat = new Model.Weld_UsingMat(); + usingMat.UsingMatId = SQLHelper.GetNewID(typeof(Model.Weld_UsingMat)); + UsingMatId = usingMat.UsingMatId; + var project = BLL.ProjectService.GetProjectByProjectId(plan.ProjectId); + usingMat.ProjectId = plan.ProjectId; + usingMat.UsingPlanId = this.UsingPlanId; + usingMat.Amount = Funs.GetNewDecimalOrZero(values.Value("OneAmount")); + usingMat.TwoAmount = Funs.GetNewDecimalOrZero(values.Value("TwoAmount")); + usingMat.UsingMan = plan.UsingManOne; + UsingMan = usingMat.UsingMan; + usingMat.UsingDate = DateTime.Now; + usingMat.Warrantybook = stockIn.Warrantybook; + if (!string.IsNullOrEmpty(stockIn.Number)) + { + usingMat.Number = stockIn.Number; + } + else + { + string perfix = project.ProjectCode + "-"; + usingMat.Number = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId", "dbo.Weld_UsingMat", "Number", plan.ProjectId, perfix); + } + usingMat.StockInId = stockInId; + usingMat.UsePosition = plan.UsePosition; + usingMat.WeldId = plan.WeldId; + + var user = BLL.UserService.GetUserByUserId(CurrUser.UserId); + if (user != null) + { + usingMat.StoreMan = user.UserId; + } + + if (usingMat.Amount + usingMat.TwoAmount > 0) + { + BLL.UsingMatService.AddUsingMat(usingMat); + // 修改库存已使用的数量 + BLL.StockInService.UpdateStockInUsingAmount(usingMat.StockInId, usingMat.Amount, usingMat.TwoAmount); + } + else + { + ShowNotify("请填写领用数量!"); + } + //string window = String.Format("UsingMatCheck.aspx?keyId={0}&grid=1&isFinger=1&FingerOrFace={1}", UsingMatId, "2", "编辑 - "); + //PageContext.RegisterStartupScript(Window1.GetSaveStateReference(UsingMan) + // + Window1.GetShowReference(window)); + } + } + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + ShowNotify("领料完成,请点击焊材领用记录进行确认!", MessageBoxIcon.Success); + } + + //if (Grid1.SelectedRowIndexArray.Length == 0) + //{ + // Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + // return; + //} + //string[] selectRowId = Grid1.SelectedRowIDArray; + //string stockIds = string.Empty; + //foreach (string s in selectRowId) + //{ + // stockIds = stockIds + s + ","; + //} + + //string StockItem = string.Empty; + //decimal oneTotalNum = 0; + //decimal twoTotalNum = 0; + //JArray mergedData = Grid1.GetMergedData(); + + //foreach (JObject mergedRow in mergedData) + //{ + // string oneAmount = "0"; + // string twoAmount = "0"; + + // JObject values = mergedRow.Value("values"); + // string stockInId = values.Value("StockInId"); + + // if (selectRowId.Contains(stockInId)) + // { + // if (values.Value("OneAmount") != "" && values.Value("StockAmount") != "") + // { + // if (values.Value("OneAmount") > values.Value("StockAmount")) + // { + // Alert.ShowInTop("一次领用数量的库存不足!", MessageBoxIcon.Warning); + // return; + // } + // } + // if (values.Value("TwoAmount") != "" && values.Value("RecycleAmount") != "") + // { + // if (values.Value("TwoAmount") > values.Value("RecycleAmount")) + // { + // Alert.ShowInTop("二次领用数量的库存不足!", MessageBoxIcon.Warning); + // return; + // } + // } + + // if (values.Value("OneAmount") != "") + // { + // oneAmount = values.Value("OneAmount"); + // oneTotalNum = oneTotalNum + values.Value("OneAmount"); + // } + // if (values.Value("TwoAmount") != "") + // { + // twoAmount = values.Value("TwoAmount"); + // twoTotalNum = twoTotalNum + values.Value("TwoAmount"); + // } + + // StockItem = StockItem + stockInId + "," + oneAmount + "," + twoAmount + "|"; + // } + //} + + //var plan = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + //if (oneTotalNum + twoTotalNum > plan.Amount) + //{ + // Alert.ShowInTop("领用数量要不能大于计划数量,请重新录入数量!", MessageBoxIcon.Warning); + // return; + //} + //else + //{ + // StockItem = StockItem.Substring(0, StockItem.Length - 1); + // string itemsString = this.UsingPlanId + "$" + StockItem; + // PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(itemsString) + // + ActiveWindow.GetHidePostBackReference()); + //} + + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx.designer.cs new file mode 100644 index 0000000..a13cc41 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowStockIn.aspx.designer.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class ShowStockIn { + + /// + /// 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; + + /// + /// lbUsingMatInfo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbUsingMatInfo; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSure; + + /// + /// txtOneAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOneAmount; + + /// + /// txtTwoAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtTwoAmount; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx new file mode 100644 index 0000000..640e033 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx @@ -0,0 +1,79 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowUsingMan.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ShowUsingMan" %> + + + + + + 领料人 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx.cs new file mode 100644 index 0000000..d37f6dc --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx.cs @@ -0,0 +1,151 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ShowUsingMan : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + BindGrid(); + } + } + #endregion + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + string projectId = Request.Params["projectId"]; + string strSql = string.Empty; + List listStr = new List(); + if (!string.IsNullOrEmpty(projectId)) + { + strSql = @"SELECT w.WED_ID,w.WED_Code,w.WED_Name,u.UnitName + FROM dbo.BS_Welder w + LEFT JOIN dbo.Base_Unit u ON u.UnitId = w.WED_Unit + WHERE w.WED_IfOnGuard=1 AND w.ProjectId=@ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", projectId)); + } + var projectUnit = BLL.ProjectUnitService.GetProjectUnitByUnitIdProjectId(this.CurrUser.LoginProjectId, this.CurrUser.UnitId); + if (projectUnit != null && projectUnit.UnitType == BLL.Const.ProjectUnitType_2) + { + strSql += " AND w.WED_Unit = @UnitId"; + listStr.Add(new SqlParameter("@UnitId", this.CurrUser.UnitId)); + } + if (!string.IsNullOrEmpty(this.txtCode.Text.Trim())) + { + strSql += " AND WED_Code LIKE @Code"; + listStr.Add(new SqlParameter("@Code", "%" + this.txtCode.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtName.Text.Trim())) + { + strSql += " AND WED_Name LIKE @Name"; + listStr.Add(new SqlParameter("@Name", "%" + this.txtName.Text.Trim() + "%")); + } + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 确定按钮 + /// + /// 确定按钮 + /// + /// + /// + protected void btnSure_Click(object sender, EventArgs e) + { + //string itemsString = ""; + //string[] selectRowId = Grid1.SelectedRowIDArray; + //foreach (var item in selectRowId) + //{ + // itemsString += item + "|"; + //} + + string itemsString = this.Grid1.SelectedRowID; + + PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(itemsString) + + ActiveWindow.GetHidePostBackReference()); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void Text_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + + #region 表头过滤 + protected void Grid1_FilterChange(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx.designer.cs new file mode 100644 index 0000000..3be57a6 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowUsingMan.aspx.designer.cs @@ -0,0 +1,123 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class ShowUsingMan { + + /// + /// 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; + + /// + /// txtCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCode; + + /// + /// txtName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtName; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSure; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx new file mode 100644 index 0000000..3a0d6d9 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx @@ -0,0 +1,77 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowWeldInfo.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.ShowWeldInfo" %> + + + + + + 焊材信息 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx.cs new file mode 100644 index 0000000..6fe39d2 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx.cs @@ -0,0 +1,153 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class ShowWeldInfo : PageBase + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + this.drpWeldType.DataTextField = "Text"; + this.drpWeldType.DataValueField = "Value"; + this.drpWeldType.DataSource = BLL.DropListService.HJGL_ConsumablesTypeList(); + this.drpWeldType.DataBind(); + Funs.FineUIPleaseSelect(this.drpWeldType); + // 绑定表格 + BindGrid(); + } + } + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT WeldInfo.ConsumablesId, WeldInfo.ConsumablesCode, WeldInfo.ConsumablesName, WeldInfo.SteelFormat, + case WeldInfo.ConsumablesType when '1' then '焊丝' when '2' then '焊条' when '3' then '焊剂' else '' end as WeldTypeName,WeldInfo.WeldUnit,v.StockAmount + FROM Base_Consumables AS WeldInfo + LEFT JOIN (SELECT WeldId, sum(ISNULL(Amount,0)-ISNULL(UsingAmount,0)) AS StockAmount + FROM dbo.Weld_StockIn + WHERE (ISNULL(Amount,0)-ISNULL(UsingAmount,0))>0 + GROUP BY WeldId) v ON v.WeldId = WeldInfo.ConsumablesId + WHERE 1=1"; + List listStr = new List(); + if (drpWeldType.SelectedValue != BLL.Const._Null) + { + strSql += " AND WeldInfo.ConsumablesType = @WeldTypeId"; + listStr.Add(new SqlParameter("@WeldTypeId", drpWeldType.SelectedValue)); + } + + if (!string.IsNullOrEmpty(this.txtCode.Text.Trim())) + { + if (this.txtCode.Text.Contains("*")) + { + string[] weldNames = this.txtCode.Text.Trim().Split('*'); + strSql += " AND ConsumablesCode LIKE @ConsumablesCode1 AND ConsumablesCode LIKE @ConsumablesCode2 "; + listStr.Add(new SqlParameter("@ConsumablesCode1", "%" + weldNames[0] + "%")); + listStr.Add(new SqlParameter("@ConsumablesCode2", "%" + weldNames[1] + "%")); + } + else + { + strSql += " AND ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtCode.Text.Trim() + "%")); + } + } + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页排序 + /// + /// + /// + /// + /// + 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_FilterChange(object sender, EventArgs e) + { + BindGrid(); + } + + protected void drpWeldType_SelectedIndexChanged(object sender, EventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region Grid双击事件 + /// + /// Grid双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + string itemsString = this.Grid1.SelectedRowID; + + PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(itemsString) + + ActiveWindow.GetHidePostBackReference()); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx.designer.cs new file mode 100644 index 0000000..7a3c251 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/ShowWeldInfo.aspx.designer.cs @@ -0,0 +1,123 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class ShowWeldInfo { + + /// + /// 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; + + /// + /// txtCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCode; + + /// + /// drpWeldType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWeldType; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx new file mode 100644 index 0000000..720cb9b --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx @@ -0,0 +1,156 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StockIn.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.StockIn" %> + + + + + + 焊材入库录入 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx.cs new file mode 100644 index 0000000..60c7d14 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx.cs @@ -0,0 +1,352 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class StockIn : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + + this.drpWeldType.DataTextField = "Text"; + this.drpWeldType.DataValueField = "Value"; + this.drpWeldType.DataSource = BLL.DropListService.HJGL_ConsumablesTypeList(); + this.drpWeldType.DataBind(); + Funs.FineUIPleaseSelect(this.drpWeldType); + UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true); + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT StockIn.StockInId,StockIn.WeldId,StockIn.Amount,StockIn.Weight,Users.UserName AS Materialman,StockIn.InStockDate,StockIn.MaterialCertificateNumber, + ReviewDate,Weld.ConsumablesCode,Weld.ConsumablesName,Weld.SteelFormat,StockIn.Warrantybook, StockIn.HeartNo, + case Weld.ConsumablesType when '1' then '焊丝' when '2' then '焊条' when '3' then '焊剂' else '' end as WeldTypeName,Weld.WeldUnit,(unit.UnitName+'('+store.UnitStoreName+')') AS UnitStoreName, + '否' IsUploadAttach + FROM dbo.Weld_StockIn AS StockIn + LEFT JOIN dbo.Base_Consumables AS Weld ON Weld.ConsumablesId=StockIn.WeldId + LEFT JOIN dbo.Sys_User AS Users ON Users.UserId=StockIn.Materialman + LEFT JOIN dbo.Weld_UnitStore store ON store.UnitStoreId=StockIn.UnitStoreId + LEFT JOIN dbo.Base_Unit unit ON unit.UnitId=store.UnitId + WHERE StockIn.Flag='1' and StockIn.ProjectId=@ProjectId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtWeldName.Text.Trim())) + { + strSql += " AND Weld.ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtWeldName.Text.Trim() + "%")); + } + if (drpWeldType.SelectedValue != BLL.Const._Null) + { + strSql += " AND Weld.ConsumablesType = @WeldTypeId"; + listStr.Add(new SqlParameter("@WeldTypeId", drpWeldType.SelectedValue)); + } + if (drpUnit.SelectedValue != BLL.Const._Null) + { + strSql += " AND store.UnitId = @UnitId"; + listStr.Add(new SqlParameter("@UnitId", drpUnit.SelectedValue)); + } + //if (CurrUser.Account != Const.Gly) + //{ + // strSql += " AND store.UnitId = @UnitId"; + // listStr.Add(new SqlParameter("@UnitId", CurrUser.UnitId)); + //} + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + tb = GetFilteredTable(Grid1.FilteredData, tb); + foreach (DataRow row in tb.Rows) + { + var attach = AttachFileService.GetAttachFile(row["StockInId"].ToString(), Const.CLGL_StockInMenuId); + if (attach != null && !string.IsNullOrEmpty(attach.AttachUrl)) + { + row["IsUploadAttach"] = "是"; + } + } + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 表头过滤 + protected void Grid1_FilterChange(object sender, EventArgs e) + { + 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 TextBox_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + + protected void drpWeldType_SelectedIndexChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 增加按钮 + /// + /// 增加按钮 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_StockInMenuId, BLL.Const.BtnAdd)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockInEdit.aspx?StockInId={0}", string.Empty, "编辑 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + protected void btnMoveStore_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_StockInMenuId, BLL.Const.BtnModify)) + { + if (CurrUser.UserId != Const.sysglyId && CurrUser.UserId != Const.hfnbdId) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("StockMove.aspx", "移库 - "))); + } + else + { + Alert.ShowInTop("管理员不能操作!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + #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 (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_StockInMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + + string id = Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(id)) + { + var q = BLL.StockInService.GetStockInById(id); + if (q.UnitStoreId != null) + { + var s = BLL.UnitStoreService.GetUnitStoreById(q.UnitStoreId); + //if (s != null && s.UnitId == CurrUser.UnitId) + //{ + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockInEdit.aspx?StockInId={0}", id, "编辑 - "))); + //} + //else + //{ + // Alert.ShowInTop("非本单位的数据,不能修改!", MessageBoxIcon.Warning); + // return; + //} + } + + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 删除 + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + this.DeleteData(); + } + + /// + /// 删除方法 + /// + private void DeleteData() + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_StockInMenuId, BLL.Const.BtnDelete)) + { + + if (Grid1.SelectedRowIndexArray.Length == 1) + { + string rowID = Grid1.SelectedRowID.ToString(); + if (this.judgementDelete(rowID)) + { + var q = BLL.StockInService.GetStockInById(rowID); + BLL.StockInService.DeleteStockInById(rowID); + BLL.LogService.AddSys_Log(this.CurrUser, q.HeartNo, rowID, BLL.Const.CLGL_StockInMenuId, "删除焊材入库录入"); + } + } + else + { + Alert.ShowInTop("请选择要删除的记录!", MessageBoxIcon.Warning); + return; + } + this.BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + /// + /// 判断是否可删除 + /// + /// + /// + /// + private bool judgementDelete(string rowID) + { + string content = string.Empty; + var q = from x in Funs.DB.Weld_UsingMat where x.StockInId == rowID select x; + if (q.Count() > 0) + { + content = "该入库材料已有领用,不能删除!"; + } + if (string.IsNullOrEmpty(content)) + { + return true; + } + else + { + Alert.ShowInTop(content); + return false; + } + } + #endregion + + #region 导入 + /// + /// 导入 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("StockInImport.aspx", "导入 - "))); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx.designer.cs new file mode 100644 index 0000000..a71e0de --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockIn.aspx.designer.cs @@ -0,0 +1,213 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class StockIn { + + /// + /// 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; + + /// + /// txtWeldName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldName; + + /// + /// drpWeldType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWeldType; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// btnMoveStore 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnMoveStore; + + /// + /// 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; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Window3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window3; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx new file mode 100644 index 0000000..5522b28 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx @@ -0,0 +1,108 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StockInEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.StockInEdit" %> + + + + + + 编辑焊材入库录入 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx.cs new file mode 100644 index 0000000..3a72ffc --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx.cs @@ -0,0 +1,316 @@ +using System; +using System.Linq; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class StockInEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + private string StockInId + { + get + { + return (string)ViewState["StockInId"]; + } + set + { + ViewState["StockInId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + + BLL.UserService.InitUsersDropDownList(this.drpMaterialman, this.CurrUser.LoginProjectId, true, null); + BLL.UserService.InitUserProjectIdRoleIdDropDownList(this.drpMaterialman, this.CurrUser.LoginProjectId,Const.SubWeldingEngineer+","+ Const.WeldingSystemManager + ","+Const.HJEngineer, true); + + //if (CurrUser.Account != Const.Gly) + //{ + // BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStore, CurrUser.UnitId, true); + //} + //else + //{ + BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStore, null, true); + //} + + //this.drpSupplier.DataTextField = "Text"; + //this.drpSupplier.DataValueField = "Value"; + //this.drpSupplier.DataSource = BLL.SupplierService.GetSupplierList(); + //this.drpSupplier.DataBind(); + //Funs.FineUIPleaseSelect(this.drpSupplier); + + this.StockInId = Request.Params["StockInId"]; + if (!string.IsNullOrEmpty(this.StockInId)) + { + Model.Weld_StockIn stockIn = BLL.StockInService.GetStockInById(this.StockInId); + if (stockIn != null) + { + if (!string.IsNullOrEmpty(stockIn.WeldId)) + { + this.hdWeldId.Text = stockIn.WeldId; + var weld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(stockIn.WeldId); + if (weld != null) + { + //this.txtWeldCode.Text = weld.WeldCode; + this.txtWeldName.Text = weld.ConsumablesName; + this.txtWeldSpec.Text = weld.SteelFormat; + this.txtWeldUnit.Text = weld.WeldUnit; + var t = BLL.DropListService.HJGL_ConsumablesTypeList().FirstOrDefault(x => x.Value == weld.ConsumablesType); + if (t != null) + { + this.txtWeldType.Text = t.Text; + } + } + if (stockIn.Amount.HasValue) + { + this.txtAmount.Text = stockIn.Amount.ToString(); + } + if (stockIn.Weight.HasValue) + { + this.txtWeight.Text = stockIn.Weight.ToString(); + } + if (!string.IsNullOrEmpty(stockIn.Materialman)) + { + this.drpMaterialman.SelectedValue = stockIn.Materialman; + } + if (stockIn.InStockDate.HasValue) + { + this.txtInStockDate.Text = string.Format("{0:yyyy-MM-dd}", stockIn.InStockDate); + } + if (stockIn.ReviewDate.HasValue) + { + this.txtReviewDate.Text = string.Format("{0:yyyy-MM-dd}", stockIn.ReviewDate); + } + //this.rblIsReview.SelectedValue = (stockIn.IsReview == true ? "true" : "false"); + this.txtHeartNo.Text = stockIn.HeartNo; + //if (stockIn.IsReview == true) + //{ + // this.txtHeartNo.Hidden = false; + //} + //else + //{ + // this.txtHeartNo.Hidden = true; + //} + this.txtWarrantybook.Text = stockIn.Warrantybook; + this.txtMaterialCertificateNumber.Text = stockIn.MaterialCertificateNumber; + if (!string.IsNullOrEmpty(stockIn.UnitStoreId)) + { + this.drpUnitStore.SelectedValue = stockIn.UnitStoreId; + } + } + } + } + else + { + this.drpMaterialman.SelectedValue = this.CurrUser.UserId; + this.txtInStockDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + this.txtHeartNo.Hidden = false; + } + } + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (this.hdWeldId.Text == string.Empty) + { + Alert.ShowInTop("请选择焊材牌号!", MessageBoxIcon.Warning); + return; + } + if (drpUnitStore.SelectedValue == Const._Null) + { + Alert.ShowInTop("请选择单位仓库!", MessageBoxIcon.Warning); + return; + } + if (drpMaterialman.SelectedValue == Const._Null) + { + Alert.ShowInTop("请选择材料员!", MessageBoxIcon.Warning); + return; + } + SaveData(); + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + + /// + /// 保存数据 + /// + private void SaveData() + { + Model.Weld_StockIn stockIn = new Model.Weld_StockIn(); + if (!string.IsNullOrEmpty(this.hdWeldId.Text.Trim())) + { + stockIn.WeldId = this.hdWeldId.Text.Trim(); + } + stockIn.ProjectId = this.CurrUser.LoginProjectId; + stockIn.Amount = Funs.GetNewDecimal(this.txtAmount.Text.Trim()); + stockIn.Weight = Funs.GetNewDecimal(this.txtWeight.Text.Trim()); + //stockIn.IsReview = Convert.ToBoolean(this.rblIsReview.SelectedValue); + if (this.drpMaterialman.SelectedValue != BLL.Const._Null) + { + stockIn.Materialman = this.drpMaterialman.SelectedValue; + } + stockIn.InStockDate = Funs.GetNewDateTime(this.txtInStockDate.Text.Trim()); + stockIn.ReviewDate = Funs.GetNewDateTime(this.txtReviewDate.Text.Trim()); + stockIn.Warrantybook = this.txtWarrantybook.Text.Trim(); + //stockIn.Number = txtNumber.Text.Trim(); + stockIn.HeartNo = txtHeartNo.Text.Trim(); + stockIn.MaterialCertificateNumber = txtMaterialCertificateNumber.Text.Trim(); + if (this.drpUnitStore.SelectedValue != BLL.Const._Null) + { + stockIn.UnitStoreId = this.drpUnitStore.SelectedValue; + } + stockIn.Flag = "1";//入库 + if (!string.IsNullOrEmpty(this.StockInId)) + { + stockIn.StockInId = this.StockInId; + var att = from x in Funs.DB.AttachFile where x.ToKeyId == this.StockInId select x; + if (att.Count() > 0) + { + stockIn.AttachUrl = att.First().AttachUrl; + } + var mat = from x in Funs.DB.Weld_UsingMat where x.StockInId == this.StockInId select x; + if (mat.Count() > 0) + { + // 焊材已有领用,不更新数量 + BLL.StockInService.UpdateStockIn1(stockIn); + } + else + { + BLL.StockInService.UpdateStockIn(stockIn); + } + BLL.LogService.AddSys_Log(this.CurrUser, stockIn.HeartNo, stockIn.StockInId, BLL.Const.CLGL_StockInMenuId, "修改焊材入库录入"); + } + else + { + this.StockInId = SQLHelper.GetNewID(typeof(Model.Weld_StockIn)); + stockIn.StockInId = this.StockInId; + BLL.StockInService.AddStockIn(stockIn); + + var att = from x in Funs.DB.AttachFile where x.ToKeyId == this.StockInId select x; + if (att.Count() > 0) + { + BLL.StockInService.UpdateAttachFile(this.StockInId, att.First().AttachUrl); + } + BLL.LogService.AddSys_Log(this.CurrUser, stockIn.HeartNo, stockIn.StockInId, BLL.Const.CLGL_StockInMenuId, "添加焊材入库录入"); + } + } + #endregion + + #region 附件上传 + /// + /// 上传附件资源 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + string edit = "0"; // 表示能打开附件上传窗口,但不能上传附件 + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_StockInMenuId, BLL.Const.BtnSave)) + { + if (string.IsNullOrEmpty(this.StockInId)) + { + if (this.hdWeldId.Text == string.Empty) + { + Alert.ShowInTop("请选择焊材牌号!", MessageBoxIcon.Warning); + return; + } + SaveData(); + } + edit = "1"; + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/WeldMat/StockIn&menuId={1}&edit={2}", this.StockInId, Const.CLGL_StockInMenuId, edit))); + } + } + #endregion + + #region 查找焊材信息 + /// + /// 查找焊材信息 + /// + /// + /// + protected void btnSelect_Click(object sender, EventArgs e) + { + string window = String.Format("ShowWeldInfo.aspx", "编辑 - "); + PageContext.RegisterStartupScript(Window1.GetSaveStateReference(this.hdWeldId.ClientID) + Window1.GetShowReference(window)); + } + + #region 弹出编辑窗口关闭事件 + /// + /// 弹出编辑窗体关闭事件 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + if (!string.IsNullOrEmpty(this.hdWeldId.Text)) + { + var weld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(this.hdWeldId.Text); + if (weld != null) + { + this.txtWeldName.Text = weld.ConsumablesName; + this.txtWeldSpec.Text = weld.SteelFormat; + this.txtWeldUnit.Text = weld.WeldUnit; + var t = BLL.DropListService.HJGL_ConsumablesTypeList().FirstOrDefault(x => x.Value == weld.ConsumablesType); + if (t != null) + { + this.txtWeldType.Text = t.Text; + } + } + } + } + #endregion + #endregion + + #region 输入数量自动带出重量 + /// + /// 输入数量自动带出重量 + /// + /// + /// + protected void txtWeight_TextChanged(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.txtWeight.Text.Trim())) + { + if (!string.IsNullOrEmpty(this.hdWeldId.Text.Trim())) + { + var weld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(this.hdWeldId.Text.Trim()); + if (weld != null) + { + if (weld.ConvertValue.HasValue) + { + decimal? amountCov = Funs.GetNewDecimal(this.txtWeight.Text.Trim()) / weld.ConvertValue; + int amount = Convert.ToInt32(Math.Floor(amountCov.Value)); + this.txtAmount.Text = amount.ToString(); + } + else + { + this.txtAmount.Text = this.txtWeight.Text.Trim(); + } + } + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx.designer.cs new file mode 100644 index 0000000..e508751 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInEdit.aspx.designer.cs @@ -0,0 +1,231 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class StockInEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// hdWeldId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdWeldId; + + /// + /// txtWeldName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldName; + + /// + /// btnSelect 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSelect; + + /// + /// txtWeldSpec 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldSpec; + + /// + /// txtWarrantybook 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWarrantybook; + + /// + /// txtWeldType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldType; + + /// + /// txtHeartNo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHeartNo; + + /// + /// txtWeldUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldUnit; + + /// + /// txtWeight 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtWeight; + + /// + /// txtAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtAmount; + + /// + /// drpUnitStore 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitStore; + + /// + /// drpMaterialman 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpMaterialman; + + /// + /// txtInStockDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtInStockDate; + + /// + /// txtReviewDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtReviewDate; + + /// + /// txtMaterialCertificateNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMaterialCertificateNumber; + + /// + /// UploadAttach 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.LinkButton UploadAttach; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx new file mode 100644 index 0000000..d1d21aa --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx @@ -0,0 +1,144 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StockInit.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.StockInit" %> + + + + + + 库存初始化 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx.cs new file mode 100644 index 0000000..18eedfa --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx.cs @@ -0,0 +1,392 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using BLL; +using System.Linq; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class StockInit : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + + this.drpWeldType.DataTextField = "Text"; + this.drpWeldType.DataValueField = "Value"; + this.drpWeldType.DataSource = BLL.DropListService.HJGL_ConsumablesTypeList(); + this.drpWeldType.DataBind(); + Funs.FineUIPleaseSelect(this.drpWeldType); + + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT StockIn.StockInId,StockIn.WeldId,StockIn.Amount,StockIn.Weight,Users.UserName AS Materialman,StockIn.InStockDate, + Weld.WeldCode,Weld.ConsumablesCode,Weld.WeldSpec, Weld.ConsumablesType,StockIn.Warrantybook, + (unit.UnitName+'('+store.UnitStoreName+')') AS UnitStoreName, + (CASE WHEN (StockIn.AttachUrl!='' AND StockIn.AttachUrl IS NOT NULL) THEN '是' ELSE '否' END) IsUploadAttach, + StockIn.RecycleWeight + FROM dbo.Weld_StockIn AS StockIn + LEFT JOIN dbo.Base_Consumables AS Weld ON Weld.ConsumablesId=StockIn.WeldId + LEFT JOIN dbo.Sys_User AS Users ON Users.UserId=StockIn.Materialman + LEFT JOIN dbo.Weld_UnitStore store ON store.UnitStoreId=StockIn.UnitStoreId + LEFT JOIN dbo.Base_Unit unit ON unit.UnitId=store.UnitId + WHERE StockIn.Flag='0'"; + List listStr = new List(); + + if (!string.IsNullOrEmpty(this.txtConsumablesCode.Text.Trim())) + { + strSql += " AND Weld.ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtConsumablesCode.Text.Trim() + "%")); + } + if (drpWeldType.SelectedValue != BLL.Const._Null) + { + strSql += " AND Weld.ConsumablesType = @WeldTypeId"; + listStr.Add(new SqlParameter("@WeldTypeId", drpWeldType.SelectedValue)); + } + if (CurrUser.UserId != Const.sysglyId && CurrUser.UserId != Const.hfnbdId) + { + strSql += " AND store.UnitId = @UnitId"; + listStr.Add(new SqlParameter("@UnitId", CurrUser.UnitId)); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 表头过滤 + protected void Grid1_FilterChange(object sender, EventArgs e) + { + 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 TextBox_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + + protected void drpWeldType_SelectedIndexChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 增加按钮 + /// + /// 增加按钮 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HJGL_StockInitMenuId, BLL.Const.BtnAdd)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockInitEdit.aspx?StockInId={0}", string.Empty, "编辑 - "))); + } + } + #endregion + + #region 编辑 + /// + /// 双击Grid事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + btnMenuView_Click(null, null); + } + + /// + /// 编辑按钮 + /// + /// + /// + //protected void btnMenuEdit_Click(object sender, EventArgs e) + //{ + // this.EditData(); + //} + + ///// + ///// 编辑数据方法 + ///// + //private void EditData() + //{ + // if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HJGL_StockInitMenuId, BLL.Const.BtnModify)) + // { + // if (Grid1.SelectedRowIndexArray.Length == 0) + // { + // Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + // return; + // } + // string id = Grid1.SelectedRowID; + // if (!string.IsNullOrEmpty(id)) + // { + // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockInitEdit.aspx?StockInId={0}", id, "编辑 - "))); + // } + // } + // else + // { + // Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + // return; + // } + //} + + /// + /// 查看初始化明细 + /// + /// + /// + protected void btnMenuView_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(id)) + { + var q = BLL.StockInService.GetStockInById(id); + if (q.UnitStoreId != null) + { + var s = BLL.UnitStoreService.GetUnitStoreById(q.UnitStoreId); + if (s != null && s.UnitId == CurrUser.UnitId) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockInitEdit.aspx?StockInId={0}", id, "编辑 - "))); + } + else + { + Alert.ShowInTop("非本单位的数据,不能修改!", MessageBoxIcon.Warning); + return; + } + } + } + } + + #endregion + + #region 删除 + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + this.DeleteData(); + } + + /// + /// 删除方法 + /// + private void DeleteData() + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HJGL_StockInitMenuId, BLL.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(); + var stockIn = BLL.StockInService.GetStockInById(rowID); + if (this.judgementDelete(rowID, isShow)) + { + BLL.StockInService.DeleteStockInById(rowID); + BLL.LogService.AddSys_Log(this.CurrUser, stockIn.Warrantybook, stockIn.StockInId, BLL.Const.HJGL_UnitStoreMenuId, "删除库存初始化"); + } + } + this.BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + /// + /// 判断是否可删除 + /// + /// + /// + /// + 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 格式化字符串 + /// + /// 获取焊材相同的数量和 + /// + /// + /// + protected string ConvertAmount(object weldId) + { + decimal? sumAmount = 0; + if (weldId != null) + { + var stockIns = BLL.StockInService.GetStockInListByWeldId(weldId.ToString()); + if (stockIns != null) + { + foreach (var item in stockIns) + { + if (item.Flag == "0") + { + sumAmount += item.Amount; + } + } + } + } + return string.Format("{0:0.##}", sumAmount); + } + + /// + /// 获取焊材相同的重量和 + /// + /// + /// + protected string ConvertWeight(object weldId) + { + decimal? sumWeight = 0; + if (weldId != null) + { + var stockIns = BLL.StockInService.GetStockInListByWeldId(weldId.ToString()); + if (stockIns != null) + { + foreach (var item in stockIns) + { + if (item.Flag == "0") + { + sumWeight += item.Weight; + } + } + } + } + return string.Format("{0:0.##}", sumWeight); + } + #endregion + + /// + /// 得到焊材类型 + /// + /// + /// + protected string ConvertConsumablesType(object ConsumablesType) + { + string name = string.Empty; + if (ConsumablesType != null) + { + var dropValue = BLL.DropListService.HJGL_ConsumablesTypeList().FirstOrDefault(x => x.Value == ConsumablesType.ToString()); + if (dropValue != null) + { + name = dropValue.Text; + } + } + + return name; + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx.designer.cs new file mode 100644 index 0000000..f13be07 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockInit.aspx.designer.cs @@ -0,0 +1,186 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class StockInit { + + /// + /// 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; + + /// + /// txtConsumablesCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtConsumablesCode; + + /// + /// drpWeldType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWeldType; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// lblNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblNumber; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// 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; + + /// + /// btnMenuView 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuView; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx new file mode 100644 index 0000000..fb8d8cc --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx @@ -0,0 +1,123 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StockMove.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.StockMove" %> + + + + + + 焊材移库 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx.cs new file mode 100644 index 0000000..90d796d --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx.cs @@ -0,0 +1,202 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using BLL; +using Newtonsoft.Json.Linq; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class StockMove : PageBase + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + + BLL.UserService.InitUsersDropDownList(this.drpMoveInMan, this.CurrUser.LoginProjectId, true, null); + drpMoveInMan.SelectedValue = CurrUser.UserId; + + BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStoreOut, string.Empty, true); + BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStoreIn, string.Empty, true); + + this.txtMoveInDate.Text = string.Format("{0:yyyy-MM-dd}", System.DateTime.Now); + + Grid1.Hidden = true; + } + } + + protected void btnSave_Click(object sender, EventArgs e) + { + if (this.drpUnitStoreOut.SelectedValue == Const._Null) + { + Alert.ShowInTop("请选择要移出的仓库!", MessageBoxIcon.Warning); + return; + } + if (drpUnitStoreIn.SelectedValue == Const._Null) + { + Alert.ShowInTop("请选择要移入的仓库!", MessageBoxIcon.Warning); + return; + } + + var outStort = from x in Funs.DB.Weld_StockIn where x.Flag == "1" && x.UnitStoreId == drpUnitStoreOut.SelectedValue select x; + int num = outStort.Count(); + if (num > 0) + { + if (rdIsAll.SelectedValue == "1") + { + foreach (var q in outStort) + { + q.UnitStoreId = drpUnitStoreIn.SelectedValue; + q.MoveInStoreId = drpUnitStoreOut.SelectedValue; + q.MoveInManId = CurrUser.UserId; + q.MoveInDate = DateTime.Now; + } + Funs.DB.SubmitChanges(); + ShowNotify("成功移库" + num.ToString() + "个!", MessageBoxIcon.Success); + } + else + { + if (Grid1.SelectedRowIDArray.Count() > 0) + { + JArray mergedData = Grid1.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + + string rowID = values.Value("StockInId").ToString(); + if (Grid1.SelectedRowIDArray.Contains(rowID)) + { + var q = BLL.StockInService.GetStockInById(rowID); + if (q != null) + { + decimal amount = Funs.GetNewDecimalOrZero(values.Value("Amount").ToString()); + decimal needMoveAmount = Funs.GetNewDecimalOrZero(values.Value("NeedMoveAmount").ToString()); + if (needMoveAmount == 0) + { + ShowNotify("需移库量不能为0!", MessageBoxIcon.Warning); + return; + } + if (needMoveAmount > amount) + { + ShowNotify("需移库量大于焊材库存量!", MessageBoxIcon.Warning); + return; + } + else if (needMoveAmount == amount) + { + q.UnitStoreId = drpUnitStoreIn.SelectedValue; + q.MoveInStoreId = drpUnitStoreOut.SelectedValue; + q.MoveInManId = CurrUser.UserId; + q.MoveInDate = DateTime.Now; + } + else + { + q.Amount = amount - needMoveAmount; + Model.Weld_StockIn newStockIn = new Model.Weld_StockIn(); + newStockIn.StockInId = SQLHelper.GetNewID(); + newStockIn.WeldId = q.WeldId; + newStockIn.Amount = needMoveAmount; + newStockIn.Materialman = this.CurrUser.UserId; + newStockIn.InStockDate = DateTime.Now; + newStockIn.ReviewDate = q.ReviewDate; + newStockIn.Warrantybook = q.Warrantybook; + newStockIn.Flag = "1"; + newStockIn.HeartNo = q.HeartNo; + newStockIn.UnitStoreId = drpUnitStoreIn.SelectedValue; + newStockIn.MoveInStoreId = drpUnitStoreOut.SelectedValue; + newStockIn.MoveInManId = CurrUser.UserId; + newStockIn.MoveInDate = DateTime.Now; + Funs.DB.Weld_StockIn.InsertOnSubmit(newStockIn); + } + Funs.DB.SubmitChanges(); + } + } + + } + + ShowNotify("成功移库" + Grid1.SelectedRowIDArray.Count().ToString() + "个!", MessageBoxIcon.Success); + } + else + { + Alert.ShowInTop("请选择要移出的焊材!", MessageBoxIcon.Warning); + return; + } + } + + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + else + { + Alert.ShowInTop("未发现移出仓库入库信息!", MessageBoxIcon.Warning); + return; + } + + } + + private void BindGrid() + { + string strSql = @"SELECT StockIn.StockInId,StockIn.WeldId,Weld.ConsumablesCode,Weld.ConsumablesName,Weld.SteelFormat,StockIn.Warrantybook,StockIn.Amount, + case Weld.ConsumablesType when '1' then '焊丝' when '2' then '焊条' when '3' then '焊剂' else '' end as WeldTypeName,Weld.WeldUnit + FROM dbo.Weld_StockIn AS StockIn + LEFT JOIN dbo.Base_Consumables AS Weld ON Weld.ConsumablesId=StockIn.WeldId + WHERE StockIn.Flag='1' "; + + List listStr = new List(); + if (drpUnitStoreOut.SelectedValue != BLL.Const._Null) + { + strSql += " AND StockIn.UnitStoreId = @UnitStoreId"; + listStr.Add(new SqlParameter("@UnitStoreId", drpUnitStoreOut.SelectedValue)); + } + if (!string.IsNullOrEmpty(this.txtCode.Text.Trim())) + { + strSql += " AND Weld.ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtCode.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtWarrantybook.Text.Trim())) + { + strSql += " AND StockIn.Warrantybook LIKE @Warrantybook"; + listStr.Add(new SqlParameter("@Warrantybook", "%" + this.txtWarrantybook.Text.Trim() + "%")); + } + SqlParameter[] parameter = listStr.ToArray(); + + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.DataSource = dt; + Grid1.DataBind(); + } + + protected void rdIsAll_SelectedIndexChanged(object sender, EventArgs e) + { + if (rdIsAll.SelectedValue == "0") + { + if (this.drpUnitStoreOut.SelectedValue == Const._Null) + { + Alert.ShowInTop("请选择要移出的仓库!", MessageBoxIcon.Warning); + return; + } + else + { + Grid1.Hidden = false; + BindGrid(); + } + } + else + { + Grid1.Hidden = true; + } + } + + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx.designer.cs new file mode 100644 index 0000000..9d83b02 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockMove.aspx.designer.cs @@ -0,0 +1,186 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class StockMove { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// drpUnitStoreOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitStoreOut; + + /// + /// drpUnitStoreIn 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitStoreIn; + + /// + /// drpMoveInMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpMoveInMan; + + /// + /// txtMoveInDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtMoveInDate; + + /// + /// rdIsAll 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rdIsAll; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCode; + + /// + /// txtWarrantybook 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWarrantybook; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// txtNeedMoveAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtNeedMoveAmount; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx new file mode 100644 index 0000000..2c225b6 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx @@ -0,0 +1,122 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StockSelect.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.StockSelect" %> + + + + + + 库存查询 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx.cs new file mode 100644 index 0000000..5128b55 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx.cs @@ -0,0 +1,236 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Text; +using AspNet = System.Web.UI.WebControls; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class StockSelect : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + this.drpWeldType.DataTextField = "Text"; + this.drpWeldType.DataValueField = "Value"; + this.drpWeldType.DataSource = BLL.DropListService.HJGL_ConsumablesTypeList(); + this.drpWeldType.DataBind(); + Funs.FineUIPleaseSelect(this.drpWeldType); + BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStore, null, true); + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @" SELECT v.WeldId, weld.ConsumablesCode, weld.ConsumablesName,weld.SteelFormat,case weld.ConsumablesType when '1' then '焊丝' when '2' then '焊条' when '3' then '焊剂' else '' end as WeldTypeName,weld.WeldUnit,(unit.UnitName+'('+store.UnitStoreName+')') AS UnitStoreName, + (CASE WHEN weld.ConvertValue>0 + THEN v.RemainingAmount*weld.ConvertValue + ELSE v.[Weight] END) AS RemainingAmount, + (CASE WHEN weld.ConvertValue>0 + THEN v.RecycleAmount*weld.ConvertValue + ELSE NULL END) AS RecycleAmount + FROM + (SELECT stockIn.WeldId, (SUM(ISNULL(stockIn.Amount,0))-SUM(ISNULL(stockIn.UsingAmount,0)))AS RemainingAmount,SUM(stockIn.[Weight]) AS [Weight],stockIn.UnitStoreId, + SUM(ISNULL(stockIn.RecycleAmount,0)) AS RecycleAmount + FROM dbo.Weld_StockIn stockIn + GROUP BY stockIn.UnitStoreId,stockIn.WeldId)v + LEFT JOIN dbo.Base_Consumables AS weld ON weld.ConsumablesId=v.WeldId + LEFT JOIN dbo.Weld_UnitStore store ON store.UnitStoreId=v.UnitStoreId + LEFT JOIN dbo.Base_Unit unit ON unit.UnitId=store.UnitId + WHERE 1=1"; + List listStr = new List(); + + if (!string.IsNullOrEmpty(this.txtWeldCode.Text.Trim())) + { + strSql += " AND weld.ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtWeldCode.Text.Trim() + "%")); + } + if (this.drpUnitStore.SelectedValue != BLL.Const._Null) + { + strSql += " AND v.UnitStoreId = @UnitStoreId"; + listStr.Add(new SqlParameter("@UnitStoreId", drpUnitStore.SelectedValue)); + } + if (drpWeldType.SelectedValue != BLL.Const._Null) + { + strSql += " AND weld.ConsumablesType = @WeldTypeId"; + listStr.Add(new SqlParameter("@WeldTypeId", drpWeldType.SelectedValue)); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 表头过滤 + protected void Grid1_FilterChange(object sender, EventArgs e) + { + 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 TextBox_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + + protected void drpWeldType_SelectedIndexChanged(object sender, EventArgs e) + { + BindGrid(); + } + + #endregion + + #region 查看明细 + /// + /// 双击Grid事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + btnMenuView_Click(null, null); + } + + /// + /// 查看初始化明细 + /// + /// + /// + protected void btnMenuView_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(id)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockSelectDetail.aspx?WeldId={0}", id, "编辑 - "))); + } + } + #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; + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) + { + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + this.Grid1.PageSize = 10000; + BindGrid(); + foreach (GridColumn column in grid.Columns) + { + sb.AppendFormat("", column.HeaderText); + } + sb.Append(""); + foreach (GridRow row in grid.Rows) + { + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + string html = row.Values[column.ColumnIndex].ToString(); + if (column.ColumnID == "tfNumber") + { + html = (row.FindControl("lblNumber") as AspNet.Label).Text; + } + sb.AppendFormat("", html); + } + + sb.Append(""); + } + + sb.Append("
{0}
{0}
"); + + return sb.ToString(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx.designer.cs new file mode 100644 index 0000000..0ec1c60 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelect.aspx.designer.cs @@ -0,0 +1,168 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class StockSelect { + + /// + /// 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; + + /// + /// drpUnitStore 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitStore; + + /// + /// drpWeldType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWeldType; + + /// + /// txtWeldCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldCode; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// lblNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuView 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuView; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx new file mode 100644 index 0000000..656c047 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx @@ -0,0 +1,97 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StockSelectDetail.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.StockSelectDetail" %> + + + + + + 库存明细 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx.cs new file mode 100644 index 0000000..03dfa89 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx.cs @@ -0,0 +1,178 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using System.Data; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class StockSelectDetail : PageBase + { + #region 定义变量 + + /// + /// 焊材ID + /// + private string WeldId + { + get + { + return (string)ViewState["WeldId"]; + } + set + { + ViewState["WeldId"] = value; + } + } + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + + this.drpUnit.DataTextField = "UnitName"; + this.drpUnit.DataValueField = "UnitId"; + this.drpUnit.DataSource = BLL.UnitService.GetMainAndSubUnitByProjectIdList(this.CurrUser.LoginProjectId); + this.drpUnit.DataBind(); + Funs.FineUIPleaseSelect(this.drpUnit); + + Funs.FineUIPleaseSelect(this.drpUnitStore); + + this.WeldId = Request.Params["WeldId"]; + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT StockIn.StockInId, StockIn.WeldId, StockIn.Warrantybook,WeldInfo.ConsumablesCode, + WeldInfo.ConsumablesName,WeldInfo.SteelFormat, case WeldInfo.ConsumablesType when '1' then '焊丝' when '2' then '焊条' when '3' then '焊剂' else '' end as WeldTypeName, + WeldInfo.WeldUnit, Users.UserName AS Materialman, StockIn.InStockDate, + (unit.UnitName+'-'+store.UnitStoreName) AS StoreName, + CAST (CASE WHEN WeldInfo.ConvertValue>0 + THEN (StockIn.Amount-ISNULL(StockIn.UsingAmount,0)) * WeldInfo.ConvertValue + ELSE (StockIn.[Weight]) END AS decimal(9,3)) AS Amount, + CAST (CASE WHEN WeldInfo.ConvertValue>0 + THEN (ISNULL(StockIn.RecycleAmount,0)) * WeldInfo.ConvertValue + ELSE NULL END AS decimal(9,3)) AS RecycleAmount + FROM dbo.Weld_StockIn AS StockIn + LEFT JOIN dbo.Base_Consumables AS WeldInfo ON WeldInfo.ConsumablesId=StockIn.WeldId + LEFT JOIN dbo.Sys_User AS Users ON Users.UserId=StockIn.Materialman + LEFT JOIN dbo.Weld_UnitStore store ON store.UnitStoreId = StockIn.UnitStoreId + LEFT JOIN dbo.Base_Unit unit ON unit.UnitId = store.UnitId + WHERE (StockIn.Amount-ISNULL(StockIn.UsingAmount,0))>=0 "; + List listStr = new List(); + if (!cbShowAll.Checked) + { + strSql += " AND StockIn.WeldId=@WeldId"; + listStr.Add(new SqlParameter("@WeldId", this.WeldId)); + } + + if (drpUnit.SelectedValue != Const._Null && drpUnit.SelectedValue != null) + { + strSql += " AND unit.UnitId = @UnitId"; + listStr.Add(new SqlParameter("@UnitId", drpUnit.SelectedValue)); + } + if (drpUnitStore.SelectedValue != Const._Null && drpUnitStore.SelectedValue != null) + { + strSql += " AND StockIn.UnitStoreId = @UnitStoreId"; + listStr.Add(new SqlParameter("@UnitStoreId", drpUnitStore.SelectedValue)); + } + if (!string.IsNullOrEmpty(this.txtWeldCode.Text.Trim())) + { + strSql += " AND WeldInfo.ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtWeldCode.Text.Trim() + "%")); + } + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 表头过滤 + protected void Grid1_FilterChange(object sender, EventArgs e) + { + 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 btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + /// + /// 查询 + /// + /// + /// + protected void drpUnit_OnSelectedIndexChanged(object sender, EventArgs e) + { + if (drpUnit.SelectedValue != Const._Null) + { + drpUnitStore.Items.Clear(); + BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStore, drpUnit.SelectedValue, true); + drpUnitStore.SelectedValue = Const._Null; + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx.designer.cs new file mode 100644 index 0000000..1768ac2 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/StockSelectDetail.aspx.designer.cs @@ -0,0 +1,150 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class StockSelectDetail { + + /// + /// 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; + + /// + /// drpUnitStore 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitStore; + + /// + /// txtWeldCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldCode; + + /// + /// cbShowAll 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBox cbShowAll; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// 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; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx new file mode 100644 index 0000000..61bd99b --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx @@ -0,0 +1,177 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UnitStore.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.UnitStore" %> + + + + + + 单位仓库 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx.cs new file mode 100644 index 0000000..1d46704 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx.cs @@ -0,0 +1,359 @@ +using System; +using System.Collections.Generic; +using BLL; +using System.Data.SqlClient; +using System.Data; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class UnitStore : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + BindUnit(drpUnit); + BindUnit(drpUnitId); + // 绑定表格 + BindGrid(); + + } + } + #endregion + + #region 单位下拉框绑定 + private void BindUnit(DropDownList dropName) + { + dropName.DataTextField = "UnitName"; + dropName.DataValueField = "UnitId"; + dropName.DataSource = UnitService.GetUnitByProjectIdUnitTypeList(this.CurrUser.LoginProjectId, string.Empty); + dropName.DataBind(); + Funs.FineUIPleaseSelect(dropName); + } + #endregion + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT s.UnitStoreId,s.UnitId,s.UnitStoreCode,s.UnitStoreName,s.StorePosition ,u.UnitName + FROM dbo.Weld_UnitStore s + LEFT JOIN dbo.Base_Unit u ON u.UnitId = s.UnitId + WHERE ProjectId=@ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (this.drpUnit.SelectedValue != BLL.Const._Null) + { + strSql += " AND s.UnitId = @UnitId"; + listStr.Add(new SqlParameter("@UnitId", this.drpUnit.SelectedValue)); + } + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页排序 + /// + /// + /// + /// + /// + 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_FilterChange(object sender, EventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 删除事件 + /// + /// 删除 + /// + /// + /// + protected void btnDelete_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_UnitStoreMenuId, Const.BtnDelete)) + { + if (judgementDelete(hfFormID.Text, true)) + { + var store = BLL.UnitStoreService.GetUnitStoreById(hfFormID.Text); + BLL.UnitStoreService.DeleteUnitStoreById(hfFormID.Text); + BLL.LogService.AddSys_Log(this.CurrUser, store.UnitStoreName, store.UnitStoreId, BLL.Const.HJGL_UnitStoreMenuId, "删除单位仓库"); + // 重新绑定表格,并模拟点击[新增按钮] + BindGrid(); + PageContext.RegisterStartupScript("onNewButtonClick();"); + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_UnitStoreMenuId, Const.BtnDelete)) + { + this.DeleteData(); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + /// + /// 删除方法 + /// + private void DeleteData() + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + bool isShow = true; + if (Grid1.SelectedRowIndexArray.Length > 1) + { + isShow = false; + } + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + if (judgementDelete(rowID, isShow)) + { + var store = BLL.UnitStoreService.GetUnitStoreById(rowID); + BLL.UnitStoreService.DeleteUnitStoreById(rowID); + BLL.LogService.AddSys_Log(this.CurrUser, store.UnitStoreName, store.UnitStoreId, BLL.Const.HJGL_UnitStoreMenuId, "删除单位仓库"); + ShowNotify("删除完成!", MessageBoxIcon.Success); + } + } + + BindGrid(); + PageContext.RegisterStartupScript("onNewButtonClick();"); + } + } + #endregion + + #region 编辑 + /// + /// 右键编辑事件 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_UnitStoreMenuId, Const.BtnModify)) + { + this.EditData(); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + /// + /// 编辑数据方法 + /// + private void EditData() + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string Id = Grid1.SelectedRowID; + var unitStore = BLL.UnitStoreService.GetUnitStoreById(Id); + if (unitStore != null) + { + if (!string.IsNullOrEmpty(unitStore.UnitId)) + { + this.drpUnitId.SelectedValue = unitStore.UnitId; + } + this.txtUnitStoreCode.Text = unitStore.UnitStoreCode; + this.txtUnitStoreName.Text = unitStore.UnitStoreName; + txtStorePosition.Text = unitStore.StorePosition; + + hfFormID.Text = Id; + this.btnDelete.Enabled = true; + } + } + #endregion + + #region 提交按钮 + /// + /// 提交按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_UnitStoreMenuId, Const.BtnSave)) + { + string strRowID = hfFormID.Text; + if (this.drpUnitId.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("所属单不能为空!", MessageBoxIcon.Warning); + return; + } + if (BLL.UnitStoreService.IsExitUnitStore(this.drpUnitId.SelectedValue, this.txtUnitStoreCode.Text.Trim(), strRowID)) + { + Alert.ShowInTop("此单位的仓库编码已存在!", MessageBoxIcon.Warning); + return; + } + + Model.Weld_UnitStore store = new Model.Weld_UnitStore(); + store.ProjectId = this.CurrUser.LoginProjectId; + store.UnitId = this.drpUnitId.SelectedValue; + store.UnitStoreCode = this.txtUnitStoreCode.Text.Trim(); + store.UnitStoreName = this.txtUnitStoreName.Text.Trim(); + store.StorePosition = txtStorePosition.Text.Trim(); + if (string.IsNullOrEmpty(strRowID)) + { + var stores = BLL.UnitStoreService.GetUnitStoreByUnitId(drpUnitId.SelectedValue); + if (stores.Count < 5) + { + strRowID = SQLHelper.GetNewID(typeof(Model.Weld_UnitStore)); + store.UnitStoreId = strRowID; + BLL.UnitStoreService.AddUnitStore(store); + BLL.LogService.AddSys_Log(this.CurrUser, store.UnitStoreName, store.UnitStoreId, BLL.Const.HJGL_UnitStoreMenuId, "添加单位仓库"); + } + else + { + Alert.ShowInTop("单位仓库最多只能创建5个!", MessageBoxIcon.Warning); + return; + } + } + else + { + store.UnitStoreId = strRowID; + BLL.UnitStoreService.UpdateUnitStore(store); + BLL.LogService.AddSys_Log(this.CurrUser, store.UnitStoreName, store.UnitStoreId, BLL.Const.HJGL_UnitStoreMenuId, "修改单位仓库"); + } + + // 重新绑定表格,并点击当前编辑或者新增的行 + BindGrid(); + + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript("onNewButtonClick();"); + //PageContext.RegisterStartupScript(String.Format("F('{0}').selectRow('{1}');", Grid1.ClientID, UnitQualitySort.UnitQualitySortId)); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 判断是否可删除 + /// + /// 判断是否可以删除 + /// + /// + private bool judgementDelete(string id, bool isShow) + { + string content = string.Empty; + //if (BLL.WeldInfoService.GetWeldInfoByWeldTypeId(id) > 0) + //{ + // content = "焊材信息设置中已经使用了该焊材类型,不能删除!"; + //} + if (string.IsNullOrEmpty(content)) + { + return true; + } + else + { + if (isShow) + { + Alert.ShowInTop(content, MessageBoxIcon.Error); + } + return false; + } + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region Grid行点击事件 + /// + /// Grid行点击事件 + /// + /// + /// + protected void Grid1_RowClick(object sender, GridRowClickEventArgs e) + { + this.EditData(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx.designer.cs new file mode 100644 index 0000000..5d1c796 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UnitStore.aspx.designer.cs @@ -0,0 +1,222 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class UnitStore { + + /// + /// 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; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.SimpleForm SimpleForm1; + + /// + /// hfFormID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hfFormID; + + /// + /// drpUnitId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitId; + + /// + /// txtUnitStoreCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUnitStoreCode; + + /// + /// txtUnitStoreName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUnitStoreName; + + /// + /// txtStorePosition 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtStorePosition; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx new file mode 100644 index 0000000..6e549e9 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx @@ -0,0 +1,257 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsingMat.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.UsingMat" %> + + + + + + 焊材领用 + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx.cs new file mode 100644 index 0000000..802fcb1 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx.cs @@ -0,0 +1,1113 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using BLL; +using Newtonsoft.Json.Linq; +using System.Web.UI; +using System.IO; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class UsingMat : PageBase + { + #region 定义变量 + /// + /// 焊工Id + /// + private string WelderId + { + get + { + return (string)ViewState["WelderId"]; + } + set + { + ViewState["WelderId"] = value; + } + } + + private string UsingPlanId + { + get + { + return (string)ViewState["UsingPlanId"]; + } + set + { + ViewState["UsingPlanId"] = value; + } + } + + protected string hfSpeak = ""; + + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + //this.WelderId = Request.Params["welderId"];//指纹 + //string identityCard = Request.Params["identityCard"];//人脸识别 + string welderCode = Request.Params["welderCode"]; //焊工号录入 + string welderQRCode = Request.Params["welderQRCode"]; + if (!string.IsNullOrEmpty(welderQRCode) && (welderQRCode.Contains("¥") || welderQRCode.Contains("$"))) + { + string identityCard = string.Empty; + DateTime? dtime = new DateTime(); + + if (welderQRCode.Contains("¥")) + { + identityCard = welderQRCode.Split('¥')[0]; + dtime = ConvertUnixTimeStampToDateTime(welderQRCode.Split('¥')[1]); + + } + if (welderQRCode.Contains("$")) + { + identityCard = welderQRCode.Split('$')[0]; + dtime = ConvertUnixTimeStampToDateTime(welderQRCode.Split('$')[1]); + } + + var w = BLL.WelderService.GetWelderByIdentityCard(identityCard); + if (w != null && dtime != null) + { + if (dtime.Value.AddMinutes(2) > DateTime.Now) + { + welderCode = w.WED_Code; + } + else + { + Alert.ShowInTop("二维码超时,请重新扫码进入!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("您不是焊工,无法领料!", MessageBoxIcon.Warning); + return; + } + } + + //if (!string.IsNullOrEmpty(identityCard)) + //{ + // //FingerOrFace = "1";//0-指纹,1-人脸识别 + // var w = BLL.HJGL_PersonManageService.GetWelderByIdentityCard(identityCard); + // if (w != null) + // { + // this.WelderId = w.WED_ID; + // } + // else + // { + // Alert.ShowInTop("请先采集人脸", MessageBoxIcon.Warning); + // return; + // } + //} + + if (!string.IsNullOrEmpty(welderCode)) + { + string welderId = string.Empty; + var q = from x in BLL.Funs.DB.BS_Welder where x.WED_Code == welderCode && x.WED_IfOnGuard == true select x; + if (q.Count() == 1) + { + this.WelderId = q.First().WED_ID; + //if (this.CurrUser.RoleId != Const.cgbgyId) + //{ + // Alert.ShowInTop("登录的用户必需为仓库保管员角色!", MessageBoxIcon.Warning); + // return; + //} + //else + //{ + + //} + } + else if (q.Count() > 1) + { + Alert.ShowInTop("存在相同的焊工号,请排查!", MessageBoxIcon.Warning); + return; + } + + else + { + Alert.ShowInTop("该焊工号不存在或不在岗!", MessageBoxIcon.Warning); + return; + } + } + + //this.ProjectId = Request.Params["projectId"]; + //if (WelderId != null) + //{ + // var w = BLL.HJGL_PersonManageService.GetWelderByWenId(WelderId); + // ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + //} + + #region 默认退料:24小时 暂取消 + //string strSql = @"SELECT m.UsingMatId, m.UsingDate, wtype.WeldTypeName + // FROM dbo.Weld_UsingMat m + // LEFT JOIN dbo.Weld_UsingPlan usingPlan ON usingPlan.UsingPlanId = m.UsingPlanId + // LEFT JOIN dbo.Weld_WeldInfo weld ON weld.WeldId = m.WeldId + // LEFT JOIN dbo.Weld_WeldType wtype ON wtype.WeldTypeId = weld.WeldTypeId + // WHERE m.IsWelderConfirm=1 AND m.IsStoreManConfirm=1 + // AND (IsClose IS NULL OR IsClose=0) + // AND usingPlan.UsingManOne=@WelderId "; + //List listStr = new List(); + //listStr.Add(new SqlParameter("@WelderId", this.WelderId)); + //SqlParameter[] parameter = listStr.ToArray(); + //DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + + //if (dt.Rows.Count > 0) + //{ + // for (int i = 0; i < dt.Rows.Count; i++) + // { + // DateTime usingDate = Convert.ToDateTime(dt.Rows[i]["UsingDate"]); + // string type = dt.Rows[i]["WeldTypeName"].ToString(); + // string usingMatId = dt.Rows[i]["UsingMatId"].ToString(); + + // if (usingDate.AddHours(24) < DateTime.Now) + // { + // BLL.UsingMatService.UsingMatIsColse(usingMatId, true); + + // var recycleMat = BLL.RecycleMatService.GetRecycleMatByUsingMatId(usingMatId); + // var mat = BLL.UsingMatService.GetUsingMatById(usingMatId); + // var stockman = BLL.StoremanInfoService.GetStoremanByUserId(CurrUser.UserId); + // // 超过24小时默认退回焊条头 + // if (recycleMat == null && type == "焊条") + // { + // Model.Weld_RecycleMat newRecycleMat = new Model.Weld_RecycleMat(); + // newRecycleMat.ProjectId = mat.ProjectId; + // newRecycleMat.WeldId = mat.WeldId; + // newRecycleMat.UsingPlanId = mat.UsingPlanId; + // newRecycleMat.ReturnMatTop = Convert.ToInt32(mat.Amount); + // newRecycleMat.RecycleMan = mat.UsingMan; + // //if (this.drpStoreMan.SelectedValue != null && this.drpStoreMan.SelectedValue!=Const._Null) + // //{ + // // newRecycleMat.StockMan = this.drpStoreMan.SelectedValue; + // //} + // //else + // //{ + // // ShowNotify("请用保管员账号!"); + // // return; + // //} + // if (stockman != null) + // { + // newRecycleMat.StockMan = stockman.StoremanId; + // } + // newRecycleMat.RecycleDate = usingDate.AddHours(8); + // newRecycleMat.Warrantybook = mat.Warrantybook; + // newRecycleMat.Number = mat.Number; + // newRecycleMat.UsePosition = mat.UsePosition; + // newRecycleMat.UsingMatId = usingMatId; + // newRecycleMat.IsStoreManConfirm = false; + // newRecycleMat.IsWelderConfirm = false; + // newRecycleMat.RecycleMatId = SQLHelper.GetNewID(typeof(Model.Weld_RecycleMat)); + // BLL.RecycleMatService.AddRecycleMat(newRecycleMat); + + // // 未按时退回焊条头 + // BLL.UsingMatService.UsingMatIsOnTime(usingMatId, false); + // } + // } + + // } + //} + #endregion + + BindGrid1(); // 未完结 + BindGrid2();//未领用领料计划 + BindGrid3();//焊材领用 + //BindGrid4(); + } + } + #endregion + + #region 绑定数据 + /// + /// 未完结 + /// + private void BindGrid1() + { + string strSql = @"SELECT m.UsingMatId, m.ProjectId,case when project.ProjectCode is not null then project.ProjectCode else usingPlan.ProjectId end as ProjectCode, m.UsePosition, m.WeldId,weld.ConsumablesName, + weld.ConsumablesCode,weld.SteelFormat,m.Amount, m.UsingMan,welder.WED_Code, + m.UsingDate,r.RecycleAmount, r.ReturnMatTop AS RecycleTopAmount + FROM dbo.Weld_UsingMat m + LEFT JOIN dbo.Weld_UsingPlan usingPlan ON usingPlan.UsingPlanId = m.UsingPlanId + LEFT JOIN dbo.Weld_RecycleMat r ON m.UsingMatId=r.UsingMatId + LEFT JOIN dbo.Base_Consumables weld ON weld.ConsumablesId = m.WeldId + LEFT JOIN dbo.Base_Project project ON project.ProjectId = m.ProjectId + LEFT JOIN dbo.BS_Welder welder ON welder.WED_ID=m.UsingMan + WHERE m.IsWelderConfirm=1 AND m.IsStoreManConfirm=1 + AND (IsClose IS NULL OR IsClose=0) + AND usingPlan.UsingManOne=@WelderId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@WelderId", this.WelderId)); + SqlParameter[] parameter = listStr.ToArray(); + + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); + //var table = this.GetSortTable(Grid1, tb); + Grid1.DataSource = tb; + Grid1.DataBind(); + } + + + /// + /// 绑定未领用领料计划 + /// + private void BindGrid2() + { + string strSql = @"SELECT UsingPlan.UsingPlanId, UsingPlan.WeldId, UsingPlan.ProjectId,UsingPlan.UsePosition, + UsingPlan.Amount, UsingPlan.InPutDate,UsingPlan.IsFinish,WeldInfo.ConsumablesCode, + WeldInfo.ConsumablesName,WeldInfo.SteelFormat,case when project.ProjectCode is not null then project.ProjectCode else usingPlan.ProjectId end as ProjectCode,UsingPlan.OrderTime, + (CASE WHEN UsingPlan.UsingManOne=@WelderId THEN Welder.WED_Code ELSE Welder2.WED_Code END) AS WED_Code + FROM dbo.Weld_UsingPlan AS UsingPlan + LEFT JOIN Base_Consumables AS WeldInfo ON WeldInfo.ConsumablesId = UsingPlan.WeldId + LEFT JOIN Base_Project AS Project ON Project.ProjectId = UsingPlan.ProjectId + LEFT JOIN BS_Welder AS Welder ON Welder.WED_ID = UsingPlan.UsingManOne + LEFT JOIN BS_Welder AS Welder2 ON Welder2.WED_ID = UsingPlan.UsingManTwo + LEFT JOIN dbo.Weld_UsingMat usingMat ON usingMat.UsingPlanId = UsingPlan.UsingPlanId + WHERE (UsingPlan.IsCancel=0 OR UsingPlan.IsCancel IS NULL) + AND UsingPlan.IsSubmit=1 AND convert(char(10),UsingPlan.OrderDate,120)=convert(char(10),GetDate(),120) + AND usingMat.UsingMatId IS NULL --一条计划只给领用一次 + --AND (UsingPlan.IsNeedConfirm IS NULL OR UsingPlan.IsNeedConfirm = 0) -- 不需要确认 + AND UsingPlan.UsingManOne=@WelderId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@WelderId", this.WelderId)); + SqlParameter[] parameter = listStr.ToArray(); + + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid2.RecordCount = tb.Rows.Count; + Grid2.DataSource = tb; + Grid2.DataBind(); + } + + /// + /// 焊材领用 + /// + private void BindGrid3() + { + string strSql = @"SELECT m.UsingMatId, m.ProjectId,case when project.ProjectCode is not null then project.ProjectCode else usingPlan.ProjectId end as ProjectCode, m.UsePosition, m.WeldId, m.UsingPlanId, + m.Amount,m.TwoAmount, m.UsingMan, m.UsingDate,m.StoreMan,m.Warrantybook,m.Number,m.StockInId, + (CASE WHEN m.IsWelderConfirm=1 THEN '已确认' ELSE '未确认' END) AS WelderConfirm, + (CASE WHEN m.IsStoreManConfirm=1 THEN '已确认' ELSE '未确认' END) AS StoreManConfirm + FROM dbo.Weld_UsingMat m + LEFT JOIN Base_Project AS project ON project.ProjectId = m.ProjectId + LEFT JOIN dbo.Weld_UsingPlan usingPlan ON usingPlan.UsingPlanId = m.UsingPlanId + WHERE (m.IsWelderConfirm IS NULL OR m.IsWelderConfirm=0 OR + m.IsStoreManConfirm IS NULL OR m.IsStoreManConfirm=0) AND + m.UsingMan=@WelderId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@WelderId", this.WelderId)); + SqlParameter[] parameter = listStr.ToArray(); + + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid3.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid3.FilteredData, tb); + //var table = this.GetSortTable(Grid3, tb); + Grid3.DataSource = tb; + Grid3.DataBind(); + } + #endregion + + #region 一键退料 + protected void btnOnekeyReturnMat_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + var stockman = BLL.UserService.GetUserByUserId(CurrUser.UserId); + string[] UsingMatIds = Grid1.SelectedRowIDArray; + foreach (string usingMatId in UsingMatIds) + { + var mat = BLL.UsingMatService.GetUsingMatById(usingMatId); + var recycleMat = BLL.RecycleMatService.GetRecycleMatByUsingMatId(usingMatId); + var weld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(mat.WeldId); + var type = string.Empty; + var dropValue = BLL.DropListService.HJGL_ConsumablesTypeList().FirstOrDefault(x => x.Value == weld.ConsumablesType); + if (dropValue != null) + { + type = dropValue.Text; + } + + // 退回焊条头 + if (recycleMat == null) + { + Model.Weld_RecycleMat newRecycleMat = new Model.Weld_RecycleMat(); + newRecycleMat.ProjectId = mat.ProjectId; + newRecycleMat.WeldId = mat.WeldId; + newRecycleMat.UsingPlanId = mat.UsingPlanId; + newRecycleMat.RecycleAmount = 0; + if (type == "焊条") + { + decimal oneNum = mat.Amount != null ? mat.Amount.Value : 0; + decimal twoNum = mat.TwoAmount != null ? mat.TwoAmount.Value : 0; + newRecycleMat.ReturnMatTop = Convert.ToInt32(oneNum + twoNum); + } + newRecycleMat.RecycleMan = this.WelderId; + if (stockman != null) + { + newRecycleMat.StockMan = stockman.UserId; + } + newRecycleMat.RecycleDate = DateTime.Now; + newRecycleMat.Warrantybook = mat.Warrantybook; + newRecycleMat.Number = mat.Number; + newRecycleMat.UsePosition = mat.UsePosition; + newRecycleMat.UsingMatId = usingMatId; + newRecycleMat.IsStoreManConfirm = true; + newRecycleMat.IsWelderConfirm = true; + + newRecycleMat.RecycleMatId = SQLHelper.GetNewID(typeof(Model.Weld_RecycleMat)); + BLL.RecycleMatService.AddRecycleMat(newRecycleMat); + + // 非违规 + BLL.UsingMatService.UsingMatIsOnTime(usingMatId, false); + + // 闭环 + BLL.UsingMatService.UsingMatIsColse(usingMatId, true); + } + } + BindGrid1(); + ShowNotify("焊材已退回仓库!"); + } + + + #endregion + + protected void btnReturn_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(String.Format("window.location.href = 'WelderUsing.aspx';")); + } + + #region 退料按钮事件 + /// + /// Grid1行点击事件 + /// + /// + /// + protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) + { + if (e.CommandName == "ReturnMat") + { + //if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + //{ + string window = String.Format("RecycleMatEdit.aspx?usingMatId={0}&welderId={1}", e.RowID, this.WelderId, "编辑 - "); + PageContext.RegisterStartupScript(Window4.GetSaveStateReference(hdItemsString.ClientID) + Window4.GetShowReference(window)); + //} + } + } + + /// + /// Grid2行点击事件 + /// + /// + /// + protected void Grid2_RowCommand(object sender, GridCommandEventArgs e) + { + if (e.CommandName == "UsingWeld") + { + if (!string.IsNullOrEmpty(this.Grid2.SelectedRowID)) + { + bool isUsing = true; + var usingPlan = BLL.UsingPlanService.GetUsingPlanById(this.Grid2.SelectedRowID); + var weld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(usingPlan.WeldId); + string weldTypeId = weld.ConsumablesType; + + for (int i = 0; i < Grid1.Rows.Count; i++) + { + string usingMatId = Grid1.DataKeys[i][0].ToString(); + var usingMat = BLL.UsingMatService.GetUsingMatById(usingMatId); + var uWeld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(usingMat.WeldId); + if (uWeld != null && uWeld.ConsumablesType == weldTypeId) + { + isUsing = false; + break; + } + } + if (isUsing) + { + string window = String.Format("ShowStockIn.aspx?UsingPlanId={0}", this.Grid2.SelectedRowID, "编辑 - "); + PageContext.RegisterStartupScript(Window1.GetSaveStateReference(hdItemsString.ClientID) + Window1.GetShowReference(window)); + } + else + { + ShowNotify("有未完结的领料计划,处理后才能领用!"); + } + } + } + } + + //protected void Grid4_RowCommand(object sender, GridCommandEventArgs e) + //{ + // if (e.CommandName == "WeldName") + // { + // if (!string.IsNullOrEmpty(this.Grid4.SelectedRowID)) + // { + // var rec = BLL.RecycleMatService.GetRecycleMatById(this.Grid4.SelectedRowID); + // string window = String.Format("../Recycle/RecycleMatEdit.aspx?usingMatId={0}&welderId={1}", rec.UsingMatId, this.WelderId, "编辑 - "); + // PageContext.RegisterStartupScript(Window4.GetSaveStateReference(hdItemsString.ClientID) + Window4.GetShowReference(window)); + // } + // } + //} + + + #endregion + + #region 弹出编辑窗口关闭事件 + /// + /// 弹出编辑窗体关闭事件 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + if (!string.IsNullOrEmpty(hdItemsString.Text)) + { + string hdItems = hdItemsString.Text.Trim(); + // this.UsingPlanId = hdItems.Split('$')[0]; + //var plan = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + //decimal usedAmount = BLL.UsingMatService.GetUsingAmountSum(this.UsingPlanId); + + this.GetUsingMat(hdItems); + } + } + + protected void Window4_Close(object sender, WindowCloseEventArgs e) + { + BindGrid1(); // 未完结 + BindGrid2();//未领用领料计划 + BindGrid3();//焊材领用 + } + + /// + /// 领料 + /// + /// + private void GetUsingMat(string hdItems) + { + this.UsingPlanId = hdItems.Split('$')[0]; + string stockInItem = hdItems.Split('$')[1]; + //string oneAmount = hdItems.Split('|')[2]; + //string twoAmount = hdItems.Split('|')[3]; + //var stockIn = BLL.StockInService.GetStockInById(stockInId); + if (!string.IsNullOrEmpty(stockInItem)) + { + string[] stocks = stockInItem.Split('|'); + int recordNum = stocks.Length; + List usingMats = new List(); + foreach (string stock in stocks) + { + string keyId = stock.Split(',')[0]; + string oneAmount = stock.Split(',')[1]; + string twoAmount = stock.Split(',')[2]; + var stockIn = BLL.StockInService.GetStockInById(keyId); + + Model.Weld_UsingMat usingMat = new Model.Weld_UsingMat(); + usingMat.UsingMatId = SQLHelper.GetNewID(typeof(Model.Weld_UsingMat)); + usingMat.StockInId = keyId; + + if (stockIn != null && !string.IsNullOrEmpty(this.UsingPlanId)) + { + var usingPlan = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + var project = BLL.ProjectService.GetProjectByProjectId(usingPlan.ProjectId); + usingMat.ProjectId = usingPlan.ProjectId; + usingMat.WeldId = stockIn.WeldId; + usingMat.Warrantybook = stockIn.Warrantybook; + if (!string.IsNullOrEmpty(stockIn.Number)) + { + usingMat.Number = stockIn.Number; + } + else + { + string perfix = project.ProjectCode + "-"; + usingMat.Number = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId", "dbo.Weld_UsingMat", "Number", usingPlan.ProjectId, perfix); + } + + usingMat.UsingPlanId = this.UsingPlanId; + + if (usingPlan != null) + { + usingMat.UsePosition = usingPlan.UsePosition; + usingMat.Amount = Funs.GetNewDecimal(oneAmount); + usingMat.TwoAmount = Funs.GetNewDecimal(twoAmount); + //if (recordNum == 1) + //{ + // // 库存数量不足 + // if ((stockIn.Amount - (stockIn.UsingAmount??0)) < usingPlan.Amount) + // { + // usingMat.Amount = stockIn.Amount - (stockIn.UsingAmount??0); + // } + // else + // { + // usingMat.Amount = usingPlan.Amount; + // } + //} + //else //如不止一条记录,先用退回的材料 + //{ + // // 库存数量不足 + // if (!string.IsNullOrEmpty(stockIn.Number)) + // { + // if ((stockIn.Amount - (stockIn.UsingAmount ?? 0)) < usingPlan.Amount) + // { + // usingMat.Amount = stockIn.Amount - (stockIn.UsingAmount ?? 0); + // } + // else + // { + // usingMat.Amount = usingPlan.Amount; + // } + // } + //} + } + } + + usingMat.UsingMan = this.WelderId; + usingMat.UsingDate = DateTime.Now; + + usingMats.Add(usingMat); + } + + this.Grid3.DataSource = usingMats; + this.Grid3.DataBind(); + } + } + + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + + } + + protected void Window3_Close(object sender, WindowCloseEventArgs e) + { + BindGrid1(); + BindGrid3(); + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + this.UsingMatSave(); + BindGrid2(); + BindGrid3(); + + //if (IsHaveStock()) + //{ + // if (IsHavePlanAmount()) + // { + // this.UsingMatSave(); + // BindGrid2(); + // BindGrid3(); + // } + // else + // { + // PageContext.RegisterStartupScript(Confirm.GetShowReference("领用的量和计划的不一至,点击确定保存,点取消重新录入数量!", + // String.Empty, + // MessageBoxIcon.Question, + // PageManager1.GetCustomEventReference(false, "Confirm_OK"), // 第一个参数 false 用来指定当前不是AJAX请求 + // PageManager1.GetCustomEventReference("Confirm_Cancel"))); + // } + //} + //else + //{ + // ShowNotify("库存不足,或者领用量不能为空,请重新录入领用数量!"); + // return; + //} + } + + /// + /// 点口确定对话框 + /// + /// + /// + protected void PageManager1_CustomEvent(object sender, CustomEventArgs e) + { + + if (e.EventArgument == "Confirm_OK") + { + this.UsingMatSave(); + BindGrid2(); + BindGrid3(); + } + else if (e.EventArgument == "Confirm_Cancel") + { + if (!string.IsNullOrEmpty(hdItemsString.Text)) + { + string hdItems = hdItemsString.Text.Trim(); + this.GetUsingMat(hdItems); + } + // AJAX回发 + ShowNotify("取消重新录入数量!"); + } + } + + /// + /// 是否有库存 + /// + /// + private bool IsHaveStock() + { + int i = 0; + bool haveStock = true; + if (Grid3.GetMergedData().Count > 0) + { + JArray mergedData = Grid3.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + JObject values = mergedRow.Value("values"); + + decimal amount = 0; + if (string.IsNullOrEmpty(values.Value("Amount"))) + { + haveStock = false; + break; + } + else + { + amount = values.Value("Amount"); + } + string stockInId = values.Value("StockInId"); + string usingMatId = Grid3.DataKeys[i][0].ToString(); + var usingMat = BLL.UsingMatService.GetUsingMatById(usingMatId); + var stock = BLL.StockInService.GetStockInById(stockInId); + + decimal? oldAmount = 0; + if (usingMat != null) + { + oldAmount = usingMat.Amount; + } + decimal? stockAmount = stock.Amount - (stock.UsingAmount ?? 0); + if (amount > stockAmount + oldAmount) + { + haveStock = false; + break; + } + + i++; + } + } + return haveStock; + } + + /// + /// 领料是否和计划一至 + /// + /// + private bool IsHavePlanAmount() + { + decimal usingAmount = 0; + bool havePlanAmount = true; + var plan = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + if (plan != null) + { + decimal planAmount = plan.Amount ?? 0; + + if (Grid3.GetMergedData().Count > 0) + { + JArray mergedData = Grid3.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + JObject values = mergedRow.Value("values"); + + if (!string.IsNullOrEmpty(values.Value("Amount"))) + { + usingAmount = usingAmount + values.Value("Amount"); + } + + } + } + if (usingAmount != planAmount) + { + havePlanAmount = false; + } + } + return havePlanAmount; + } + + private void UsingMatSave() + { + int i = 0; + if (Grid3.GetMergedData().Count > 0) + { + JArray mergedData = Grid3.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + JObject values = mergedRow.Value("values"); + Model.Weld_UsingMat newUsingMat = new Model.Weld_UsingMat(); + + string usingMatId = Grid3.DataKeys[i][0].ToString(); + string projectId = Grid3.DataKeys[i][1].ToString(); + newUsingMat.ProjectId = projectId; + newUsingMat.Amount = values.Value("Amount"); + newUsingMat.TwoAmount = values.Value("TwoAmount"); + newUsingMat.UsingMan = this.WelderId; + newUsingMat.UsingDate = values.Value("UsingDate"); + newUsingMat.Warrantybook = values.Value("Warrantybook"); + newUsingMat.Number = values.Value("Number"); + newUsingMat.StockInId = values.Value("StockInId"); + newUsingMat.UsingMatId = usingMatId; + var usingMat = BLL.UsingMatService.GetUsingMatById(usingMatId); + + decimal? oldAmount = 0; + //decimal? planAmount = 0; + decimal? twoAmount = 0; + if (usingMat != null) + { + this.UsingPlanId = usingMat.UsingPlanId; + oldAmount = usingMat.Amount; + twoAmount = usingMat.TwoAmount; + } + + + var usingPlan = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + if (usingPlan != null) + { + newUsingMat.UsingPlanId = this.UsingPlanId; + if (!string.IsNullOrEmpty(usingPlan.UsePosition)) + { + newUsingMat.UsePosition = usingPlan.UsePosition; + } + if (!string.IsNullOrEmpty(usingPlan.WeldId)) + { + newUsingMat.WeldId = usingPlan.WeldId; + } + //decimal? usingAmount = BLL.UsingMatService.GetUsingAmountSum(this.UsingPlanId) + newUsingMat.Amount - oldAmount; + //planAmount = usingPlan.Amount.HasValue ? usingPlan.Amount.Value : 0;//计划值 + } + + + //// 焊条的领用不能超过计划的量 + //var weldInfo = BLL.WeldInfoService.GetWeldInfoById(newUsingMat.WeldId); + //var weldType = BLL.WeldTypeService.GetWeldTypeById(weldInfo.WeldTypeId); + //if (weldType != null && weldType.WeldTypeName.Contains("焊条")) + //{ + // if (newUsingMat.Amount > planAmount) + // { + // ShowNotify("焊条的领用不能超过计划的量!"); + // return; + // } + //} + + System.Web.UI.WebControls.DropDownList drpStoreMan = (System.Web.UI.WebControls.DropDownList)Grid3.Rows[i].FindControl("drpStoreMan"); + if (!string.IsNullOrEmpty(drpStoreMan.SelectedValue) && drpStoreMan.SelectedValue != "0") + { + newUsingMat.StoreMan = drpStoreMan.SelectedValue; + } + else + { + ShowNotify("请选择保管员!"); + return; + } + + if (newUsingMat.Amount + newUsingMat.TwoAmount > 0) + { + if (usingMat == null) + { + BLL.UsingMatService.AddUsingMat(newUsingMat); + // 修改库存已使用的数量 + BLL.StockInService.UpdateStockInUsingAmount(newUsingMat.StockInId, newUsingMat.Amount, newUsingMat.TwoAmount); + } + else + { + if (usingMat.IsStoreManConfirm == true || usingMat.IsWelderConfirm == true) + { + ShowNotify("焊工已确认,不能修改!"); + return; + } + else + { + BLL.UsingMatService.UpdateUsingMat(newUsingMat); + // 修改库存已使用的数量 + decimal? realUsingAmount = newUsingMat.Amount - oldAmount; + decimal? realTwoAmount = twoAmount - newUsingMat.TwoAmount; + BLL.StockInService.UpdateStockInUsingAmount(newUsingMat.StockInId, realUsingAmount, realTwoAmount); + } + } + } + else + { + ShowNotify("请填写领用数量!"); + } + i++; + } + } + ShowNotify("数据保存成功!(表格数据已重新绑定)"); + } + + #endregion + + #region 双击领料确认 + protected void Grid3_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + string weldMatId = e.RowID; + var mat = BLL.UsingMatService.GetUsingMatById(weldMatId); + if (mat != null) + { + // FingerOrFace=2 表示不通过人脸和指纹 + string window = String.Format("UsingMatCheck.aspx?keyId={0}&grid=1&isFinger=1&FingerOrFace={1}", weldMatId, "2", "编辑 - "); + PageContext.RegisterStartupScript(Window3.GetSaveStateReference(this.WelderId) + + Window3.GetShowReference(window)); + } + else + { + ShowNotify("请先保存记录!"); + } + } + + /// + /// 双击退料确认 + /// + /// + /// + //protected void Grid4_RowDoubleClick(object sender, GridRowClickEventArgs e) + //{ + // string weldMatId = e.RowID; + // var mat = BLL.RecycleMatService.GetRecycleMatById(weldMatId); + // if (mat != null) + // { + // // FingerOrFace=2 表示不通过人脸和指纹 + // string window = String.Format("UsingMatCheck.aspx?keyId={0}&grid=2&isFinger=1&FingerOrFace={1}", weldMatId, "2", "编辑 - "); + // PageContext.RegisterStartupScript(Window3.GetSaveStateReference(this.WelderId) + // + Window3.GetShowReference(window)); + // } + // else + // { + // ShowNotify("请先保存记录!"); + // } + //} + + #endregion + + #region 行绑定获取保管员 + /// + /// 行绑定获取保管员 + /// + /// + /// + protected void Grid3_RowDataBound(object sender, GridRowEventArgs e) + { + System.Web.UI.WebControls.DropDownList drpStoreMan = (System.Web.UI.WebControls.DropDownList)Grid3.Rows[e.RowIndex].FindControl("drpStoreMan"); + Funs.PleaseSelect(drpStoreMan); + drpStoreMan.Items.AddRange(BLL.UserService.GetProjectUserListItemByProjectId(this.CurrUser.LoginProjectId)); + + var usingMat = BLL.UsingMatService.GetUsingMatById(e.RowID); + if (usingMat != null) + { + if (!string.IsNullOrEmpty(usingMat.StoreMan)) + { + drpStoreMan.SelectedValue = usingMat.StoreMan; + } + } + else + { + var curUser = BLL.UserService.GetUserByUserId(this.CurrUser.UserId); + if (curUser != null) + { + drpStoreMan.SelectedValue = curUser.UserId; + } + } + } + + #endregion + + #region 打印 + /// + /// 打印 + /// + /// + /// + protected void btnPrint_Click(object sender, EventArgs e) + { + string weldMatId = this.Grid3.SelectedRowID; + if (!string.IsNullOrEmpty(weldMatId)) + { + string weldSpec = string.Empty;//规格 + string weldName = string.Empty;//材质牌号 + string welderName = string.Empty;//焊工姓名 + string number = string.Empty;//流水号 + string storeName = string.Empty;//保管员 + string usingDate = string.Empty;//时间 + var material = BLL.UsingMatService.GetUsingMatById(weldMatId); + if (material != null) + { + if (!string.IsNullOrEmpty(material.WeldId)) + { + var weldInfo = Base_ConsumablesService.GetConsumablesByConsumablesId(material.WeldId); + if (weldInfo != null) + { + weldSpec = weldInfo.SteelFormat; + weldName = weldInfo.ConsumablesCode; + } + } + if (!string.IsNullOrEmpty(material.UsingMan)) + { + var welder = WelderService.GetWelderById(material.UsingMan); + if (welder != null) + { + welderName = welder.WED_Name + "(" + welder.WED_Code + ")"; + } + } + number = material.Number; + if (!string.IsNullOrEmpty(material.StoreMan)) + { + var store = BLL.UserService.GetUserByUserId(material.StoreMan); + if (store != null) + { + storeName = store.UserName; + } + } + usingDate = material.UsingDate.Value.ToShortDateString() + " " + material.UsingDate.Value.ToShortTimeString(); + } + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("WeldSpec", weldSpec); + keyValuePairs.Add("WeldName", weldName); + keyValuePairs.Add("WelderName", welderName); + keyValuePairs.Add("Number", number); + keyValuePairs.Add("StoreName", storeName); + keyValuePairs.Add("UsingDate", usingDate); + + BLL.Common.FastReportService.ResetData(); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + + initTemplatePath = "File\\Fastreport\\材料标签.frx"; + + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../TrustManage/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + + } + //string reportId = BLL.Const.CLGL_MaterialLabelReportId; + //PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", reportId, weldMatId, "", "打印 - "))); + } + else + { + ShowNotify("请选中要打印的材料!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 不用了 + /// + /// 打印领料标签 + /// + /// + /// + //protected void btnPrint_Click(object sender, EventArgs e) + //{ + // if (!string.IsNullOrEmpty(this.Grid3.SelectedRowID)) + // { + // string reportId = BLL.Const.CLGL_MaterialLabelReportId; + // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", reportId, this.Grid3.SelectedRowID, string.Empty, "打印 - "))); + // } + // else + // { + // ShowNotify("请选中要打印的领料标签"); + // } + //} + #endregion + + #region 格式化字符串 + + protected string ConvertIsReview(object stockInId) + { + string reStr = "否"; + if (stockInId != null) + { + var stockIn = BLL.StockInService.GetStockInById(stockInId.ToString()); + if (stockIn != null && stockIn.ReviewDate != null) + { + reStr = "是"; + } + } + return reStr; + } + + /// + /// 根据ID获取领取人姓名 + /// + /// + /// + protected string ConvertString(object usingMan) + { + if (usingMan != null) + { + var person = BLL.WelderService.GetWelderById(usingMan.ToString()); + if (person != null) + { + return person.WED_Name; + } + } + return null; + } + + protected string ConvertWeldName(object weldId) + { + if (weldId != null) + { + var weldInfo = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(weldId.ToString()); + if (weldInfo != null) + { + return weldInfo.ConsumablesName; + } + } + return null; + } + + protected string ConvertWeldCode(object weldId) + { + if (weldId != null) + { + var weldInfo = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(weldId.ToString()); + if (weldInfo != null) + { + return weldInfo.ConsumablesCode; + } + } + return null; + } + + /// + /// + /// + /// + /// 时间戳,单位为毫秒(0),秒(1),默认毫秒 + /// + private DateTime? ConvertUnixTimeStampToDateTime(string unixTimeStamp) + { + if (!string.IsNullOrEmpty(unixTimeStamp)) + { + double timeStamp = double.Parse(unixTimeStamp); + //create a new datetime value based on the unix epoch + DateTime converted = new DateTime(1970, 1, 1, 0, 0, 0, 0); + //add the timestamp to the value + //DateTime newdatetime = (unit == 1 ? converted.AddSeconds(timeStamp) : converted.AddMilliseconds(timeStamp)); + DateTime newdatetime = converted.AddMilliseconds(timeStamp); + //convert to localtime + return newdatetime.ToLocalTime(); + } + else + { + return null; + } + } + + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx.designer.cs new file mode 100644 index 0000000..c39a5e9 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMat.aspx.designer.cs @@ -0,0 +1,357 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class UsingMat { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Panel2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel2; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// 未完结领料计划 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label 未完结领料计划; + + /// + /// ToolbarFill2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill2; + + /// + /// btnReturn 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnReturn; + + /// + /// btnOnekeyReturnMat 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOnekeyReturnMat; + + /// + /// lbtnReturnMat 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.LinkButtonField lbtnReturnMat; + + /// + /// Panel3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel3; + + /// + /// Grid2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid2; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// lbtnUsingWeld 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.LinkButtonField lbtnUsingWeld; + + /// + /// Panel4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel4; + + /// + /// Grid3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid3; + + /// + /// Toolbar3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar3; + + /// + /// tfWeldName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TemplateField tfWeldName; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// tfWeldCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TemplateField tfWeldCode; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label4; + + /// + /// tfUsingMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TemplateField tfUsingMan; + + /// + /// lblUsingManName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblUsingManName; + + /// + /// tfStoreMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TemplateField tfStoreMan; + + /// + /// drpStoreMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.DropDownList drpStoreMan; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// hdItemsString 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdItemsString; + + /// + /// hdOneAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdOneAmount; + + /// + /// hdTwoAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdTwoAmount; + + /// + /// Label7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label7; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPrint; + + /// + /// content 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField content; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Window3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window3; + + /// + /// Window4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window4; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx new file mode 100644 index 0000000..1ad2f96 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx @@ -0,0 +1,203 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsingMatCheck.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.UsingMatCheck" %> + + + + + +领料确认单 + + + + + + +
+ + + +
+ + + + + + + + + +
+ 焊工领料/退料确认单 + + <%----%> + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 焊工姓名: + + + + 保 管 员: + + +
+ 焊材代号: + + + + 焊材规格: + + +
+ + + + + + + +
+ 质保书号: + + + + 流 水 号: + + +
+ + + +
+
+ + + + + + + + + + + +
+ + +
+ +
+
+
+ + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx.cs new file mode 100644 index 0000000..38ecac8 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx.cs @@ -0,0 +1,395 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class UsingMatCheck : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + string keyId = Request.Params["keyId"]; + string grid = Request.Params["grid"]; + + if (grid == "1") // 领料 + { + var mat = BLL.UsingMatService.GetUsingMatById(keyId); + if (mat != null) + { + var weld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(mat.WeldId); + var type = string.Empty; + var dropValue = BLL.DropListService.HJGL_ConsumablesTypeList().FirstOrDefault(x => x.Value == weld.ConsumablesType); + if (dropValue != null) + { + type = dropValue.Text; + } + var w = BLL.WelderService.GetWelderById(mat.UsingMan); + var storeMan = BLL.UserService.GetUserByUserId(mat.StoreMan); + + string unit = ""; + unit = "根"; + txtAmount.Text = (mat.Amount.Value + mat.TwoAmount.Value).ToString("0.##") + "根"; + //if (type.WeldTypeName.Contains("焊条")) + //{ + // unit = "根"; + // txtAmount.Text = mat.Amount.Value.ToString("0.##") + "根"; + //} + //else + //{ + // unit = "公斤"; + // txtAmount.Text = mat.Amount.Value.ToString("0.##") + "Kg"; + //} + + string[] weldNames = weld.ConsumablesCode.Split('/'); + string weldName = string.Empty; + if (weldNames.Length > 1) + { + weldName = weldNames[1]; + } + else + { + weldName = weldNames[0]; + } + + string strSpeak = w.WED_Name + "领牌号为" + weldName + "的" + type + mat.Amount.Value.ToString("0.##") + unit + "请确认"; + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + + txtStoreMan.Text = storeMan.UserName; + txtName.Text = w.WED_Name; + txtWeldName.Text = weld.ConsumablesCode; + txtWeldSpec.Text = weld.SteelFormat; + + txtDatetime.Text = mat.UsingDate.Value.ToShortDateString(); + txtWarrantybook.Text = mat.Warrantybook; + txtNumber.Text = mat.Number; + } + } + + if (grid == "2") // 退料 + { + var recycle = BLL.RecycleMatService.GetRecycleMatById(keyId); + var mat = BLL.UsingMatService.GetUsingMatById(recycle.UsingMatId); + var weld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(mat.WeldId); + var type = string.Empty; + var dropValue = BLL.DropListService.HJGL_ConsumablesTypeList().FirstOrDefault(x => x.Value == weld.ConsumablesType); + if (dropValue != null) + { + type = dropValue.Text; + } + var w = BLL.WelderService.GetWelderById(mat.UsingMan); + var storeMan = BLL.UserService.GetUserByUserId(mat.StoreMan); + //if (recycle.IsStoreManConfirm == true) + //{ + // btnStoreMam.Text = "保管员已确认"; + //} + if (recycle.IsWelderConfirm == true) + { + btnWelder.Text = "焊工已确认"; + } + + string unit = ""; + unit = "根"; + txtAmount.Text = recycle.RecycleAmount.Value.ToString("0.##") + "根"; + if (type.Contains("焊条")) + { + this.lbRetrunTop.Visible = true; + this.txtRetrunTop.Visible = true; + } + else + { + this.lbRetrunTop.Visible = false; + this.txtRetrunTop.Visible = false; + //unit = "公斤"; + //txtAmount.Text = recycle.RecycleAmount.Value.ToString("0.##") + "Kg"; + } + + string[] weldNames = weld.ConsumablesCode.Split('/'); + string weldName = string.Empty; + if (weldNames.Length > 1) + { + weldName = weldNames[1]; + } + else + { + weldName = weldNames[0]; + } + + string strSpeak = w.WED_Name + "退回牌号为" + weldName + "的" + type + recycle.RecycleAmount.Value.ToString("0.##") + unit; + if (type.Contains("焊条")) + { + strSpeak = strSpeak + "退回焊条头" + (recycle.ReturnMatTop != null ? recycle.ReturnMatTop.Value.ToString() : "0") + unit; + } + strSpeak = strSpeak + "请确认"; + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + + lbAmount.Text = "退回数量:"; + lbDatetime.Text = "退回时间:"; + txtStoreMan.Text = storeMan.UserName; + txtName.Text = w.WED_Name; + txtWeldName.Text = weld.ConsumablesCode; + txtWeldSpec.Text = weld.SteelFormat; + txtRetrunTop.Text = recycle.ReturnMatTop != null ? recycle.ReturnMatTop.Value.ToString() : "0"; + txtDatetime.Text = recycle.RecycleDate.Value.ToShortDateString(); + txtWarrantybook.Text = mat.Warrantybook; + txtNumber.Text = mat.Number; + } + if (grid == "3") // 退回焊条头 + { + //var recycleTop = BLL.RecycleMatTopService.GetRecycleMatTopByUsingMatId(keyId); + //var w = BLL.HJGL_PersonManageService.GetWelderByWenId(recycleTop.RecycleMan); + //var storeMan = BLL.StoremanInfoService.GetStoremanById(recycleTop.StockMan); + + //lbAmount.Text = "退回焊条头:"; + + //string strSpeak = w.WED_Name + "退回焊条头" + recycleTop.RecycleAmount.Value.ToString("0.##") + "根请确认"; + //ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + + //lbDatetime.Text = "退回时间:"; + //txtStoreMan.Text = storeMan.StoreName; + //txtName.Text = w.WED_Name; + //txtWeldName.Text = weld.WeldName; + //txtWeldSpec.Text = weld.WeldSpec; + //txtAmount.Text = recycleTop.RecycleAmount.Value.ToString("0.##") + "根"; + //txtDatetime.Text = recycleTop.RecycleDate.Value.ToShortDateString(); + //txtWarrantybook.Text = mat.Warrantybook; + //txtNumber.Text = mat.Number; + } + } + } + #endregion + + #region 焊工确认 + /// + /// 焊工确认 + /// + /// + /// + protected void btnWelder_Click(object sender, EventArgs e) + { + string keyId = Request.Params["keyId"]; + string grid = Request.Params["grid"]; + string isFinger = Request.Params["isFinger"]; // 是否需指纹确认1-是,0-否 + string fingerOrFace = Request.Params["FingerOrFace"];//0-指纹,1-人脸识别 + + if (grid == "1") + { + var usingMat = BLL.UsingMatService.GetUsingMatById(keyId); + if (usingMat.IsWelderConfirm != true) + { + if (fingerOrFace == "0") + { + if (isFinger == "1") + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + } + else if (fingerOrFace == "1") + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + else + { + //ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("CodeConfirm.aspx?keyId={0}&flag={1}&grid={2}", keyId, "1", grid, "", "焊工确认 - "))); + } + } + else + { + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('焊工已确认!')", true); + } + } + else + { + var recycle = BLL.RecycleMatService.GetRecycleMatById(keyId); + if (recycle.IsWelderConfirm != true) + { + if (isFinger == "1") + { + if (fingerOrFace == "0") + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + else if (fingerOrFace == "1") + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + else + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + } + else + { + BLL.RecycleMatService.WelderConfirm(recycle.RecycleMatId, true); + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('焊工确认成功!')", true); + } + } + else + { + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('焊工已确认!')", true); + } + } + } + #endregion + + #region 打印 + protected void btnPrinter_Click(object sender, EventArgs e) + { + //string reportId = BLL.Const.CLGL_MaterialLabelReportId; + //ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + string keyId = Request.Params["keyId"]; + if (!string.IsNullOrEmpty(keyId)) + { + string weldSpec = string.Empty;//规格 + string weldName = string.Empty;//材质牌号 + string welderName = string.Empty;//焊工姓名 + string number = string.Empty;//流水号 + string storeName = string.Empty;//保管员 + string usingDate = string.Empty;//时间 + var material = BLL.UsingMatService.GetUsingMatById(keyId); + if (material != null) + { + if (!string.IsNullOrEmpty(material.WeldId)) + { + var weldInfo = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(material.WeldId); + if (weldInfo != null) + { + weldSpec = weldInfo.SteelFormat; + weldName = weldInfo.ConsumablesCode; + } + } + if (!string.IsNullOrEmpty(material.UsingMan)) + { + var welder = BLL.WelderService.GetWelderById(material.UsingMan); + if (welder != null) + { + welderName = welder.WED_Name + "(" + welder.WED_Code + ")"; + } + } + number = material.Number; + if (!string.IsNullOrEmpty(material.StoreMan)) + { + var store = BLL.UserService.GetUserByUserId(material.StoreMan); + if (store != null) + { + storeName = store.UserName; + } + } + usingDate = material.UsingDate.Value.ToShortDateString() + " " + material.UsingDate.Value.ToShortTimeString(); + } + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("WeldSpec", weldSpec); + keyValuePairs.Add("WeldName", weldName); + keyValuePairs.Add("WelderName", welderName); + keyValuePairs.Add("Number", number); + keyValuePairs.Add("StoreName", storeName); + keyValuePairs.Add("UsingDate", usingDate); + + BLL.Common.FastReportService.ResetData(); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + + initTemplatePath = "File\\Fastreport\\材料标签.frx"; + + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../TrustManage/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + + } + } + } + #endregion + + protected void btnClose_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + + #region 保管员确认 + /// + /// 保管员确认 + /// + /// + /// + protected void btnStoreMam_Click(object sender, EventArgs e) + { + string keyId = Request.Params["keyId"]; + string grid = Request.Params["grid"]; + string isFinger = Request.Params["isFinger"]; // 是否需指纹确认1-是,0-否 + string fingerOrFace = Request.Params["FingerOrFace"];//0-指纹,1-人脸识别 + + if (grid == "1") + { + if (fingerOrFace == "0")//指纹 + { + if (isFinger == "1") + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + } + else if (fingerOrFace == "1") + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + else + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + } + else if (grid == "2") + { + var recycle = BLL.RecycleMatService.GetRecycleMatById(keyId); + var mat = BLL.UsingMatService.GetUsingMatById(recycle.UsingMatId); + + + if (recycle.IsStoreManConfirm != true) + { + if (fingerOrFace == "0") + { + if (isFinger == "1") + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + } + else if (fingerOrFace == "1") + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + else if (fingerOrFace == "2") + { + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + else + { + if (!string.IsNullOrEmpty(mat.StockInId)) + { + decimal recycleAmount = recycle.RecycleAmount.HasValue ? recycle.RecycleAmount.Value : 0; + BLL.StockInService.UpdateStockInAmount(mat.StockInId, recycleAmount); + } + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('保管员确认成功!')", true); + } + } + else + { + ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('保管员已确认!')", true); + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx.designer.cs new file mode 100644 index 0000000..220c641 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingMatCheck.aspx.designer.cs @@ -0,0 +1,177 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class UsingMatCheck { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// txtName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtName; + + /// + /// txtStoreMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtStoreMan; + + /// + /// txtWeldName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtWeldName; + + /// + /// txtWeldSpec 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtWeldSpec; + + /// + /// lbAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbAmount; + + /// + /// txtAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtAmount; + + /// + /// lbDatetime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbDatetime; + + /// + /// txtDatetime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtDatetime; + + /// + /// txtWarrantybook 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtWarrantybook; + + /// + /// txtNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtNumber; + + /// + /// lbRetrunTop 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbRetrunTop; + + /// + /// txtRetrunTop 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtRetrunTop; + + /// + /// btnWelder 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnWelder; + + /// + /// btnPrinter 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnPrinter; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx new file mode 100644 index 0000000..232fead --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx @@ -0,0 +1,195 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsingPlan.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.UsingPlan" %> + + + + + + 领料计划录入 + + + + +
+ + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx.cs new file mode 100644 index 0000000..c6a0c2e --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx.cs @@ -0,0 +1,625 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using BLL; +using System.Text; +using AspNet = System.Web.UI.WebControls; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class UsingPlan : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + + string lastPlan = @"SELECT p.UsingPlanId FROM dbo.Weld_UsingPlan p + WHERE p.OrderDate 0) + { + for (int i = 0; i < dt.Rows.Count; i++) + { + string usingPlanId = dt.Rows[i]["UsingPlanId"].ToString(); + BLL.UsingPlanService.UpdateIsCancel(usingPlanId, "超时未领用"); + } + } + + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT UsingPlan.UsingPlanId, UsingPlan.WeldId, UsingPlan.ProjectId, UsingPlan.UsePosition,team.TeamGroupName,UsingPlan.STE_Name, + unit.UnitName AS UsingUnit,UsingPlan.Amount, UsingPlan.UsingManOne, UsingPlan.InPutDate, + UsingPlan.OrderDate,UsingPlan.OrderTime, UsingPlan.CancelDate,UsingPlan.IsNeedConfirm, + (CASE UsingPlan.IsSteelStru WHEN 1 THEN '是' WHEN 0 THEN '否' ELSE '' END) AS IsSteelStru, + (CASE UsingPlan.IsSubmit WHEN 1 THEN '是' WHEN 0 THEN '否' ELSE '' END) AS IsSubmit, + (CASE UsingPlan.IsCancel WHEN 1 THEN '是' WHEN 0 THEN '否' ELSE '' END) AS IsCancel, + Weld.ConsumablesCode,Weld.ConsumablesName,Weld.SteelFormat,Weld.WeldUnit,case Weld.ConsumablesType when '1' then '焊丝' when '2' then '焊条' when '3' then '焊剂' else '' end as WeldTypeName, + Project.ProjectCode,Welder.WED_Name+'('+Welder.WED_Code+')' AS UsingManOneName,UsingPlan.IsSubmit AS WelderAudit, + (CASE WHEN UsingPlan.InPutMan IS NOT NULL THEN (CASE WHEN userInput.UserName IS NOT NULL THEN userInput.UserName ELSE welderInput.WED_Name END) + ELSE '' END) AS InPutMan, + --man.UserName AS InPutMan, + ((SELECT ISNULL(SUM(ISNULL(us.Amount,0)),0) FROM dbo.Weld_UsingMat us WHERE us.UsingPlanId=UsingPlan.UsingPlanId)- + (SELECT ISNULL(SUM(ISNULL(re.RecycleAmount,0)),0) FROM dbo.Weld_RecycleMat re WHERE re.UsingPlanId=UsingPlan.UsingPlanId)) + AS UsedAmount,(CASE UsingPlan.IsFinish WHEN 1 THEN '是' WHEN 0 THEN '否' ELSE NULL END) AS IsFinish + FROM dbo.Weld_UsingPlan AS UsingPlan + LEFT JOIN dbo.Base_Consumables AS Weld ON Weld.ConsumablesId=UsingPlan.WeldId + LEFT JOIN dbo.Base_Project AS Project ON Project.ProjectId =UsingPlan.ProjectId + LEFT JOIN dbo.BS_Welder AS Welder ON Welder.WED_ID = UsingPlan.UsingManOne + LEFT JOIN dbo.Base_Unit unit ON unit.UnitId=UsingPlan.UsingUnit + LEFT JOIN dbo.Sys_User AS userInput ON userInput.UserId=UsingPlan.InPutMan + LEFT JOIN dbo.BS_Welder AS welderInput ON welderInput.WED_ID=UsingPlan.InPutMan + LEFT JOIN dbo.ProjectData_TeamGroup team ON team.TeamGroupId = UsingPlan.TeamGroupId + WHERE 1=1 "; + List listStr = new List(); + if (this.rblUsed.SelectedValue == "0") // 未领用 + { + strSql += " AND IsCancel=0 AND (SELECT COUNT(*) FROM dbo.Weld_UsingMat u WHERE u.UsingPlanId=UsingPlan.UsingPlanId)=0 "; + } + else if (this.rblUsed.SelectedValue == "1") // 已领用 + { + strSql += " AND (SELECT COUNT(*) FROM dbo.Weld_UsingMat u WHERE u.UsingPlanId=UsingPlan.UsingPlanId)>0 "; + } + else // 已作废 + { + strSql += " AND IsCancel=1"; + } + + strSql += " AND UsingPlan.ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtWeldCode.Text.Trim())) + { + strSql += " AND Weld.ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtWeldCode.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtUsingMan.Text.Trim())) + { + strSql += " AND Welder.WED_Name LIKE @UsingMan"; + listStr.Add(new SqlParameter("@UsingMan", "%" + this.txtUsingMan.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtInputMan.Text.Trim())) + { + strSql += " AND (CASE WHEN UsingPlan.InPutMan IS NOT NULL THEN (CASE WHEN userInput.UserName IS NOT NULL THEN userInput.UserName ELSE welderInput.WED_Name END) ELSE '' END) LIKE @InputMan"; + listStr.Add(new SqlParameter("@InputMan", "%" + this.txtInputMan.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtUsingUnit.Text.Trim())) + { + strSql += " AND unit.UnitName LIKE @UnitName"; + listStr.Add(new SqlParameter("@UnitName", "%" + this.txtUsingUnit.Text.Trim() + "%")); + } + //if (cbIsNeedConfirm.Checked) + //{ + // strSql += " AND UsingPlan.IsNeedConfirm = 1"; + //} + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 查询 + /// + ///查询 + /// + /// + /// + protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) + { + BindGrid(); + } + + protected void btnSelect_Click(object sender, EventArgs e) + { + BindGrid(); + } + + protected void rblUsed_SelectedIndexChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) + { + if (e.CommandName == "ConfirmFinish") + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + var plan = BLL.UsingPlanService.GetUsingPlanById(this.Grid1.SelectedRowID); + if (plan.IsFinish == null || plan.IsFinish == false) + { + string window = String.Format("../../FingerMark/FingerConfirm.aspx?keyId={0}&flag=2&grid=4", this.Grid1.SelectedRowID, "编辑 - "); + PageContext.RegisterStartupScript(Window2.GetSaveStateReference(this.Grid1.SelectedRowID) + + Window2.GetShowReference(window)); + } + else + { + ShowNotify("该领料计划已完成"); + } + } + } + } + + protected void Grid1_RowDataBound(object sender, GridRowEventArgs e) + { + DataRowView row = e.DataItem as DataRowView; + //bool con = false; + //if (row["IsNeedConfirm"].ToString()!="") + //{ + // con= Convert.ToBoolean(row["IsNeedConfirm"]); + //} + //if (con) + //{ + // e.RowCssClass = "color1"; + //} + + //var plan = BLL.UsingPlanService.GetUsingPlanById(e.RowID); + //if (plan != null) + //{ + // var welder = BLL.HJGL_PersonManageService.GetWelderByWenId(plan.InPutMan); + // if (welder == null) + // { + // CheckBoxField cb = Grid1.FindColumn("WelderAudit") as CheckBoxField; + // e.CellCssClasses[cb.ColumnIndex] = "hidethis"; + // } + //} + } + + + #region 表头过滤 + protected void Grid1_FilterChange(object sender, EventArgs e) + { + 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 TextBox_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 增加按钮 + /// + /// 增加按钮 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_UsingPlanMenuId, BLL.Const.BtnAdd)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("UsingPlanEdit.aspx?UsingPlanId={0}", string.Empty, "编辑 - "))); + } + } + #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 (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_UsingPlanMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(id)) + { + var usedMat = BLL.UsingMatService.GetUsingMatByPlanId(id); + if (usedMat == null) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("UsingPlanEdit.aspx?UsingPlanId={0}", id, "编辑 - "))); + } + else + { + Alert.ShowInTop("已有领用,不能修改!", MessageBoxIcon.Warning); + return; + } + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + /// + /// 复制按钮 + /// + /// + /// + protected void btnMenuCopy_Click(object sender, EventArgs e) + { + this.CopyData(); + } + + /// + /// 复制数据方法 + /// + private void CopyData() + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_UsingPlanMenuId, BLL.Const.BtnModify)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(id)) + { + var oldUsedPlan = BLL.UsingPlanService.GetUsingPlanById(id); + Model.Weld_UsingPlan usingPlan = new Model.Weld_UsingPlan(); + usingPlan.WeldId = oldUsedPlan.WeldId; + usingPlan.ProjectId = oldUsedPlan.ProjectId; + usingPlan.UsePosition = oldUsedPlan.UsePosition; + usingPlan.UsingUnit = oldUsedPlan.UsingUnit; + usingPlan.STE_ID = oldUsedPlan.STE_ID; + usingPlan.STE_Name = oldUsedPlan.STE_Name; + usingPlan.Amount = oldUsedPlan.Amount; + usingPlan.UsingManOne = oldUsedPlan.UsingManOne; + usingPlan.InPutDate = DateTime.Now; + usingPlan.OrderDate = DateTime.Now; + usingPlan.OrderTime = oldUsedPlan.OrderTime; + usingPlan.TeamGroupId = oldUsedPlan.TeamGroupId; + usingPlan.CancelDate = oldUsedPlan.CancelDate; + usingPlan.IsCancel = oldUsedPlan.IsCancel; + usingPlan.CancelResult = oldUsedPlan.CancelResult; + usingPlan.IsSubmit = oldUsedPlan.IsSubmit; + usingPlan.InPutMan = CurrUser.UserId; + usingPlan.IsSteelStru = oldUsedPlan.IsSteelStru; + usingPlan.Type = "1"; + usingPlan.UsingPlanId = SQLHelper.GetNewID(typeof(Model.Weld_UsingPlan)); + BLL.UsingPlanService.AddUsingPlan(usingPlan); + BLL.LogService.AddSys_Log(this.CurrUser, usingPlan.InPutDate.ToString(), usingPlan.UsingPlanId, BLL.Const.CLGL_UsingPlanMenuId, "拷贝领料计划录入"); + this.BindGrid(); + Alert.ShowInTop("拷贝成功!", MessageBoxIcon.Success); + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + protected void btnConfirm_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_UsingPlanMenuId, BLL.Const.BtnAuditing)) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(id)) + { + var noComfirm = BLL.UsingPlanService.GetUsingPlanById(id); + if (noComfirm.UsingUnit == CurrUser.UnitId) + { + if (noComfirm != null && noComfirm.IsNeedConfirm == true) + { + BLL.UsingPlanService.UpdateIsNeedConfirm(noComfirm.UsingPlanId, false); + Alert.ShowInTop("已审核确认!", MessageBoxIcon.Success); + BindGrid(); + } + else + { + Alert.ShowInTop("正常计划不用确认!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("非本单位数据,不能审核确认!", MessageBoxIcon.Warning); + return; + } + + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + /// + /// 焊工录入计划审核 + /// + /// + /// + protected void btnAudit_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_UsingPlanMenuId, BLL.Const.BtnAuditing)) + { + bool selectItem = false; + CheckBoxField cb = Grid1.FindColumn("WelderAudit") as CheckBoxField; + for (int i = 0; i < Grid1.Rows.Count; i++) + { + string planId = Grid1.DataKeys[i][0].ToString(); + var plan = BLL.UsingPlanService.GetUsingPlanById(planId); + //var welder = BLL.HJGL_PersonManageService.GetWelderByWenId(plan.InPutMan); + //if (cb.GetCheckedState(i) == true && welder != null) + //{ + // BLL.UsingPlanService.UpdateIsSubmit(planId); + // selectItem = true; + //} + } + if (selectItem) + { + BindGrid(); + ShowNotify("所选记录已审核!", MessageBoxIcon.Success); + } + else + { + Alert.ShowInTop("请选择要审核的记录!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + #region 删除 + /// + /// 右键删除事件 + /// + /// + /// + //protected void btnMenuDelete_Click(object sender, EventArgs e) + //{ + // this.DeleteData(); + //} + + /// + /// 删除方法 + /// + private void DeleteData() + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_UsingPlanMenuId, BLL.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(); + var plan = BLL.UsingPlanService.GetUsingPlanById(rowID); + if (this.judgementDelete(rowID, isShow)) + { + BLL.UsingPlanService.DeleteUsingPlanById(rowID); + BLL.LogService.AddSys_Log(this.CurrUser, plan.InPutDate.ToString(), rowID, BLL.Const.CLGL_UsingPlanMenuId, "删除领料计划录入"); + } + } + this.BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + /// + /// 判断是否可删除 + /// + /// + /// + /// + 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 导入 + /// + /// 导入 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("UsingPlanImport.aspx", "导入 - "))); + } + #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; + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + +#pragma warning disable CS0108 // “TrainRecord.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。 + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) +#pragma warning restore CS0108 // “TrainRecord.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。 + { + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + this.Grid1.PageSize = 100000; + BindGrid(); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnIndex < 20) + { + sb.AppendFormat("", column.HeaderText); + } + } + sb.Append(""); + foreach (GridRow row in grid.Rows) + { + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnIndex < 20) + { + string html = row.Values[column.ColumnIndex].ToString(); + if (column.ColumnID == "tfNumber") + { + html = (row.FindControl("lblNumber") as AspNet.Label).Text; + } + //sb.AppendFormat("", html); + sb.AppendFormat("", html); + } + } + + sb.Append(""); + } + + sb.Append("
{0}
{0}{0}
"); + + return sb.ToString(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx.designer.cs new file mode 100644 index 0000000..ec1bf00 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlan.aspx.designer.cs @@ -0,0 +1,267 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class UsingPlan { + + /// + /// 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; + + /// + /// txt112 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txt112; + + /// + /// rblUsed 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblUsed; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// txtWeldCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldCode; + + /// + /// txtUsingMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUsingMan; + + /// + /// txtInputMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtInputMan; + + /// + /// txtUsingUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUsingUnit; + + /// + /// btnSelect 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSelect; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// btnConfirm 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnConfirm; + + /// + /// btnAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit; + + /// + /// 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; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Window3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window3; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuCopy 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuCopy; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx new file mode 100644 index 0000000..4e4adcc --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx @@ -0,0 +1,142 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsingPlanEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.UsingPlanEdit" %> + + + + + + 编辑领料计划录入 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx.cs new file mode 100644 index 0000000..afa16e3 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx.cs @@ -0,0 +1,495 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class UsingPlanEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + private string UsingPlanId + { + get + { + return (string)ViewState["UsingPlanId"]; + } + set + { + ViewState["UsingPlanId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + + this.drpOrderTime.DataTextField = "Text"; + this.drpOrderTime.DataValueField = "Value"; + this.drpOrderTime.DataSource = BLL.DropListService.OrderTimeList(); + this.drpOrderTime.DataBind(); + Funs.FineUIPleaseSelect(this.drpOrderTime); + + WorkAreaService.InitWorkAreaByProjectId(this.drpWorkArea, this.CurrUser.LoginProjectId, true); + + ///材质 + BLL.Base_MaterialService.InitMaterialDropDownList(this.drpSheet, true, this.CurrUser.LoginProjectId); + //使用位置 + var position = from x in Funs.DB.PW_IsoInfo + where x.ProjectId == this.CurrUser.LoginProjectId + orderby x.ISO_IsoNo + select x; + this.drpUsePosition.DataValueField = "ISO_IsoNo"; + this.drpUsePosition.DataTextField = "ISO_IsoNo"; + this.drpUsePosition.DataSource = position; + this.drpUsePosition.DataBind(); + Funs.FineUIPleaseSelect(this.drpUsePosition); + + this.txtOrderDate.MinDate = DateTime.Now; + this.UsingPlanId = Request.Params["UsingPlanId"]; + if (!string.IsNullOrEmpty(this.UsingPlanId)) + { + Model.Weld_UsingPlan usingPlan = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + if (usingPlan != null) + { + if (!string.IsNullOrEmpty(usingPlan.WeldId)) + { + this.hdWeldId.Text = usingPlan.WeldId; + var weld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(usingPlan.WeldId); + if (weld != null) + { + this.txtWeldCode.Text = weld.ConsumablesCode; + this.txtWeldName.Text = weld.ConsumablesName; + this.txtWeldSpec.Text = weld.SteelFormat; + } + if (!string.IsNullOrEmpty(usingPlan.UsingManOne)) + { + this.hdUsingMan1.Text = usingPlan.UsingManOne; + Model.BS_Welder welder = BLL.WelderService.GetWelderById(this.hdUsingMan1.Text); + if (welder != null) + { + this.hdUnitId.Text = welder.WED_Unit; + this.txtUsingUnit.Text = BLL.UnitService.GetUnitNameByUnitId(welder.WED_Unit); + this.hdTeamGroupId.Text = welder.TeamGroupId; + this.txtTeamGroup.Text = BLL.TeamGroupService.GetTeamGroupNameByTeamGroupId(welder.TeamGroupId); + this.txtUsingManOne.Text = welder.WED_Name; + } + } + + if (!string.IsNullOrEmpty(usingPlan.WorkAreaId)) + { + this.drpWorkArea.SelectedValue = usingPlan.WorkAreaId; + position = from x in Funs.DB.PW_IsoInfo + where x.ProjectId == this.CurrUser.LoginProjectId && x.WorkAreaId == this.drpWorkArea.SelectedValue + orderby x.ISO_IsoNo + select x; + this.drpUsePosition.DataValueField = "ISO_IsoNo"; + this.drpUsePosition.DataTextField = "ISO_IsoNo"; + this.drpUsePosition.DataSource = position; + this.drpUsePosition.DataBind(); + Funs.FineUIPleaseSelect(this.drpUsePosition); + } + + if (!string.IsNullOrEmpty(usingPlan.UsePosition)) + { + this.drpUsePosition.SelectedValue = usingPlan.UsePosition; + } + + if (usingPlan.Amount.HasValue) + { + this.txtAmount.Text = usingPlan.Amount.ToString(); + } + if (usingPlan.InPutDate.HasValue) + { + this.txtInPutDate.Text = string.Format("{0:yyyy-MM-dd}", usingPlan.InPutDate); + } + if (usingPlan.OrderDate.HasValue) + { + this.txtOrderDate.Text = string.Format("{0:yyyy-MM-dd}", usingPlan.OrderDate); + } + + if (!string.IsNullOrEmpty(usingPlan.OrderTime)) + { + this.drpOrderTime.SelectedValue = usingPlan.OrderTime; + } + + if (usingPlan.CancelDate.HasValue) + { + this.txtCancelDate.Text = string.Format("{0:yyyy-MM-dd}", usingPlan.CancelDate); + } + if (usingPlan.IsSteelStru == true) + { + drpIsSteelStru.SelectedValue = "1"; + } + else + { + drpIsSteelStru.SelectedValue = "0"; + } + + txtCancelResult.Text = usingPlan.CancelResult; + this.rblIsCancel.SelectedValue = (usingPlan.IsCancel == true ? "true" : "false"); + if (!string.IsNullOrEmpty(usingPlan.STE_ID)) + { + drpSheet.SelectedValueArray = usingPlan.STE_ID.Split(','); + } + } + } + } + else + { + this.txtInPutDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + this.txtOrderDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + } + } + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + SaveData(false); + } + + protected void btnSubmit_Click(object sender, EventArgs e) + { + SaveData(true); + } + + /// + /// 保存数据 + /// + private void SaveData(bool? isSubmit) + { + if (string.IsNullOrEmpty(this.hdWeldId.Text.Trim())) + { + Alert.ShowInTop("请选择焊材代号!", MessageBoxIcon.Warning); + return; + } + if (this.drpWorkArea.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择施工区域!", MessageBoxIcon.Warning); + return; + } + if (this.drpUsePosition.SelectedValue == BLL.Const._Null && drpUsePosition.Text == "") + { + Alert.ShowInTop("请选择使用位置!", MessageBoxIcon.Warning); + return; + } + if (string.IsNullOrEmpty(this.hdUsingMan1.Text.Trim())) + { + Alert.ShowInTop("请选择领料人!", MessageBoxIcon.Warning); + return; + } + if (this.drpSheet.SelectedValue == BLL.Const._Null) + { + Alert.ShowInTop("请选择焊件材质!", MessageBoxIcon.Warning); + return; + } + if (drpOrderTime.SelectedValue == Const._Null) + { + Alert.ShowInTop("请选择预约时间!", MessageBoxIcon.Warning); + return; + } + + if (!string.IsNullOrEmpty(this.UsingPlanId)) + { + var plan = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + if (plan.IsFinish == true) + { + Alert.ShowInTop("该计划已完成,不能修改!", MessageBoxIcon.Warning); + return; + } + } + + Model.Weld_UsingPlan usingPlan = new Model.Weld_UsingPlan(); + if (!string.IsNullOrEmpty(this.hdWeldId.Text.Trim())) + { + usingPlan.WeldId = this.hdWeldId.Text.Trim(); + } + usingPlan.ProjectId = this.CurrUser.LoginProjectId; + if (this.drpWorkArea.SelectedValue != BLL.Const._Null) + { + usingPlan.WorkAreaId = this.drpWorkArea.SelectedValue; + } + if (drpUsePosition.SelectedValue != null && drpUsePosition.SelectedValue != BLL.Const._Null) + { + usingPlan.UsePosition = this.drpUsePosition.SelectedValue; + } + else + { + if (drpUsePosition.Text != "") + { + usingPlan.UsePosition = drpUsePosition.Text.Trim(); + } + } + usingPlan.UsingUnit = this.hdUnitId.Text; + if (this.drpSheet.SelectedValue != BLL.Const._Null && this.drpSheet.SelectedValue != null) + { + List texts = new List(); + List values = new List(); + foreach (ListItem item in drpSheet.SelectedItemArray) + { + texts.Add(item.Text); + values.Add(item.Value); + } + usingPlan.STE_ID = String.Join(",", values); + usingPlan.STE_Name = String.Join(",", texts); + + } + + usingPlan.Amount = Funs.GetNewDecimal(this.txtAmount.Text.Trim()); + if (!string.IsNullOrEmpty(this.hdUsingMan1.Text.Trim())) + { + usingPlan.UsingManOne = this.hdUsingMan1.Text.Trim(); + } + + usingPlan.InPutDate = DateTime.Now; + usingPlan.OrderDate = Funs.GetNewDateTime(this.txtOrderDate.Text.Trim()); + if (this.drpOrderTime.SelectedValue != BLL.Const._Null) + { + usingPlan.OrderTime = this.drpOrderTime.SelectedValue; + } + usingPlan.TeamGroupId = this.hdTeamGroupId.Text; + + usingPlan.CancelDate = Funs.GetNewDateTime(this.txtCancelDate.Text.Trim()); + usingPlan.IsCancel = Convert.ToBoolean(this.rblIsCancel.SelectedValue); + usingPlan.CancelResult = this.txtCancelResult.Text.Trim(); + usingPlan.IsSubmit = isSubmit; + usingPlan.InPutMan = CurrUser.UserId; + usingPlan.Type = "1"; + if (drpIsSteelStru.SelectedValue == "1") + { + usingPlan.IsSteelStru = true; + } + else + { + usingPlan.IsSteelStru = false; + } + + if (!string.IsNullOrEmpty(this.UsingPlanId)) + { + var q = BLL.UsingPlanService.GetUsingPlanById(this.UsingPlanId); + usingPlan.UsingPlanId = this.UsingPlanId; + BLL.UsingPlanService.UpdateUsingPlan(usingPlan); + BLL.LogService.AddSys_Log(this.CurrUser, usingPlan.InPutDate.ToString(), usingPlan.UsingPlanId, BLL.Const.CLGL_UsingPlanMenuId, "修改领料计划录入"); + } + else + { + this.UsingPlanId = SQLHelper.GetNewID(typeof(Model.Weld_UsingPlan)); + usingPlan.UsingPlanId = this.UsingPlanId; + BLL.UsingPlanService.AddUsingPlan(usingPlan); + BLL.LogService.AddSys_Log(this.CurrUser, usingPlan.InPutDate.ToString(), usingPlan.UsingPlanId, BLL.Const.CLGL_UsingPlanMenuId, "添加领料计划录入"); + + this.UsingPlanId = string.Empty; + this.txtAmount.Text = string.Empty; + this.txtWeldName.Text = string.Empty; + this.txtWeldSpec.Text = string.Empty; + } + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + #endregion + + #region DropDownList下拉选择事件 + /// + /// 是否作废选择事件 + /// + /// + /// + protected void rblIsCancel_SelectedIndexChanged(object sender, EventArgs e) + { + if (this.rblIsCancel.SelectedValue == "true") + { + this.txtCancelDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + } + else + { + this.txtCancelDate.Text = string.Empty; + } + } + #endregion + + #region 查找焊材信息 + /// + /// 查找焊材信息 + /// + /// + /// + protected void btnSelect_Click(object sender, EventArgs e) + { + string window = String.Format("ShowPlanWeld.aspx", "编辑 - "); + PageContext.RegisterStartupScript(Window1.GetSaveStateReference(this.hdWeldId.ClientID) + Window1.GetShowReference(window)); + } + + #region 弹出编辑窗口关闭事件 + /// + /// 弹出编辑窗体关闭事件 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + if (!string.IsNullOrEmpty(this.hdWeldId.Text)) + { + var weld = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(this.hdWeldId.Text); + if (weld != null) + { + this.txtWeldCode.Text = weld.ConsumablesCode; + this.txtWeldName.Text = weld.ConsumablesName; + this.txtWeldSpec.Text = weld.SteelFormat; + //var weldType = BLL.WeldTypeService.GetWeldTypeById(weld.WeldTypeId); + //if (weldType != null) + //{ + // if (weldType.WeldTypeName == "焊条" || weldType.WeldTypeName == "焊丝") + // { + // this.txtAmount.Label = "数量(根)"; + // } + // else + // { + // this.txtAmount.Label = "数量(Kg)"; + // } + //} + } + else + { + this.txtWeldName.Text = string.Empty; + this.txtWeldSpec.Text = string.Empty; + txtWeldCode.Text = string.Empty; + } + } + else + { + this.txtWeldName.Text = string.Empty; + this.txtWeldSpec.Text = string.Empty; + txtWeldCode.Text = string.Empty; + } + } + #endregion + + #endregion + + #region 查找领料人 + /// + /// 查找领料人 + /// + /// + /// + protected void btnSelectUsingMan_Click(object sender, EventArgs e) + { + string window = String.Format("ShowUsingMan.aspx?projectId={0}", this.CurrUser.LoginProjectId, "编辑 - "); + PageContext.RegisterStartupScript(Window2.GetSaveStateReference(hdUsingMan1.ClientID) + Window2.GetShowReference(window)); + } + + /// + /// 关闭领料人 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + if (!string.IsNullOrEmpty(hdUsingMan1.Text))//第一领料人 + { + Model.BS_Welder welder = BLL.WelderService.GetWelderById(this.hdUsingMan1.Text); + if (welder != null) + { + this.hdUnitId.Text = welder.WED_Unit; + this.txtUsingUnit.Text = BLL.UnitService.GetUnitNameByUnitId(welder.WED_Unit); + this.hdTeamGroupId.Text = welder.TeamGroupId; + this.txtTeamGroup.Text = BLL.TeamGroupService.GetTeamGroupNameByTeamGroupId(welder.TeamGroupId); + this.txtUsingManOne.Text = welder.WED_Name; + } + else + { + this.txtUsingManOne.Text = string.Empty; + } + } + else + { + this.txtUsingManOne.Text = string.Empty; + } + } + #endregion + + protected void drpSheet_OnSelectedIndexChanged(object sender, EventArgs e) + { + if (drpSheet.SelectedValueArray.Length > 1) + { + drpSheet.Items[0].Selected = false; + } + if (drpSheet.SelectedValueArray.Length == 0) + { + drpSheet.Items[0].Selected = true; + } + } + + #region 附件上传 暂不用 + /// + /// 上传附件资源 + /// + /// + /// + //protected void btnAttachUrl_Click(object sender, EventArgs e) + //{ + // string edit = "0"; // 表示能打开附件上传窗口,但不能上传附件 + + // if (this.drpProjectId.SelectedValue == Const._Null) + // { + // ShowNotify("请选择项目!"); + // } + // else + // { + + // PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/BaseInfo/Project&menuId={1}&edit={2}", this.drpProjectId.SelectedValue, Const.ProjectMenuId, edit))); + // } + //} + #endregion + + protected void drpWorkArea_SelectedIndexChanged(object sender, EventArgs e) + { + if (this.drpWorkArea.SelectedValue != BLL.Const._Null) + { + var position = from x in Funs.DB.PW_IsoInfo + where x.ProjectId == this.CurrUser.LoginProjectId && x.WorkAreaId == this.drpWorkArea.SelectedValue + orderby x.ISO_IsoNo + select x; + this.drpUsePosition.DataValueField = "ISO_IsoNo"; + this.drpUsePosition.DataTextField = "ISO_IsoNo"; + this.drpUsePosition.DataSource = position; + this.drpUsePosition.DataBind(); + Funs.FineUIPleaseSelect(this.drpUsePosition); + } + else + { + var position = from x in Funs.DB.PW_IsoInfo + where x.ProjectId == this.CurrUser.LoginProjectId + orderby x.ISO_IsoNo + select x; + this.drpUsePosition.DataValueField = "ISO_IsoNo"; + this.drpUsePosition.DataTextField = "ISO_IsoNo"; + this.drpUsePosition.DataSource = position; + this.drpUsePosition.DataBind(); + Funs.FineUIPleaseSelect(this.drpUsePosition); + } + this.drpUsePosition.SelectedValue = BLL.Const._Null; + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx.designer.cs new file mode 100644 index 0000000..303433a --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingPlanEdit.aspx.designer.cs @@ -0,0 +1,294 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class UsingPlanEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// hdWeldId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdWeldId; + + /// + /// hdUsingMan1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdUsingMan1; + + /// + /// txtWeldCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldCode; + + /// + /// btnSelect 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSelect; + + /// + /// drpWorkArea 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWorkArea; + + /// + /// txtWeldSpec 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldSpec; + + /// + /// txtWeldName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldName; + + /// + /// drpUsePosition 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUsePosition; + + /// + /// txtUsingManOne 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUsingManOne; + + /// + /// btnSelectUsingMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSelectUsingMan; + + /// + /// txtUsingUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUsingUnit; + + /// + /// txtTeamGroup 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTeamGroup; + + /// + /// drpIsSteelStru 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpIsSteelStru; + + /// + /// txtAmount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtAmount; + + /// + /// txtInPutDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtInPutDate; + + /// + /// txtOrderDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtOrderDate; + + /// + /// drpOrderTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpOrderTime; + + /// + /// drpSheet 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpSheet; + + /// + /// rblIsCancel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblIsCancel; + + /// + /// txtCancelDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCancelDate; + + /// + /// txtCancelResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCancelResult; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// hdUnitId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdUnitId; + + /// + /// hdTeamGroupId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdTeamGroupId; + + /// + /// btnSubmit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSubmit; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx new file mode 100644 index 0000000..fe99697 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx @@ -0,0 +1,141 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsingtMatSelect.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.UsingtMatSelect" %> + + + + + + 焊材领用查询 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx.cs new file mode 100644 index 0000000..a51479d --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx.cs @@ -0,0 +1,337 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using BLL; +using System.Text; +using AspNet = System.Web.UI.WebControls; +using System.IO; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class UsingtMatSelect : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT UsingMat.UsingMatId, UsingMat.ProjectId, UsingMat.UsePosition, + UsingMat.WeldId,UsingMat.UsingPlanId,ISNULL(UsingMat.Amount,0) AS Amount, + ISNULL(UsingMat.TwoAmount,0) AS TwoAmount,UsingMat.UsingMan, UsingMat.UsingDate, + (CASE WHEN stockIn.Warrantybook IS NOT NULL THEN stockIn.Warrantybook + ELSE UsingMat.Warrantybook END) AS Warrantybook, + UsingMat.Number,WeldInfo.ConsumablesCode, + WeldInfo.ConsumablesName,WeldInfo.SteelFormat,Welder.WED_Code AS WelderCode, + Welder.WED_Name AS UsingManName,team.TeamGroupName,UsingPlan.InPutDate, + (CASE WHEN UsingPlan.InPutMan IS NOT NULL THEN (CASE WHEN userInput.UserName IS NOT NULL THEN userInput.UserName ELSE welderInput.WED_Name END) + ELSE '' END) AS InPutMan, + --man.UserName AS InPutMan, + unit.UnitName AS UsingUnit,unitStore.UnitStoreName + FROM dbo.Weld_UsingMat AS UsingMat + LEFT JOIN dbo.Base_Consumables AS WeldInfo ON WeldInfo.ConsumablesId = UsingMat.WeldId + LEFT JOIN BS_Welder AS Welder ON Welder.WED_ID = UsingMat.UsingMan + LEFT JOIN dbo.Weld_UsingPlan AS UsingPlan ON UsingPlan.UsingPlanId = UsingMat.UsingPlanId + LEFT JOIN dbo.Weld_StockIn AS stockIn ON stockIn.StockInId = UsingMat.StockInId + LEFT JOIN dbo.ProjectData_TeamGroup team ON team.TeamGroupId = UsingPlan.TeamGroupId + LEFT JOIN dbo.Sys_User AS userInput ON userInput.UserId=UsingPlan.InPutMan + LEFT JOIN dbo.BS_Welder AS welderInput ON welderInput.WED_ID=UsingPlan.InPutMan + LEFT JOIN dbo.Base_Unit unit ON unit.UnitId=UsingPlan.UsingUnit + LEFT JOIN dbo.Weld_UnitStore unitStore ON unitStore.UnitStoreId = stockIn.UnitStoreId + WHERE UsingMat.ProjectId=@ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtWelderCode.Text.Trim())) + { + strSql += " AND Welder.WED_Code LIKE @WelderCode"; + listStr.Add(new SqlParameter("@WelderCode", "%" + this.txtWelderCode.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtTeamGroup.Text.Trim())) + { + strSql += " AND team.TeamGroupName LIKE @TeamGroupName"; + listStr.Add(new SqlParameter("@TeamGroupName", "%" + this.txtTeamGroup.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtWeldCode.Text.Trim())) + { + strSql += " AND WeldInfo.ConsumablesCode LIKE @ConsumablesCode"; + listStr.Add(new SqlParameter("@ConsumablesCode", "%" + this.txtWeldCode.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtJOT_ID.Text.Trim())) + { + strSql += " AND UsingMat.UsePosition LIKE @UsePosition"; + listStr.Add(new SqlParameter("@UsePosition", "%" + this.txtJOT_ID.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtUsingMan.Text.Trim())) + { + strSql += " AND Welder.WED_Name LIKE @WED_Name"; + listStr.Add(new SqlParameter("@WED_Name", "%" + this.txtUsingMan.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtUsingUnit.Text.Trim())) + { + strSql += " AND unit.UnitName LIKE @UnitName"; + listStr.Add(new SqlParameter("@UnitName", "%" + this.txtUsingUnit.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtStartDate.Text.Trim())) + { + strSql += " AND UsingMat.UsingDate >= @StartDate"; + listStr.Add(new SqlParameter("@StartDate", this.txtStartDate.Text.Trim())); + } + if (!string.IsNullOrEmpty(this.txtEndDate.Text.Trim())) + { + DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim()).AddDays(1); + strSql += " AND UsingMat.UsingDate <= @EndDate"; + listStr.Add(new SqlParameter("@EndDate", string.Format("{0:yyyy-MM-dd}", endDate))); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 表头过滤 + protected void Grid1_FilterChange(object sender, EventArgs e) + { + 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 + + protected void btnModify_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_UsingMatMenuId, BLL.Const.BtnModify)) + { + if (!string.IsNullOrEmpty(Grid1.SelectedRowID)) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ModityWeld.aspx?usingMatId={0}", Grid1.SelectedRowID, "编辑 - "))); + } + else + { + ShowNotify("请选择要修改的记录!", MessageBoxIcon.Warning); + } + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + + } + + protected void Window2_Close(object sender, EventArgs e) + { + BindGrid(); + } + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region Grid行点击事件 + /// + /// Grid行点击事件 + /// + /// + /// + protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) + { + if (e.CommandName == "print")//打印材料标签 + { + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + string weldSpec = string.Empty;//规格 + string weldName = string.Empty;//材质牌号 + string welderName = string.Empty;//焊工姓名 + string number = string.Empty;//流水号 + string storeName = string.Empty;//保管员 + string usingDate = string.Empty;//时间 + var material = BLL.UsingMatService.GetUsingMatById(this.Grid1.SelectedRowID); + if (material != null) + { + if (!string.IsNullOrEmpty(material.WeldId)) + { + var weldInfo = Base_ConsumablesService.GetConsumablesByConsumablesId(material.WeldId); + if (weldInfo != null) + { + weldSpec = weldInfo.SteelFormat; + weldName = weldInfo.ConsumablesCode; + } + } + if (!string.IsNullOrEmpty(material.UsingMan)) + { + var welder = WelderService.GetWelderById(material.UsingMan); + if (welder != null) + { + welderName = welder.WED_Name + "(" + welder.WED_Code + ")"; + } + } + number = material.Number; + if (!string.IsNullOrEmpty(material.StoreMan)) + { + var store = BLL.UserService.GetUserByUserId(material.StoreMan); + if (store != null) + { + storeName = store.UserName; + } + } + usingDate = material.UsingDate.Value.ToShortDateString() + " " + material.UsingDate.Value.ToShortTimeString(); + } + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("WeldSpec", weldSpec); + keyValuePairs.Add("WeldName", weldName); + keyValuePairs.Add("WelderName", welderName); + keyValuePairs.Add("Number", number); + keyValuePairs.Add("StoreName", storeName); + keyValuePairs.Add("UsingDate", usingDate); + + BLL.Common.FastReportService.ResetData(); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + + initTemplatePath = "File\\Fastreport\\材料标签.frx"; + + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../TrustManage/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + + } + } + } + } + #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; + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + +#pragma warning disable CS0108 // “TrainRecord.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。 + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) +#pragma warning restore CS0108 // “TrainRecord.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。 + { + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + this.Grid1.PageSize = 100000; + BindGrid(); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnIndex < 17) + { + sb.AppendFormat("", column.HeaderText); + } + } + sb.Append(""); + foreach (GridRow row in grid.Rows) + { + sb.Append(""); + foreach (GridColumn column in grid.Columns) + { + if (column.ColumnIndex < 17) + { + string html = row.Values[column.ColumnIndex].ToString(); + if (column.ColumnID == "tfNumber") + { + html = (row.FindControl("lblNumber") as AspNet.Label).Text; + } + //sb.AppendFormat("", html); + sb.AppendFormat("", html); + } + } + + sb.Append(""); + } + + sb.Append("
{0}
{0}{0}
"); + + return sb.ToString(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx.designer.cs new file mode 100644 index 0000000..568b83f --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/UsingtMatSelect.aspx.designer.cs @@ -0,0 +1,231 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class UsingtMatSelect { + + /// + /// 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; + + /// + /// txtWelderCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWelderCode; + + /// + /// txtTeamGroup 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTeamGroup; + + /// + /// txtWeldCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldCode; + + /// + /// txtJOT_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtJOT_ID; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtUsingMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUsingMan; + + /// + /// txtUsingUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUsingUnit; + + /// + /// txtStartDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartDate; + + /// + /// txtEndDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndDate; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// btnModify 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnModify; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// lblNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblNumber; + + /// + /// lbtnPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.LinkButtonField lbtnPrint; + + /// + /// 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; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx new file mode 100644 index 0000000..6ab9a1a --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx @@ -0,0 +1,95 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeldMatStatistics.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.WeldMatStatistics" %> + + + + + + 焊接材料发放回收记录 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx.cs new file mode 100644 index 0000000..af196ae --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx.cs @@ -0,0 +1,215 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Data.SqlClient; +using System.Data; +using Newtonsoft.Json.Linq; +using BLL; +using System.Text; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class WeldMatStatistics : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + this.BindGrid(); + } + } + #endregion + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtWeldCode.Text.Trim())) + { + listStr.Add(new SqlParameter("@WeldCode", "%" + this.txtWeldCode.Text.Trim() + "%")); + } + else + { + listStr.Add(new SqlParameter("@WeldCode", null)); + } + + if (!string.IsNullOrEmpty(this.txtStarTime.Text)) + { + listStr.Add(new SqlParameter("@StartDate", Convert.ToDateTime(this.txtStarTime.Text.Trim()))); + } + else + { + listStr.Add(new SqlParameter("@StartDate", null)); + } + + if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + { + listStr.Add(new SqlParameter("@EndDate", Convert.ToDateTime(this.txtEndTime.Text.Trim()).AddDays(1))); + } + else + { + listStr.Add(new SqlParameter("@EndDate", null)); + } + + listStr.Add(new SqlParameter("@IsTeamGroup", "0")); + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunProc("sp_Weld_ReleaseRecovery", parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + //this.OutputSummaryData(tb); ///取合计值 + Grid1.DataSource = table; + Grid1.DataBind(); + + } + #endregion + + #region 计算合计 + /// + /// 计算合计 + /// + private void OutputSummaryData(DataTable tb) + { + decimal usingMatSum = 0; //领用数量 + decimal recycleMatSum = 0; //退回数量 + int RecycleMatTopSum = 0; //退回焊材头数量 + + for (int i = 0; i < tb.Rows.Count; i++) + { + usingMatSum += Funs.GetNewDecimalOrZero(tb.Rows[i]["Amount"].ToString()); + recycleMatSum += Funs.GetNewDecimalOrZero(tb.Rows[i]["RecycleAmount"].ToString()); + RecycleMatTopSum += Funs.GetNewIntOrZero(tb.Rows[i]["MatTopAmount"].ToString()); + } + JObject summary = new JObject(); + summary.Add("WeldNameAndSpec", "合计:"); + summary.Add("Amount", usingMatSum); + summary.Add("RecycleAmount", recycleMatSum); + summary.Add("MatTopAmount", RecycleMatTopSum); + Grid1.SummaryData = summary; + } + #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 TextBox_TextChanged(object sender, EventArgs 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; + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) + { + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + + this.Grid1.PageSize = 10000; + BindGrid(); + + 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("labNumber") 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/HJGL/RepairManage/WeldMatStatistics.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx.designer.cs new file mode 100644 index 0000000..6fdbfde --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldMatStatistics.aspx.designer.cs @@ -0,0 +1,150 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class WeldMatStatistics { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// txtWeldCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldCode; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// GroupField1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupField GroupField1; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx new file mode 100644 index 0000000..6733d0b --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx @@ -0,0 +1,89 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeldUseAmount.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.WeldUseAmount" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx.cs new file mode 100644 index 0000000..bbe5fe0 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx.cs @@ -0,0 +1,189 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Data.SqlClient; +using System.Data; +using Newtonsoft.Json.Linq; +using BLL; +using System.Text; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class WeldUseAmount : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + } + } + #endregion + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtWeldCode.Text.Trim())) + { + listStr.Add(new SqlParameter("@WeldCode", "%" + this.txtWeldCode.Text.Trim() + "%")); + } + else + { + listStr.Add(new SqlParameter("@WeldCode", null)); + } + + if (!string.IsNullOrEmpty(this.txtStarTime.Text)) + { + listStr.Add(new SqlParameter("@StartDate", Convert.ToDateTime(this.txtStarTime.Text.Trim()))); + } + else + { + listStr.Add(new SqlParameter("@StartDate", null)); + } + + if (!string.IsNullOrEmpty(this.txtEndTime.Text)) + { + listStr.Add(new SqlParameter("@EndDate", Convert.ToDateTime(this.txtEndTime.Text.Trim()))); + } + else + { + listStr.Add(new SqlParameter("@EndDate", null)); + } + + listStr.Add(new SqlParameter("@IsTeamGroup", "1")); + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunProc("sp_Weld_ReleaseRecovery", parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + //this.OutputSummaryData(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) + { + 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 BtnAnalyse_Click(object sender, EventArgs 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; + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + + /// + /// 导出方法 + /// + /// + /// + private string GetGridTableHtml(Grid grid) + { + StringBuilder sb = new StringBuilder(); + sb.Append(""); + sb.Append(""); + sb.Append(""); + + this.Grid1.PageSize = 100000; + BindGrid(); + + 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("labNumber") 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/HJGL/RepairManage/WeldUseAmount.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx.designer.cs new file mode 100644 index 0000000..d4068c3 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WeldUseAmount.aspx.designer.cs @@ -0,0 +1,159 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class WeldUseAmount { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// RegionPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RegionPanel RegionPanel1; + + /// + /// Region1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Region Region1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtWeldCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWeldCode; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// BtnAnalyse 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button BtnAnalyse; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// Region2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Region Region2; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx new file mode 100644 index 0000000..d5dd189 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx @@ -0,0 +1,116 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WelderMaterial.aspx.cs" + Inherits="FineUIPro.Web.HJGL.MaterialManage.WelderMaterial" %> + + + + + 焊工领料单 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx.cs new file mode 100644 index 0000000..d66ce10 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx.cs @@ -0,0 +1,354 @@ +using System; +using System.Data; +using BLL; +using System.Linq; +using System.Collections.Generic; +using System.Web; +using System.IO; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Text.RegularExpressions; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class WelderMaterial : PageBase + { + #region 定义项 + + + /// + /// RecoveryId + /// + public string RecoveryId + { + get + { + return (string)ViewState["RecoveryId"]; + } + set + { + ViewState["RecoveryId"] = value; + } + } + /// + /// 焊工id + /// + public string WED_ID + { + get + { + return (string)ViewState["WED_ID"]; + } + set + { + ViewState["WED_ID"] = value; + } + } + + /// + /// 项目主键 + /// + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + + + #endregion + + // 点击 TwinTriggerBox 的搜索按钮 + protected void ttbxCode_Trigger2Click(object sender, EventArgs e) + { + if (!String.IsNullOrEmpty(ttbxCode.Text)) + { + // 执行搜索动作 + + var welder = BLL.WelderService.GetWelderByCode(CurrUser.LoginProjectId, ttbxCode.Text); + if (welder != null) + { + WED_ID = welder.WED_ID; + txtIdentityCard.Text = welder.IdentityCard; + txtWelderName.Text = welder.WED_Name; + imgPhoto.ImageUrl = "../../" + welder.AttachUrl; + txtUnit.Text = ""; + if (!string.IsNullOrEmpty(welder.WED_Unit)) + { + var unit = UnitService.GetUnitByUnitId(welder.WED_Unit); + if (unit != null) + txtUnit.Text = unit.UnitName; + } + txtClass.Text = welder.WED_Class; + if (welder.WED_IfOnGuard.HasValue) + { + + + if (welder.WED_IfOnGuard.Value == true) + { + txtIfOnGuard.Text = "是"; + } + else + { + txtIfOnGuard.Text = "否"; + } + } + //装置 + this.drpInstallation.DataTextField = "Text"; + this.drpInstallation.DataValueField = "Value"; + this.drpInstallation.DataSource = BLL.Project_InstallationService.GetInstallationList(welder.ProjectId, welder.WED_Unit); + this.drpInstallation.DataBind(); + Funs.FineUIPleaseSelect(this.drpInstallation); + if (this.drpInstallation.Items.Count == 2) + { + this.drpInstallation.SelectedIndex = 1; + } + + var items = from x in Funs.DB.BS_WeldMethodItem where x.WED_ID == this.WED_ID select x.WME_ID; + var methods = from m in Funs.DB.Base_WeldingMethod where items.Count()==0|| items.Contains(m.WeldingMethodId) select m ; + + this.drpMethods.DataTextField = "WeldingMethodName"; + this.drpMethods.DataValueField = "WeldingMethodId"; + this.drpMethods.DataSource = methods; + this.drpMethods.DataBind(); + Funs.FineUIPleaseSelect(this.drpMethods); + this.drpMethods.SelectedIndex = 0; + + var itemsSteel = from x in Funs.DB.BS_WelderItem where x.WED_ID == this.WED_ID select x.STE_ID; + var steel = from x in Funs.DB.BS_Steel where itemsSteel.Count() == 0 || itemsSteel.Contains(x.STE_ID) select x; + this.drpSteel.DataTextField = "STE_Name"; + this.drpSteel.DataValueField = "STE_ID"; + this.drpSteel.DataSource = steel; + this.drpSteel.DataBind(); + Funs.FineUIPleaseSelect(this.drpSteel); + this.drpSteel.SelectedIndex = 0; + + } + else + { + txtIdentityCard.Text = ""; + txtWelderName.Text = ""; + txtUnit.Text = ""; + txtUnit.Text = ""; + txtClass.Text = ""; + txtIfOnGuard.Text = ""; + ShowNotify("未找到该焊工!"); + } + ttbxCode.ShowTrigger1 = true; + } + else + { + ShowNotify("请输入焊工号!"); + } + } + + // 点击 TwinTriggerBox 的取消按钮 + protected void ttbxCode_Trigger1Click(object sender, EventArgs e) + { + // 执行清空动作 + + + ttbxCode.Text = ""; + ttbxCode.ShowTrigger1 = false; + } + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + RecoveryId = Request.Params["RecoveryId"]; + this.drpEquipment.DataTextField = "Text"; + this.drpEquipment.DataValueField = "Value"; + this.drpEquipment.DataSource = BLL.DropListService.HJGL_Equipment(); + this.drpEquipment.DataBind(); + Funs.FineUIPleaseSelect(this.drpEquipment); + this.drpEquipment.SelectedIndex = 0; + string code = ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId).ProjectCode + "-HJ-TCC-LL-"; + txtCode.Text = BLL.SQLHelper.RunProcNewId("SpGetNewCode5ByProjectId", "dbo.HJGL_ElectrodeRecovery", "RecoveryCode", this.CurrUser.LoginProjectId, code); + + + if (this.drpEquipment.Items.Count == 2) + { + this.drpEquipment.SelectedIndex = 1; + } + this.drpSteelType.DataTextField = "Text"; + this.drpSteelType.DataValueField = "Value"; + this.drpSteelType.DataSource = BLL.DropListService.HJGL_GetSteTypeList(); + this.drpSteelType.DataBind(); + Funs.FineUIPleaseSelect(this.drpSteelType); + this.drpSteelType.SelectedIndex = 0; + + if (!string.IsNullOrEmpty(RecoveryId)) + { + var recovery = Funs.DB.HJGL_ElectrodeRecovery.Where(x => x.ElectrodeRecoveryId == RecoveryId).FirstOrDefault(); + //txtCode.Text = recovery.RecoveryCode; + //ttbxCode.Text = recovery.WelderCode; + //var welder = WelderService.GetWelderByCode(recovery.ProjectId, recovery.WelderCode); + //WED_ID = welder.WED_ID; + //txtIdentityCard.Text = welder.IdentityCard; + //txtWelderName.Text = welder.WED_Name; + //txtNumber.Text = "" + recovery.RecoveryCount; + + //imgPhoto.ImageUrl = "../../" + welder.AttachUrl; + //if (!string.IsNullOrEmpty(welder.WED_Unit)) + //{ + // var unit = UnitService.GetUnitByUnitId(welder.WED_Unit); + // if (unit != null) + // txtUnit.Text = unit.UnitName; + //} + //txtClass.Text = welder.WED_Class; + //if (welder.WED_IfOnGuard.HasValue) + //{ + + + // if (welder.WED_IfOnGuard.Value == true) + // { + // txtIfOnGuard.Text = "是"; + // } + // else + // { + // txtIfOnGuard.Text = "否"; + // } + //} + ////装置 + //this.drpInstallation.DataTextField = "Text"; + //this.drpInstallation.DataValueField = "Value"; + //this.drpInstallation.DataSource = BLL.Project_InstallationService.GetInstallationList(welder.ProjectId, welder.WED_Unit); + //this.drpInstallation.DataBind(); + //Funs.FineUIPleaseSelect(this.drpInstallation); + //if (this.drpInstallation.Items.Count == 2) + //{ + // this.drpInstallation.SelectedIndex = 1; + //} + //if (!string.IsNullOrEmpty(recovery.InstallationId)) + //{ + // this.drpInstallation.SelectedValue = recovery.InstallationId; + //} + + var items = from x in Funs.DB.BS_WeldMethodItem where x.WED_ID == this.WED_ID select x.WME_ID; + var methods = from m in Funs.DB.Base_WeldingMethod where items.Count() == 0 || items.Contains(m.WeldingMethodId) select m; + + this.drpMethods.DataTextField = "WeldingMethodName"; + this.drpMethods.DataValueField = "WeldingMethodId"; + this.drpMethods.DataSource = methods; + this.drpMethods.DataBind(); + Funs.FineUIPleaseSelect(this.drpMethods); + this.drpMethods.SelectedIndex = 0; + + var itemsSteel = from x in Funs.DB.BS_WelderItem where x.WED_ID == this.WED_ID select x.STE_ID; + var steel = from x in Funs.DB.BS_Steel where itemsSteel.Count() == 0 || itemsSteel.Contains(x.STE_ID) select x; + this.drpSteel.DataTextField = "STE_Name"; + this.drpSteel.DataValueField = "STE_ID"; + this.drpSteel.DataSource = steel; + this.drpSteel.DataBind(); + Funs.FineUIPleaseSelect(this.drpSteel); + this.drpSteel.SelectedIndex = 0; + //drpInstallation.SelectedValue = recovery.InstallationId; + //drpSteel.SelectedValue = recovery.STE_ID; + //drpMethods.SelectedValue = recovery.WMD_ID; + //drpSteel.SelectedValue = recovery.STE_ID; + + + + //var consumables1 = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(recovery.WMT_ID); + //this.txtSteelFormat.Text = consumables1.SteelFormat; + //drpEquipment.SelectedValue = recovery.Equipment; + //this.drpSteelType.SelectedValue = consumables1.SteelType; + //var consumables = from c in Funs.DB.Base_Consumables where c.SteelType == consumables1.SteelType select c; + //this.drpConsumables.DataTextField = "ConsumablesName"; + //this.drpConsumables.DataValueField = "ConsumablesId"; + //this.drpConsumables.DataSource = consumables; + //this.drpConsumables.DataBind(); + //Funs.FineUIPleaseSelect(this.drpConsumables); + //drpConsumables.SelectedValue = recovery.WMT_ID; + } + } + } + + + protected void drpSteelType_OnSelectedIndexChanged(object sender, EventArgs e) + { + var steelType = drpSteelType.SelectedValue; + var consumables = from c in Funs.DB.Base_Consumables where c.SteelType == steelType select c; + this.drpConsumables.DataTextField = "ConsumablesName"; + this.drpConsumables.DataValueField = "ConsumablesId"; + this.drpConsumables.DataSource = consumables; + this.drpConsumables.DataBind(); + Funs.FineUIPleaseSelect(this.drpConsumables); + drpConsumables.SelectedIndex = 0; + } + + protected void drpConsumables_OnSelectedIndexChanged(object sender, EventArgs e) + { + var id = drpConsumables.SelectedValue; + var consumables =( from c in Funs.DB.Base_Consumables where c.ConsumablesId == id select c).FirstOrDefault(); + this.txtSteelFormat.Text = consumables.SteelFormat; + + } + protected void btn_Save(object sender, EventArgs e) + { + Model.HJGL_ElectrodeRecovery recovery = new Model.HJGL_ElectrodeRecovery(); + + //if (!string.IsNullOrEmpty(RecoveryId)) + //{ + // recovery = Funs.DB.HJGL_ElectrodeRecovery.FirstOrDefault(x=>x.RecoveryId== RecoveryId); + //} + //recovery.ProjectId = this.CurrUser.LoginProjectId; + //var welder = BLL.WelderService.GetWelderById(WED_ID); + //recovery.WelderCode = welder.WED_Code; + //recovery.WelderName = welder.WED_Name; + //recovery.WeldIdentityCard = welder.IdentityCard; + //recovery.CompanyId = welder.WED_Unit; + //recovery.RecoveryDate = DateTime.Now; + //recovery.RecoveryCode = this.txtCode.Text; + //recovery.RecoveryCount =short.Parse(this.txtNumber.Text); + //if (drpInstallation.SelectedValue != BLL.Const._Null) + //{ + // recovery.InstallationId = drpInstallation.SelectedValue; + //} + //if (drpSteel.SelectedValue != BLL.Const._Null) + //{ + // recovery.STE_ID = drpSteel.SelectedValue; + //} + //if (drpMethods.SelectedValue != BLL.Const._Null) + //{ + // recovery.WMD_ID = drpMethods.SelectedValue; + //} + ////if (drpEquipment.SelectedValue != BLL.Const._Null) + ////{ + //// recovery.STE_ID = drpEquipment.SelectedValue; + ////} + //if (drpEquipment.SelectedValue != BLL.Const._Null) + //{ + // recovery.Equipment = drpEquipment.SelectedValue; + //} + //if (drpConsumables.SelectedValue != BLL.Const._Null) + //{ + // recovery.WMT_ID = drpConsumables.SelectedValue; + // var consumables = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(drpConsumables.SelectedValue); + // recovery.Specifications = consumables.SteelFormat; + //} + //if (string.IsNullOrEmpty(RecoveryId)) + //{ + // recovery.RecoveryId = Guid.NewGuid().ToString(); + // Funs.DB.HJGL_ElectrodeRecovery.InsertOnSubmit(recovery); + // Funs.DB.SubmitChanges(); + //} + //else + //{ + // Funs.DB.SubmitChanges(); + //} + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx.designer.cs new file mode 100644 index 0000000..7a2e57b --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderMaterial.aspx.designer.cs @@ -0,0 +1,278 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + + + public partial class WelderMaterial + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel3; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// btnAttachUrl3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl3; + + /// + /// btnAttachUrl4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl4; + + /// + /// GroupPanel0 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel0; + + /// + /// Panel2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel2; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// ttbxCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TwinTriggerBox ttbxCode; + + /// + /// txtIdentityCard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtIdentityCard; + + /// + /// txtUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtUnit; + + /// + /// txtIfOnGuard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtIfOnGuard; + + /// + /// Panel4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel4; + + /// + /// txtWelderName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWelderName; + + /// + /// txtClass 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtClass; + + /// + /// Panel5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel5; + + /// + /// imgPhoto 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Image imgPhoto; + + /// + /// GroupPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel1; + + /// + /// Panel6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel6; + + /// + /// txtCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCode; + + /// + /// drpInstallation 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpInstallation; + + /// + /// drpEquipment 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpEquipment; + + /// + /// drpMethods 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpMethods; + + /// + /// drpSteelType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpSteelType; + + /// + /// drpSteel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpSteel; + + /// + /// drpConsumables 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpConsumables; + + /// + /// txtSteelFormat 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtSteelFormat; + + /// + /// txtNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtNumber; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx new file mode 100644 index 0000000..56f9c56 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx @@ -0,0 +1,265 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WelderRecordPrint.aspx.cs" + Inherits="FineUIPro.Web.RLSB.WelderRecordPrint" %> + + + + + 打印领料单 + + + + +
+ + + + + + + + + +
+
+ + + + + +
+ <%-- +  打印领料单--%> + + 页面设置 + 打印设置 + 打印预览 + 打印 +
+
+
+ + + + + + + +
+ + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ <%-- + + + + + + + + --%> + + + + + + + + + +
+
+
+ + +
+ + diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx.cs new file mode 100644 index 0000000..d472699 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx.cs @@ -0,0 +1,45 @@ +using System; +using System.Linq; +using System.Web.UI; +using BLL; + +namespace FineUIPro.Web.RLSB +{ + public partial class WelderRecordPrint : PageBase + { + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + string electrodeRecoveryId = Request.Params["electrodeRecoveryId"]; + string fileName = Request.Params["fileName"]; + string identityCard = Request.Params["identityCard"]; + var welder = BLL.WelderService.GetWelderByIdentityCard(identityCard); + if (welder != null) + { + //Page.ClientScript.RegisterStartupScript(this.GetType(), "tips", "print()", true);//自动打印 + //this.ClientScript.RegisterStartupScript(this.GetType(), "tips", "DoPrint()", true); + ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); + } + } + } + + //protected void imgBtnReLoad_Click(object sender, ImageClickEventArgs e) + //{ + // Timer1.Interval = 2000; + + // //Thread.Sleep(1000); + // //ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "window.close()", true); + //} + + //protected void Timer1_Tick(object sender, EventArgs e) + //{ + // ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "window.close()", true); + //} + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx.designer.cs new file mode 100644 index 0000000..d468dbe --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderRecordPrint.aspx.designer.cs @@ -0,0 +1,384 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.RLSB { + + + public partial class WelderRecordPrint { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// Table2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTable Table2; + + /// + /// tabbtn 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTable tabbtn; + + /// + /// Img2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlImage Img2; + + /// + /// btnPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlImage btnPrint; + + /// + /// Img1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlImage Img1; + + /// + /// Img3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlImage Img3; + + /// + /// Table1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTable Table1; + + /// + /// Table3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTable Table3; + + /// + /// Table4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTable Table4; + + /// + /// Label15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label15; + + /// + /// txtUnitName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtUnitName; + + /// + /// txtElectrodeRecoveryCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtElectrodeRecoveryCode; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label4; + + /// + /// txtInstallation 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtInstallation; + + /// + /// Label17 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label17; + + /// + /// txtCnProfession 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtCnProfession; + + /// + /// Label18 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label18; + + /// + /// Label6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label6; + + /// + /// txtEquipment 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtEquipment; + + /// + /// imgPhoto 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlImage imgPhoto; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// txtSteelType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtSteelType; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// Label19 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label19; + + /// + /// Label20 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label20; + + /// + /// txtWeldMethod 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtWeldMethod; + + /// + /// Label14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label14; + + /// + /// txtWME_ID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtWME_ID; + + /// + /// Label22 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label22; + + /// + /// txtName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtName; + + /// + /// Label24 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label24; + + /// + /// txtCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtCode; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label3; + + /// + /// txtSteelFormat 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtSteelFormat; + + /// + /// Label21 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label21; + + /// + /// txtRecipientsCount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtRecipientsCount; + + /// + /// Label5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label5; + + /// + /// txtAuditMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtAuditMan; + + /// + /// Label23 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label23; + + /// + /// txtDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtDate; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx new file mode 100644 index 0000000..feb9cb5 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx @@ -0,0 +1,88 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WelderUsing.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.WelderUsing" %> + + + + + + ޱҳ + + + + + + + + + + + + + + + + + + + + + + + + + +
   + 뺸ţ + + +
   + ɨά룺 + + +
+

+ 1. ñҪȷϣֻкȷϺŽϻڡ +

+

+ 2. һϼƻ˿ȡµĺġ +

+

+ 3. ɨάϱ豣֤֤¼ȷ +

+
+ + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx.cs new file mode 100644 index 0000000..05d4a9c --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.HJGL.MaterialManage +{ + public partial class WelderUsing : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx.designer.cs new file mode 100644 index 0000000..511b802 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/RepairManage/WelderUsing.aspx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.MaterialManage { + + + public partial class WelderUsing { + + /// + /// welderCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlInputText welderCode; + + /// + /// welderQRCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlInputText welderQRCode; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx index 340c94d..91ef111 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx @@ -4,7 +4,7 @@ - HSE巡检 + 专项检查记录 @@ -13,34 +13,29 @@ - + - - - - - - - - - - - - + + + + + + @@ -49,102 +44,63 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - + @@ -158,47 +114,16 @@ - - - - - <%-- - --%> + - - - - @@ -209,6 +134,15 @@ F(menuID).show(); //showAt(event.pageX, event.pageY); return false; } + + function onGridDataLoad(event) { + this.mergeColumns(['InspectionCode']); + this.mergeColumns(['CheckMan']); + this.mergeColumns(['PersonResponsibleName']); + this.mergeColumns(['ProblemTypeName']); + this.mergeColumns(['Place']); + this.mergeColumns(['CreateTime']); + } diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.cs index ce83748..059a531 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.cs @@ -1,6 +1,7 @@ using BLL; using System; using System.Collections.Generic; +using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; @@ -42,11 +43,11 @@ namespace FineUIPro.Web.HSSE.Check GetButtonPower(); this.ItemSelectedList = new List(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); - //this.drpStates.DataValueField = "Id"; - //this.drpStates.DataTextField = "Name"; - //this.drpStates.DataSource = BLL.HSSE_Hazard_HazardRegisterService.GetStatesList(); ; - //this.drpStates.DataBind(); - //Funs.FineUIPleaseSelect(this.drpStates); + SetProblemTypes(); + SetUnitProject(); + SetResponsibleUnit(); + this.txtStartTime.Text = DateTime.Today.ToString("yyyy-MM-dd"); + this.txtEndTime.Text = DateTime.Today.ToString("yyyy-MM-dd"); // 绑定表格 BindGrid(); } @@ -59,69 +60,44 @@ namespace FineUIPro.Web.HSSE.Check { - string strSql = "SELECT a.CheckSpecialCode,(CASE WHEN a.States='2' THEN '已完成' WHEN a.States='1' THEN '待整改' ELSE '待提交' END) AS StatesName,a.CheckTime,b.* FROM Check_CheckSpecial a right join View_CheckSpecialDetail b on a.CheckSpecialId=b.CheckSpecialId WHERE "; + string strSql = "SELECT a.InspectionId,a.InspectionCode,a.ProjectId,(SELECT ProjectName FROM Base_Project as p WHERE p.ProjectId = a.ProjectId) as ProjectName, a.PersonResponsible,(SELECT UserName FROM Sys_User as u WHERE u.UserID = a.PersonResponsible) as PersonResponsibleName, (CASE WHEN a.States = '1' THEN '待检查' WHEN a.States = '2' THEN '待审核/整改' WHEN a.States = '3' THEN '已闭环' END ) as Status, a.CheckMan, a.CreateTime, a.ProblemTypeName,b.CompileTime as CheckTime, " + + "b.InspectionItemId,b.BeforelUrl,b.AfterUrl, (CASE WHEN b.States = '1'and a.States = '1' THEN '待提交' WHEN a.States = '2' and b.States = '1' THEN '待审核' WHEN a.States = '2' and b.States = '2' THEN '待整改' WHEN a.States = '2' and b.States = '3' THEN '已闭环' WHEN a.States = '3' THEN '已闭环' END) as itemStates," + + "a.Place FROM Inspect_InspectionItem as b LEFT JOIN Inspect_Inspection as a on b.InspectionId = a.InspectionId WHERE a.InspectType = '1'"; List listStr = new List(); if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) { - strSql += " a.ProjectId = @ProjectId"; + strSql += "and a.ProjectId = @ProjectId"; listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); } if (!string.IsNullOrEmpty(this.txtCheckMan.Text.Trim())) { - strSql += " AND a.PartInPersons LIKE @CheckMan"; + strSql += " AND a.CheckMan LIKE @CheckMan"; listStr.Add(new SqlParameter("@CheckMan", "%" + this.txtCheckMan.Text.Trim() + "%")); } - if (!string.IsNullOrEmpty(this.txtType.Text.Trim())) + if (this.txtType.SelectedText.Trim() != "请选择" && !string.IsNullOrEmpty(this.txtType.SelectedText.Trim())) { - strSql += " AND b.CheckItemName LIKE @Type"; - listStr.Add(new SqlParameter("@Type", "%" + this.txtType.Text.Trim() + "%")); + strSql += " AND a.ProblemTypeName = @Type"; + listStr.Add(new SqlParameter("@Type", this.txtType.SelectedText.Trim())); + } + if (!string.IsNullOrEmpty(this.txtWorkAreaName.SelectedText) && this.txtWorkAreaName.SelectedText.Trim() != "请选择") + { + strSql += " AND a.Place = @Place"; + listStr.Add(new SqlParameter("@Place", this.txtWorkAreaName.SelectedText.Trim())); } if (!string.IsNullOrEmpty(this.txtWorkAreaName.Text.Trim())) { - strSql += " AND b.CheckAreaName LIKE @WorkAreaName"; - listStr.Add(new SqlParameter("@WorkAreaName", "%" + this.txtWorkAreaName.Text.Trim() + "%")); - } - //if (this.ckType.SelectedValue != "0") - //{ - // strSql += " AND CheckCycle=@CheckCycle"; - // listStr.Add(new SqlParameter("@CheckCycle", this.ckType.SelectedValue)); - //} - if (!string.IsNullOrEmpty(this.txtResponsibilityUnitName.Text.Trim())) - { - strSql += " AND ResponsibilityUnitName LIKE @ResponsibilityUnitName"; - listStr.Add(new SqlParameter("@ResponsibilityUnitName", "%" + this.txtResponsibilityUnitName.Text.Trim() + "%")); + strSql += " AND a.Place LIKE @Place"; + listStr.Add(new SqlParameter("@Place", "%" + this.txtWorkAreaName.Text.Trim() + "%")); } if (!string.IsNullOrEmpty(txtStartTime.Text.Trim())) { - strSql += " AND CheckTime >= @StartTime"; - listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim())); + strSql += " AND b.CompileTime >= @StartTime"; + listStr.Add(new SqlParameter("@StartTime", string.Format("{0} {1}", this.txtStartTime.Text.Trim(), "00:00:00"))); } if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim())) { - strSql += " AND CheckTime <= @EndTime"; - listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim())); - } - if (!string.IsNullOrEmpty(txtStartRectificationTime.Text.Trim())) - { - strSql += " AND RectificationTime >= @StartRectificationTime"; - listStr.Add(new SqlParameter("@StartRectificationTime", this.txtStartRectificationTime.Text.Trim())); - } - if (!string.IsNullOrEmpty(this.txtEndRectificationTime.Text.Trim())) - { - strSql += " AND RectificationTime <= @EndRectificationTime"; - listStr.Add(new SqlParameter("@EndRectificationTime", this.txtEndRectificationTime.Text.Trim())); - } - - if (this.drpStates.SelectedValue != BLL.Const._Null) - { - strSql += " AND a.States LIKE @States"; - listStr.Add(new SqlParameter("@States", "%" + this.drpStates.SelectedValue + "%")); - } - if (!CommonService.IsMainUnitOrAdmin(this.CurrUser.UserId)) - { - strSql += " AND (UnitId = @ResponsibleUnit OR ProposeUnitId =@SendUnitId)"; - listStr.Add(new SqlParameter("@ResponsibleUnit", this.CurrUser.UnitId)); - listStr.Add(new SqlParameter("@SendUnitId", this.CurrUser.UnitId)); + strSql += " AND b.CompileTime <= @EndTime"; + listStr.Add(new SqlParameter("@EndTime", string.Format("{0} {1}", this.txtEndTime.Text.Trim(), "23:59:59"))); } SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); @@ -134,6 +110,72 @@ namespace FineUIPro.Web.HSSE.Check } #endregion + + #region 问题类型下拉框赋值 + public void SetProblemTypes() + { + txtType.DataValueField = "RectifyId"; + txtType.DataTextField = "RectifyName"; + List list = (from x in Funs.DB.Technique_Rectify select x).ToList(); + list.Insert(0, new Model.Technique_Rectify() + { + RectifyId = "-1", + RectifyName = "请选择" + }); + txtType.DataSource = list; + txtType.DataBind(); + } + #endregion + + #region 单位工程下拉框赋值 + public void SetUnitProject() + { + List list = new List() { + new Model.WBS_UnitWork() + { + UnitWorkId = "-1", + UnitWorkName = "请选择" + } + }; + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + list.AddRange((from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList()); + } + txtWorkAreaName.DataValueField = "UnitWorkId"; + txtWorkAreaName.DataTextField = "UnitWorkName"; + txtWorkAreaName.DataSource = list; + txtWorkAreaName.DataBind(); + } + #endregion + + #region 责任单位下拉框赋值 + public void SetResponsibleUnit() + { + List list = new List() { + new Model.UnitItem() + { + UnitId = "-1", + UnitName = "请选择" + } + }; + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + list.AddRange((from x in Funs.DB.Project_ProjectUnit + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.ProjectId == this.CurrUser.LoginProjectId + select new Model.UnitItem() + { + UnitId = y.UnitId, + UnitName = y.UnitName + }).ToList()); + } + txtResponsibilityUnitName.DataValueField = "UnitId"; + txtResponsibilityUnitName.DataTextField = "UnitName"; + txtResponsibilityUnitName.DataSource = list; + txtResponsibilityUnitName.DataBind(); + } + #endregion + #region 表排序、分页、关闭窗口 /// /// 分页 @@ -204,10 +246,10 @@ namespace FineUIPro.Web.HSSE.Check return; } string RegistrationId = Grid1.SelectedRowID; - var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(RegistrationId); - if (registration != null) + + if (RegistrationId != null) { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HiddenRectificationView.aspx?HazardRegisterId={0}", RegistrationId, "查看 - "))); + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CheckSpecialView.aspx?InspectionItemId={0}", RegistrationId, "查看 - "))); } } #endregion @@ -385,10 +427,7 @@ namespace FineUIPro.Web.HSSE.Check } } } - if (e.CommandName == "attchUrl") - { - PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CheckSpecial&menuId={1}&edit=1&type=-1", RegistrationId, BLL.Const.ProjectCheckSpecialMenuId))); - } + if (e.CommandName == "del") { if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnDelete)) @@ -419,135 +458,36 @@ namespace FineUIPro.Web.HSSE.Check } #endregion - #region 删除 - /// - /// 右键删除事件 - /// - /// - /// - protected void btnMenuDelete_Click(object sender, EventArgs e) - { - if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnDelete)) - { - if (Grid1.SelectedRowIndexArray.Length > 0) - { - foreach (int rowIndex in Grid1.SelectedRowIndexArray) - { - string rowID = Grid1.DataKeys[rowIndex][0].ToString(); - Model.HSSE_Hazard_HazardRegister hazardRegister = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(rowID); - if (hazardRegister.States == Const.State_3 || this.CurrUser.UserId == BLL.Const.hfnbdId) //待整改 - { - BLL.LogService.AddSys_Log(this.CurrUser, hazardRegister.HazardCode, hazardRegister.HazardRegisterId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnDelete); - BLL.HSSE_Hazard_HazardRegisterService.DeleteHazardRegisterByHazardRegisterId(rowID); - } - else - { - Alert.ShowInTop("已闭环,无法删除!", MessageBoxIcon.Warning); - return; - } - } - BindGrid(); - ShowNotify("删除成功!", MessageBoxIcon.Success); - } - } - else - { - Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); - return; - } - } - #endregion - #region 格式化字符串 - /// - /// 获取整改前图片 - /// - /// - /// - protected string ConvertImageUrl(object registrationId) - { - string url = string.Empty; - if (registrationId != null) - { - var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); - if (registration != null) - { - url = BLL.UploadAttachmentService.ShowAttachment("../../", registration.ImageUrl); - } - } - return url; - } - protected string ConvertProblemTypes(object registrationId) - { - string url = string.Empty; - if (registrationId != null) - { - if (registrationId.ToString() == "1") - { - return "日常巡检"; - } - else if (registrationId.ToString() == "2") - { - return "专项检查"; - } - - } - return url; - } + - /// - /// 获取整改前图片(放于Img中) - /// - /// - /// - protected string ConvertImageUrlByImage(object registrationId) - { - string url = string.Empty; - if (registrationId != null) - { - var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); - if (registration != null) - { - url = BLL.UploadAttachmentService.ShowImage("../../", registration.ImageUrl); - } - } - return url; - } - - /// - /// 获取整改后图片 - /// - /// - /// + #region 整改后图片 protected string ConvertImgUrl(object registrationId) { string url = string.Empty; if (registrationId != null) { - var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); - if (registration != null) + var imgUrl = Funs.DB.Inspect_InspectionItem.FirstOrDefault(x => x.InspectionItemId == registrationId.ToString()).AfterUrl; + if (imgUrl != null) { - url = BLL.UploadAttachmentService.ShowAttachment("../../", registration.RectificationImageUrl); + url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["CEMS_IMG_URL"], imgUrl); } } return url; } + #endregion - /// - /// 获取整改后图片(放于Img中) - /// - /// - /// + #region 整改前图片 protected string ConvertImgUrlByImage(object registrationId) { string url = string.Empty; if (registrationId != null) { - var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); - if (registration != null) + var imgUrl = Funs.DB.Inspect_InspectionItem.FirstOrDefault(x => x.InspectionItemId == registrationId.ToString()).BeforelUrl; + if (imgUrl != null) { - url = BLL.UploadAttachmentService.ShowImage("../../", registration.RectificationImageUrl); + url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["CEMS_IMG_URL"], imgUrl); } } return url; @@ -636,14 +576,6 @@ namespace FineUIPro.Web.HSSE.Check /// protected void TextBox_TextChanged(object sender, EventArgs e) { - if (!string.IsNullOrEmpty(this.txtStartRectificationTime.Text.Trim()) && !string.IsNullOrEmpty(this.txtEndRectificationTime.Text.Trim())) - { - if (Funs.GetNewDateTime(this.txtStartRectificationTime.Text.Trim()) > Funs.GetNewDateTime(this.txtEndRectificationTime.Text.Trim())) - { - Alert.ShowInTop("开始时间不能大于结束时间!", MessageBoxIcon.Warning); - return; - } - } this.BindGrid(); } #endregion @@ -666,9 +598,6 @@ namespace FineUIPro.Web.HSSE.Check { hazardRegisterIds = hazardRegisterIds.Substring(0, hazardRegisterIds.LastIndexOf(",")); } - // PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("HiddenRectificationPrint.aspx?HazardRegisterIds={0}&CheckType={1}", hazardRegisterIds,"0", "查看 - "))); - this.hdRemark.Text = string.Empty; - //} } #region 获取按钮权限 @@ -684,23 +613,7 @@ namespace FineUIPro.Web.HSSE.Check return; } var buttonList = CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HSSE_HiddenRectificationListMenuId); - if (buttonList.Count() > 0) - { - if (buttonList.Contains(Const.BtnAdd)) - { - this.btnNew.Hidden = false; - this.btnRectify.Hidden = false; - this.btnConfirm.Hidden = false; - } - if (buttonList.Contains(Const.BtnModify)) - { - this.btnModify.Hidden = false; - } - if (buttonList.Contains(Const.BtnDelete)) - { - this.btnMenuDelete.Hidden = false; - } - } + } #endregion diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.designer.cs index 339358f..0a53e78 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.designer.cs @@ -75,7 +75,7 @@ namespace FineUIPro.Web.HSSE.Check /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtType; + protected global::FineUIPro.DropDownList txtType; /// /// txtWorkAreaName 控件。 @@ -84,7 +84,7 @@ namespace FineUIPro.Web.HSSE.Check /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtWorkAreaName; + protected global::FineUIPro.DropDownList txtWorkAreaName; /// /// txtResponsibilityUnitName 控件。 @@ -93,16 +93,7 @@ namespace FineUIPro.Web.HSSE.Check /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtResponsibilityUnitName; - - /// - /// Toolbar2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar2; + protected global::FineUIPro.DropDownList txtResponsibilityUnitName; /// /// txtStartTime 控件。 @@ -132,94 +123,13 @@ namespace FineUIPro.Web.HSSE.Check protected global::FineUIPro.DatePicker txtEndTime; /// - /// txtStartRectificationTime 控件。 + /// lblPageIndex 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.DatePicker txtStartRectificationTime; - - /// - /// Label1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label1; - - /// - /// txtEndRectificationTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker txtEndRectificationTime; - - /// - /// drpStates 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpStates; - - /// - /// ToolbarFill1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ToolbarFill ToolbarFill1; - - /// - /// hdRemark 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.HiddenField hdRemark; - - /// - /// btnNew 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNew; - - /// - /// btnOut 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnOut; - - /// - /// labNumber 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label labNumber; - - /// - /// labStatesName 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label labStatesName; + protected global::System.Web.UI.WebControls.Label lblPageIndex; /// /// ToolbarSeparator1 控件。 @@ -257,33 +167,6 @@ namespace FineUIPro.Web.HSSE.Check /// protected global::FineUIPro.Window Window1; - /// - /// Window2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Window Window2; - - /// - /// Window3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Window Window3; - - /// - /// WindowAtt 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Window WindowAtt; - /// /// Menu1 控件。 /// @@ -293,33 +176,6 @@ namespace FineUIPro.Web.HSSE.Check /// protected global::FineUIPro.Menu Menu1; - /// - /// btnModify 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnModify; - - /// - /// btnRectify 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnRectify; - - /// - /// btnConfirm 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnConfirm; - /// /// btnMenuSee 控件。 /// @@ -328,14 +184,5 @@ namespace FineUIPro.Web.HSSE.Check /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuSee; - - /// - /// btnMenuDelete 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnMenuDelete; } } diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx index 47552c4..17554ec 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx @@ -1,4 +1,5 @@ <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="CheckSpecialView.aspx.cs" Inherits="FineUIPro.Web.HSSE.Check.CheckSpecialView" %> + <%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" TagPrefix="uc1" %> @@ -7,116 +8,92 @@ 查看专项检查 -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<%-- - --%> - - - <%-- --%> - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ + + + + + + + + +
+
+
+
+
+
+
+
+
+ diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.cs index 391ee0f..1cf39d0 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.cs @@ -1,9 +1,13 @@ using BLL; +using FineUIPro.Web.BaseInfo; +using Model; +using NPOI.SS.Formula.Functions; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; +using System.Diagnostics; using System.Linq; using System.Text; using AspNet = System.Web.UI.WebControls; @@ -43,8 +47,6 @@ namespace FineUIPro.Web.HSSE.HiddenInspection GetButtonPower(); this.ItemSelectedList = new List(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); - this.drpStates.DataValueField = "Id"; - this.drpStates.DataTextField = "Name"; List handleSteps = new List(); Model.HandleStep handleStep1 = new Model.HandleStep(); handleStep1.Id = "1"; @@ -58,22 +60,12 @@ namespace FineUIPro.Web.HSSE.HiddenInspection handleStep3.Id = "3"; handleStep3.Name = "已闭环"; handleSteps.Add(handleStep3); - //Model.HandleStep handleStep4 = new Model.HandleStep(); - //handleStep4.Id = "4"; - //handleStep4.Name = "已作废"; - //handleSteps.Add(handleStep4); - this.drpStates.DataSource = handleSteps; ; - this.drpStates.DataBind(); - Funs.FineUIPleaseSelect(this.drpStates); - ListItem[] ProblemTypes = new ListItem[2]; - ProblemTypes[0] = new ListItem("日常巡检", "1"); - ProblemTypes[1] = new ListItem("专项巡检", "2"); - this.drpProblemTypes.DataValueField = "Value"; - this.drpProblemTypes.DataTextField = "Text"; - this.drpProblemTypes.DataSource = ProblemTypes; - this.drpProblemTypes.DataBind(); - Funs.FineUIPleaseSelect(this.drpProblemTypes); - // 绑定表格 + + SetProblemTypes(); + SetUnitProject(); + SetResponsibleUnit(); + this.txtStartTime.Text = DateTime.Today.ToString("yyyy-MM-dd"); + this.txtEndTime.Text = DateTime.Today.ToString("yyyy-MM-dd"); BindGrid(); } } @@ -95,66 +87,45 @@ namespace FineUIPro.Web.HSSE.HiddenInspection strSql += " AND CheckManName LIKE @CheckMan"; listStr.Add(new SqlParameter("@CheckMan", "%" + this.txtCheckMan.Text.Trim() + "%")); } - if (!string.IsNullOrEmpty(this.txtType.Text.Trim())) + if (this.txtType.SelectedText.Trim() != "请选择" && !string.IsNullOrEmpty(this.txtType.SelectedText.Trim())) { - strSql += " AND RegisterTypesName LIKE @Type"; - listStr.Add(new SqlParameter("@Type", "%" + this.txtType.Text.Trim() + "%")); + strSql += " AND RectifyName = @Type"; + listStr.Add(new SqlParameter("@Type", this.txtType.SelectedText.Trim())); + } + + if (!string.IsNullOrEmpty(this.txtWorkAreaName.SelectedText)&&this.txtWorkAreaName.SelectedText.Trim() != "请选择" ) + { + strSql += " AND Place = @Place"; + listStr.Add(new SqlParameter("@Place", this.txtWorkAreaName.SelectedText.Trim())); } if (!string.IsNullOrEmpty(this.txtWorkAreaName.Text.Trim())) { - strSql += " AND WorkAreaName LIKE @WorkAreaName"; - listStr.Add(new SqlParameter("@WorkAreaName", "%" + this.txtWorkAreaName.Text.Trim() + "%")); + strSql += " AND Place LIKE @Place"; + listStr.Add(new SqlParameter("@Place", "%" + this.txtWorkAreaName.Text.Trim() + "%")); } - if (!string.IsNullOrEmpty(this.dpRiskLevel.SelectedValue.Trim())) + if (!string.IsNullOrEmpty(this.txtResponsibilityUnitName.Text.Trim())&&this.txtResponsibilityUnitName.SelectedText.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"; - // listStr.Add(new SqlParameter("@CheckCycle", this.ckType.SelectedValue)); - //} - if (!string.IsNullOrEmpty(this.txtResponsibilityUnitName.Text.Trim())) - { - strSql += " AND ResponsibilityUnitName LIKE @ResponsibilityUnitName"; - listStr.Add(new SqlParameter("@ResponsibilityUnitName", "%" + this.txtResponsibilityUnitName.Text.Trim() + "%")); + strSql += " AND ResponsibilityUnitName = @ResponsibilityUnitName"; + listStr.Add(new SqlParameter("@ResponsibilityUnitName", this.txtResponsibilityUnitName.SelectedText.Trim())); } if (!string.IsNullOrEmpty(txtStartTime.Text.Trim())) { strSql += " AND CheckTime >= @StartTime"; - listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim())); + listStr.Add(new SqlParameter("@StartTime", string.Format("{0} {1}", this.txtStartTime.Text.Trim(), "00:00:00"))); } if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim())) { strSql += " AND CheckTime <= @EndTime"; - listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim())); - } - if (!string.IsNullOrEmpty(txtStartRectificationTime.Text.Trim())) - { - strSql += " AND RectificationTime >= @StartRectificationTime"; - listStr.Add(new SqlParameter("@StartRectificationTime", this.txtStartRectificationTime.Text.Trim())); - } - if (!string.IsNullOrEmpty(this.txtEndRectificationTime.Text.Trim())) - { - strSql += " AND RectificationTime <= @EndRectificationTime"; - listStr.Add(new SqlParameter("@EndRectificationTime", this.txtEndRectificationTime.Text.Trim())); - } - if (this.drpProblemTypes.SelectedValue != BLL.Const._Null) - { - strSql += " and ProblemTypes ='"+this.drpProblemTypes.SelectedValue+"' " ; - } - if (this.drpStates.SelectedValue != BLL.Const._Null) - { - strSql += " AND States LIKE @States"; - listStr.Add(new SqlParameter("@States", "%" + this.drpStates.SelectedValue + "%")); - } - if (!CommonService.IsMainUnitOrAdmin(this.CurrUser.UserId)) - { - strSql += " AND (ResponsibleUnit =@ResponsibleUnit OR SendUnitId=@SendUnitId)"; - listStr.Add(new SqlParameter("@ResponsibleUnit", this.CurrUser.UnitId)); - listStr.Add(new SqlParameter("@SendUnitId", this.CurrUser.UnitId)); + listStr.Add(new SqlParameter("@EndTime", string.Format("{0} {1}", this.txtEndTime.Text.Trim(), "23:59:59"))); } + //if (!CommonService.IsMainUnitOrAdmin(this.CurrUser.UserId)) + //{ + // strSql += " AND (ResponsibleUnit =@ResponsibleUnit OR SendUnitId=@SendUnitId)"; + // listStr.Add(new SqlParameter("@ResponsibleUnit", this.CurrUser.UnitId)); + // listStr.Add(new SqlParameter("@SendUnitId", this.CurrUser.UnitId)); + //} + + SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); @@ -222,6 +193,70 @@ namespace FineUIPro.Web.HSSE.HiddenInspection } #endregion + #region 问题类型下拉框赋值 + public void SetProblemTypes() + { + txtType.DataValueField = "RectifyId"; + txtType.DataTextField = "RectifyName"; + List list = (from x in Funs.DB.Technique_Rectify select x).ToList(); + list.Insert(0, new Model.Technique_Rectify() + { + RectifyId = "-1", + RectifyName = "请选择" + }); + txtType.DataSource = list; + txtType.DataBind(); + } + #endregion + + #region 单位工程下拉框赋值 + public void SetUnitProject() + { + List list = new List() { + new Model.WBS_UnitWork() + { + UnitWorkId = "-1", + UnitWorkName = "请选择" + } + }; + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + list.AddRange((from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList()); + } + txtWorkAreaName.DataValueField = "UnitWorkId"; + txtWorkAreaName.DataTextField = "UnitWorkName"; + txtWorkAreaName.DataSource = list; + txtWorkAreaName.DataBind(); + } + #endregion + + #region 责任单位下拉框赋值 + public void SetResponsibleUnit() + { + List list = new List() { + new Model.UnitItem() + { + UnitId = "-1", + UnitName = "请选择" + } + }; + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + list.AddRange((from x in Funs.DB.Project_ProjectUnit + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.ProjectId == this.CurrUser.LoginProjectId select new Model.UnitItem() + { + UnitId = y.UnitId, + UnitName = y.UnitName + }).ToList()); + } + txtResponsibilityUnitName.DataValueField = "UnitId"; + txtResponsibilityUnitName.DataTextField = "UnitName"; + txtResponsibilityUnitName.DataSource = list; + txtResponsibilityUnitName.DataBind(); + } + #endregion + #region 查看 /// /// 查看按钮 @@ -670,32 +705,32 @@ namespace FineUIPro.Web.HSSE.HiddenInspection html = (row.FindControl("lbCheckItemName") as AspNet.Label).Text; } - if (column.ColumnID == "tfImageUrl1") - { - if (rbOutType.SelectedValue == "1") - { - html = (row.FindControl("lbImageUrl1") as AspNet.Label).Text; + //if (column.ColumnID == "tfImageUrl1") + //{ + // if (rbOutType.SelectedValue == "1") + // { + // html = (row.FindControl("lbImageUrl1") as AspNet.Label).Text; - } - else - { - html = ""; - } - } - if (column.ColumnID == "tfImageUrl2") - { - if (rbOutType.SelectedValue == "1") - { - html = (row.FindControl("lbImageUrl2") as AspNet.Label).Text; + // } + // else + // { + // html = ""; + // } + //} + //if (column.ColumnID == "tfImageUrl2") + //{ + // if (rbOutType.SelectedValue == "1") + // { + // html = (row.FindControl("lbImageUrl2") as AspNet.Label).Text; - } - else - { - html = ""; + // } + // else + // { + // html = ""; - } + // } - } + //} //if (column.ColumnID == "tfCutPayment") //{ // html = (row.FindControl("lbtnCutPayment") as AspNet.LinkButton).Text; @@ -719,14 +754,15 @@ namespace FineUIPro.Web.HSSE.HiddenInspection /// protected void TextBox_TextChanged(object sender, EventArgs e) { - if (!string.IsNullOrEmpty(this.txtStartRectificationTime.Text.Trim()) && !string.IsNullOrEmpty(this.txtEndRectificationTime.Text.Trim())) - { - if (Funs.GetNewDateTime(this.txtStartRectificationTime.Text.Trim()) > Funs.GetNewDateTime(this.txtEndRectificationTime.Text.Trim())) - { - Alert.ShowInTop("开始时间不能大于结束时间!", MessageBoxIcon.Warning); - return; - } - } + Console.WriteLine("TextBox_TextChanged", this.txtType.SelectedText); + //if (!string.IsNullOrEmpty(this.txtStartRectificationTime.Text.Trim()) && !string.IsNullOrEmpty(this.txtEndRectificationTime.Text.Trim())) + //{ + // if (Funs.GetNewDateTime(this.txtStartRectificationTime.Text.Trim()) > Funs.GetNewDateTime(this.txtEndRectificationTime.Text.Trim())) + // { + // Alert.ShowInTop("开始时间不能大于结束时间!", MessageBoxIcon.Warning); + // return; + // } + //} this.BindGrid(); } #endregion @@ -750,7 +786,6 @@ namespace FineUIPro.Web.HSSE.HiddenInspection hazardRegisterIds = hazardRegisterIds.Substring(0, hazardRegisterIds.LastIndexOf(",")); } // PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("HiddenRectificationPrint.aspx?HazardRegisterIds={0}&CheckType={1}", hazardRegisterIds,"0", "查看 - "))); - this.hdRemark.Text = string.Empty; //} } @@ -762,27 +797,34 @@ namespace FineUIPro.Web.HSSE.HiddenInspection /// private void GetButtonPower() { - if (Request.Params["value"] == "0") + try { - return; + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HSSE_HiddenRectificationListMenuId); + if (buttonList.Count() > 0) + { + //if (buttonList.Contains(Const.BtnAdd)) + //{ + // this.btnRectify.Hidden = false; + // this.btnConfirm.Hidden = false; + //} + //if (buttonList.Contains(Const.BtnModify)) + //{ + // this.btnModify.Hidden = false; + //} + if (buttonList.Contains(Const.BtnDelete)) + { + this.btnMenuDelete.Hidden = false; + } + } + } - var buttonList = CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HSSE_HiddenRectificationListMenuId); - if (buttonList.Count() > 0) + catch(Exception ex) { - if (buttonList.Contains(Const.BtnAdd)) - { - this.btnNew.Hidden = false; - this.btnRectify.Hidden = false; - this.btnConfirm.Hidden = false; - } - if (buttonList.Contains(Const.BtnModify)) - { - this.btnModify.Hidden = false; - } - if (buttonList.Contains(Const.BtnDelete)) - { - this.btnMenuDelete.Hidden = false; - } + } } #endregion diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.designer.cs index 9934976..72d2e08 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationList.aspx.designer.cs @@ -75,7 +75,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtType; + protected global::FineUIPro.DropDownList txtType; /// /// txtWorkAreaName 控件。 @@ -84,7 +84,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtWorkAreaName; + protected global::FineUIPro.DropDownList txtWorkAreaName; /// /// txtResponsibilityUnitName 控件。 @@ -93,16 +93,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtResponsibilityUnitName; - - /// - /// Toolbar2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar2; + protected global::FineUIPro.DropDownList txtResponsibilityUnitName; /// /// txtStartTime 控件。 @@ -131,114 +122,6 @@ namespace FineUIPro.Web.HSSE.HiddenInspection /// protected global::FineUIPro.DatePicker txtEndTime; - /// - /// txtStartRectificationTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker txtStartRectificationTime; - - /// - /// Label1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label1; - - /// - /// txtEndRectificationTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker txtEndRectificationTime; - - /// - /// drpStates 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpStates; - - /// - /// Toolbar3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar3; - - /// - /// drpProblemTypes 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpProblemTypes; - - /// - /// dpRiskLevel 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList dpRiskLevel; - - /// - /// ToolbarFill1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ToolbarFill ToolbarFill1; - - /// - /// hdRemark 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.HiddenField hdRemark; - - /// - /// rbOutType 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.RadioButtonList rbOutType; - - /// - /// btnNew 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnNew; - - /// - /// btnOut 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnOut; - /// /// lblPageIndex 控件。 /// @@ -248,33 +131,6 @@ namespace FineUIPro.Web.HSSE.HiddenInspection /// protected global::System.Web.UI.WebControls.Label lblPageIndex; - /// - /// lbProblemTypes 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label lbProblemTypes; - - /// - /// lbCheckItemName 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label lbCheckItemName; - - /// - /// lbImageUrl1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label lbImageUrl1; - /// /// lbImageUrl2 控件。 /// @@ -347,33 +203,6 @@ namespace FineUIPro.Web.HSSE.HiddenInspection /// protected global::FineUIPro.Menu Menu1; - /// - /// btnModify 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnModify; - - /// - /// btnRectify 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnRectify; - - /// - /// btnConfirm 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnConfirm; - /// /// btnMenuSee 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationView.aspx.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationView.aspx.cs index 2bfd330..3e71e72 100644 --- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationView.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/HiddenRectificationView.aspx.cs @@ -1,5 +1,6 @@ using BLL; using System; +using System.Configuration; using System.Data; using System.Linq; @@ -85,8 +86,8 @@ namespace FineUIPro.Web.HSSE.HiddenInspection this.ImageUrl = registration.ImageUrl; this.txtRiskLevel.Text = registration.Risk_Level; this.RectificationImageUrl = registration.RectificationImageUrl; - this.divImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../../", this.ImageUrl); - this.divRectificationImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../../", this.RectificationImageUrl); + this.divImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment(ConfigurationManager.AppSettings["CEMS_IMG_URL"], this.ImageUrl); + this.divRectificationImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment(ConfigurationManager.AppSettings["CEMS_IMG_URL"], this.RectificationImageUrl); //var punishRecords = (from x in Funs.DB.View_Common_PunishRecord // where x.HazardRegisterId == this.HazardRegisterId // orderby x.PunishDate descending diff --git a/SGGL/FineUIPro.Web/HSSE/Meeting/ClassMeeting.aspx b/SGGL/FineUIPro.Web/HSSE/Meeting/ClassMeeting.aspx index 308a80e..3130082 100644 --- a/SGGL/FineUIPro.Web/HSSE/Meeting/ClassMeeting.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Meeting/ClassMeeting.aspx @@ -8,105 +8,99 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - var commonJSPath = String.Format("", ResolveClientUrl("~/res/js/common.js?v" + GlobalConfig.ProductVersion)); - PageContext.RegisterStartupScript("FineUIPro_Examples_common_js", commonJSPath, false); + // // 为所有页面添加公共JS: + // var commonJSPath = String.Format("", ResolveClientUrl("~/res/js/common.js?v" + GlobalConfig.ProductVersion)); + // PageContext.RegisterStartupScript("FineUIPro_Examples_common_js", commonJSPath, false); - //var jqueryMigrateJSPath = String.Format("", ResolveClientUrl("~/res/js/jquery-migrate-3.0.1.js?v" + GlobalConfig.ProductVersion)); - //PageContext.RegisterPreStartupScript("FineUIPro_Examples_jquery-migrate_js", jqueryMigrateJSPath, false); + // //var jqueryMigrateJSPath = String.Format("", ResolveClientUrl("~/res/js/jquery-migrate-3.0.1.js?v" + GlobalConfig.ProductVersion)); + // //PageContext.RegisterPreStartupScript("FineUIPro_Examples_jquery-migrate_js", jqueryMigrateJSPath, false); - // 禁用表单的自动完成功能 - // v5.4.0 - 无需手工设置,每个表单字段的autoComplete默认为false - //Form.Attributes["autocomplete"] = "off"; - } + // // 禁用表单的自动完成功能 + // // v5.4.0 - 无需手工设置,每个表单字段的autoComplete默认为false + // //Form.Attributes["autocomplete"] = "off"; + // } - this.Load += new EventHandler(this.PageBase_Load); - this.Unload += new EventHandler(this.PageBase_UNLoad); - base.OnInit(e); - } + // this.Load += new EventHandler(this.PageBase_Load); + // this.Unload += new EventHandler(this.PageBase_UNLoad); + // //base.OnInit(e); + // } - /// - /// 页面登录成功 - /// - /// - /// - protected void PageBase_Load(object sender, EventArgs e) - { - //这是后置式的权限管理策略. - //页面装载完成以后才检查是否有权限打开此页.... - //anyway,its ok. + // /// + // /// 页面登录成功 + // /// + // /// + // /// + // protected void PageBase_Load(object sender, EventArgs e) + // { + // //这是后置式的权限管理策略. + // //页面装载完成以后才检查是否有权限打开此页.... + // //anyway,its ok. - this.Title = BLL.Funs.SystemName; - //if (CurrUser == null) - //{ - // if (this.Page.Request.AppRelativeCurrentExecutionFilePath != "~/Login.aspx") - // Response.Redirect("~/Login.aspx"); - //} - } + // this.Title = BLL.Funs.SystemName; + // //if (CurrUser == null) + // //{ + // // if (this.Page.Request.AppRelativeCurrentExecutionFilePath != "~/Login.aspx") + // // Response.Redirect("~/Login.aspx"); + // //} + // } - /// - /// UNLOAD事件,发生在页面装载顺序的最后。 - /// 在这里处理的是DBLIST,数据库连接字典。 - /// - /// S - /// E - protected void PageBase_UNLoad(object sender, EventArgs e) - { - if (BLL.Funs.DBList.ContainsKey(System.Threading.Thread.CurrentThread.ManagedThreadId)) - { - BLL.Funs.DBList.Remove(System.Threading.Thread.CurrentThread.ManagedThreadId); - } - } + // /// + // /// UNLOAD事件,发生在页面装载顺序的最后。 + // /// 在这里处理的是DBLIST,数据库连接字典。 + // /// + // /// S + // /// E + // protected void PageBase_UNLoad(object sender, EventArgs e) + // { + // if (BLL.Funs.DBList.ContainsKey(System.Threading.Thread.CurrentThread.ManagedThreadId)) + // { + // BLL.Funs.DBList.Remove(System.Threading.Thread.CurrentThread.ManagedThreadId); + // } + // } - private bool IsSystemTheme(string themeName) - { - themeName = themeName.ToLower(); - string[] themes = Enum.GetNames(typeof(Theme)); - foreach (string theme in themes) - { - if (theme.ToLower() == themeName) - { - return true; - } - } - return false; - } + // private bool IsSystemTheme(string themeName) + // { + // themeName = themeName.ToLower(); + // string[] themes = Enum.GetNames(typeof(Theme)); + // foreach (string theme in themes) + // { + // if (theme.ToLower() == themeName) + // { + // return true; + // } + // } + // return false; + // } - private int GetHeadStyleCSSIndex() - { - var theIndex = 0; - for (var i = 0; i < Header.Controls.Count; i++) - { - var ctrl = Header.Controls[i]; - if (ctrl is LiteralControl) - { - if ((ctrl as LiteralControl).Text.Trim().ToLower().StartsWith(" - /// 是否将FState保存到服务器 - ///
- protected virtual bool SaveFStateToServer - { - get - { - return false; - } - } + // /// + // /// 是否将FState保存到服务器 + // /// + // protected virtual bool SaveFStateToServer + // { + // get + // { + // return false; + // } + // } - #endregion + // #endregion #region FState保存到服务端文件 diff --git a/SGGL/FineUIPro.Web/common/main3.aspx b/SGGL/FineUIPro.Web/common/main3.aspx index 76e6d70..532299f 100644 --- a/SGGL/FineUIPro.Web/common/main3.aspx +++ b/SGGL/FineUIPro.Web/common/main3.aspx @@ -9,7 +9,7 @@ 智慧施工管理信息系统 - + @@ -43,35 +43,35 @@ transform: translateY(50%); } - .video_content { - position: relative; - overflow: hidden; - box-sizing: border-box + .video_content { + position: relative; + overflow: hidden; + box-sizing: border-box + } + + .video_content .bottom { + position: absolute; + left: 0; + right: 0; + bottom: 0; + padding: 6px; + color: #fff; + background-color: rgba(0,0,0,.6); } - .video_content .bottom { - position: absolute; - left: 0; - right: 0; - bottom: 0; - padding: 6px; - color: #fff; - background-color: rgba(0,0,0,.6); - } - - .video_content .bottom_info { - - display: flex; - justify-content: space-between; - box-sizing: border-box; - } - - #more { - border-bottom: 1px solid; - cursor: pointer; - margin-left: 0.1rem; + .video_content .bottom_info { + display: flex; + justify-content: space-between; + box-sizing: border-box; } - .t-xc > .t-preview { + + #more { + border-bottom: 1px solid; + cursor: pointer; + margin-left: 0.1rem; + } + + .t-xc > .t-preview { position: absolute; height: 200%; width: 200%; @@ -84,67 +84,148 @@ background-repeat: no-repeat; z-index: 99999; } + + .z-date { + position: absolute; + top: 50%; + transform: translateY(-50%); + right: 4px; + } + + input[type="date"] { + background-color: rgba(0,0,0,0); + color: #ffffff; + }
-
-
-
-
0
-
-
-
-
0
-
+
+ +
+
-
-
-
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+ +
+ + + +
+
+
+
+
+

+ 问题总数 +

+
+
0
+
+
+
+

+ 已完成 +

+
+
0
+
+
+
+

+ 未完成 +

+
+
0
+
+
+
+
+
+
+ +
-
-
-
-
- - +
+
+
+
+
+ + +
+ +
+
-
+ <%--
0
-
+
+ +
0
-
+
+ +
-
+
--%>
-
>
+
+ +
176
-
+
+ +
176
-
+
+ +
176
-
+
+ +
@@ -153,7 +234,9 @@
-
+
+ +
@@ -182,15 +265,17 @@
-
+
+ +
- + +
+ -
@@ -203,20 +288,223 @@ diff --git a/SGGL/FineUIPro.Web/common/main3.aspx.cs b/SGGL/FineUIPro.Web/common/main3.aspx.cs index 38b49ca..a02630f 100644 --- a/SGGL/FineUIPro.Web/common/main3.aspx.cs +++ b/SGGL/FineUIPro.Web/common/main3.aspx.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; +using System.Web.Services; using System.Web.UI; using System.Web.UI.WebControls; @@ -34,9 +35,7 @@ namespace FineUIPro.Web.common if (!IsPostBack) { Model.SGGLDB db = Funs.DB; - this.divMajorProjectsUnderConstructionNum.InnerHtml = (from x in db.Solution_LargerHazard - where x.States == "2" && x.RecordTime > Const.DtmarkTime - select x).Count().ToString(); + ////项目信息 getProjectInfo(db); getPersonWorkTime(db); @@ -79,6 +78,86 @@ namespace FineUIPro.Web.common getRate(); } } + + + #region 劳务数据 + [WebMethod] + public static Object GetServiceData(string date) + { + DateTime mdate = Funs.GetNewDateTimeOrNow(date); + int m_count = Funs.DB.Project_ProjectUser.Count(); + int job_count = (from x in Funs.DB.Meeting_ClassMeeting + where x.ClassMeetingDate.Value.Year == mdate.Year && x.ClassMeetingDate.Value.Month == mdate.Month && x.ClassMeetingDate.Value.Day == mdate.Day + select new Model.MeetingItem + { + AttentPersonNum = x.AttentPersonNum ?? 0, + + }).ToList().Sum(s => s.AttentPersonNum); + + return new + { + m_count = m_count, + job_count = job_count, + all_count = job_count + m_count, + }; + } + #endregion + + + #region + [WebMethod] + public static Object GetSafetyProblemStatistics( string startdate, string enddate) + { + + DateTime startd = Funs.GetNewDateTimeOrNow(string.Format("{0} {1}", startdate, "00:00:00")); + DateTime endd = Funs.GetNewDateTimeOrNow(string.Format("{0} {1}", enddate, "23:59:59")); + // 日常巡检总数 + List HAllList = Funs.DB.HSSE_Hazard_HazardRegister.Where(x => x.ProblemTypes == "1" && x.CheckTime > startd && x.CheckTime < endd).ToList(); + int HAllCount = HAllList.Where(x => x.States != "4").Count(); + int HDoneCount = HAllList.Where(x => x.States == "3").Count(); + int HUnDoneCount = HAllCount - HDoneCount; + // 专项检查 + List SpecialList = (from x in Funs.DB.Inspect_InspectionItem + join i in Funs.DB.Inspect_Inspection on x.InspectionId equals i.InspectionId + where i.InspectType == "1" && x.CompileTime > startd && x.CompileTime < endd + select new Model.Inspect_InspectionItem()).ToList(); + int SAllCount = SpecialList.Count(); + int SDoneCount = SpecialList.Where(x => x.States == "3").Count(); + int SUnDoneCount = SAllCount - SDoneCount; + + // 检查列表 + var query = ( + from hsse in Funs.DB.HSSE_Hazard_HazardRegister + where hsse.RectifyName != null && hsse.RegisterDate > startd && hsse.RegisterDate < endd + group hsse by hsse.RectifyName into g1 + select new { type = g1.Key, count = g1.Count() } + +).Concat( + from i in Funs.DB.Inspect_Inspection + join itm in Funs.DB.Inspect_InspectionItem on i.InspectionId equals itm.InspectionId + where i.ProblemTypeName != null && i.CreateTime > startd && i.CreateTime < endd + group i by i.ProblemTypeName into g2 + select new { type = g2.Key, count = g2.Count() } + +).Concat( + from ins in Funs.DB.Inspect_Inspection + join itm in Funs.DB.Inspect_InspectionItem on ins.InspectionId equals itm.InspectionId + where ins.Place != null && ins.CreateTime > startd && ins.CreateTime < endd + group ins by ins.Place into g3 + select new { type = g3.Key, count = g3.Count() } +) +.GroupBy(x => x.type) +.Select(g => new { type = g.Key, count = g.Sum(x => x.count) }); + return new + { + AllCount = HAllCount + SAllCount, + DoneCount = HDoneCount + SDoneCount, + UnDoneCount = HUnDoneCount + SUnDoneCount, + CheckList = query + }; + } + #endregion + #region 项目信息 protected string ProjectInfo; /// @@ -150,7 +229,7 @@ namespace FineUIPro.Web.common } } - this.divProjectNum.InnerHtml = projectNum; + var persons = from x in db.SitePerson_Person join y in db.Base_Project on x.ProjectId equals y.ProjectId where x.IsUsed == true && (x.OutTime == null || x.OutTime > DateTime.Now) && (y.ProjectState == Const.ProjectState_1 || y.ProjectState == null) && (y.IsDelete == null || y.IsDelete == false) @@ -170,7 +249,6 @@ namespace FineUIPro.Web.common } } - this.divJoinConstructionPersonNum.InnerHtml = personsNum; var getProjectMap = getProjects.Where(x => x.MapCoordinates.Length > 0); if (getProjectMap.Count() > 0) { @@ -214,7 +292,6 @@ namespace FineUIPro.Web.common { wHours = Convert.ToInt32(getMax.Sum(x => x.PersonWorkTime) ?? 0); } - this.divSafeWorkTime.InnerHtml = wHours.ToString("0000000000"); } diff --git a/SGGL/FineUIPro.Web/common/main3.aspx.designer.cs b/SGGL/FineUIPro.Web/common/main3.aspx.designer.cs index 930f118..91578f2 100644 --- a/SGGL/FineUIPro.Web/common/main3.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/common/main3.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.common { - - - public partial class main3 { - +namespace FineUIPro.Web.common +{ + + + public partial class main3 + { + /// /// Head1 控件。 /// @@ -20,43 +22,34 @@ namespace FineUIPro.Web.common { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlHead Head1; - + /// - /// divSafeWorkTime 控件。 + /// all 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSafeWorkTime; - + protected global::System.Web.UI.HtmlControls.HtmlGenericControl all; + /// - /// divMajorProjectsUnderConstructionNum 控件。 + /// done 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMajorProjectsUnderConstructionNum; - + protected global::System.Web.UI.HtmlControls.HtmlGenericControl done; + /// - /// divProjectNum 控件。 + /// undone 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divProjectNum; - - /// - /// divJoinConstructionPersonNum 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divJoinConstructionPersonNum; - + protected global::System.Web.UI.HtmlControls.HtmlGenericControl undone; + /// /// divCheckControlAllNum 控件。 /// @@ -65,7 +58,7 @@ namespace FineUIPro.Web.common { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCheckControlAllNum; - + /// /// divCheckControlOKNum 控件。 /// @@ -74,7 +67,7 @@ namespace FineUIPro.Web.common { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCheckControlOKNum; - + /// /// divCheckControlNotOKNum 控件。 /// @@ -83,7 +76,7 @@ namespace FineUIPro.Web.common { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCheckControlNotOKNum; - + /// /// divProjectPic 控件。 /// diff --git a/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx b/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx index ef680bc..9cec92b 100644 --- a/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx +++ b/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx @@ -242,7 +242,7 @@ -
+

-

+ 问题总数 +

-
0
+
0

-

+ 已完成 +

-
0
+
0

-

+ 未完成 +

-
0
+
0
+

暂无数据

`
<%--
视频监控
@@ -221,7 +256,8 @@
--%>
-
+ +
@@ -229,8 +265,10 @@
-
- <
+
+ + < +
@@ -249,12 +287,14 @@
-
+ : +
<%=divSGUnitTitle2 %>
-
+ : +
<%=divJLUnitTitle2 %>
@@ -266,58 +306,68 @@
-
+ +
1,100
-
+ +
2027-01-30
-
+ +
---
-
+ +
-
+ +
2024-01-25
-
+ +
2024-04-18
-
+ +
2024-12-30
-
+ +
2024-11-30
-
PC/BPA -
+
+ PC/BPA + +
2025-04-25
@@ -336,7 +386,8 @@
-
+ +
2027-01-30
@@ -345,22 +396,26 @@
-
+ +
0
-
+ +
0%rh
-
+ +
0km/h
-
+ +
0db
@@ -375,24 +430,28 @@
-
+ +
176
-
+ +
176
-
+ +
176
-
+ +
@@ -402,7 +461,8 @@
-
+ +
<%--
待办事项:内容填充文字
@@ -416,63 +476,81 @@
-
+ +
-
+ +
0
-
+ +
0
-
+ +
0
-
+ +
0
-
+ +
0
-
4 -
+
+ 4 + +
-
+ +
0
-
3 -
+
+ 3 + +
-
+ +
0
-
2 -
+
+ 2 + +
-
+ +
0
-
1 -
+
+ 1 + +
-
+ +
@@ -488,7 +566,219 @@ @@ -270,12 +271,12 @@ display: none; } - .logo h1 .f-btn .f-btn-text{ - display: block; - padding: 0 1rem; - white-space: normal; - line-height: .3rem; - } + .logo h1 .f-btn .f-btn-text { + display: block; + padding: 0 1rem; + white-space: normal; + line-height: .3rem; + } @@ -288,19 +289,19 @@
-