From 55b798135c31de675fbe1ce1284cad1a5f2fa3bd Mon Sep 17 00:00:00 2001
From: fei550 <1420031550@qq.com>
Date: Fri, 10 Oct 2025 14:33:21 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=97=A0=E6=95=88=E5=BC=95?=
=?UTF-8?q?=E7=94=A8=E6=B8=85=E7=90=86=EF=BC=8C=E8=AF=95=E5=8E=8B=E5=8C=85?=
=?UTF-8?q?=E8=B5=84=E6=96=99=E7=95=8C=E9=9D=A2=E7=9C=8B=E6=9D=BF=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.vs/SGGL_SeDin_New/v17/.wsuo | Bin 74240 -> 73216 bytes
.vs/SGGL_SeDin_New/v17/DocumentLayout.json | 4 -
SGGL/BLL/API/APIBaseInfoService.cs | 2 +-
SGGL/BLL/API/APIGetHttpService.cs | 2 +-
SGGL/BLL/API/APIPersonService.cs | 2 -
SGGL/BLL/API/APIUserService.cs | 64 +-
SGGL/BLL/API/HJGL/APIHJGLIndexService.cs | 23 +-
SGGL/BLL/API/HJGL/APINDETrustService.cs | 21 +-
.../BLL/API/HJGL/APIPackagingManageService.cs | 126 ++--
SGGL/BLL/API/HJGL/APIPipeJointService.cs | 2 +-
.../API/HJGL/APIPipelineComponentService.cs | 51 +-
.../BLL/API/HJGL/APIPreWeldingDailyService.cs | 93 ++-
.../API/HJGL/APITrainNumberManagerService.cs | 56 +-
SGGL/BLL/API/HSSE/APICheckSpecialService.cs | 6 +-
SGGL/BLL/API/HSSE/APIHazardRegisterService.cs | 8 +-
.../API/HSSE/APISeDinMonthReportService.cs | 25 +-
SGGL/BLL/API/HSSE/APITestRecordService.cs | 4 +-
SGGL/BLL/API/HSSE/APITrainingTaskService.cs | 2 +-
SGGL/BLL/API/HTGL/APIHTGLPersonService.cs | 4 +-
SGGL/BLL/BLL.csproj | 18 -
.../BaseInfo/BaseCompanytemplateService.cs | 125 ++--
SGGL/BLL/BaseInfo/BaseFactoryService.cs | 18 +-
SGGL/BLL/BaseInfo/CQMSTrainObjectService.cs | 7 +-
SGGL/BLL/BaseInfo/CertificateService.cs | 2 +-
SGGL/BLL/BaseInfo/CheckTemplateService.cs | 1 -
SGGL/BLL/BaseInfo/CompanyModelKindService.cs | 6 +-
SGGL/BLL/BaseInfo/CompanyModelService.cs | 6 +-
SGGL/BLL/BaseInfo/CostTypeService.cs | 4 +-
SGGL/BLL/BaseInfo/MaterialTypeService.cs | 2 +-
.../NoticeAndSupervisionTypeService.cs | 2 +-
SGGL/BLL/BaseInfo/PictureTypeService.cs | 2 +-
SGGL/BLL/BaseInfo/PositionService.cs | 8 +-
SGGL/BLL/BaseInfo/PostTitleService.cs | 2 +-
.../BaseInfo/PracticeCertificateService.cs | 2 +-
SGGL/BLL/BaseInfo/ProjectTypeService.cs | 2 +-
SGGL/BLL/BaseInfo/PunishTypeService.cs | 2 +-
.../BaseInfo/QualityQuestionTypeService.cs | 2 +-
SGGL/BLL/BaseInfo/RewardTypeService.cs | 2 +-
.../BaseInfo/RulesRegulationsTypeService.cs | 2 +-
SGGL/BLL/BaseInfo/SafetyMeasuresService.cs | 2 +-
.../BaseInfo/SolutionTempleteTypeService.cs | 1 -
SGGL/BLL/BaseInfo/SpecialEquipmentService.cs | 4 +-
SGGL/BLL/BaseInfo/SpecialSchemeTypeService.cs | 2 +-
.../BLL/BaseInfo/SuperviseCheckTypeService.cs | 5 +-
SGGL/BLL/BaseInfo/TrainLevelService.cs | 2 +-
SGGL/BLL/BaseInfo/TrainTypeService.cs | 4 +-
SGGL/BLL/BaseInfo/UnitTypeService.cs | 2 +-
SGGL/BLL/BaseInfo/WorkPostService.cs | 4 +-
SGGL/BLL/BaseInfo/WorkStageService.cs | 1 -
SGGL/BLL/CLGL/TwArrivalStatisticsService.cs | 137 ++--
.../CLGL/TwInOutplandetailRelationService.cs | 56 +-
SGGL/BLL/CLGL/TwInOutplandetailService.cs | 25 +-
SGGL/BLL/CLGL/TwInOutplanmasterService.cs | 253 ++++---
SGGL/BLL/CLGL/TwInputdetailService.cs | 32 +-
SGGL/BLL/CLGL/TwInputmasterService.cs | 143 ++--
SGGL/BLL/CLGL/TwMaterialstockService.cs | 11 +-
SGGL/BLL/CLGL/TwOutputdetailService..cs | 43 +-
SGGL/BLL/CLGL/TwOutputmasterService.cs | 249 ++++---
.../CQMS/Check/CheckControlApproveService.cs | 1 -
SGGL/BLL/CQMS/Check/CheckControlService.cs | 4 +-
.../Check/CheckEquipmentApproveService.cs | 1 -
SGGL/BLL/CQMS/Check/CheckEquipmentService.cs | 1 -
.../BLL/CQMS/Check/CheckMaterialacceptance.cs | 5 +-
SGGL/BLL/CQMS/Check/CheckMonthService.cs | 1 -
SGGL/BLL/CQMS/Check/DesignApproveService.cs | 1 -
SGGL/BLL/CQMS/Check/DesignService.cs | 1 -
SGGL/BLL/CQMS/Check/FileCabinetService.cs | 1 -
.../CQMS/Check/JointCheckApproveService.cs | 4 +-
SGGL/BLL/CQMS/Check/MonthDesignService.cs | 1 -
SGGL/BLL/CQMS/Check/MonthNDTCheckService.cs | 1 -
SGGL/BLL/CQMS/Check/MonthRectifyService.cs | 1 -
.../CQMS/Check/MonthSpotCheckDetailService.cs | 1 -
SGGL/BLL/CQMS/Check/MonthWelderService.cs | 1 -
.../Check/SpecialEquipmentDetailService.cs | 1 -
.../BLL/CQMS/Check/SpotCheckApproveService.cs | 1 -
SGGL/BLL/CQMS/Check/SpotCheckDetailService.cs | 1 -
SGGL/BLL/CQMS/Check/SpotCheckService.cs | 2 +-
.../TechnicalContactListApproveService.cs | 1 -
.../CQMS/Check/TechnicalContactListService.cs | 1 -
.../ConTechnologyDisclosureService.cs | 8 +-
.../Comprehensive/QualityAssuranceService.cs | 6 +-
.../Comprehensive/ReviewDrawingsService.cs | 2 -
.../ProjectQualityWorkSummaryReportService.cs | 6 +-
.../ProjectQuarterlyProjectQualityService.cs | 56 +-
.../Material/CQMS_ConstructionTestService.cs | 4 +-
.../CQMS/Material/CQMS_EquipmentService.cs | 4 +-
.../Material/CQMS_InspectionApproveService.cs | 2 -
.../CQMS/Material/CQMS_InspectionService.cs | 3 +-
.../BLL/CQMS/Material/CQMS_MaterialService.cs | 4 +-
.../CQMS/Material/CQMS_MaterialTestService.cs | 4 +-
.../CQMS_NoticeAndSupervisionService.cs | 4 +-
.../Meeting/CQMS_MeetingApproveService.cs | 1 -
SGGL/BLL/CQMS/Meeting/CQMS_MeetingService.cs | 2 +-
SGGL/BLL/CQMS/Models/QualityModelService.cs | 13 +-
.../CQMS_TestPlanDetailService.cs | 6 +-
.../CQMS/PersonManage/CQMS_TestPlanService.cs | 4 +-
.../CQMS/Plan/CQMS_MainPlanApproveService.cs | 1 -
SGGL/BLL/CQMS/Plan/CQMS_SubPlanService.cs | 15 +-
.../CQMS_TechnicalProposalReviewService.cs | 4 +-
.../QCManage_QCGroupRegistrationService.cs | 6 +-
.../RewardAndPunishApproveService.cs | 1 -
.../RewardAndPunish/RewardAndPunishService.cs | 7 +-
.../CQMS_TechnicalDiscloseService.cs | 5 +-
SGGL/BLL/CQMS/Train/CQMS_TrainPlanService.cs | 1 -
.../Unqualified/WorkContactApproveService.cs | 1 -
SGGL/BLL/CQMS/WBS/WorkPackageDetailService.cs | 3 -
SGGL/BLL/CQMS/WBS/WorkPackageInitService.cs | 2 +-
.../WBS/WorkPackageParentDetailService.cs | 2 -
SGGL/BLL/Common/AttachFileService.cs | 24 +
SGGL/BLL/Common/CommonService.cs | 4 +-
SGGL/BLL/Common/Const.cs | 28 +-
SGGL/BLL/Common/CreateQRCodeService.cs | 7 +-
SGGL/BLL/Common/FastReport.cs | 8 +-
SGGL/BLL/Common/Funs.cs | 9 +-
SGGL/BLL/Common/MultiHeaderTable.cs | 2 +-
SGGL/BLL/Common/PrinterDocService.cs | 7 +-
SGGL/BLL/Common/ProjectDataFlowSetService.cs | 4 +-
SGGL/BLL/Common/Sys_CQMS_DataInTempService.cs | 5 +-
SGGL/BLL/Common/WeatherService.cs | 2 +-
SGGL/BLL/Common/WordHelp.cs | 9 +-
.../ServerCheck/DCGLCheckNoticeItemService.cs | 7 +-
.../DCGLCheckRectifyItemService.cs | 6 +-
.../ServerCheck/DCGLCheckRectifyService.cs | 8 +-
SGGL/BLL/DigData/CQMSDataDWService .cs | 15 +-
SGGL/BLL/DigData/HSEDataDWService.cs | 9 +-
SGGL/BLL/DigData/HTGLDataDWService.cs | 13 +-
SGGL/BLL/DigData/JDGLDataDWService.cs | 1 -
SGGL/BLL/DigData/ProblemAnalysisService.cs | 1 -
SGGL/BLL/DigData/ProjectWBSAnalysisService.cs | 6 +-
SGGL/BLL/DigData/WBSAnalysisService.cs | 35 +-
SGGL/BLL/Doc/DocService.cs | 5 +-
SGGL/BLL/DropListService.cs | 5 +-
.../HJGL/BaseInfo/Base_DNCompareService.cs | 5 +-
.../BaseInfo/Base_MaterialColorService.cs | 8 +-
.../HJGL/BaseInfo/MaterialCodeLibService.cs | 2 +-
SGGL/BLL/HJGL/DataImport/DataImportService.cs | 33 +-
.../DataImport/HJGL_DesignBasisDataImport.cs | 34 +-
.../HJGL_DesignBasisDataImportVerSionLog.cs | 24 +-
.../HJGL/PersonManage/WelderQualifyService.cs | 2 +-
SGGL/BLL/HJGL/PointTrust/PointBatchService.cs | 6 +-
.../HJGLPackagingmanagedetailService.cs | 6 +-
.../HJGL/PreDesign/HJGL_MaterialService.cs | 41 +-
.../HJGL/PreDesign/PackagingManageService .cs | 3 -
.../ProductionSchedulingPlanService.cs | 6 +-
.../PreDesign/TrainNumberManageService.cs | 12 +-
.../BLL/HJGL/PreDesign/YardPlanningService.cs | 27 +-
.../TestPackage/TestPackageApproveService.cs | 4 +-
.../TestPackage/TestPackageEditService.cs | 48 +-
.../TestPackage/TestPackagePrintService.cs | 2 -
SGGL/BLL/HJGL/WPQ/WPQListService.cs | 14 +-
.../HJGL_ComponentJointService.cs | 25 +-
.../HJGL_WeldingReportService.cs | 33 +-
.../WeldingManage/PipelineComponentService.cs | 74 +-
.../BLL/HJGL/WeldingManage/PipelineService.cs | 10 +-
.../HJGL/WeldingManage/WeldJointService.cs | 3 -
.../BLL/HJGL/WeldingManage/WeldTaskService.cs | 27 +-
.../HJGL/WeldingManage/WeldingDailyService.cs | 54 +-
.../HSSE/Accident/AccidentHandleService.cs | 2 +-
.../Accident/AccidentPersonRecordService.cs | 2 +-
.../Accident/AccidentReportOtherService.cs | 2 +-
.../HSSE/Accident/AccidentReportService.cs | 2 +-
SGGL/BLL/HSSE/Accident/NoFourLetoffService.cs | 2 +-
.../Check_CheckColligationDetailService.cs | 2 +-
.../Check/Check_CheckSpecialDetailService.cs | 2 +-
.../HSSE/Check/Check_CheckSpecialService.cs | 14 +-
.../Check/Check_ProjectLeaderCheckService.cs | 6 +-
SGGL/BLL/HSSE/Check/IncentiveNoticeService.cs | 2 +-
SGGL/BLL/HSSE/Check/PunishNoticeService.cs | 2 +-
.../HSSE/CostGoods/CostManageItemService.cs | 6 +-
SGGL/BLL/HSSE/CostGoods/CostManageService.cs | 41 +-
.../CostGoods/CostSmallDetailItemService.cs | 2 +-
.../HSSE/CostGoods/CostSmallDetailService.cs | 2 +-
.../HSSE/CostGoods/ExpenseDetailService.cs | 6 +-
SGGL/BLL/HSSE/CostGoods/ExpenseService.cs | 14 +-
.../HSSE/EduTrain/AccidentCaseItemService.cs | 2 +-
SGGL/BLL/HSSE/EduTrain/AccidentCaseService.cs | 2 +-
.../EduTrain/CompanyTrainingItemService.cs | 1 -
.../HSSE/EduTrain/CompanyTrainingService.cs | 1 -
.../EduTrain_TrainRecordDetailService.cs | 2 +-
.../EduTrain/EduTrain_TrainRecordService.cs | 2 +-
.../EduTrain/EduTrain_TrainTestService.cs | 2 +-
SGGL/BLL/HSSE/EduTrain/TestPlanService.cs | 1 -
SGGL/BLL/HSSE/EduTrain/TestRecordService.cs | 5 +-
.../HSSE/EduTrain/TestTrainingItemService.cs | 2 +-
SGGL/BLL/HSSE/EduTrain/TestTrainingService.cs | 1 -
.../HSSE/EduTrain/TrainTestDBItemService.cs | 2 +-
SGGL/BLL/HSSE/EduTrain/TrainTestDBService.cs | 2 +-
SGGL/BLL/HSSE/EduTrain/TrainingItemService.cs | 2 +-
.../HSSE/EduTrain/TrainingPlanItemService.cs | 1 -
SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs | 1 -
SGGL/BLL/HSSE/EduTrain/TrainingService.cs | 2 +-
SGGL/BLL/HSSE/EduTrain/TrainingTaskService.cs | 1 -
.../HSSE/Emergency/DrillRecordListService.cs | 2 +-
.../HSSE/Emergency/EmergencyListService.cs | 2 +-
.../HSSE/Emergency/EmergencySupplyService.cs | 2 +-
.../Emergency/EmergencyTeamAndTrainService.cs | 2 +-
.../HSSE/Environmental/EIAReportService.cs | 2 +-
.../EnvironmentalCheckService.cs | 3 -
.../EnvironmentalEmergencyPlanService.cs | 2 +-
.../EnvironmentalMonitoringService.cs | 2 +-
.../UnexpectedEnvironmentalService.cs | 2 +-
.../HSSE/HSSESystem/HSSEMainDutyService.cs | 2 +-
.../ServerSafetyInstitutionService.cs | 2 +-
.../Hazard/ConstructionRiskApproveService.cs | 1 -
.../Hazard/ConstructionRiskCheckService.cs | 7 +-
.../Hazard/ConstructionRiskListService.cs | 4 +-
.../Hazard_EnvironmentalRiskItemService.cs | 1 -
.../Hazard_EnvironmentalRiskListService.cs | 2 +-
.../HSSE/Hazard/Hazard_HazardListService.cs | 1 -
.../Hazard_HazardSelectedItemService.cs | 7 +-
.../HSSE_Hazard_HazardRegisterService.cs | 1 -
.../EquipmentInItemService.cs | 2 +-
.../InApproveManager/EquipmentInService.cs | 2 +-
.../EquipmentOutItemService.cs | 2 +-
.../InApproveManager/EquipmentOutService.cs | 2 +-
.../EquipmentQualityInItemService.cs | 2 +-
.../EquipmentQualityInService.cs | 2 +-
.../GeneralEquipmentInItemService.cs | 2 +-
.../GeneralEquipmentInService.cs | 2 +-
.../GeneralEquipmentOutItemService.cs | 2 +-
.../GeneralEquipmentOutService.cs | 2 +-
.../ConstructionStandardIdentifyService.cs | 2 +-
...ConstructionStandardSelectedItemService.cs | 2 +-
.../ProjectAccidentCauseReportItemService.cs | 2 +-
.../ProjectAccidentCauseReportService.cs | 2 +-
...rillConductedQuarterlyReportItemService.cs | 2 +-
...ectDrillConductedQuarterlyReportService.cs | 2 +-
...ojectDrillPlanHalfYearReportItemService.cs | 2 +-
.../ProjectDrillPlanHalfYearReportService.cs | 2 +-
.../ProjectEPSummaryReportService.cs | 8 +-
.../ProjectMillionsMonthlyReportService.cs | 7 +-
.../ProjectSafetyQuarterlyReportService.cs | 2 +-
.../ProjectWorkSummaryReportService.cs | 12 +-
SGGL/BLL/HSSE/Law/HSSEStandardsListService.cs | 2 +-
SGGL/BLL/HSSE/Law/LawRegulationListService.cs | 2 +-
SGGL/BLL/HSSE/Law/ManageRuleService.cs | 2 +-
SGGL/BLL/HSSE/Law/RulesRegulationsService.cs | 2 +-
SGGL/BLL/HSSE/License/HSETechnicalService.cs | 2 +-
.../BLL/HSSE/License/LicenseManagerService.cs | 17 +-
SGGL/BLL/HSSE/License/LicensePublicService.cs | 2 +-
.../HSSE/Manager/CompletionReportService.cs | 2 +-
SGGL/BLL/HSSE/Meeting/AttendMeetingService.cs | 2 +-
SGGL/BLL/HSSE/Meeting/ClassMeetingService.cs | 2 +-
SGGL/BLL/HSSE/Meeting/MonthMeetingService.cs | 2 +-
.../SafetyLeaderGroupMeetingService.cs | 4 +-
.../BLL/HSSE/Meeting/SpecialMeetingService.cs | 2 +-
SGGL/BLL/HSSE/Meeting/WeekMeetingService.cs | 2 +-
.../HazardDetectionService.cs | 2 +-
.../OccupationalDiseaseAccidentService.cs | 2 +-
.../PhysicalExaminationService.cs | 25 +-
.../EquipmentPersonQualityService.cs | 2 +-
.../EquipmentQualityAuditDetailService.cs | 2 +-
.../QualityAudit/EquipmentQualityService.cs | 2 +-
.../GeneralEquipmentQualityService.cs | 2 +-
.../HSSE/QualityAudit/PersonQualityService.cs | 15 +-
.../QualityAudit/SafePersonQualityService.cs | 2 +-
.../SubUnitQualityAuditDetailService.cs | 2 +-
.../QualityAudit/SubUnitQualityService.cs | 2 +-
SGGL/BLL/HSSE/Resources/SignManageService.cs | 2 +-
.../SafetyOrganizationService.cs | 2 +-
.../BLL/HSSE/SitePerson/PersonInOutService.cs | 1 -
.../SitePerson/SitePerson_CheckingService.cs | 2 +-
.../SitePerson_DayReportUnitDetailService.cs | 2 +-
...SitePerson_MonthReportUnitDetailService.cs | 2 +-
.../SitePerson_PersonItemService.cs | 11 +-
.../SitePerson/SitePerson_PersonService.cs | 7 +-
.../HSSE/Solution/ConstructSolutionService.cs | 2 +-
.../HSSE/Solution/ExpertArgumentService.cs | 2 +-
SGGL/BLL/HSSE/Solution/LargerHazardService.cs | 8 +-
.../HSSE/Solution/SolutionTemplateService.cs | 2 +-
SGGL/BLL/HSSE/Technique/EmergencyService.cs | 2 +-
.../HSSE/Technique/EnvironmentalService.cs | 2 +-
SGGL/BLL/HSSE/Technique/HazardListService.cs | 2 +-
.../HSSE/Technique/HazardListTypeService.cs | 2 +-
SGGL/BLL/HSSE/Technique/RectifyItemService.cs | 2 +-
SGGL/BLL/HSSE/Technique/RectifyService.cs | 4 +-
.../HSSE/Technique/SpecialSchemeService.cs | 2 +-
.../Technique_CheckItemDetailService.cs | 2 +-
.../Technique_CheckItemSetService.cs | 2 +-
SGGL/BLL/Notice/NoticeService.cs | 2 +-
.../OfficeCheck/Check/CheckNoticeService.cs | 7 +-
.../BLL/OfficeCheck/Check/CheckTeamService.cs | 2 +-
.../ProjectEvaluationService.cs | 2 +-
SGGL/BLL/OpenService/FileInsertService.cs | 7 +-
SGGL/BLL/OpenService/GetDataService.cs | 6 +-
.../ActionPlanFormationService.cs | 10 +-
.../ActionPlanReviewService.cs | 4 +-
.../BidApproveUserReviewService.cs | 6 +-
.../BidApproveUserReview_Sch1Service.cs | 2 +-
.../BidDocStandingBookService.cs | 40 +-
.../BidDocumentsReviewService.cs | 10 +-
.../BiddingManagement/SetSubReviewService.cs | 13 +-
.../PhtglBidprojectquantityService .cs | 106 +--
.../PhtglMainprojectquantityService .cs | 20 +-
.../BillOfQuantities/PhtglQuantityService.cs | 140 ++--
.../ContractCompile/ContractReviewService.cs | 72 +-
.../PHTGL/ContractCompile/ContractService.cs | 20 +-
.../ContractStandingBookService.cs | 36 +-
.../ContractCompile/PHTGL_ApproveService.cs | 70 +-
.../PhtglContracttrackService .cs | 117 ++--
.../PhtglContracttrackmatchwbsService.cs | 4 +-
.../PhtglContracttrackprogressService.cs | 140 ++--
.../InvoiceManage/PhtglInvoiceService .cs | 248 ++++---
.../PhtglInvoicedetailService.cs | 10 +-
SGGL/BLL/PHTGL/OAWebSevice.cs | 6 +-
.../ConstructionLogHJGLService.cs | 1 -
.../ConstructionLogMachineService.cs | 1 -
.../ConstructionLogManagementService.cs | 1 -
.../ConstructionLogPersonService.cs | 1 -
.../ConstructionLogProblemService.cs | 1 -
.../ConstructionLogRecordService.cs | 1 -
.../ConstructionLogService.cs | 2 +-
...tructionLogWorkEfficiencyCompanyService.cs | 1 -
...nstructionLogWorkEfficiencyMonthService.cs | 1 -
...tructionLogWorkEfficiencyProjectService.cs | 1 -
.../ConstructionLogWorkEfficiencyService.cs | 1 -
.../ConstructionPlanApproveService.cs | 1 -
.../ConstructionPlanService.cs | 2 +-
.../ConstructionReportApproveService.cs | 1 -
.../ConstructionReportService.cs | 2 +-
.../InformationProject/PictureService.cs | 2 +-
.../ProjectConstructionLogService.cs | 2 +-
.../WorkHandoverApproveService.cs | 1 -
.../WorkHandoverDetailService.cs | 1 -
.../InformationProject/WorkHandoverService.cs | 2 +-
.../PZHGL/ProjectData/ProjectMapService.cs | 2 +-
SGGL/BLL/Person/PersonTotalService.cs | 2 +-
SGGL/BLL/Person/Person_DutyService.cs | 4 +-
SGGL/BLL/Person/Person_DutyTemplateService.cs | 2 +-
.../Person/Person_PersonContractService.cs | 13 +-
SGGL/BLL/Person/Person_PersonTrainService.cs | 4 +-
SGGL/BLL/Person/Person_PersonsService.cs | 3 -
.../Person_QuarterCheckApproveService.cs | 2 +-
.../Person/Person_QuarterCheckItemService.cs | 2 +-
SGGL/BLL/Person/Person_QuarterCheckService.cs | 2 +-
SGGL/BLL/Person/Person_ShuntApproveService.cs | 1 -
SGGL/BLL/Person/Person_ShuntService.cs | 23 +-
SGGL/BLL/Person/Person_TrainingPlanService.cs | 2 +-
.../Test/ServerTestPlanService.cs | 2 +-
.../Test/ServerTestPlanTrainingService.cs | 2 +-
.../Test/ServerTestRecordService.cs | 2 +-
SGGL/BLL/ProjectData/MainItemService.cs | 1 -
SGGL/BLL/ProjectData/ProjectSateService.cs | 2 +-
SGGL/BLL/ProjectData/ProjectService.cs | 2 -
SGGL/BLL/ProjectData/ProjectUnitService.cs | 2 +-
SGGL/BLL/ProjectData/Project_SysSetService.cs | 8 +-
SGGL/BLL/ProjectData/TeamGroupService.cs | 2 +-
SGGL/BLL/ProjectData/UnitWorkService.cs | 6 +-
...nformationProject_SafetyBriefingService.cs | 6 +-
SGGL/BLL/SmartSite/EquipmentService.cs | 2 +-
SGGL/BLL/SmartSite/EquipmentSoftService.cs | 4 +-
SGGL/BLL/SysManage/DepartService.cs | 6 +-
SGGL/BLL/SysManage/LogService.cs | 3 +-
SGGL/BLL/SysManage/RoleItemService.cs | 2 +-
SGGL/BLL/SysManage/RoleService.cs | 2 +-
SGGL/BLL/SysManage/SysHttplogService.cs | 3 -
SGGL/BLL/SysManage/SysMenuService.cs | 2 +-
SGGL/BLL/SysManage/UnitService.cs | 4 +-
.../InterFaceService/DataForJTApiService.cs | 6 +-
.../InterFaceService/InterFaceLogService .cs | 142 ++--
.../InterFaceService/InterFaceSetService .cs | 187 +++--
.../InterFaceService/InterFaceTaskService .cs | 124 ++--
.../TimerTask/CustomJobListener.cs | 14 +-
SGGL/BLL/TaskScheduling/TimerTask/TaskJob.cs | 10 +-
.../TaskScheduling/TimerTask/TimerTaskBase.cs | 47 +-
SGGL/BLL/WebService/CNCECHSSEWebService.cs | 18 +-
SGGL/BLL/WebService/FileStructService.cs | 8 +-
.../ConstructionMonthReportMainCostService.cs | 2 +-
.../ConstructionMonthReportService.cs | 5 +-
.../ConstructionMonthReportSubCostService.cs | 2 +-
SGGL/BLL/ZHGL/DataSync/BaseDataService.cs | 3 +-
SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs | 6 +-
.../ZHGL/DataSync/HJGLData_DefectService.cs | 10 +-
.../BLL/ZHGL/DataSync/HJGLData_HJGLService.cs | 26 +-
.../BLL/ZHGL/DataSync/HSSEData_HSSEService.cs | 12 +-
.../HSSEData_HiddenDangerDetailService.cs | 6 +-
.../DataSync/Hazard_RealTimeDeviceService.cs | 4 +-
SGGL/BLL/ZHGL/DataSync/LotAPIService.cs | 6 +-
SGGL/BLL/ZHGL/DataSync/MainSevice.cs | 662 +++++++++---------
.../Project_HJGLData_DefectService.cs | 90 ++-
.../Project_HJGLData_HJGLService.cs | 7 +-
.../Project_HSSEData_HSSEService.cs | 24 +-
...ject_HSSEData_HiddenDangerDetailService.cs | 88 +--
.../Project_SYHSEData_SYHSEService.cs | 16 +-
.../ZHGL/DataSync/SYHSEData_DataService.cs | 73 +-
.../SYHSEData_HiddenDangerCheckService.cs | 4 +-
.../DataSync/SYHSEData_RiskControlService.cs | 4 +-
.../ZHGL/DataSync/SYHSEData_SYHSEService.cs | 4 +-
SGGL/BLL/ZHGL/DataSync/ServerService.cs | 5 -
.../Emergency/UnitDrillRecordListService.cs | 3 +-
.../Emergency/UnitEmergencyListService.cs | 3 +-
.../ArchitectureReportItemService.cs | 5 +-
.../ArchitectureReportService.cs | 5 +-
.../ChemicalReportItemService.cs | 5 +-
.../Environmental/ChemicalReportService.cs | 5 +-
.../ZHGL/Environmental/EnergyReportService.cs | 5 +-
.../Environmental/EnergyreportItemService .cs | 15 +-
.../ProjectArchitectureReportItemService.cs | 5 +-
.../ProjectArchitectureReportService.cs | 5 +-
.../ProjectChemicalReportItemService.cs | 5 +-
.../ProjectChemicalReportService.cs | 5 +-
.../ProjectEnergyReportService.cs | 8 +-
.../ProjectEnergyreportItemService .cs | 7 +-
.../Information/AccidentCauseReportService.cs | 7 +-
.../ActionWorkLedgerItemService.cs | 5 +-
.../Information/ActionWorkLedgerService.cs | 5 +-
...rillConductedQuarterlyReportItemService.cs | 5 +-
.../DrillConductedQuarterlyReportService.cs | 5 +-
.../DrillPlanHalfYearReportItemService.cs | 5 +-
.../DrillPlanHalfYearReportService.cs | 5 +-
.../Information/EPSummaryReportService.cs | 6 +-
.../QualityWorkSummaryReportService.cs | 6 +-
.../QuarterlyProjectQualityService.cs | 8 +-
.../ZHGL/Information/SafetyBriefingService.cs | 36 +-
.../SafetyProductionEvaluationItemService.cs | 5 +-
.../SafetyProductionEvaluationService.cs | 5 +-
.../SafetyQuarterlyReportService.cs | 2 -
.../BLL/ZHGL/Information/UrgeReportService.cs | 6 +-
.../Meeting/CompanySafetyMeetingService.cs | 2 +-
.../Meeting/CompanySpecialMeetingService.cs | 2 +-
.../ZHGL/Plan/MainContractOpinionService.cs | 3 +-
.../ZHGL/Plan/ProjectPlanOpinionService.cs | 5 +-
SGGL/BLL/ZHGL/RealName/BasicDataService.cs | 2 +-
SGGL/BLL/ZHGL/RealName/CityService.cs | 2 +-
SGGL/BLL/ZHGL/RealName/CountryService.cs | 2 +-
SGGL/BLL/ZHGL/RealName/OnPostService.cs | 1 -
.../ZHGL/RealName/RealName_ProjectService.cs | 2 +-
SGGL/BLL/ZHGL/RealName/SynchroSetService.cs | 14 +-
.../SubUnitCheckRectifyItemService.cs | 5 +-
.../Supervise/SubUnitCheckRectifyService.cs | 6 +-
.../SuperviseCheckRectifyItemService.cs | 9 +-
.../SuperviseCheckReportItemService.cs | 5 +-
.../Supervise/SuperviseCheckReportService.cs | 6 +-
SGGL/FineUIPro.Mobile/AttachFile/Look.aspx | 20 +-
SGGL/FineUIPro.Mobile/AttachFile/Look.aspx.cs | 38 +-
.../AttachFile/Look.aspx.designer.cs | 27 +
.../AttachFile/webuploader.aspx.cs | 16 +-
.../AttachFile/EditOffice.aspx.cs | 25 +-
.../AttachFile/IndexOffice.aspx.cs | 5 -
SGGL/FineUIPro.Web/AttachFile/Look.aspx.cs | 12 +-
SGGL/FineUIPro.Web/AttachFile/LookPic.aspx.cs | 1 -
.../AttachFile/OnlineEditing.aspx.cs | 7 +-
.../AttachFile/fileupload.ashx.cs | 4 +-
SGGL/FineUIPro.Web/AttachFile/save.aspx.cs | 16 +-
.../AttachFile/webuploader.aspx.cs | 4 +-
.../BaseInfo/BaseFactory.aspx.cs | 5 -
.../BaseInfo/BaseFactoryEdit.aspx.cs | 15 +-
.../BaseInfo/Certificate.aspx.cs | 12 +-
.../BaseInfo/CheckTemplate.aspx.cs | 6 +-
.../BaseInfo/CheckTemplateEdit.aspx.cs | 8 +-
.../BaseInfo/CompanyModel.aspx.cs | 2 -
.../BaseInfo/CompanyModelEdit.aspx.cs | 7 +-
.../BaseInfo/CompanyModelKind.aspx.cs | 2 -
.../BaseInfo/CompanyModelKindEdit.aspx.cs | 10 +-
.../BaseInfo/Companytemplate.aspx.cs | 6 +-
.../BaseInfo/CompanytemplateEdit.aspx.cs | 8 +-
SGGL/FineUIPro.Web/BaseInfo/CostType.aspx.cs | 6 +-
.../BaseInfo/CostTypeEdit.aspx.cs | 2 +-
.../BaseInfo/CostTypeItemEdit.aspx.cs | 3 +-
.../CLGL/ArrivalStatistics.aspx.cs | 3 -
SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx.cs | 3 -
.../CLGL/InPlanMasterDataIn.aspx.cs | 10 +-
.../CLGL/InPlanMasterEdit.aspx.cs | 4 +-
SGGL/FineUIPro.Web/CLGL/InputMaster.aspx.cs | 24 +-
.../CLGL/InputMasterEdit.aspx.cs | 5 -
SGGL/FineUIPro.Web/CLGL/MaterialStock.aspx.cs | 11 +-
SGGL/FineUIPro.Web/CLGL/OutPlanMaster.aspx.cs | 52 +-
.../CLGL/OutPlanMasterEdit.aspx.cs | 88 +--
.../CLGL/OutPlanMasterOut.aspx.cs | 42 +-
.../CLGL/OutPlanMasterSelect.aspx.cs | 27 +-
.../CLGL/OutPlanMasterSelectStock.aspx.cs | 18 +-
SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs | 38 +-
.../CLGL/OutputMasterEdit.aspx.cs | 5 -
.../CQMS/Check/MaterialAcceptance.aspx.cs | 3 -
.../CQMS/Check/MaterialAcceptanceEdit.aspx.cs | 11 +-
.../ConTechnologyDisclosure.aspx.cs | 3 -
.../ConTechnologyDisclosureDataIn.aspx.cs | 10 +-
.../ConTechnologyDisclosureDataInNew.aspx.cs | 2 +-
...nTechnologyDisclosureDataInNewEdit.aspx.cs | 4 -
.../ConTechnologyDisclosureEdit.aspx.cs | 6 +-
.../Comprehensive/QualityAssurance.aspx.cs | 3 -
.../QualityAssuranceEdit.aspx.cs | 12 +-
.../CQMS/Comprehensive/ReviewDrawings.aspx.cs | 2 +-
.../ReviewDrawingsDataIn.aspx.cs | 2 -
.../ReviewDrawingsDataInNew.aspx.cs | 7 +-
.../ReviewDrawingsDataInNewEdit.aspx.cs | 4 -
.../Comprehensive/ReviewDrawingsEdit.aspx.cs | 10 +-
.../QualityWorkSummaryReport.aspx.cs | 3 -
.../QualityWorkSummaryReportEdit.aspx.cs | 4 +-
.../QuarterlyProjectQualityEdit.aspx.cs | 6 +-
.../Material/ConstructionTestEdit.aspx.cs | 7 -
.../Material/ConstructionTestView.aspx.cs | 7 -
.../CQMS/Material/EquipmentIn.aspx.cs | 4 +-
.../CQMS/Material/EquipmentSearch.aspx.cs | 1 -
.../CQMS/Material/EquipmentStatistics.aspx.cs | 1 -
.../CQMS/Material/EquipmentView.aspx.cs | 4 +-
.../CQMS/Material/Inspection.aspx.cs | 1 -
.../CQMS/Material/InspectionEdit.aspx.cs | 5 +-
.../CQMS/Material/InspectionView.aspx.cs | 6 +-
.../CQMS/Material/MaterialEdit.aspx.cs | 2 +-
.../CQMS/Material/MaterialIn.aspx.cs | 6 +-
.../CQMS/Material/MaterialSearch.aspx.cs | 1 -
.../CQMS/Material/MaterialStatistics.aspx.cs | 3 +-
.../CQMS/Material/MaterialTest.aspx.cs | 2 +-
.../CQMS/Material/MaterialTestEdit.aspx.cs | 8 +-
.../CQMS/Material/MaterialTestView.aspx.cs | 6 +-
.../CQMS/Material/MaterialView.aspx.cs | 3 +-
.../Material/NoticeAndSupervisionEdit.aspx.cs | 6 +-
.../Material/NoticeAndSupervisionView.aspx.cs | 6 +-
.../CQMS/Meeting/MonthMeeting.aspx.cs | 1 -
.../CQMS/Meeting/MonthMeetingEdit.aspx.cs | 21 +-
.../CQMS/Meeting/MonthMeetingFile.aspx.cs | 7 +-
.../CQMS/Meeting/MonthMeetingView.aspx.cs | 7 -
.../CQMS/Meeting/SpecialMeeting.aspx.cs | 1 -
.../CQMS/Meeting/SpecialMeetingEdit.aspx.cs | 5 -
.../CQMS/Meeting/SpecialMeetingFile.aspx.cs | 7 +-
.../CQMS/Meeting/SpecialMeetingView.aspx.cs | 7 -
.../CQMS/Models/QualityModelEdit.aspx.cs | 8 +-
.../CQMS/PersonManage/CheckerItemView.aspx.cs | 3 +-
.../CQMS/PersonManage/TestPlanEdit.aspx.cs | 4 +-
.../CQMS/PersonManage/TestPlanView.aspx.cs | 5 +-
.../CQMS/PersonManage/TestRecordEdit.aspx.cs | 5 +-
.../CQMS/PersonManage/TestRecordView.aspx.cs | 5 +-
.../CQMS/PersonManage/WelderItemView.aspx.cs | 3 +-
SGGL/FineUIPro.Web/CQMS/Plan/MainPlan.aspx.cs | 10 +-
.../CQMS/Plan/MainPlanEdit.aspx.cs | 35 +-
.../CQMS/Plan/MainPlanView.aspx.cs | 5 +-
SGGL/FineUIPro.Web/CQMS/Plan/SubPlan.aspx.cs | 1 -
.../CQMS/Plan/SubPlanEdit.aspx.cs | 5 +-
.../Plan/TechnicalProposalReviewEdit.aspx.cs | 7 -
.../Plan/TechnicalProposalReviewView.aspx.cs | 7 -
.../QCManage/QCGroupRegistration.aspx.cs | 12 +-
.../QCManage/QCGroupRegistrationEdit.aspx.cs | 29 +-
.../QCManage/QCGroupRegistrationView.aspx.cs | 27 +-
.../QCManage/QCStatics.aspx.cs | 18 +-
.../RewardAndPunish/RewardAndPunish.aspx.cs | 3 +-
.../RewardAndPunishEdit.aspx.cs | 5 -
.../RewardAndPunishView.aspx.cs | 7 -
.../CQMS/Technical/Rectify.aspx.cs | 6 +-
.../CQMS/Technical/RectifyEdit.aspx.cs | 4 +-
.../CQMS/Technical/RectifyItemEdit.aspx.cs | 2 +-
.../Technical/RectifySelectCloumn.aspx.cs | 4 -
.../Technical/TechnicalDiscloseEdit.aspx.cs | 7 -
.../Technical/TechnicalDiscloseView.aspx.cs | 7 -
.../CQMS/Train/TrainPlanEdit.aspx.cs | 7 -
.../CQMS/Train/TrainPlanView.aspx.cs | 10 +-
.../CQMS/Train/TrainRecordEdit.aspx.cs | 9 +-
.../CQMS/Train/TrainRecordView.aspx.cs | 7 -
.../FineUIPro.Web/CQMS/WBS/SelectUnit.aspx.cs | 5 +-
.../Controls/ChartControl.ascx.cs | 10 +-
.../FineUIPro.Web/Controls/Fastreport.aspx.cs | 11 +-
.../Controls/UnitProjectTControl.ascx.cs | 9 +-
.../FineUIPro.Web/Controls/WBSControl.ascx.cs | 4 +-
.../DCGL/ServerCheck/CheckNotice.aspx.cs | 2 -
.../DCGL/ServerCheck/CheckRectifyEdit.aspx.cs | 6 +-
SGGL/FineUIPro.Web/DataShow/Check.aspx.cs | 12 +-
.../DataShow/CompanyPerson.aspx.cs | 3 +-
.../DataShow/ConstructionEquipment.aspx.cs | 5 +-
SGGL/FineUIPro.Web/DataShow/Emergency.aspx.cs | 7 +-
.../DataShow/Environmental.aspx.cs | 2 +-
.../FineUIPro.Web/DataShow/HJGLDefect.aspx.cs | 2 +-
.../FineUIPro.Web/DataShow/HJGLWelder.aspx.cs | 7 +-
.../DataShow/HJGLWelding.aspx.cs | 10 +-
.../DataShow/HJGLWeldingItem.aspx.cs | 4 +-
.../DataShow/HiddenRectification.aspx.cs | 16 +-
.../DataShow/HiddenRectificationItem.aspx.cs | 5 +-
.../DataShow/LargeEngineering.aspx.cs | 12 +-
.../DataShow/LargeEngineeringItem.aspx.cs | 4 +-
SGGL/FineUIPro.Web/DataShow/License.aspx.cs | 4 +-
SGGL/FineUIPro.Web/DataShow/Meeting.aspx.cs | 12 +-
SGGL/FineUIPro.Web/DataShow/Project.aspx.cs | 15 +-
.../DataShow/ProjectDivision.aspx.cs | 4 +-
.../DataShow/ProjectPerson.aspx.cs | 4 +-
.../DataShow/QualityAcceptance.aspx.cs | 3 +-
.../DataShow/QualityControlPoint.aspx.cs | 7 +-
.../DataShow/QualityInstruments.aspx.cs | 14 +-
.../DataShow/QualityInstrumentsItem.aspx.cs | 4 +-
.../DataShow/QualityPerson.aspx.cs | 14 +-
.../DataShow/QualityProblem.aspx.cs | 2 +-
.../DataShow/QualityProblemItem.aspx.cs | 5 +-
.../DataShow/QualityTraining.aspx.cs | 11 +-
.../DataShow/QualityTrainingItem1.aspx.cs | 5 +-
.../DataShow/QualityTrainingItem2.aspx.cs | 5 +-
.../DataShow/SecurityRisk.aspx.cs | 15 +-
.../DataShow/SecurityRiskItem.aspx.cs | 2 +-
.../DataShow/WorkingHoursItem.aspx.cs | 4 +-
.../DigData/CQMSDataCollect.aspx.cs | 6 +-
SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx.cs | 8 +-
SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx.cs | 8 +-
SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs | 6 +-
SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx.cs | 6 +-
.../DigData/ProjectDataDW.aspx.cs | 11 +-
.../DigData/ProjectWBSAnalysis.aspx.cs | 12 +-
.../DigData/ProjectWBSDW.aspx.cs | 40 +-
.../DigData/ShowProjectWBS.aspx.cs | 17 +-
.../DigData/ShowProjectWBSPackage.aspx.cs | 12 +-
.../FineUIPro.Web/DigData/WBSAnalysis.aspx.cs | 10 +-
SGGL/FineUIPro.Web/DigData/WBSDW.aspx.cs | 29 +-
SGGL/FineUIPro.Web/File/Fastreport/装箱单.frx | 9 +-
.../HJGL/BaseInfo/MaterialCodeLibIn.aspx.cs | 100 +--
.../HJGL/BaseInfo/MaterialColor.aspx.cs | 7 +-
.../HJGL/BaseInfo/MaterialColorEdit.aspx.cs | 5 +-
.../HJGL/BaseInfo/MaterialColorInaspx.aspx.cs | 5 -
.../HJGL/BaseInfo/MediumIn.aspx.cs | 4 +-
.../HJGL/BaseInfo/WeldingLocation.aspx.cs | 2 +-
.../HJGL/DataImport/DrawingImportEdit.aspx.cs | 10 +-
.../DataImport/MaterialInformation.aspx.cs | 37 +-
.../HJGL/DataImport/MaterialStock.aspx.cs | 5 +-
.../HJGL/DataImport/TDMImport.aspx.cs | 2 +-
.../HJGL/DataImport/TDMImportEdit.aspx.cs | 2 +-
.../HJGL/HotProcessHard/HardReport.aspx.cs | 4 +-
.../HJGL/HotProcessHard/HardTrust.aspx.cs | 4 +-
.../HotProcessHard/HotProessReport.aspx.cs | 4 +-
.../HotProcessHard/HotProessTrust.aspx.cs | 8 +-
.../HotProessTrustItemEdit.aspx.cs | 9 +-
.../HJGL/InfoQuery/JointQuery.aspx.cs | 29 +-
.../HJGL/InfoQuery/PipelineQuery.aspx.cs | 133 ++--
.../HJGL/LeakVacuum/LV_ItemEndCheck.aspx.cs | 6 +-
.../HJGL/LeakVacuum/LeakVacuumAudit.aspx.cs | 4 +-
.../LeakVacuum/LeakVacuumComplete.aspx.cs | 6 +-
.../HJGL/LeakVacuum/LeakVacuumEdit.aspx.cs | 4 +-
.../HJGL/NDT/NDTBatchImport.aspx.cs | 61 +-
.../HJGL/PersonManage/CheckerManage.aspx.cs | 2 +-
.../HJGL/PointTrust/PointBatch.aspx.cs | 1 -
.../PointTrust/PointWeldJointView.aspx.cs | 2 +-
.../HJGL/PointTrust/TrustBatch.aspx.cs | 7 +-
.../HJGL/PreDesign/MaterialManage.aspx.cs | 2 +-
.../HJGL/PreDesign/MaterialManageEdit.aspx.cs | 2 +-
.../HJGL/PreDesign/MaterialManageIn.aspx.cs | 6 +-
.../HJGL/PreDesign/MaterialManageView.aspx.cs | 3 +-
.../HJGL/PreDesign/PackagingManage.aspx.cs | 4 +-
.../PreDesign/PackagingManageEdit.aspx.cs | 47 +-
.../PreDesign/PackagingManageSelect.aspx.cs | 12 +-
.../PackagingManageSelectStock.aspx.cs | 21 +-
.../PreDesign/PackagingManageView.aspx.cs | 63 +-
.../HJGL/PreDesign/PipelingDivide.aspx.cs | 107 ++-
.../HJGL/PreDesign/PrePipeline.aspx.cs | 93 ++-
.../PreDesign/PrePipelineBatchEdit.aspx.cs | 2 +-
.../PreDesign/PrePipelineQRCodeIn.aspx.cs | 50 +-
.../ProductionSchedulingPlan.aspx.cs | 10 -
.../PreDesign/TrainNumberManageEdit.aspx.cs | 7 +-
.../HJGL/PreDesign/TrainNumberManager.aspx | 2 +-
.../HJGL/PreDesign/TrainNumberManager.aspx.cs | 21 +-
.../PreDesign/TrainNumberManagerPrint.aspx.cs | 5 -
.../PreDesign/TrainNumberManagerView.aspx.cs | 6 +-
.../HJGL/PreDesign/YardPlanning.aspx.cs | 118 ++--
.../HJGL/PreDesign/YardPlanningEdit.aspx.cs | 17 +-
.../PurgingCleaning/PC_ItemEndCheck.aspx.cs | 4 +-
.../PurgingCleaningAudit.aspx.cs | 4 +-
.../PurgingCleaningComplete.aspx.cs | 4 +-
.../PurgingCleaningEdit.aspx.cs | 4 +-
.../RepairAndExpand/RepairAndExpand.aspx.cs | 4 +-
.../HJGL/RepairAndExpand/RepairTrust.aspx.cs | 7 +-
.../HJGL/TestPackage/BItemEndCheck.aspx.cs | 4 +-
.../HJGL/TestPackage/ItemEndCheck.aspx.cs | 4 +-
.../TestPackage/ItemEndCheckEdit2.aspx.cs | 5 +-
.../HJGL/TestPackage/TestPackageAudit.aspx.cs | 42 +-
.../HJGL/TestPackage/TestPackageComplete.aspx | 43 +-
.../TestPackage/TestPackageComplete.aspx.cs | 653 +++--------------
.../TestPackageComplete.aspx.designer.cs | 36 +
.../HJGL/TestPackage/TestPackageData.aspx.cs | 87 ++-
.../TestPackage/TestPackageDatePrint.aspx.cs | 12 +-
.../HJGL/TestPackage/TestPackageEdit.aspx.cs | 10 +-
.../TestPackage/TestPackageImport.aspx.cs | 63 +-
.../TestPackage/TestPackageItemEdit.aspx.cs | 4 +-
SGGL/FineUIPro.Web/HJGL/WPQ/WPQEdit.aspx.cs | 1 -
SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx.cs | 2 +-
.../HJGL/WeldingManage/JotTwoDesign.aspx.cs | 2 -
.../HJGL/WeldingManage/PipelineEdit.aspx.cs | 12 +-
.../HJGL/WeldingManage/PipelineList.aspx.cs | 6 +-
.../HJGL/WeldingManage/PipelineListIn.aspx.cs | 4 +-
.../WeldingManage/PipelineListPDMSIn.aspx.cs | 3 -
.../HJGL/WeldingManage/PipelineMatIn.aspx.cs | 46 +-
.../WeldingManage/PreWeldReportAudit.aspx.cs | 4 +-
.../WeldingManage/SelectTaskWeldJoint.aspx.cs | 12 +-
.../WeldingManage/WeldJointBatchEdit.aspx.cs | 6 +-
.../HJGL/WeldingManage/WeldJointEdit.aspx.cs | 1 -
.../HJGL/WeldingManage/WeldJointList.aspx.cs | 115 ++-
.../HJGL/WeldingManage/WeldMatMatch.aspx.cs | 101 +--
.../WeldingManage/WeldMatMatchGet.aspx.cs | 15 +-
.../HJGL/WeldingManage/WeldReport.aspx.cs | 27 +-
.../HJGL/WeldingManage/WeldReportEdit.aspx.cs | 24 +-
.../HJGL/WeldingManage/WeldTask.aspx.cs | 43 +-
.../HJGL/WeldingManage/WeldingConDate.aspx.cs | 3 +-
.../HJGL/WeldingManage/WeldingPlan.aspx.cs | 14 +-
.../HJGL/WeldingManage/WeldingPlanIn.aspx.cs | 32 +-
.../HJGL/WeldingReport/CheckResult.aspx.cs | 2 +-
.../HJGL/WeldingReport/WelderEfficacy.aspx.cs | 2 +-
.../Accident/AccidentPersonRecordEdit.aspx.cs | 2 +-
.../ActionPlan/ActionPlanListEdit.aspx.cs | 18 +-
.../ActionPlan/ActionPlanListView.aspx.cs | 5 +-
.../HSSE/Check/CheckSpecial.aspx.cs | 2 -
.../HSSE/Check/OfficeCheck.aspx.cs | 4 +-
.../HSSE/Check/ProjectLeaderCheck.aspx.cs | 2 +-
.../HSSE/Check/ProjectLeaderCheckEdit.aspx.cs | 9 +-
.../HSSE/Check/ProjectLeaderCheckView.aspx.cs | 12 +-
.../HSSE/Check/PunishNoticeView.aspx.cs | 3 +-
.../HSSE/Check/RectifyNotices.aspx.cs | 4 +-
.../HSSE/CostGoods/CostManage.aspx.cs | 12 +-
.../HSSE/CostGoods/CostManageAudit.aspx.cs | 38 +-
.../HSSE/CostGoods/CostManageEdit.aspx.cs | 32 +-
.../HSSE/CostGoods/CostManageItemEdit.aspx.cs | 10 +-
.../HSSE/CostGoods/CostManageView.aspx.cs | 8 +-
.../HSSE/CostGoods/CostSummary.aspx.cs | 31 +-
.../HSSE/CostGoods/CostSummaryUnit.aspx.cs | 35 +-
.../HSSE/CostGoods/Expense.aspx.cs | 21 +-
.../HSSE/CostGoods/ExpenseEdit.aspx.cs | 30 +-
.../HSSE/CostGoods/ExpenseUnit.aspx.cs | 44 +-
.../HSSE/CostGoods/ExpenseView.aspx.cs | 3 +-
.../HSSE/EduTrain/TestTrainingSave.aspx.cs | 3 +-
.../HSSE/Emergency/DrillRecordList.aspx.cs | 4 +-
.../Emergency/DrillRecordListEdit.aspx.cs | 2 +-
.../EnvironmentalMonitoring.aspx.cs | 6 +-
.../EnvironmentalMonitoringApiView.aspx.cs | 9 +-
.../HSSE/Hazard/ConstructionRisk.aspx.cs | 8 +-
.../Hazard/ConstructionRiskCheckSee.aspx.cs | 1 -
.../ConstructionRiskControlCheck.aspx.cs | 17 +-
.../ConstructionRiskControlEdit.aspx.cs | 40 +-
.../Hazard/ConstructionRiskDataIn.aspx.cs | 4 +-
.../HSSE/Hazard/ConstructionRiskMap.aspx.cs | 3 +-
.../HSSE/Hazard/LocationSelect.aspx.cs | 13 +-
.../FineUIPro.Web/HSSE/Hazard/ShowWBS.aspx.cs | 1 -
.../HiddenRectificationList.aspx.cs | 4 +-
.../ConstructionStandardIdentifyEdit.aspx.cs | 4 +-
.../EPSummaryReport.aspx.cs | 2 +-
.../EPSummaryReportEdit.aspx.cs | 4 -
.../MillionsMonthlyReport.aspx.cs | 6 +-
.../MillionsMonthlyReportEdit.aspx.cs | 17 +-
.../MillionsMonthlyReportView.aspx.cs | 13 +-
.../WorkSummaryReport.aspx.cs | 2 +-
.../WorkSummaryReportEdit.aspx.cs | 6 +-
.../HSSE/Manager/ManagerMonth_SeDin.aspx.cs | 2 +-
.../Manager/ManagerMonth_SeDinEdit.aspx.cs | 14 +-
.../Meeting/SafetyLeaderGroupMeeting.aspx.cs | 4 +-
.../PhysicalExamination.aspx.cs | 2 +-
.../PhysicalExaminationEdit.aspx.cs | 6 +-
.../HSSE/QualityAudit/PersonQuality.aspx.cs | 2 +-
.../QualityAudit/PersonQualityEdit.aspx.cs | 4 +-
.../HSSE/SitePerson/PersonInfo.aspx.cs | 3 -
.../HSSE/SitePerson/PersonList.aspx.cs | 6 +-
.../SitePerson/SitePersonNowStatistic.aspx.cs | 6 +-
.../HSSE/SitePerson/WorkPostStatistic.aspx.cs | 1 -
.../ExpertArgumentListEditItem.aspx.cs | 4 +-
.../HSSE/Solution/LargerHazardEdit.aspx.cs | 1 -
.../HSSE/Technique/RectifyEdit.aspx.cs | 4 +-
SGGL/FineUIPro.Web/JDGL/Check/PlanSet.aspx.cs | 2 -
.../Check/CheckContentEdit.aspx.cs | 5 +-
.../OfficeCheck/Check/CheckInfo.aspx.cs | 8 +-
.../OfficeCheck/Check/CheckNoticeEdit.aspx.cs | 10 +-
.../OfficeCheck/Check/CheckReport.aspx.cs | 8 +-
.../OfficeCheck/Check/CheckTeamEdit.aspx.cs | 3 +-
.../OfficeCheck/Check/RectifyEdit.aspx.cs | 20 +-
.../ActionPlanFormation.aspx.cs | 6 +-
.../ActionPlanReview.aspx.cs | 2 +-
.../ActionPlanReviewDetail.aspx.cs | 2 +-
.../ActionPlanReviewEdit.aspx.cs | 2 +-
.../ApproveUserReview.aspx.cs | 8 +-
.../ApproveUserReviewDetail.aspx.cs | 18 +-
.../ApproveUserReviewEdit.aspx.cs | 25 +-
.../BidDocumentsReview.aspx.cs | 4 +-
.../BidDocumentsReviewDetail.aspx.cs | 2 +-
.../BidDocumentsReviewEdit.aspx.cs | 12 +-
.../BiddingManagement/SetSubReview.aspx.cs | 10 +-
.../SetSubReviewDetail.aspx.cs | 2 +-
.../SetSubReviewEdit.aspx.cs | 6 +-
.../BidProjectQuantityEdit.aspx.cs | 6 +-
.../BidProjectQuantityList.aspx.cs | 5 +-
.../MainProjectQuantityEdit.aspx.cs | 6 +-
.../PHTGL_QuantityEdit.aspx.cs | 10 +-
.../BillOfQuantities/TemQuantityIn.aspx.cs | 22 +-
.../BillOfQuantities/TemQuantityList.aspx.cs | 16 +-
.../TemQuantitySelect.aspx.cs | 11 +-
.../ContractReviewDetail.aspx.cs | 2 +-
.../ContractReviewEdit.aspx.cs | 2 +-
.../ContractTrackComparison.aspx.cs | 24 +-
.../ContractCompile/ContractTrackEdit.aspx.cs | 36 +-
.../ContractCompile/ContractTrackIn.aspx.cs | 6 +-
.../ContractCompile/ContractTrackList.aspx.cs | 32 +-
.../ContractTrackMatchWBS.aspx.cs | 6 +-
.../ContractTrackProgressChart.aspx.cs | 35 +-
.../ContractTrackProgressDetection.aspx.cs | 19 +-
...ContractTrackProgressDetectionGrid.aspx.cs | 95 ++-
.../PHTGL/ContractCompile/ContractWBS.aspx.cs | 92 ++-
.../PHTGL/Filing/ActionPlanFile.aspx.cs | 3 +-
.../PHTGL/Filing/ApproveUserFile.aspx.cs | 3 +-
.../PHTGL/Filing/BidDocumentsFile.aspx.cs | 1 -
.../Filing/BidDocumentsStandingBook.aspx.cs | 40 +-
.../BidDocumentsStandingBookEdit.aspx.cs | 33 +-
...idDocumentsStandingBookEditProject.aspx.cs | 5 -
.../Filing/BidDocumentsStandingBookIn.aspx.cs | 18 +-
.../PHTGL/Filing/ContractStandingBook.aspx.cs | 37 +-
.../Filing/ContractStandingBookEdit.aspx.cs | 31 +-
.../Filing/ContractStandingBookIn.aspx.cs | 50 +-
SGGL/FineUIPro.Web/PHTGL/Filing/Files.aspx.cs | 3 +-
.../PHTGL/Filing/SetSubFile.aspx.cs | 1 -
.../PHTGL/InvoiceManage/InvoiceDataIn.aspx.cs | 10 +-
.../PHTGL/InvoiceManage/InvoiceOrder.aspx.cs | 47 +-
.../InvoiceManage/InvoiceOrderDetail.aspx.cs | 90 ++-
.../InvoiceOrderReviewEdit.aspx.cs | 56 +-
.../InvoiceManage/InvoiceStandingBook.aspx.cs | 15 +-
.../InvoiceStandingBookEdit.aspx.cs | 13 +-
.../ConstructionLogWorkEfficiency.aspx.cs | 1 -
.../ConstructionMonthReport.aspx.cs | 2 +-
.../ConstructionMonthReportEdit.aspx.cs | 2 -
.../ProjectConstructionLog.aspx.cs | 4 +-
...ojectConstructionLogWorkEfficiency.aspx.cs | 2 -
.../Person/CompanyPerson.aspx.cs | 2 +-
.../FineUIPro.Web/Person/DepartPerson.aspx.cs | 13 +-
.../Person/DepartPersonShunt.aspx.cs | 22 +-
.../Person/PersonContractEdit.aspx.cs | 6 +-
SGGL/FineUIPro.Web/Person/PersonEdit.aspx.cs | 15 +-
.../Person/PersonItemEdit.aspx.cs | 14 +-
SGGL/FineUIPro.Web/Person/PersonLib.aspx.cs | 13 +-
.../Person/PersonTrainEdit.aspx.cs | 6 +-
.../Person/ProjectPerson.aspx.cs | 6 +-
.../Person/ProjectPersonEdit.aspx.cs | 19 +-
.../Person/ProjectPersonView.aspx.cs | 7 +-
.../PersonManage/Test/TestPlanEdit.aspx.cs | 8 +-
.../Personal/PersonalInfo.aspx.cs | 7 +-
.../ProjectData/LocationSelect.aspx.cs | 10 +-
.../ProjectData/ProjectSetSave.aspx.cs | 5 +-
.../ProjectData/ProjectSysSet.aspx.cs | 2 +-
.../ProjectData/ProjectUnitSave.aspx.cs | 8 +-
.../ProjectData/ProjectUnitView.aspx.cs | 2 +-
.../ProjectData/UnitWorkEdit.aspx.cs | 4 +-
.../InformationProject/SafetyBriefing.aspx.cs | 2 +-
.../SafetyBriefingEdit.aspx.cs | 4 +-
.../SmartSite/EquipmentManage.aspx.cs | 4 +-
.../SmartSite/EquipmentManageEdit.aspx.cs | 29 +-
.../SmartSite/SoftManage.aspx.cs | 2 +-
.../SmartSite/SoftManageEdit.aspx.cs | 31 +-
SGGL/FineUIPro.Web/SysManage/DocEdit.aspx.cs | 1 -
SGGL/FineUIPro.Web/SysManage/DocView.aspx.cs | 1 -
SGGL/FineUIPro.Web/SysManage/HttpLog.aspx.cs | 17 +-
.../SysManage/ProjectToDo.aspx.cs | 8 +-
.../SysManage/SysConstSet.aspx.cs | 8 +-
.../SysManage/UpdatePassword.aspx.cs | 3 +-
.../InterFace/IFLogList.aspx.cs | 25 +-
.../InterFace/InterFaceEdit.aspx.cs | 38 +-
.../InterFace/InterFaceSet.aspx.cs | 26 +-
.../InterFace/InterFaceTask.aspx.cs | 10 +-
.../InterFace/InterFaceTaskEdit.aspx.cs | 32 +-
.../DataIn/AccidentCauseReportImport.aspx.cs | 10 +-
.../DrillConductedQuarterlyReportBar.aspx.cs | 2 +-
...DrillConductedQuarterlyReportBarIn.aspx.cs | 12 +-
...rillConductedQuarterlyReportImport.aspx.cs | 10 +-
.../DrillPlanHalfYearReportImport.aspx.cs | 10 +-
.../ZHGL/DataSync/CQMSData_CQMS.aspx.cs | 14 +-
.../ZHGL/DataSync/CQMSData_CQMSEdit.aspx.cs | 22 +-
.../ZHGL/DataSync/DataStatistics.aspx.cs | 7 +-
.../ZHGL/DataSync/HJGLData_HJGL.aspx.cs | 9 +-
.../ZHGL/DataSync/HJGLData_HJGLEdit.aspx.cs | 70 +-
.../ZHGL/DataSync/HSSEData_HSSE.aspx.cs | 13 +-
.../ZHGL/DataSync/HSSEData_HSSEEdit.aspx.cs | 14 +-
.../Project_CQMSData_CQMS.aspx.cs | 14 +-
.../Project_CQMSData_CQMSEdit.aspx.cs | 16 +-
.../Project_HJGLData_HJGL.aspx.cs | 9 +-
.../Project_HJGLData_HJGLEdit.aspx.cs | 71 +-
.../Project_HSSEData_HSSE.aspx.cs | 13 +-
.../Project_HSSEData_HSSEEdit.aspx.cs | 16 +-
.../Project_SYHSEData_SYHSE.aspx.cs | 9 +-
.../Project_SYHSEData_SYHSEEdit.aspx.cs | 12 +-
.../ZHGL/DataSync/SYHSEData_Data.aspx.cs | 7 +-
.../ZHGL/DataSync/SYHSEData_DataEdit.aspx.cs | 18 +-
.../ZHGL/DataSync/SYHSEData_SYHSE.aspx.cs | 9 +-
.../ZHGL/DataSync/SYHSEData_SYHSEEdit.aspx.cs | 10 +-
.../ZHGL/Emergency/DrillRecordList.aspx.cs | 4 +-
.../Emergency/DrillRecordListEdit.aspx.cs | 2 +-
.../ZHGL/Emergency/EmergencyList.aspx.cs | 18 +-
.../ZHGL/Emergency/EmergencyListView.aspx.cs | 17 +-
.../Environmental/ArchitectureReport.aspx.cs | 6 +-
.../ArchitectureReportSave.aspx.cs | 42 +-
.../ZHGL/Environmental/ChemicalReport.aspx.cs | 10 +-
.../Environmental/ChemicalReportSave.aspx.cs | 1 -
.../ZHGL/Environmental/EnergyReport.aspx.cs | 3 -
.../Environmental/EnergyReportSave.aspx.cs | 14 +-
.../Environmental/OperationReport.aspx.cs | 7 +-
.../Environmental/OperationReportEdit.aspx.cs | 45 +-
.../ProjectArchitectureReport.aspx.cs | 8 +-
.../ProjectArchitectureReportSave.aspx.cs | 4 +-
.../ProjectChemicalReport.aspx.cs | 4 +-
.../ProjectChemicalReportSave.aspx.cs | 1 -
.../Environmental/ProjectEnergyReport.aspx.cs | 5 +-
.../ProjectEnergyReportSave.aspx.cs | 5 +-
.../ProjectOperationReport.aspx.cs | 3 -
.../ProjectOperationReportEdit.aspx.cs | 7 -
.../Information/AccidentCauseReport.aspx.cs | 4 +-
.../AccidentCauseReportSave.aspx.cs | 2 +-
.../ZHGL/Information/ActionWorkLedger.aspx.cs | 2 -
.../DrillConductedQuarterlyReportAdd.aspx.cs | 2 +-
.../DrillPlanHalfYearReportAdd.aspx.cs | 2 +-
.../Information/MillionsMonthlyReport.aspx.cs | 6 +-
.../QualityWorkSummaryReportEdit.aspx.cs | 4 +-
.../QuarterlyProjectQuality.aspx.cs | 7 +-
.../QuarterlyProjectQualityEdit.aspx.cs | 20 +-
.../ZHGL/Information/ReportAuditSee.aspx.cs | 4 +-
.../ZHGL/Information/ReportSubmit.aspx.cs | 10 +-
.../ZHGL/Information/SafetyBriefing.aspx.cs | 9 +-
.../Information/SafetyBriefingEdit.aspx.cs | 32 +-
.../SafetyProductionEvaluation.aspx.cs | 2 -
.../Information/SafetyQuarterlyReport.aspx.cs | 2 +-
.../SafetyQuarterlyReportEdit.aspx.cs | 9 +-
.../Information/WorkSummaryReport.aspx.cs | 2 +-
.../Information/WorkSummaryReportEdit.aspx.cs | 2 +-
.../ZHGL/Meeting/CompanySafetyMeeting.aspx.cs | 4 +-
.../Meeting/CompanySpecialMeeting.aspx.cs | 4 +-
.../Meeting/CompanySpecialMeetingView.aspx.cs | 4 +-
.../ZHGL/Plan/ActionPlanList.aspx.cs | 1 -
.../ZHGL/Plan/ActionPlanListView.aspx.cs | 5 +-
SGGL/FineUIPro.Web/ZHGL/Plan/MainPlan.aspx.cs | 2 -
.../ZHGL/Plan/MainPlanEdit.aspx.cs | 7 +-
.../ZHGL/Plan/MainPlanView.aspx.cs | 5 +-
.../ZHGL/Plan/ProjectPlan.aspx.cs | 1 -
.../ZHGL/Plan/TechnicalProposalReview.aspx.cs | 1 -
.../Plan/TechnicalProposalReviewView.aspx.cs | 7 -
.../ZHGL/RealName/SynchroRecord.aspx.cs | 4 +-
.../ZHGL/RealName/SynchroSet.aspx.cs | 2 +-
.../Supervise/SuperviseCheckRectify.aspx.cs | 4 +-
.../SuperviseCheckReportEdit.aspx.cs | 2 +-
SGGL/FineUIPro.Web/common/PageBase.cs | 8 +-
SGGL/FineUIPro.Web/common/main2.aspx.cs | 11 +-
.../common/mainMenu_HJGL.aspx.cs | 120 ++--
.../common/mainMenu_HJGL2.aspx.cs | 7 +-
.../common/mainMenu_HJGL3.aspx.cs | 3 -
.../common/mainMenu_HJGL_AVEVA.aspx.cs | 3 +-
.../common/mainMenu_HSSE2.aspx.cs | 7 +-
.../common/mainMenu_JDGL.aspx.cs | 2 +-
.../common/mainMenu_SYHSE.aspx.cs | 8 +-
.../common/mainMenu_SYHSEN.aspx.cs | 7 +-
SGGL/FineUIPro.Web/index.aspx.cs | 4 +-
SGGL/FineUIPro.Web/indexProject.aspx.cs | 19 +-
.../HJGL/PackagingManageController.cs | 134 +++-
.../HJGL/TrainNumberManageController.cs | 98 ++-
933 files changed, 5897 insertions(+), 7541 deletions(-)
diff --git a/.vs/SGGL_SeDin_New/v17/.wsuo b/.vs/SGGL_SeDin_New/v17/.wsuo
index 87c5769b3caa758bc0ee2f7e2eed575d051ecb80..f2dbb8d22e58454d87ab6d7c948f72dd86c0cb5f 100644
GIT binary patch
delta 2222
zcmcJQT}<0m6u^6LTPW}^u))TMz?iFmj5=CMKM+{A00V?lW`{VDu=3%@<}$S%pnOy|
zw~3I9o`)GjCjOW3;9gwsl*KHLIAVw_ZhO}ReepqOqA7_O1kb^LO*i&1r{46Jd+s^+
zo_qf1o_iaZ(*&++&bryAOU;k)IA`_Y$#KUwtN{FcjqL}&x=C8Yrd6p_)WbxQfz`m0
zddIVQsM?HVDJC*+M>!#C9IMEGplt`rNk|N0Lsn^l(o%68kuxTmQ}z@o3MtBvqR5Y9
z|AZnNu_s4cus10>a
wF4-(AkQGJ$aBbFmbJCx6U~PWy{PCz`jIz~H<1Bk5E(+=LSTg*i<{bY
zVbhqKYW$VS7SKE**A6L;cgrm=2r9qBS9%{Wp&ElZ@5DQeqR#@nTjB{-j}M
zf~6#vUPZZ%6g*uz;Y)UNiK7-nSZ}0-@Me$hE`=|}qbpQq(Toe>lnr~t&>>#a!0(M;
zNfs2%QS(K3tHgpeRZ_a5B=6{`K=jqz;1nnLGRA^AP6%{5q3z{BaN8`*<~Zd?dC)a?
zA9uNux|Dp3puZEyN#t$h6ml9lgS>-`BJUz&$T+ep_7q%W6UU@bVHK08$a4@S8Uy%t
zx}|bdL|z~IRxMp@E|!h4JecQWF7W3Kvqo6TYm#(m$%tMb&dY+c`CVGN>Z!1ty>H|9
zI36l&Toegi7p(NLPViUad1fk`|NQ}B=Sk?>eI{u2F%S5yEflHr%sX_=?7u
z+(s+p7d0Udki_z3+@^<#vdaNdM
zk4nYxhpe}kocNywfmZ{oX*vt1hqCX6ig-hK0UTP3z5g6=?cb%%ftb)h3oHC5F%8xkdd%Hs
zlf~{e+HGAHBMJ_qx7%(u+HBn=4o7KMv8mK6?hK}I`IH7Kmowq~dodz+dQlBiSIVJ%
z(I7f5PcitVHx1H8e_|@3>DO@eVbv=lVSFhazQ1_GL#=;_zC?u
zFK?R8Vq8mwt~z&fD_fpf<%~1f|84P1aSXe)1>7T=8BGpbVQdJq`8q5Xbw$zfCuU|m
AZvX%Q
delta 2112
zcmcgsUrd`-6z{$L3I#s?3shhXu^HR&b6-nKTbT2M66H??3UyAi7+OjdoU>VqQ8%{E
zEV?j=<2w)Yfd^8|vg~cWOPt2&63C)%S@xnNW?A-P=7SouzylA0=Rg}jUDU-GZ~5h%
z`#bl$=kUAtp5$jza!EQnz{)QLYj|F~?3?;(^)}lL6MTaOVZz)m7n)2aj@ZBfrL}hU
zG_0B*AC-}M1hG96qA)G3L~P4&xrSH{`oH3uTD0qEi_tb`eEPNweX<2;D>8odY_Mtc
zNt`Gdq6+OEgo_-uFESvA=S(qq3
z!RlbOxUY~AOSdx{6^W7oF4JSN8(3H=3t7!ZB2gZ)It|3aO8Gx0thfn_+#yyfWtOh)
zWHLR8-G)sdQ8TRvx~%k^vIRjRFd)+;d;REt5Gw(h={A2Mqv!wF@5^_Jw``}GUaLW}
zHVL;Qn!fF-9@q5B#jVWsvN=`9)80-7OPwktd?EO<>50-F+<~q>jgyF(+2EeM5742+
z>!RKM1)Gga=^a=zF?E>;l>&*z0oj5CH5LjIY1xMp4r|@Layfe0KD1eSqGy_=cJc>m
zq`EKxbne2s{$|hSqihH!Tz%j#dJan5Q8oY*?h}@N%#$zH{J9*GJ0u}>EitRrSQ0gm
z4P21N1#ewvx)ar-dZ}S%>t0B-GRyNw^upWC@25K!+1484fmo;s%CP4C8Y_58_xMR!
zNOVu@woX{$DyUq-Q@FupI+q8Ix2IDsMcydMLZXL@MBg;iE0;F!1eHT$>!_cRS!#gm
z0e_*1T28j%Z;Ag`mm?izT(H3nmO8-GgXAAXKg4mT)P9c6AN5bilT2vgt2`Cw>6m8L
zdhxc?jj+4I&S=!-btyi#E2g+2UZ3K1h9io{9rKO2qrS+950z#3hu9orn#oiG$+2YW
zhy;%D2GKBnhk-VAwyi@M3bm^EJL(v5#YRWNVa4TfcokPTjJvvhQN`yP8Fjj&4zDv3
zo}?yBkB$ahpYk%Zkj_Y)C@7d&O&{COpmMCt7BC(8s;7O|hvU5$mgi3nu3x#h`H2aV
zlihZQ)8T0z@kW&9W`{>{c^#_aRa+v8>WsBG)o{y5Eb0+IO_uZ2n>pw1Rx%shx?>gf
z$-8E7OjSYE)Q^U=0@K=3r=--yd}#P?SPY+@XE3!K0`0wqbNh;z9S&cziq!d+8Kkav
z!OeR%F?en*pRZ;-hdL6r%AC4)P|BDDr)Ks-a=Z2$^*H`N
diff --git a/.vs/SGGL_SeDin_New/v17/DocumentLayout.json b/.vs/SGGL_SeDin_New/v17/DocumentLayout.json
index 086d13fc..75ab69a7 100644
--- a/.vs/SGGL_SeDin_New/v17/DocumentLayout.json
+++ b/.vs/SGGL_SeDin_New/v17/DocumentLayout.json
@@ -70,10 +70,6 @@
{
"$type": "Bookmark",
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
- },
- {
- "$type": "Bookmark",
- "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
}
]
}
diff --git a/SGGL/BLL/API/APIBaseInfoService.cs b/SGGL/BLL/API/APIBaseInfoService.cs
index 52a65a14..dbd75469 100644
--- a/SGGL/BLL/API/APIBaseInfoService.cs
+++ b/SGGL/BLL/API/APIBaseInfoService.cs
@@ -93,7 +93,7 @@ namespace BLL
return getDataLists;
}
}
-
+
///
/// +
///
diff --git a/SGGL/BLL/API/APIGetHttpService.cs b/SGGL/BLL/API/APIGetHttpService.cs
index 63e8e9ac..1b5eb5c2 100644
--- a/SGGL/BLL/API/APIGetHttpService.cs
+++ b/SGGL/BLL/API/APIGetHttpService.cs
@@ -18,7 +18,7 @@ namespace BLL
///
public static string Http(string url, string method = "GET", string contenttype = "application/json;charset=utf-8", Hashtable header = null, string data = null)
{
- ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 ;
+ ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = string.IsNullOrEmpty(method) ? "GET" : method;
diff --git a/SGGL/BLL/API/APIPersonService.cs b/SGGL/BLL/API/APIPersonService.cs
index 74b2c0b9..22fc70d4 100644
--- a/SGGL/BLL/API/APIPersonService.cs
+++ b/SGGL/BLL/API/APIPersonService.cs
@@ -1,10 +1,8 @@
using Model;
-using NPOI.SS.Formula.PTG;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
-using System.Web.Security;
namespace BLL
{
diff --git a/SGGL/BLL/API/APIUserService.cs b/SGGL/BLL/API/APIUserService.cs
index d481f636..b8bb2285 100644
--- a/SGGL/BLL/API/APIUserService.cs
+++ b/SGGL/BLL/API/APIUserService.cs
@@ -16,8 +16,8 @@ namespace BLL
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
- var getUser = db.Person_Persons.FirstOrDefault(x =>( x.Account == userInfo.Account || x.Telephone == userInfo.Telephone || x.PersonName == userInfo.Account)
- && x.Password == Funs.EncryptionPassword(userInfo.Password) && (!x.IsPost.HasValue || x.IsPost == true)
+ var getUser = db.Person_Persons.FirstOrDefault(x => (x.Account == userInfo.Account || x.Telephone == userInfo.Telephone || x.PersonName == userInfo.Account)
+ && x.Password == Funs.EncryptionPassword(userInfo.Password) && (!x.IsPost.HasValue || x.IsPost == true)
&& (x.Account.Length > 1 || x.PersonId == Const.hfnbdId || x.PersonId == Const.sysglyId));
if (getUser != null)
{
@@ -107,8 +107,8 @@ namespace BLL
{
var getUser = (from x in db.Person_Persons
join y in db.Sys_Role on x.RoleIds equals y.RoleId
- where x.UnitId == unitId && x.IsPost == true && (strParam == null || x.PersonName.Contains(strParam))
- && x.RoleIds .Length > 1 && x.Account.Length > 1
+ where x.UnitId == unitId && x.IsPost == true && (strParam == null || x.PersonName.Contains(strParam))
+ && x.RoleIds.Length > 1 && x.Account.Length > 1
orderby x.PersonName
select new Model.BaseInfoItem { BaseInfoId = x.PersonId, BaseInfoName = x.PersonName, BaseInfoCode = x.Telephone }).ToList();
@@ -131,10 +131,10 @@ namespace BLL
List roleList = Funs.GetStrListByStr(roleIds, ',');
if (!string.IsNullOrEmpty(projectId))
{
- var getDatas = from x in db.Person_Persons
+ var getDatas = from x in db.Person_Persons
join y in db.SitePerson_Person on x.PersonId equals y.PersonId
- where y.ProjectId == projectId && y.States == Const.State_1 && y.RoleIds.Length>1 && x.Account.Length > 1
- select new Model.UserItem
+ where y.ProjectId == projectId && y.States == Const.State_1 && y.RoleIds.Length > 1 && x.Account.Length > 1
+ select new Model.UserItem
{
PersonId = x.PersonId,
Account = x.Account,
@@ -173,27 +173,27 @@ namespace BLL
}
else
{
- var getPersons =from x in db.Person_Persons
- where x.IsPost == true && x.RoleIds.Length>1 && x.Account.Length > 1
- select new Model.UserItem
- {
- PersonId = x.PersonId,
- Account = x.Account,
- UserCode = x.JobNum,
- Password = x.Password,
- PersonName = x.PersonName,
- RoleId = x.RoleIds,
- RoleName = db.Sys_Role.First(z => z.RoleId == x.RoleIds).RoleName,
- UnitId = x.UnitId,
- UnitName = db.Base_Unit.First(z => z.UnitId == x.UnitId).UnitName,
- //LoginProjectId = y.ProjectId,
- //LoginProjectName = db.Base_Project.First(z => z.ProjectId == y.ProjectId).ProjectName,
- IdentityCard = x.IdentityCard,
- Email = x.Email,
- Telephone = x.Telephone,
- IsOffice = x.IsOffice,
- SignatureUrl = x.SignatureUrl.Replace('\\', '/'),
- };
+ var getPersons = from x in db.Person_Persons
+ where x.IsPost == true && x.RoleIds.Length > 1 && x.Account.Length > 1
+ select new Model.UserItem
+ {
+ PersonId = x.PersonId,
+ Account = x.Account,
+ UserCode = x.JobNum,
+ Password = x.Password,
+ PersonName = x.PersonName,
+ RoleId = x.RoleIds,
+ RoleName = db.Sys_Role.First(z => z.RoleId == x.RoleIds).RoleName,
+ UnitId = x.UnitId,
+ UnitName = db.Base_Unit.First(z => z.UnitId == x.UnitId).UnitName,
+ //LoginProjectId = y.ProjectId,
+ //LoginProjectName = db.Base_Project.First(z => z.ProjectId == y.ProjectId).ProjectName,
+ IdentityCard = x.IdentityCard,
+ Email = x.Email,
+ Telephone = x.Telephone,
+ IsOffice = x.IsOffice,
+ SignatureUrl = x.SignatureUrl.Replace('\\', '/'),
+ };
if (!string.IsNullOrEmpty(unitId))
{
@@ -236,7 +236,7 @@ namespace BLL
join y in db.SitePerson_Person on x.PersonId equals y.PersonId
join z in db.Project_ProjectUnit on x.UnitId equals z.UnitId
where y.ProjectId == projectId && z.ProjectId == projectId && z.UnitType == unitType && y.States == Const.State_1
- && (strParam == null || x.PersonName.Contains(strParam)) && y.RoleIds.Length>1 && x.Account.Length > 1
+ && (strParam == null || x.PersonName.Contains(strParam)) && y.RoleIds.Length > 1 && x.Account.Length > 1
select new Model.UserItem
{
PersonId = x.PersonId,
@@ -268,7 +268,7 @@ namespace BLL
join y in db.SitePerson_Person on x.PersonId equals y.PersonId
join z in db.Project_ProjectUnit on x.UnitId equals z.UnitId
where y.ProjectId == projectId && z.ProjectId == projectId && z.UnitType == unitType && y.States == Const.State_1
- && (strParam == null || x.PersonName.Contains(strParam)) && y.RoleIds.Contains(item) && y.RoleIds.Length>1 && x.Account.Length > 1
+ && (strParam == null || x.PersonName.Contains(strParam)) && y.RoleIds.Contains(item) && y.RoleIds.Length > 1 && x.Account.Length > 1
select new Model.UserItem
{
PersonId = x.PersonId,
@@ -348,7 +348,7 @@ namespace BLL
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var getUser = db.Person_Persons.FirstOrDefault(x => x.PersonId == personId);
- if (getUser != null&&!string .IsNullOrEmpty(SignatureUrl))
+ if (getUser != null && !string.IsNullOrEmpty(SignatureUrl))
{
getUser.SignatureUrl = SignatureUrl;
db.SubmitChanges();
@@ -445,7 +445,7 @@ namespace BLL
{
var getDatas = (from x in db.Person_Persons
join y in db.SitePerson_Person on x.PersonId equals y.PersonId
- where y.ProjectId == projectId && y.States == Const.State_1 && y.RoleIds.Length>1 && x.Account.Length > 1
+ where y.ProjectId == projectId && y.States == Const.State_1 && y.RoleIds.Length > 1 && x.Account.Length > 1
select new Model.UserItem
{
PersonId = x.PersonId,
diff --git a/SGGL/BLL/API/HJGL/APIHJGLIndexService.cs b/SGGL/BLL/API/HJGL/APIHJGLIndexService.cs
index 37d17258..3a888a2b 100644
--- a/SGGL/BLL/API/HJGL/APIHJGLIndexService.cs
+++ b/SGGL/BLL/API/HJGL/APIHJGLIndexService.cs
@@ -1,12 +1,8 @@
using System;
-using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Model;
namespace BLL
{
- public class APIHJGLIndexService
+ public class APIHJGLIndexService
{
public static Model.HJGLIndexItem GetJGLIndexItem(string projectid)
{
@@ -37,7 +33,8 @@ namespace BLL
UnitWorkName = z.UnitWorkName,
MaterialCode = z.MaterialCode
}).ToList();
- var tb_type06 = getCH_CheckItemList.GroupBy(x => x.JointAttribute).Select(x => new {
+ var tb_type06 = getCH_CheckItemList.GroupBy(x => x.JointAttribute).Select(x => new
+ {
JointAttribute = x.Key,
Current_pass_film = x.Sum(m => m.CHT_PassFilm) ?? 0,
Cht_totalfilm = x.Sum(m => m.CHT_TotalFilm) ?? 0
@@ -46,16 +43,16 @@ namespace BLL
var XC_model = tb_type06.Where(x => x.JointAttribute == "安装口").FirstOrDefault();
double PassRate1 = 0;
double PassRate2 = 0;
- if (GC_model!=null &&GC_model.Cht_totalfilm>0)
+ if (GC_model != null && GC_model.Cht_totalfilm > 0)
{
PassRate1 = Math.Round((100 * GC_model.Current_pass_film * 1.0) / GC_model.Cht_totalfilm, 1);
}
- if (XC_model!=null&& XC_model.Cht_totalfilm > 0)
+ if (XC_model != null && XC_model.Cht_totalfilm > 0)
{
PassRate2 = Math.Round((100 * XC_model.Current_pass_film * 1.0) / XC_model.Cht_totalfilm, 1);
}
- hJGLIndexItem.GCFirstPassRate = PassRate1.ToString()+" %";
- hJGLIndexItem.XCFirstPassRate = PassRate2.ToString()+" %";
+ hJGLIndexItem.GCFirstPassRate = PassRate1.ToString() + " %";
+ hJGLIndexItem.XCFirstPassRate = PassRate2.ToString() + " %";
hJGLIndexItem.GCProgress = BLL.HJGL_WeldingReportService.GetGCRate_finished(projectid).ToString() + "/" + HJGL_WeldingReportService.GetSumSize(projectid, 1).ToString() + " DIN";
hJGLIndexItem.XCProgress = BLL.HJGL_WeldingReportService.GetXCRate_finished(projectid).ToString() + "/" + HJGL_WeldingReportService.GetSumSize(projectid, 2).ToString() + " DIN";
@@ -66,12 +63,12 @@ namespace BLL
}
else
{
- hJGLIndexItem.PipePrefabricationRate = Math.Floor(Math.Round(decimal.Parse((PipeRate1 / (PipeRate1 + PipeRate2)).ToString("0.000")), 2) * 100).ToString()+" %";
+ hJGLIndexItem.PipePrefabricationRate = Math.Floor(Math.Round(decimal.Parse((PipeRate1 / (PipeRate1 + PipeRate2)).ToString("0.000")), 2) * 100).ToString() + " %";
}
- hJGLIndexItem.GCWelderEfficacy = HJGL_WeldingReportService.GetWelderEfficacy_GC(projectid).ToString()+" DIN/天";
- hJGLIndexItem.XCWelderEfficacy = HJGL_WeldingReportService.GetWelderEfficacy_XC(projectid).ToString()+" DIN/天";
+ hJGLIndexItem.GCWelderEfficacy = HJGL_WeldingReportService.GetWelderEfficacy_GC(projectid).ToString() + " DIN/天";
+ hJGLIndexItem.XCWelderEfficacy = HJGL_WeldingReportService.GetWelderEfficacy_XC(projectid).ToString() + " DIN/天";
return hJGLIndexItem;
}
diff --git a/SGGL/BLL/API/HJGL/APINDETrustService.cs b/SGGL/BLL/API/HJGL/APINDETrustService.cs
index f72da822..6d9b39a9 100644
--- a/SGGL/BLL/API/HJGL/APINDETrustService.cs
+++ b/SGGL/BLL/API/HJGL/APINDETrustService.cs
@@ -1,5 +1,4 @@
-using FineUIPro;
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
@@ -263,13 +262,13 @@ namespace BLL
///
///
///
- public static string ManualPointSave(string weldJointId)
+ public static string ManualPointSave(string weldJointId)
{
- string res = "";
+ string res = "";
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var PointBatchItemModel = db.HJGL_Batch_PointBatchItem.FirstOrDefault(e => e.WeldJointId == weldJointId);
- var PointBatchId= PointBatchItemModel.PointBatchId;
+ var PointBatchId = PointBatchItemModel.PointBatchId;
var batch = BLL.PointBatchService.GetPointBatchById(PointBatchId);
if (!batch.EndDate.HasValue)
{
@@ -290,7 +289,7 @@ namespace BLL
where z.PointBatchId == PointBatchId
select x).FirstOrDefault();
if (pipeline != null)
- {
+ {
Model.Base_DetectionRate rate = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(pipeline.DetectionRateId);
if (rate != null)
{
@@ -310,13 +309,13 @@ namespace BLL
select x).Count();
if (weldJoint.JointAttribute == "安装口" && pointGNum >= pointNumG)
{
- res = "安装口已达检测标准,无需再点此安装口!";
+ res = "安装口已达检测标准,无需再点此安装口!";
return res;
}
if (weldJoint.JointAttribute == "预制口" && pointNotGNum >= pointNumA)
{
res = "预制口已达检测标准,无需再点此预制口!";
- return res;
+ return res;
}
}
}
@@ -354,7 +353,7 @@ namespace BLL
if (weldJoint.JointAttribute == "安装口" && pointGNum >= pointNumG)
{
res = "安装口已达检测标准,无需再点此安装口!";
- return res;
+ return res;
}
if (weldJoint.JointAttribute == "预制口" && pointNotGNum >= pointNumA)
{
@@ -365,7 +364,7 @@ namespace BLL
}
}
PointBatchDetailService.UpdatePointBatchDetail(PointBatchItemModel.PointBatchItemId, "1", System.DateTime.Now);
-
+
}
else
@@ -375,7 +374,7 @@ namespace BLL
}
return res;
- }
+ }
#region 点口调整
///
/// 点口调整
diff --git a/SGGL/BLL/API/HJGL/APIPackagingManageService.cs b/SGGL/BLL/API/HJGL/APIPackagingManageService.cs
index 8e5c0e25..b381035f 100644
--- a/SGGL/BLL/API/HJGL/APIPackagingManageService.cs
+++ b/SGGL/BLL/API/HJGL/APIPackagingManageService.cs
@@ -1,43 +1,40 @@
-using System;
+using Model;
+using System;
using System.Collections.Generic;
using System.Linq;
-using System.Security.Cryptography;
-using System.Text;
-using System.Threading.Tasks;
-using Model;
namespace BLL
{
- public class APIPackagingManageService
+ public class APIPackagingManageService
{
public static List GetPackagingManageList(string projectId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var q = (from x in db.HJGL_PackagingManage
- join n in db.Base_Project on x.ProjectId equals n.ProjectId
- join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into tt
- from t in tt.DefaultIfEmpty()
- where x.ProjectId == projectId
- select new PackagingManageDetailItem
- {
- PackagingManageId = x.PackagingManageId,
- PackagingCode = x.PackagingCode,
- ProjectName = n.ProjectName,
- ContactName = x.ContactName,
- ContactPhone = x.ContactPhone,
- StackingPosition = x.StackingPosition,
- State= x.State,
- ReceiveMan=t.PersonName,
- ReceiveDate = string.Format("{0:g}", x.ReceiveDate),
- TrainNumber=x.TrainNumber,
- }).Distinct();
+ join n in db.Base_Project on x.ProjectId equals n.ProjectId
+ join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into tt
+ from t in tt.DefaultIfEmpty()
+ where x.ProjectId == projectId
+ select new PackagingManageDetailItem
+ {
+ PackagingManageId = x.PackagingManageId,
+ PackagingCode = x.PackagingCode,
+ ProjectName = n.ProjectName,
+ ContactName = x.ContactName,
+ ContactPhone = x.ContactPhone,
+ StackingPosition = x.StackingPosition,
+ State = x.State,
+ ReceiveMan = t.PersonName,
+ ReceiveDate = string.Format("{0:g}", x.ReceiveDate),
+ TrainNumber = x.TrainNumber,
+ }).Distinct();
return q.ToList();
}
}
- public static Model.PackagingManageItem GetPackagingInformationById(string projectId,string personId, string packagingManageId)
+ public static Model.PackagingManageItem GetPackagingInformationById(string projectId, string personId, string packagingManageId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
@@ -54,41 +51,41 @@ namespace BLL
PackagingManageId = x.PackagingManageId,
PackagingCode = x.PackagingCode,
ProjectName = n.ProjectName,
- ProjectId = x.ProjectId,
+ ProjectId = x.ProjectId,
ContactName = x.ContactName,
ContactPhone = x.ContactPhone,
StackingPosition = x.StackingPosition,
- State =x.State,
+ State = x.State,
ReceiveMan = t.PersonName,
ReceiveDate = string.Format("{0:g}", x.ReceiveDate),
TrainNumber = x.TrainNumber,
}).FirstOrDefault();
- var tb_packing = (from x in db.HJGL_PackagingManage where x.PackagingManageId==packagingManageId select x ).FirstOrDefault() ;
+ var tb_packing = (from x in db.HJGL_PackagingManage where x.PackagingManageId == packagingManageId select x).FirstOrDefault();
var PipelineComponentIdList = tb_packing?.PipelineComponentId?.Split(',');
if (PipelineComponentIdList != null && PipelineComponentIdList.Count() > 0)
{
packagingPrepipeItem = (from x in db.HJGL_Pipeline_Component
- join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
- join z in db.WBS_UnitWork on y.UnitWorkId equals z.UnitWorkId
- where PipelineComponentIdList.Contains(x.PipelineComponentId)
- select new PackagingPrepipeItem
- {
- PipelineComponentId = x.PipelineComponentId,
- PipelineComponentCode = x.PipelineComponentCode,
- PreUnit = "1/个",
- UnitWorkName = z.UnitWorkName,
- PlanStartDate = string.Format("{0:g}", y.PlanStartDate),
+ join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
+ join z in db.WBS_UnitWork on y.UnitWorkId equals z.UnitWorkId
+ where PipelineComponentIdList.Contains(x.PipelineComponentId)
+ select new PackagingPrepipeItem
+ {
+ PipelineComponentId = x.PipelineComponentId,
+ PipelineComponentCode = x.PipelineComponentCode,
+ PreUnit = "1/个",
+ UnitWorkName = z.UnitWorkName,
+ PlanStartDate = string.Format("{0:g}", y.PlanStartDate),
- }).ToList();
+ }).ToList();
}
-
+
bool isPower = Person_PersonsService.IsGeneralUnitByPersonId(personId, projectId);
if (!isPower)
{
- var roleList= Person_PersonsService.GetRoleListByProjectIdPersonId(projectId, personId);
+ var roleList = Person_PersonsService.GetRoleListByProjectIdPersonId(projectId, personId);
if (roleList.Contains(Const.CQEngineer))
{
- isPower=true;
+ isPower = true;
}
}
packagingManageItem.packagingManageDetailItem = q;
@@ -99,10 +96,10 @@ namespace BLL
}
}
- public static void GetPackingInfoConfirmArrival(string packagingManageId,string PersonId)
+ public static void GetPackingInfoConfirmArrival(string packagingManageId, string PersonId)
{
- var q= BLL.HJGLPackagingmanageService.GetHJGL_PackagingManageById(packagingManageId);
- if (q!=null)
+ var q = BLL.HJGLPackagingmanageService.GetHJGL_PackagingManageById(packagingManageId);
+ if (q != null)
{
q.State = HJGLPackagingmanageService.state_2;
q.ReceiveMan = PersonId;
@@ -152,7 +149,7 @@ namespace BLL
PackagingManageId = table.PackagingManageId,
PipelineId = ComponentModel.PipelineId,
PipelineComponentId = item,
- CreateTime = DateTime.Now,
+ CreateTime = DateTime.Now,
};
newDetailList.Add(model);
}
@@ -160,7 +157,44 @@ namespace BLL
HJGLPackagingmanagedetailService.DeleteByPackagingManageId(table.PackagingManageId);
HJGLPackagingmanagedetailService.AddBulk(newDetailList);
- }
+ }
+ }
+ ///
+ /// 新增或更新包装信息(Id为空则新增,否则更新),返回创建或更新后的Id。
+ ///
+ public static string AddOrUpdatePackaging(Model.HJGL_PackagingManage model)
+ {
+ if (model == null)
+ throw new ArgumentNullException(nameof(model));
+
+ if (string.IsNullOrEmpty(model.PackagingManageId))
+ {
+ // 新增
+ model.PackagingManageId = SQLHelper.GetNewID(typeof(Model.HJGL_PackagingManage));
+ HJGLPackagingmanageService.AddHJGL_PackagingManage(model);
+ return model.PackagingManageId;
+ }
+ else
+ {
+ // 修改
+ var exist = HJGLPackagingmanageService.GetHJGL_PackagingManageById(model.PackagingManageId);
+ if (exist == null)
+ {
+ HJGLPackagingmanageService.AddHJGL_PackagingManage(model);
+ return model.PackagingManageId;
+ }
+ else
+ {
+ HJGLPackagingmanageService.UpdateHJGL_PackagingManage(model);
+ return model.PackagingManageId;
+ }
+ }
+ }
+
+
+ public static string GetNewPackagingCode(string projectId)
+ {
+ return HJGLPackagingmanageService.GetNewPackagingCode(projectId);
}
}
}
diff --git a/SGGL/BLL/API/HJGL/APIPipeJointService.cs b/SGGL/BLL/API/HJGL/APIPipeJointService.cs
index 4fae36da..80b20f82 100644
--- a/SGGL/BLL/API/HJGL/APIPipeJointService.cs
+++ b/SGGL/BLL/API/HJGL/APIPipeJointService.cs
@@ -37,7 +37,7 @@ namespace BLL
{
// 从数据库中获取符合条件的管线数据
var pipelines = db.HJGL_Pipeline
- .Where(p =>p.ProjectId==projectid&& p.PipelineCode.Contains(pipelineCode))
+ .Where(p => p.ProjectId == projectid && p.PipelineCode.Contains(pipelineCode))
.OrderBy(p => p.PipelineCode)
.ToList();
return pipelines;
diff --git a/SGGL/BLL/API/HJGL/APIPipelineComponentService.cs b/SGGL/BLL/API/HJGL/APIPipelineComponentService.cs
index 69132cea..67a1d64e 100644
--- a/SGGL/BLL/API/HJGL/APIPipelineComponentService.cs
+++ b/SGGL/BLL/API/HJGL/APIPipelineComponentService.cs
@@ -1,14 +1,11 @@
-using NPOI.OpenXmlFormats.Shared;
+using Model;
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Model;
namespace BLL
{
- public class APIPipelineComponentService
+ public class APIPipelineComponentService
{
public static List GetPackagingManageList(string projectid)
{
@@ -16,25 +13,25 @@ namespace BLL
{
var q = (from x in db.HJGL_Pipeline_Component
- join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
- join z in db.Base_Unit on x.PreUnit equals z.UnitId into tt
- join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into pp
+ join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
+ join z in db.Base_Unit on x.PreUnit equals z.UnitId into tt
+ join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into pp
from t in tt.DefaultIfEmpty()
from p in pp.DefaultIfEmpty()
where y.ProjectId == projectid
- select new PipelineComponentItem
- {
- PipelineComponentId = x.PipelineComponentId,
- PipelineComponentCode = x.PipelineComponentCode,
- PreUnit = t.UnitName,
- DrawingName = x.DrawingName,
- BoxNumber = x.BoxNumber,
- State = x.State,
- PlanStartDate = string.Format("{0:g}", y.PlanStartDate) ,
- QRCode = x.QRCode,
- ReceiveMan=p.PersonName,
- ReceiveDate= string.Format("{0:g}", x.ReceiveDate)
- }).Distinct();
+ select new PipelineComponentItem
+ {
+ PipelineComponentId = x.PipelineComponentId,
+ PipelineComponentCode = x.PipelineComponentCode,
+ PreUnit = t.UnitName,
+ DrawingName = x.DrawingName,
+ BoxNumber = x.BoxNumber,
+ State = x.State,
+ PlanStartDate = string.Format("{0:g}", y.PlanStartDate),
+ QRCode = x.QRCode,
+ ReceiveMan = p.PersonName,
+ ReceiveDate = string.Format("{0:g}", x.ReceiveDate)
+ }).Distinct();
return q.ToList();
}
@@ -52,8 +49,8 @@ namespace BLL
from t in tt.DefaultIfEmpty()
from p in pp.DefaultIfEmpty()
join unitwork in db.WBS_UnitWork on y.UnitWorkId equals unitwork.UnitWorkId into unitworks
- from unitwork in unitworks.DefaultIfEmpty()
- where x.PipelineComponentId== PipelineComponentId
+ from unitwork in unitworks.DefaultIfEmpty()
+ where x.PipelineComponentId == PipelineComponentId
select new PipelineComponentItem
{
PipelineComponentId = x.PipelineComponentId,
@@ -61,12 +58,12 @@ namespace BLL
PreUnit = t.UnitName,
DrawingName = x.DrawingName,
BoxNumber = x.BoxNumber,
- State = x.State,
+ State = x.State,
PlanStartDate = string.Format("{0:g}", y.PlanStartDate),
QRCode = x.QRCode,
ReceiveMan = p.PersonName,
ReceiveDate = string.Format("{0:g}", x.ReceiveDate),
- UnitWorkName=unitwork.UnitWorkName,
+ UnitWorkName = unitwork.UnitWorkName,
Remark = x.Remark
}).FirstOrDefault();
if (q != null)
@@ -84,7 +81,7 @@ namespace BLL
}
}
- public static void GetComponentConfirmArrival(string PipelineComponentId,string PersonId,string message)
+ public static void GetComponentConfirmArrival(string PipelineComponentId, string PersonId, string message)
{
var q = BLL.HJGL_PipelineComponentService.GetPipelineComponentById(PipelineComponentId);
if (q != null)
@@ -92,7 +89,7 @@ namespace BLL
if (!string.IsNullOrEmpty(message))
{
q.State = HJGL_PipelineComponentService.StatePenRec;
- q.Remark=message;
+ q.Remark = message;
}
else
{
diff --git a/SGGL/BLL/API/HJGL/APIPreWeldingDailyService.cs b/SGGL/BLL/API/HJGL/APIPreWeldingDailyService.cs
index abc781ce..198c7671 100644
--- a/SGGL/BLL/API/HJGL/APIPreWeldingDailyService.cs
+++ b/SGGL/BLL/API/HJGL/APIPreWeldingDailyService.cs
@@ -1,11 +1,7 @@
-
-using NPOI.SS.Formula.Functions;
-using System;
+using System;
using System.Collections.Generic;
using System.Data;
-using System.Data.SqlClient;
using System.Linq;
-using static QRCoder.PayloadGenerator;
namespace BLL
{
@@ -237,7 +233,7 @@ namespace BLL
ProjectId = newItem.ProjectId,
UnitWorkId = newItem.UnitWorkId,
UnitId = newItem.UnitId,
- WeldingDate = newItem.WeldingDate,
+ WeldingDate = newItem.WeldingDate,
Tabler = newItem.Tabler,
TableDate = newItem.TableDate,
Remark = newItem.Remark,
@@ -257,54 +253,55 @@ namespace BLL
}
#endregion
- public static string SaveWeldingDailyByWeldJointId(string WeldJointId, string Personid, string time)
+ public static string SaveWeldingDailyByWeldJointId(string WeldJointId, string Personid, string time)
{
string res = "";
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
- {
- try {
- var peson=db.Person_Persons.FirstOrDefault(x => x.PersonId == Personid);
- if (peson == null)
+ {
+ try
{
- res = "人员不存在";
- return res;
- }
- var joint = db.View_HJGL_WeldJoint.FirstOrDefault(x => x.WeldJointId == WeldJointId);
- if (joint == null)
- {
- res = "焊口不存在";
- return res;
- }
- var weldingDaily = db.HJGL_WeldingDaily.FirstOrDefault(x => x.WeldingDate.Value.Date == Convert.ToDateTime(time).Date && x.UnitWorkId == joint.UnitWorkId);
- var weldTask=db.HJGL_WeldTask.FirstOrDefault(x=>x.WeldJointId==joint.WeldJointId);
- if (weldingDaily == null)
- {
- string perfix = string.Format("{0:yyyyMMdd}", System.DateTime.Now) + "-" + peson.PersonName + "-";
- weldingDaily = new Model.HJGL_WeldingDaily();
- weldingDaily.WeldingDailyId = Guid.NewGuid().ToString();
- weldingDaily.WeldingDailyCode = BLL.SQLHelper.RunProcNewId("SpGetThreeNumber", "dbo.HJGL_WeldingDaily", "WeldingDailyCode", joint.ProjectId, perfix);
- weldingDaily.WeldingDate = Convert.ToDateTime(time).Date;
- weldingDaily.ProjectId = joint.ProjectId;
- weldingDaily.UnitWorkId = joint.UnitWorkId;
- weldingDaily.UnitId = weldTask?.UnitId;
- weldingDaily.Tabler = Personid;
- weldingDaily.TableDate = Convert.ToDateTime(time).Date;
- db.HJGL_WeldingDaily.InsertOnSubmit(weldingDaily);
- db.SubmitChanges();
- }
- BLL.HJGL_PipelineComponentjointService.UpdateStateByWeldJointId(WeldJointId, (DateTime)weldingDaily.WeldingDate);//更改预制口实际时间和状态
- PipelineService.UpdataDateByWeldJointId(WeldJointId);//更改安装口时间和状态
+ var peson = db.Person_Persons.FirstOrDefault(x => x.PersonId == Personid);
+ if (peson == null)
+ {
+ res = "人员不存在";
+ return res;
+ }
+ var joint = db.View_HJGL_WeldJoint.FirstOrDefault(x => x.WeldJointId == WeldJointId);
+ if (joint == null)
+ {
+ res = "焊口不存在";
+ return res;
+ }
+ var weldingDaily = db.HJGL_WeldingDaily.FirstOrDefault(x => x.WeldingDate.Value.Date == Convert.ToDateTime(time).Date && x.UnitWorkId == joint.UnitWorkId);
+ var weldTask = db.HJGL_WeldTask.FirstOrDefault(x => x.WeldJointId == joint.WeldJointId);
+ if (weldingDaily == null)
+ {
+ string perfix = string.Format("{0:yyyyMMdd}", System.DateTime.Now) + "-" + peson.PersonName + "-";
+ weldingDaily = new Model.HJGL_WeldingDaily();
+ weldingDaily.WeldingDailyId = Guid.NewGuid().ToString();
+ weldingDaily.WeldingDailyCode = BLL.SQLHelper.RunProcNewId("SpGetThreeNumber", "dbo.HJGL_WeldingDaily", "WeldingDailyCode", joint.ProjectId, perfix);
+ weldingDaily.WeldingDate = Convert.ToDateTime(time).Date;
+ weldingDaily.ProjectId = joint.ProjectId;
+ weldingDaily.UnitWorkId = joint.UnitWorkId;
+ weldingDaily.UnitId = weldTask?.UnitId;
+ weldingDaily.Tabler = Personid;
+ weldingDaily.TableDate = Convert.ToDateTime(time).Date;
+ db.HJGL_WeldingDaily.InsertOnSubmit(weldingDaily);
+ db.SubmitChanges();
+ }
+ BLL.HJGL_PipelineComponentjointService.UpdateStateByWeldJointId(WeldJointId, (DateTime)weldingDaily.WeldingDate);//更改预制口实际时间和状态
+ PipelineService.UpdataDateByWeldJointId(WeldJointId);//更改安装口时间和状态
var batchC = BLL.Project_SysSetService.GetSysSetBySetId("5", joint.ProjectId);
- if (batchC != null)
- {
- string batchCondition = batchC.SetValue;
- InsertWeldingDailyItem(WeldJointId, Personid, Personid, joint.JointAttribute, weldingDaily.WeldingDate, batchCondition, true, weldingDaily.WeldingDailyId, joint.ProjectId);
- }
- BLL.WeldJointService.UpdateWeldJointAddG(WeldJointId, joint.JointAttribute, Const.BtnAdd);
+ if (batchC != null)
+ {
+ string batchCondition = batchC.SetValue;
+ InsertWeldingDailyItem(WeldJointId, Personid, Personid, joint.JointAttribute, weldingDaily.WeldingDate, batchCondition, true, weldingDaily.WeldingDailyId, joint.ProjectId);
+ }
+ BLL.WeldJointService.UpdateWeldJointAddG(WeldJointId, joint.JointAttribute, Const.BtnAdd);
}
catch (Exception ex)
{
- APICommonService.SaveSysAPILog("erro", ex.ToString(),"-1");
+ APICommonService.SaveSysAPILog("erro", ex.ToString(), "-1");
}
}
@@ -463,9 +460,9 @@ namespace BLL
///
private static string InsertWeldingDailyItem(string weldJointId, string coverWelderId, string backingWelderId, string jointAttribute, DateTime? weldingDate, string batchCondition, bool isSave, string weldingDailyId, string projectId)
{
- string errlog = string.Empty;
+ string errlog = string.Empty;
var newWeldJoint = BLL.WeldJointService.GetWeldJointByWeldJointId(weldJointId);
- var pipeline = BLL.PipelineService.GetPipelineByPipelineId(newWeldJoint.PipelineId);
+ var pipeline = BLL.PipelineService.GetPipelineByPipelineId(newWeldJoint.PipelineId);
var weldingDaily = BLL.WeldingDailyService.GetPipeline_WeldingDailyByWeldingDailyId(weldingDailyId);
if (newWeldJoint != null /*&& string.IsNullOrEmpty(newWeldJoint.WeldingDailyId)*/)
{
diff --git a/SGGL/BLL/API/HJGL/APITrainNumberManagerService.cs b/SGGL/BLL/API/HJGL/APITrainNumberManagerService.cs
index aa7e5475..b0de9b18 100644
--- a/SGGL/BLL/API/HJGL/APITrainNumberManagerService.cs
+++ b/SGGL/BLL/API/HJGL/APITrainNumberManagerService.cs
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
@@ -15,13 +12,17 @@ namespace BLL
///
public static void SaveTrainInfoConfirmArrival(string id, string PersonId)
{
- var model=TrainNumberManageService.GetModelById(id);
- if (model!=null)
+ var model = TrainNumberManageService.GetModelById(id);
+ if (model != null)
{
model.ReceiveDate = DateTime.Now;
TrainNumberManageService.Update(model);
}
- var packManagerList= HJGLPackagingmanageService.GetPackagingManage(id);
+ else
+ {
+ throw new Exception("车次信息有误,请检查!");
+ }
+ var packManagerList = HJGLPackagingmanageService.GetPackagingManage(id);
foreach (var item in packManagerList)
{
BLL.APIPackagingManageService.GetPackingInfoConfirmArrival(item.PackagingManageId, PersonId);
@@ -65,13 +66,52 @@ namespace BLL
{
throw new Exception("未找到对应的包装信息");
}
- if (packModel.State != HJGLPackagingmanageService.state_0)
+ /*if (packModel.State != HJGLPackagingmanageService.state_0)
{
throw new Exception("当前包装状态不可修改车次号");
- }
+ }*/
packModel.TrainNumberId = null;
packModel.TrainNumber = null;
HJGLPackagingmanageService.UpdateHJGL_PackagingManage(packModel);
}
+
+ ///
+ /// 新增或更新车次信息。若 model.Id 为空则新增,否则修改。返回创建或更新后的Id。
+ /// 新增时 State=0,ReceiveDate=null;修改时保持原有 State 和 ReceiveDate。
+ ///
+ public static string AddOrUpdateTrainNumber(Model.HJGL_TrainNumberManage model)
+ {
+ if (model == null)
+ {
+ throw new ArgumentNullException(nameof(model));
+ }
+
+ if (string.IsNullOrEmpty(model.Id))
+ {
+ // 新增
+ model.Id = SQLHelper.GetNewID(typeof(Model.HJGL_TrainNumberManage));
+ model.ReceiveDate = null;
+ TrainNumberManageService.Add(model);
+ return model.Id;
+ }
+ else
+ {
+ // 修改
+ var exist = TrainNumberManageService.GetModelById(model.Id);
+ if (exist == null)
+ {
+ model.ReceiveDate = null;
+ TrainNumberManageService.Add(model);
+ return model.Id;
+ }
+ else
+ {
+ // 保持原有ReceiveDate
+ model.ReceiveDate = exist.ReceiveDate;
+ TrainNumberManageService.Update(model);
+ return model.Id;
+ }
+ }
+ }
}
}
diff --git a/SGGL/BLL/API/HSSE/APICheckSpecialService.cs b/SGGL/BLL/API/HSSE/APICheckSpecialService.cs
index 960422dd..aa4b3702 100644
--- a/SGGL/BLL/API/HSSE/APICheckSpecialService.cs
+++ b/SGGL/BLL/API/HSSE/APICheckSpecialService.cs
@@ -106,7 +106,7 @@ namespace BLL
{
CheckSpecialId = newItem.CheckSpecialId,
CheckSpecialCode = newItem.CheckSpecialCode,
- // CheckItemSetId = newItem.CheckItemSetId,
+ // CheckItemSetId = newItem.CheckItemSetId,
CheckType = newItem.CheckType,
ProjectId = newItem.ProjectId,
CheckPerson = newItem.CheckPersonId,
@@ -119,7 +119,7 @@ namespace BLL
CompileMan = newItem.CompileManId,
States = Const.State_0,
};
- var getCheckSet=db.Technique_CheckItemSet.FirstOrDefault(x=>x.CheckItemSetId == newItem.CheckItemSetId);
+ var getCheckSet = db.Technique_CheckItemSet.FirstOrDefault(x => x.CheckItemSetId == newItem.CheckItemSetId);
if (getCheckSet != null)
{
newCheckSpecial.CheckItemSetId = newItem.CheckItemSetId;
@@ -318,7 +318,7 @@ namespace BLL
LimitedDate = Funs.GetNewDateTime(newDetail.LimitedDate),
CompletedDate = Funs.GetNewDateTime(newDetail.CompletedDate),
Suggestions = newDetail.Suggestions,
- // WorkArea = newDetail.WorkArea,
+ // WorkArea = newDetail.WorkArea,
CheckArea = newDetail.WorkAreaId,
CheckContent = newDetail.CheckContent,
};
diff --git a/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs b/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs
index 984e0eb3..9e76ea3a 100644
--- a/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs
+++ b/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs
@@ -82,8 +82,8 @@ namespace BLL
RegisterTypes2Id = string.IsNullOrEmpty(hazardRegister.RegisterTypes2Id) ? null : hazardRegister.RegisterTypes2Id,
RegisterTypes3Id = string.IsNullOrEmpty(hazardRegister.RegisterTypes3Id) ? null : hazardRegister.RegisterTypes3Id,
RegisterTypes4Id = string.IsNullOrEmpty(hazardRegister.RegisterTypes4Id) ? null : hazardRegister.RegisterTypes4Id,
- WorkPackageId=WorkPackageService.getWorkPageIdsByControlItemAndCycle(hazardRegister.WorkPackageId, null),
- WorkPackageName= WorkPackageService.getWorkPageNamesByControlItemAndCycle(hazardRegister.WorkPackageId, null),
+ WorkPackageId = WorkPackageService.getWorkPageIdsByControlItemAndCycle(hazardRegister.WorkPackageId, null),
+ WorkPackageName = WorkPackageService.getWorkPageNamesByControlItemAndCycle(hazardRegister.WorkPackageId, null),
};
var isUpdate = db.HSSE_Hazard_HazardRegister.FirstOrDefault(x => x.HazardRegisterId == newHazardRegister.HazardRegisterId);
if (isUpdate == null)
@@ -152,7 +152,7 @@ namespace BLL
{
var hazardRegisters = (from x in db.HSSE_Hazard_HazardRegister
join y in db.Base_Project on x.ProjectId equals y.ProjectId
- join u in db.Base_Unit on x.ResponsibleUnit equals u.UnitId
+ join u in db.Base_Unit on x.ResponsibleUnit equals u.UnitId
where x.ProjectId != null && x.States != null
select new Model.HazardRegisterItem
{
@@ -173,7 +173,7 @@ namespace BLL
ResponsibilityUnitName = db.Base_Unit.First(U => x.ResponsibleUnit == U.UnitId).UnitName,
ResponsibilityManName = "",
RectificationTime = x.RectificationTime,
- Risk_Level = (x.HazardValue =="3"?"重大":"一般"),
+ Risk_Level = (x.HazardValue == "3" ? "重大" : "一般"),
}).OrderBy(x => x.CheckTime).Skip(Funs.PageSize * (pageIndex - 1)).Take(Funs.PageSize).ToList();
return hazardRegisters;
diff --git a/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs b/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs
index c648825c..a17385ba 100644
--- a/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs
+++ b/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs
@@ -1,5 +1,4 @@
-using Model;
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
@@ -195,9 +194,9 @@ namespace BLL
}
var getMaxMonthReport = (from x in Funs.DB.SeDin_MonthReport
- where x.ProjectId == projectId && x.ReporMonth < monthD
+ where x.ProjectId == projectId && x.ReporMonth < monthD
orderby x.ReporMonth descending
- select x).FirstOrDefault();
+ select x).FirstOrDefault();
if (getMaxMonthReport != null)
{
var getMonthReport2 = Funs.DB.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == getMaxMonthReport.MonthReportId);
@@ -480,7 +479,7 @@ namespace BLL
///当月费用
var getCostManage = from x in db.CostGoods_CostManageItem
join y in db.CostGoods_CostManage on x.CostManageId equals y.CostManageId
- where y.ProjectId ==projectId && y.CostManageDate >= startDateD && y.CostManageDate < endDateD.Value.AddDays(1)
+ where y.ProjectId == projectId && y.CostManageDate >= startDateD && y.CostManageDate < endDateD.Value.AddDays(1)
&& y.States == Const.State_2
select x;
if (getCostManage.Count() > 0)
@@ -521,11 +520,11 @@ namespace BLL
if (monthD >= Funs.GetNewDateTime("2023-07-01"))
{
getLists.SafetyYear += getLastMonthReport6.SafetyYear;
- getLists.SafetyTotal += getLastMonthReport6.SafetyTotal;
+ getLists.SafetyTotal += getLastMonthReport6.SafetyTotal;
getLists.ProgressYear += getLastMonthReport6.ProgressYear;
getLists.ProgressTotal += getLastMonthReport6.ProgressTotal;
getLists.EducationYear += getLastMonthReport6.EducationYear;
- getLists.EducationTotal += getLastMonthReport6.EducationTotal;
+ getLists.EducationTotal += getLastMonthReport6.EducationTotal;
}
else
{
@@ -540,16 +539,16 @@ namespace BLL
else
{
if (monthD >= Funs.GetNewDateTime("2023-07-01"))
- {
+ {
getLists.SafetyTotal += getLastMonthReport6.SafetyTotal;
getLists.ProgressTotal += getLastMonthReport6.ProgressTotal;
getLists.EducationTotal += getLastMonthReport6.EducationTotal;
-
+
}
else
- {
- getLists.SafetyTotal += (getLastMonthReport6.SafetyTotal + getLastMonthReport6.ProgressTotal + getLastMonthReport6.EducationTotal);
-
+ {
+ getLists.SafetyTotal += (getLastMonthReport6.SafetyTotal + getLastMonthReport6.ProgressTotal + getLastMonthReport6.EducationTotal);
+
}
getLists.LaborTotal += getLastMonthReport6.LaborTotal;
getLists.SumTotal += getLastMonthReport6.SumTotal;
@@ -557,7 +556,7 @@ namespace BLL
}
}
- return getLists;
+ return getLists;
}
}
#endregion
diff --git a/SGGL/BLL/API/HSSE/APITestRecordService.cs b/SGGL/BLL/API/HSSE/APITestRecordService.cs
index b9304d33..50dfb257 100644
--- a/SGGL/BLL/API/HSSE/APITestRecordService.cs
+++ b/SGGL/BLL/API/HSSE/APITestRecordService.cs
@@ -94,7 +94,7 @@ namespace BLL
var item = db.Training_TestRecordItem.FirstOrDefault(x => x.TestRecordId == getTestRecord.TestRecordId);
if (item == null)
{
- List getTestTrainingItemList = new List();
+ List getTestTrainingItemList = new List();
var testPlanTrainings = (from x in db.Training_TestPlanTraining
where x.TestPlanId == getTestPlan.TestPlanId
select new { x.TestPlanId, x.TrainingId, x.TestType1Count, x.TestType2Count, x.TestType3Count }).Distinct();
@@ -522,7 +522,7 @@ namespace BLL
foreach (var item in getTrainingTasks)
{
item.States = "2";
-
+
}
getTestPlan.States = "3";
db.SubmitChanges();
diff --git a/SGGL/BLL/API/HSSE/APITrainingTaskService.cs b/SGGL/BLL/API/HSSE/APITrainingTaskService.cs
index 854cbbec..eb5614f8 100644
--- a/SGGL/BLL/API/HSSE/APITrainingTaskService.cs
+++ b/SGGL/BLL/API/HSSE/APITrainingTaskService.cs
@@ -102,7 +102,7 @@ namespace BLL
else
{
var person = db.SitePerson_Person.FirstOrDefault(e => e.PersonId == personId && plan.ProjectId == e.ProjectId);
- if (person != null && plan.UnitIds.Contains(person.UnitId)
+ if (person != null && plan.UnitIds.Contains(person.UnitId)
&& (string.IsNullOrEmpty(plan.WorkPostId) || plan.WorkPostId.Contains(person.WorkPostId)))
{
var trainType = db.Base_TrainType.FirstOrDefault(e => e.TrainTypeId == plan.TrainTypeId);
diff --git a/SGGL/BLL/API/HTGL/APIHTGLPersonService.cs b/SGGL/BLL/API/HTGL/APIHTGLPersonService.cs
index 2f9619de..b6bdd1fd 100644
--- a/SGGL/BLL/API/HTGL/APIHTGLPersonService.cs
+++ b/SGGL/BLL/API/HTGL/APIHTGLPersonService.cs
@@ -73,7 +73,7 @@ namespace BLL
}
Person_Persons getPerson = new Person_Persons();
getPerson = Person_PersonsService.GetPerson_PersonsByIdCard(item.IdentityCard);
- if (getPerson==null)
+ if (getPerson == null)
{
getPerson = Person_PersonsService.GetPerson_PersonsByJobNum(item.UserCode);
@@ -114,7 +114,7 @@ namespace BLL
PersonName = item.UserName,
IdentityCard = item.IdentityCard,
UnitId = Const.UnitId_SEDIN,
-
+
DataFrom = "API"
};
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index 996d4b16..020661c5 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -897,24 +897,6 @@
False
True
-
- {00020813-0000-0000-C000-000000000046}
- 1
- 6
- 0
- primary
- False
- True
-
-
- {00020905-0000-0000-C000-000000000046}
- 8
- 4
- 0
- primary
- False
- False
-
{0002E157-0000-0000-C000-000000000046}
5
diff --git a/SGGL/BLL/BaseInfo/BaseCompanytemplateService.cs b/SGGL/BLL/BaseInfo/BaseCompanytemplateService.cs
index 9841501c..253e0579 100644
--- a/SGGL/BLL/BaseInfo/BaseCompanytemplateService.cs
+++ b/SGGL/BLL/BaseInfo/BaseCompanytemplateService.cs
@@ -1,15 +1,13 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
{
-
- public static class Base_CompanytemplateService
+
+ public static class Base_CompanytemplateService
{
#region 获取列表
///
@@ -20,19 +18,19 @@ namespace BLL
get;
set;
}
- public static List GetBase_CompanyTemplateByModle(Model.Base_CompanyTemplate table)
- {
- var q= from x in Funs.DB.Base_CompanyTemplate
- where
- ( string.IsNullOrEmpty(table.TemplateId)||x.TemplateId.Contains(table.TemplateId)) &&
- ( string.IsNullOrEmpty(table.Code)||x.Code.Contains(table.Code)) &&
- ( string.IsNullOrEmpty(table.Name)||x.Name.Contains(table.Name)) &&
- ( string.IsNullOrEmpty(table.FilePath)||x.FilePath.Contains(table.FilePath)) &&
- ( string.IsNullOrEmpty(table.Remarks)||x.Remarks.Contains(table.Remarks))
- select x
- ;
-
- return q.ToList();
+ public static List GetBase_CompanyTemplateByModle(Model.Base_CompanyTemplate table)
+ {
+ var q = from x in Funs.DB.Base_CompanyTemplate
+ where
+ (string.IsNullOrEmpty(table.TemplateId) || x.TemplateId.Contains(table.TemplateId)) &&
+ (string.IsNullOrEmpty(table.Code) || x.Code.Contains(table.Code)) &&
+ (string.IsNullOrEmpty(table.Name) || x.Name.Contains(table.Name)) &&
+ (string.IsNullOrEmpty(table.FilePath) || x.FilePath.Contains(table.FilePath)) &&
+ (string.IsNullOrEmpty(table.Remarks) || x.Remarks.Contains(table.Remarks))
+ select x
+ ;
+
+ return q.ToList();
}
/// 获取分页列表
@@ -42,55 +40,56 @@ namespace BLL
///
public static IEnumerable getListData(Model.Base_CompanyTemplate table, Grid Grid1)
{
- var q= GetBase_CompanyTemplateByModle(table);
+ var q = GetBase_CompanyTemplateByModle(table);
count = q.Count();
if (count == 0)
{
return null;
}
// q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
- // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
{
- x.TemplateId,
- x.Code,
- x.Name,
- x.FilePath,
- x.Remarks,
-
+ x.TemplateId,
+ x.Code,
+ x.Name,
+ x.FilePath,
+ x.Remarks,
+
};
}
#endregion
- public static Model.Base_CompanyTemplate GetBase_CompanyTemplateById(string TemplateId)
- {
- return Funs.DB.Base_CompanyTemplate.FirstOrDefault(x=>x.TemplateId==TemplateId);
+ public static Model.Base_CompanyTemplate GetBase_CompanyTemplateById(string TemplateId)
+ {
+ return Funs.DB.Base_CompanyTemplate.FirstOrDefault(x => x.TemplateId == TemplateId);
}
public static Model.Base_CompanyTemplate GetBase_CompanyTemplateByCode(string Code)
{
- return Funs.DB.Base_CompanyTemplate.FirstOrDefault(x => x.Code== Code);
+ return Funs.DB.Base_CompanyTemplate.FirstOrDefault(x => x.Code == Code);
}
public static bool IsExitCode(string Code)
{
bool result = false;
- var q= (from x in Funs.DB.Base_CompanyTemplate where x.Code ==Code select x ).FirstOrDefault();
- if (q!=null)
+ var q = (from x in Funs.DB.Base_CompanyTemplate where x.Code == Code select x).FirstOrDefault();
+ if (q != null)
{
result = true;
}
return result;
}
-
+
public static void AddBase_CompanyTemplate(Model.Base_CompanyTemplate newtable)
{
-
- Model.Base_CompanyTemplate table = new Model.Base_CompanyTemplate{
- TemplateId=newtable.TemplateId,
- Code=newtable.Code,
- Name=newtable.Name,
- FilePath=newtable.FilePath,
- Remarks=newtable.Remarks,
+
+ Model.Base_CompanyTemplate table = new Model.Base_CompanyTemplate
+ {
+ TemplateId = newtable.TemplateId,
+ Code = newtable.Code,
+ Name = newtable.Name,
+ FilePath = newtable.FilePath,
+ Remarks = newtable.Remarks,
};
Funs.DB.Base_CompanyTemplate.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
@@ -103,41 +102,41 @@ namespace BLL
Funs.DB.SubmitChanges();
}
-
+
public static void UpdateBase_CompanyTemplate(Model.Base_CompanyTemplate newtable)
{
-
- Model.Base_CompanyTemplate table = Funs.DB.Base_CompanyTemplate.FirstOrDefault(x=>x.TemplateId==newtable.TemplateId);
- if (table != null)
+
+ Model.Base_CompanyTemplate table = Funs.DB.Base_CompanyTemplate.FirstOrDefault(x => x.TemplateId == newtable.TemplateId);
+ if (table != null)
{
- table.TemplateId=newtable.TemplateId;
- table.Code=newtable.Code;
- table.Name=newtable.Name;
- table.FilePath=newtable.FilePath;
- table.Remarks=newtable.Remarks;
+ table.TemplateId = newtable.TemplateId;
+ table.Code = newtable.Code;
+ table.Name = newtable.Name;
+ table.FilePath = newtable.FilePath;
+ table.Remarks = newtable.Remarks;
Funs.DB.SubmitChanges();
}
-
+
}
- public static void DeleteBase_CompanyTemplateById (string TemplateId)
- {
-
- Model.Base_CompanyTemplate table =Funs.DB.Base_CompanyTemplate.FirstOrDefault(x=>x.TemplateId==TemplateId);
- if (table != null)
- {
+ public static void DeleteBase_CompanyTemplateById(string TemplateId)
+ {
+
+ Model.Base_CompanyTemplate table = Funs.DB.Base_CompanyTemplate.FirstOrDefault(x => x.TemplateId == TemplateId);
+ if (table != null)
+ {
Funs.DB.Base_CompanyTemplate.DeleteOnSubmit(table);
Funs.DB.SubmitChanges();
- }
-
+ }
+
}
- public static void DeleteALLBase_CompanyTemplate ()
- {
- if( Funs.DB.Base_CompanyTemplate !=null)
- {
- Funs.DB.Base_CompanyTemplate.DeleteAllOnSubmit( Funs.DB.Base_CompanyTemplate);
+ public static void DeleteALLBase_CompanyTemplate()
+ {
+ if (Funs.DB.Base_CompanyTemplate != null)
+ {
+ Funs.DB.Base_CompanyTemplate.DeleteAllOnSubmit(Funs.DB.Base_CompanyTemplate);
Funs.DB.SubmitChanges();
- }
+ }
}
public static void InitBase_CompanyTemplateDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
{
diff --git a/SGGL/BLL/BaseInfo/BaseFactoryService.cs b/SGGL/BLL/BaseInfo/BaseFactoryService.cs
index 6cd2328b..81f24115 100644
--- a/SGGL/BLL/BaseInfo/BaseFactoryService.cs
+++ b/SGGL/BLL/BaseInfo/BaseFactoryService.cs
@@ -1,9 +1,7 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -28,7 +26,7 @@ namespace BLL
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
(string.IsNullOrEmpty(table.FactoryCode) || x.FactoryCode.Contains(table.FactoryCode)) &&
(string.IsNullOrEmpty(table.FactoryName) || x.FactoryName.Contains(table.FactoryName)) &&
- (string.IsNullOrEmpty(table.Address) || x.Address.Contains(table.Address))
+ (string.IsNullOrEmpty(table.Address) || x.Address.Contains(table.Address))
select x
;
@@ -36,8 +34,8 @@ namespace BLL
}
public static List GetBase_FactoryList()
{
- var q = (from x in Funs.DB.Base_Factory orderby x.FactoryCode select x).ToList();
-
+ var q = (from x in Funs.DB.Base_Factory orderby x.FactoryCode select x).ToList();
+
return q;
}
@@ -73,10 +71,10 @@ namespace BLL
{
return Funs.DB.Base_Factory.FirstOrDefault(x => x.FactoryId == FactoryId);
}
- public static string GetBase_FactoryNameById(object FactoryId)
+ public static string GetBase_FactoryNameById(object FactoryId)
{
string name = string.Empty;
- if (FactoryId!=null)
+ if (FactoryId != null)
{
var model = Funs.DB.Base_Factory.FirstOrDefault(x => x.FactoryId == FactoryId.ToString());
if (model != null)
@@ -85,9 +83,9 @@ namespace BLL
}
}
- return name;
+ return name;
}
- public static Model.Base_Factory GetBase_FactoryByCode(string FactoryCode)
+ public static Model.Base_Factory GetBase_FactoryByCode(string FactoryCode)
{
return Funs.DB.Base_Factory.FirstOrDefault(x => x.FactoryCode == FactoryCode);
}
@@ -101,7 +99,7 @@ namespace BLL
FactoryCode = newtable.FactoryCode,
FactoryName = newtable.FactoryName,
Address = newtable.Address,
- MapCoordinates= newtable.MapCoordinates,
+ MapCoordinates = newtable.MapCoordinates,
};
Funs.DB.Base_Factory.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
diff --git a/SGGL/BLL/BaseInfo/CQMSTrainObjectService.cs b/SGGL/BLL/BaseInfo/CQMSTrainObjectService.cs
index ab755b93..f0007bf9 100644
--- a/SGGL/BLL/BaseInfo/CQMSTrainObjectService.cs
+++ b/SGGL/BLL/BaseInfo/CQMSTrainObjectService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
@@ -27,7 +24,7 @@ namespace BLL
public static string GetTrainObjectNameById(string trainObjectId)
{
string name = string.Empty;
- var o= Funs.DB.Base_CQMSTrainObject.FirstOrDefault(e => e.TrainObjectId == trainObjectId);
+ var o = Funs.DB.Base_CQMSTrainObject.FirstOrDefault(e => e.TrainObjectId == trainObjectId);
if (o != null)
{
name = o.TrainObjectName;
diff --git a/SGGL/BLL/BaseInfo/CertificateService.cs b/SGGL/BLL/BaseInfo/CertificateService.cs
index e7d28b52..6519b38e 100644
--- a/SGGL/BLL/BaseInfo/CertificateService.cs
+++ b/SGGL/BLL/BaseInfo/CertificateService.cs
@@ -32,7 +32,7 @@ namespace BLL
CertificateName = certificate.CertificateName,
CertificateType = certificate.CertificateType,
IsRegisterHSSE = certificate.IsRegisterHSSE,
- Type= certificate.Type,
+ Type = certificate.Type,
Remark = certificate.Remark
};
db.Base_Certificate.InsertOnSubmit(newCertificate);
diff --git a/SGGL/BLL/BaseInfo/CheckTemplateService.cs b/SGGL/BLL/BaseInfo/CheckTemplateService.cs
index 9613a5b7..b4dde7f2 100644
--- a/SGGL/BLL/BaseInfo/CheckTemplateService.cs
+++ b/SGGL/BLL/BaseInfo/CheckTemplateService.cs
@@ -2,7 +2,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/BaseInfo/CompanyModelKindService.cs b/SGGL/BLL/BaseInfo/CompanyModelKindService.cs
index 27f9abc4..7b2b07ca 100644
--- a/SGGL/BLL/BaseInfo/CompanyModelKindService.cs
+++ b/SGGL/BLL/BaseInfo/CompanyModelKindService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/BaseInfo/CompanyModelService.cs b/SGGL/BLL/BaseInfo/CompanyModelService.cs
index 77195260..44d2a7f6 100644
--- a/SGGL/BLL/BaseInfo/CompanyModelService.cs
+++ b/SGGL/BLL/BaseInfo/CompanyModelService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/BaseInfo/CostTypeService.cs b/SGGL/BLL/BaseInfo/CostTypeService.cs
index 1f57548e..d7118f86 100644
--- a/SGGL/BLL/BaseInfo/CostTypeService.cs
+++ b/SGGL/BLL/BaseInfo/CostTypeService.cs
@@ -62,7 +62,7 @@ namespace BLL
Model.SGGLDB db = Funs.DB;
Model.Base_CostTypeItem newCostType = new Model.Base_CostTypeItem
{
- CostTypeItemId= costTypeItem.CostTypeItemId,
+ CostTypeItemId = costTypeItem.CostTypeItemId,
CostTypeId = costTypeItem.CostTypeId,
SortIndex = costTypeItem.SortIndex,
CostTypeItemName = costTypeItem.CostTypeItemName,
@@ -174,7 +174,7 @@ namespace BLL
///
/// 下拉框名字
/// 是否显示请选择
- public static void InitCostTypeItemDropDownList(FineUIPro.DropDownList dropName,string costTypeId, bool isShowPlease)
+ public static void InitCostTypeItemDropDownList(FineUIPro.DropDownList dropName, string costTypeId, bool isShowPlease)
{
dropName.Items.Clear();
dropName.DataValueField = "CostTypeItemId";
diff --git a/SGGL/BLL/BaseInfo/MaterialTypeService.cs b/SGGL/BLL/BaseInfo/MaterialTypeService.cs
index 9ad2cb82..ae81f988 100644
--- a/SGGL/BLL/BaseInfo/MaterialTypeService.cs
+++ b/SGGL/BLL/BaseInfo/MaterialTypeService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class MaterialTypeService
{
-
+
///
/// 根据主键获取材料类型
diff --git a/SGGL/BLL/BaseInfo/NoticeAndSupervisionTypeService.cs b/SGGL/BLL/BaseInfo/NoticeAndSupervisionTypeService.cs
index 4329bf73..07253b6f 100644
--- a/SGGL/BLL/BaseInfo/NoticeAndSupervisionTypeService.cs
+++ b/SGGL/BLL/BaseInfo/NoticeAndSupervisionTypeService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class NoticeAndSupervisionTypeService
{
-
+
///
/// 根据主键获取告知和监检类型
diff --git a/SGGL/BLL/BaseInfo/PictureTypeService.cs b/SGGL/BLL/BaseInfo/PictureTypeService.cs
index 046800af..a456d8a0 100644
--- a/SGGL/BLL/BaseInfo/PictureTypeService.cs
+++ b/SGGL/BLL/BaseInfo/PictureTypeService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class PictureTypeService
{
-
+
///
/// 根据主键获取项目图片分类
diff --git a/SGGL/BLL/BaseInfo/PositionService.cs b/SGGL/BLL/BaseInfo/PositionService.cs
index da5833b6..a85bad4a 100644
--- a/SGGL/BLL/BaseInfo/PositionService.cs
+++ b/SGGL/BLL/BaseInfo/PositionService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class PositionService
{
-
+
///
/// 根据主键获取主键
@@ -20,10 +20,10 @@ namespace BLL
return Funs.DB.Base_Position.FirstOrDefault(e => e.PositionId == positionId);
}
- public static string GetPositionNameById(string positionId)
+ public static string GetPositionNameById(string positionId)
{
- string name =string.Empty;
- var getData= Funs.DB.Base_Position.FirstOrDefault(e => e.PositionId == positionId);
+ string name = string.Empty;
+ var getData = Funs.DB.Base_Position.FirstOrDefault(e => e.PositionId == positionId);
if (getData != null)
{
name = getData.PositionName;
diff --git a/SGGL/BLL/BaseInfo/PostTitleService.cs b/SGGL/BLL/BaseInfo/PostTitleService.cs
index 1f829351..bfa43f49 100644
--- a/SGGL/BLL/BaseInfo/PostTitleService.cs
+++ b/SGGL/BLL/BaseInfo/PostTitleService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class PostTitleService
{
-
+
///
/// 根据主键获取信息
diff --git a/SGGL/BLL/BaseInfo/PracticeCertificateService.cs b/SGGL/BLL/BaseInfo/PracticeCertificateService.cs
index c56c8397..04eed0be 100644
--- a/SGGL/BLL/BaseInfo/PracticeCertificateService.cs
+++ b/SGGL/BLL/BaseInfo/PracticeCertificateService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class PracticeCertificateService
{
-
+
///
/// 根据主键获取执业资格证书
diff --git a/SGGL/BLL/BaseInfo/ProjectTypeService.cs b/SGGL/BLL/BaseInfo/ProjectTypeService.cs
index 7d574b9e..a0200a9b 100644
--- a/SGGL/BLL/BaseInfo/ProjectTypeService.cs
+++ b/SGGL/BLL/BaseInfo/ProjectTypeService.cs
@@ -8,7 +8,7 @@ namespace BLL
public static class ProjectTypeService
{
-
+
///
/// 根据主键获取信息
diff --git a/SGGL/BLL/BaseInfo/PunishTypeService.cs b/SGGL/BLL/BaseInfo/PunishTypeService.cs
index eafe9afb..176f4898 100644
--- a/SGGL/BLL/BaseInfo/PunishTypeService.cs
+++ b/SGGL/BLL/BaseInfo/PunishTypeService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class PunishTypeService
{
-
+
///
/// 根据主键获取处罚定义
diff --git a/SGGL/BLL/BaseInfo/QualityQuestionTypeService.cs b/SGGL/BLL/BaseInfo/QualityQuestionTypeService.cs
index 564395f1..e4eeb92a 100644
--- a/SGGL/BLL/BaseInfo/QualityQuestionTypeService.cs
+++ b/SGGL/BLL/BaseInfo/QualityQuestionTypeService.cs
@@ -6,7 +6,7 @@ namespace BLL
{
public class QualityQuestionTypeService
{
-
+
///
/// 获取实体集合
diff --git a/SGGL/BLL/BaseInfo/RewardTypeService.cs b/SGGL/BLL/BaseInfo/RewardTypeService.cs
index b6eb4dcb..4e8246d9 100644
--- a/SGGL/BLL/BaseInfo/RewardTypeService.cs
+++ b/SGGL/BLL/BaseInfo/RewardTypeService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class RewardTypeService
{
-
+
///
/// 根据主键获取奖励定义
diff --git a/SGGL/BLL/BaseInfo/RulesRegulationsTypeService.cs b/SGGL/BLL/BaseInfo/RulesRegulationsTypeService.cs
index e4e6d42a..2e93d039 100644
--- a/SGGL/BLL/BaseInfo/RulesRegulationsTypeService.cs
+++ b/SGGL/BLL/BaseInfo/RulesRegulationsTypeService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class RulesRegulationsTypeService
{
-
+
///
/// 根据主键获取规章制度类别
diff --git a/SGGL/BLL/BaseInfo/SafetyMeasuresService.cs b/SGGL/BLL/BaseInfo/SafetyMeasuresService.cs
index 8d1321d7..5a1bbde9 100644
--- a/SGGL/BLL/BaseInfo/SafetyMeasuresService.cs
+++ b/SGGL/BLL/BaseInfo/SafetyMeasuresService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class SafetyMeasuresService
{
-
+
///
/// 根据主键获取安全措施
diff --git a/SGGL/BLL/BaseInfo/SolutionTempleteTypeService.cs b/SGGL/BLL/BaseInfo/SolutionTempleteTypeService.cs
index 41497afd..c630439a 100644
--- a/SGGL/BLL/BaseInfo/SolutionTempleteTypeService.cs
+++ b/SGGL/BLL/BaseInfo/SolutionTempleteTypeService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/BaseInfo/SpecialEquipmentService.cs b/SGGL/BLL/BaseInfo/SpecialEquipmentService.cs
index 560d5dde..c62b6117 100644
--- a/SGGL/BLL/BaseInfo/SpecialEquipmentService.cs
+++ b/SGGL/BLL/BaseInfo/SpecialEquipmentService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class SpecialEquipmentService
{
-
+
///
/// 根据主键获取机具设备
@@ -29,7 +29,7 @@ namespace BLL
public static string GetSpecialEquipmentNameById(string specialEquipmentId)
{
string name = string.Empty;
- var q= Funs.DB.Base_SpecialEquipment.FirstOrDefault(e => e.SpecialEquipmentId == specialEquipmentId);
+ var q = Funs.DB.Base_SpecialEquipment.FirstOrDefault(e => e.SpecialEquipmentId == specialEquipmentId);
if (q != null)
{
name = q.SpecialEquipmentName;
diff --git a/SGGL/BLL/BaseInfo/SpecialSchemeTypeService.cs b/SGGL/BLL/BaseInfo/SpecialSchemeTypeService.cs
index e695fae2..18f4dd79 100644
--- a/SGGL/BLL/BaseInfo/SpecialSchemeTypeService.cs
+++ b/SGGL/BLL/BaseInfo/SpecialSchemeTypeService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class SpecialSchemeTypeService
{
-
+
///
/// 根据主键获取信息
diff --git a/SGGL/BLL/BaseInfo/SuperviseCheckTypeService.cs b/SGGL/BLL/BaseInfo/SuperviseCheckTypeService.cs
index 2fd0e9f0..364c4e93 100644
--- a/SGGL/BLL/BaseInfo/SuperviseCheckTypeService.cs
+++ b/SGGL/BLL/BaseInfo/SuperviseCheckTypeService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/BaseInfo/TrainLevelService.cs b/SGGL/BLL/BaseInfo/TrainLevelService.cs
index 49e2f92c..420ea802 100644
--- a/SGGL/BLL/BaseInfo/TrainLevelService.cs
+++ b/SGGL/BLL/BaseInfo/TrainLevelService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class TrainLevelService
{
-
+
///
/// 根据主键获取主键
diff --git a/SGGL/BLL/BaseInfo/TrainTypeService.cs b/SGGL/BLL/BaseInfo/TrainTypeService.cs
index 2bb05af2..4efd5631 100644
--- a/SGGL/BLL/BaseInfo/TrainTypeService.cs
+++ b/SGGL/BLL/BaseInfo/TrainTypeService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class TrainTypeService
{
-
+
///
/// 根据主键获取培训类型
@@ -35,7 +35,7 @@ namespace BLL
Remark = trainType.Remark,
IsAboutSendCard = trainType.IsAboutSendCard,
IsRepeat = trainType.IsRepeat,
- TrainType=trainType.TrainType,
+ TrainType = trainType.TrainType,
};
db.Base_TrainType.InsertOnSubmit(newTrainType);
db.SubmitChanges();
diff --git a/SGGL/BLL/BaseInfo/UnitTypeService.cs b/SGGL/BLL/BaseInfo/UnitTypeService.cs
index 8e9c09d3..04ea840f 100644
--- a/SGGL/BLL/BaseInfo/UnitTypeService.cs
+++ b/SGGL/BLL/BaseInfo/UnitTypeService.cs
@@ -6,7 +6,7 @@ namespace BLL
public static class UnitTypeService
{
-
+
///
/// 根据主键获取信息
diff --git a/SGGL/BLL/BaseInfo/WorkPostService.cs b/SGGL/BLL/BaseInfo/WorkPostService.cs
index a5463683..a4021730 100644
--- a/SGGL/BLL/BaseInfo/WorkPostService.cs
+++ b/SGGL/BLL/BaseInfo/WorkPostService.cs
@@ -6,7 +6,7 @@ namespace BLL
{
public static class WorkPostService
{
-
+
///
/// 根据主键获取信息
@@ -31,7 +31,7 @@ namespace BLL
WorkPostCode = workPost.WorkPostCode,
WorkPostName = workPost.WorkPostName,
PostType = workPost.PostType,
- IsCQMS=workPost.IsCQMS,
+ IsCQMS = workPost.IsCQMS,
IsHsse = workPost.IsHsse,
CNCodes = workPost.CNCodes,
Remark = workPost.Remark
diff --git a/SGGL/BLL/BaseInfo/WorkStageService.cs b/SGGL/BLL/BaseInfo/WorkStageService.cs
index 2f007cd4..4fa775c8 100644
--- a/SGGL/BLL/BaseInfo/WorkStageService.cs
+++ b/SGGL/BLL/BaseInfo/WorkStageService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs b/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs
index 1788a627..b3c4aa53 100644
--- a/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs
+++ b/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs
@@ -1,78 +1,73 @@
using Model;
using System;
-using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
-using System.Windows.Media.Animation;
-namespace BLL
+namespace BLL
{
public class TwArrivalStatisticsService
{
- public static List GetStatistics(string projectid,string materialCode,string WarehouseCode)
+ public static List GetStatistics(string projectid, string materialCode, string WarehouseCode)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
- string PipeArea= WarehouseCode == "工厂预制"?"1":"2";
+ string PipeArea = WarehouseCode == "工厂预制" ? "1" : "2";
///所需材料数量列表
var NeedOutMateriaList = from x in db.HJGL_PipeLineMat
- join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
- join z in db.HJGL_Pipeline on x.PipelineId equals z.PipelineId
- where z.ProjectId == projectid && (string.IsNullOrEmpty(materialCode) || x.MaterialCode .Contains( materialCode)) && z.PipeArea== PipeArea
+ join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
+ join z in db.HJGL_Pipeline on x.PipelineId equals z.PipelineId
+ where z.ProjectId == projectid && (string.IsNullOrEmpty(materialCode) || x.MaterialCode.Contains(materialCode)) && z.PipeArea == PipeArea
group x by x.MaterialCode
into g
- select new
- {
- g.Key,
- NeedNum = g.Sum(x => x.Number) ?? 0,
- };
+ select new
+ {
+ g.Key,
+ NeedNum = g.Sum(x => x.Number) ?? 0,
+ };
///实际材料入库数量列表
var RealInMateriaList = from x in db.Tw_InputDetail
join master in db.Tw_InputMaster on x.InputMasterId equals master.Id
- join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
- where master.ProjectId== projectid && master.WarehouseCode== WarehouseCode
+ join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
+ where master.ProjectId == projectid && master.WarehouseCode == WarehouseCode
group x by x.MaterialCode
into g
- where (string.IsNullOrEmpty(materialCode) || g.Key.Contains( materialCode))
+ where (string.IsNullOrEmpty(materialCode) || g.Key.Contains(materialCode))
select new
{
g.Key,
RealNum = g.Sum(x => x.ActNum) ?? 0,
};
//库存数量
- var tw_MaterialStock=from x in db.Tw_MaterialStock
- where x.WarehouseCode==WarehouseCode && x.ProjectId== projectid
- select x;
+ var tw_MaterialStock = from x in db.Tw_MaterialStock
+ where x.WarehouseCode == WarehouseCode && x.ProjectId == projectid
+ select x;
- var StatisticsList =(from x in NeedOutMateriaList
- join y in RealInMateriaList on x.Key equals y.Key into gg
- from y in gg.DefaultIfEmpty()
- join z in db.HJGL_MaterialCodeLib on x.Key equals z.MaterialCode into zz
- from z in zz.DefaultIfEmpty()
- join m in tw_MaterialStock on x.Key equals m.PipeLineMatCode into mm
- from m in mm.DefaultIfEmpty()
- select new Tw_ArrivalStatisticsOutPut
- {
- MaterialCode = x.Key,
- StockNum = m==null?0: (decimal)m.StockNum,
- NeedNum = x.NeedNum,
- RealNum = y==null?0:y.RealNum,
- MaterialName = z.MaterialName,
- MaterialSpec=z.MaterialSpec,
- MaterialUnit=z.MaterialUnit,
- MaterialDef = z.MaterialDef,
- MatchRate = (x.NeedNum == 0 ?0:Math.Round((y == null ? 0 : y.RealNum) / x.NeedNum, 4,MidpointRounding.ToEven)),
- }).ToList();
+ var StatisticsList = (from x in NeedOutMateriaList
+ join y in RealInMateriaList on x.Key equals y.Key into gg
+ from y in gg.DefaultIfEmpty()
+ join z in db.HJGL_MaterialCodeLib on x.Key equals z.MaterialCode into zz
+ from z in zz.DefaultIfEmpty()
+ join m in tw_MaterialStock on x.Key equals m.PipeLineMatCode into mm
+ from m in mm.DefaultIfEmpty()
+ select new Tw_ArrivalStatisticsOutPut
+ {
+ MaterialCode = x.Key,
+ StockNum = m == null ? 0 : (decimal)m.StockNum,
+ NeedNum = x.NeedNum,
+ RealNum = y == null ? 0 : y.RealNum,
+ MaterialName = z.MaterialName,
+ MaterialSpec = z.MaterialSpec,
+ MaterialUnit = z.MaterialUnit,
+ MaterialDef = z.MaterialDef,
+ MatchRate = (x.NeedNum == 0 ? 0 : Math.Round((y == null ? 0 : y.RealNum) / x.NeedNum, 4, MidpointRounding.ToEven)),
+ }).ToList();
foreach (var item in StatisticsList)
{
- item.MatchRateString = Math.Round(item.MatchRate*100, 2).ToString()+"%" ;
- }
- return StatisticsList ;
+ item.MatchRateString = Math.Round(item.MatchRate * 100, 2).ToString() + "%";
+ }
+ return StatisticsList;
}
}
@@ -83,8 +78,8 @@ namespace BLL
///
///
///
- public static List GetMatMatchOutput(List requiredMaterials ,string warehouseCode ,string projectId)
- {
+ public static List GetMatMatchOutput(List requiredMaterials, string warehouseCode, string projectId)
+ {
Tw_MaterialStockOutput twMaterialStockOutput = new Tw_MaterialStockOutput
{
WarehouseCode = warehouseCode,
@@ -113,11 +108,11 @@ namespace BLL
if (stock != null)
{
stock.StockNum -= material.MatchNum;
- }
+ }
}
-
+
var results = requiredMaterials;
- return results;
+ return results;
}
///
/// 获取管线匹配率
@@ -127,7 +122,7 @@ namespace BLL
public static decimal? GetPipeMatch(string pipelineId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
- {
+ {
var twPipeMatMatchOutputs = new List();
var pipelineModel = PipelineService.GetPipelineByPipelineId(pipelineId);
string warehouseCode = PipelineService
@@ -138,7 +133,7 @@ namespace BLL
join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
join z in db.HJGL_Pipeline on x.PipelineId equals z.PipelineId
join m in db.WBS_UnitWork on z.UnitWorkId equals m.UnitWorkId
- where z.PipelineId== pipelineId && x.PrefabricatedComponents != "" //x.PrefabricatedComponents!="" 用于筛选非散件材料
+ where z.PipelineId == pipelineId && x.PrefabricatedComponents != "" //x.PrefabricatedComponents!="" 用于筛选非散件材料
select new Tw_PipeMatMatchOutput
{
Id = Guid.NewGuid().ToString(),
@@ -154,10 +149,10 @@ namespace BLL
MaterialDef = y.MaterialDef,
NeedNum = x.Number,
}
- ).ToList();
-
- twPipeMatMatchOutputs = GetMatMatchOutput(requiredMaterials, warehouseCode, pipelineModel.ProjectId);
- var result = twPipeMatMatchOutputs.Count==0?0: twPipeMatMatchOutputs.Sum(x=>x.MatchRate)/ twPipeMatMatchOutputs.Count;
+ ).ToList();
+
+ twPipeMatMatchOutputs = GetMatMatchOutput(requiredMaterials, warehouseCode, pipelineModel.ProjectId);
+ var result = twPipeMatMatchOutputs.Count == 0 ? 0 : twPipeMatMatchOutputs.Sum(x => x.MatchRate) / twPipeMatMatchOutputs.Count;
return result;
}
}
@@ -170,29 +165,29 @@ namespace BLL
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
- var results = new List();
- string [] taskPipeLineList= null;
+ var results = new List();
+ string[] taskPipeLineList = null;
var inoutPlanMasterl = db.Tw_InOutPlanMaster.FirstOrDefault(x => x.Id == outPlanMasterId);
- if (inoutPlanMasterl!=null)
+ if (inoutPlanMasterl != null)
{
- if (inoutPlanMasterl.WeldTaskId.Split('|').Length==4)
- {
- taskPipeLineList = Funs.DB.View_HJGL_WeldingTask.Where(e =>
- e.UnitWorkId == inoutPlanMasterl.WeldTaskId.Split('|')[0].ToString()
- && e.UnitId == inoutPlanMasterl.WeldTaskId.Split('|')[1].ToString()
- && e.TaskDate.Value.Date == DateTime
- .ParseExact(inoutPlanMasterl.WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null).Date
- && e.SerialNumber == inoutPlanMasterl.WeldTaskId.Split('|')[3].ToString()
- ).Distinct().OrderBy(x => x.PipeLineSortIndex).Select(x => x.PipelineId).ToArray();
+ if (inoutPlanMasterl.WeldTaskId.Split('|').Length == 4)
+ {
+ taskPipeLineList = Funs.DB.View_HJGL_WeldingTask.Where(e =>
+ e.UnitWorkId == inoutPlanMasterl.WeldTaskId.Split('|')[0].ToString()
+ && e.UnitId == inoutPlanMasterl.WeldTaskId.Split('|')[1].ToString()
+ && e.TaskDate.Value.Date == DateTime
+ .ParseExact(inoutPlanMasterl.WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null).Date
+ && e.SerialNumber == inoutPlanMasterl.WeldTaskId.Split('|')[3].ToString()
+ ).Distinct().OrderBy(x => x.PipeLineSortIndex).Select(x => x.PipelineId).ToArray();
}
}
// 获取所需材料列表
var requiredMaterials = (from x in db.Tw_InOutPlanDetail_Relation
join master in db.Tw_InOutPlanMaster on x.InOutPlanMasterId equals master.Id
join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
- join z in db.HJGL_Pipeline on x.PipelineId equals z.PipelineId
- where x.InOutPlanMasterId == outPlanMasterId
+ join z in db.HJGL_Pipeline on x.PipelineId equals z.PipelineId
+ where x.InOutPlanMasterId == outPlanMasterId
select new Tw_PipeMatMatchOutput
{
Id = Guid.NewGuid().ToString(),
@@ -213,7 +208,7 @@ namespace BLL
}
- var masterModle = db.Tw_InOutPlanMaster.FirstOrDefault(x => x.Id == outPlanMasterId);
+ var masterModle = db.Tw_InOutPlanMaster.FirstOrDefault(x => x.Id == outPlanMasterId);
results = GetMatMatchOutput(requiredMaterials, masterModle.WarehouseCode, masterModle.ProjectId);
return results;
}
@@ -259,7 +254,7 @@ namespace BLL
foreach (string id in pipelineIds)
{
newRequiredMaterials.AddRange(requiredMaterials.Where(x => x.PipelineId == id));
- }
+ }
results = GetMatMatchOutput(newRequiredMaterials, warehouseCode, projectId);
return results;
}
diff --git a/SGGL/BLL/CLGL/TwInOutplandetailRelationService.cs b/SGGL/BLL/CLGL/TwInOutplandetailRelationService.cs
index 485ef651..f8f618b1 100644
--- a/SGGL/BLL/CLGL/TwInOutplandetailRelationService.cs
+++ b/SGGL/BLL/CLGL/TwInOutplandetailRelationService.cs
@@ -4,8 +4,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Runtime.CompilerServices;
-using System.Text;
namespace BLL
@@ -33,7 +31,7 @@ namespace BLL
(string.IsNullOrEmpty(table.PipelineId) || x.PipelineId.Contains(table.PipelineId)) &&
(string.IsNullOrEmpty(table.InOutPlanMasterId) || x.InOutPlanMasterId.Contains(table.InOutPlanMasterId)) &&
(string.IsNullOrEmpty(table.MaterialCode) || x.MaterialCode.Contains(table.MaterialCode)) &&
- (string.IsNullOrEmpty(table.PrefabricatedComponents) || x.PrefabricatedComponents.Contains(table.PrefabricatedComponents))
+ (string.IsNullOrEmpty(table.PrefabricatedComponents) || x.PrefabricatedComponents.Contains(table.PrefabricatedComponents))
select x
;
@@ -58,7 +56,7 @@ namespace BLL
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
join y in Funs.DB.HJGL_Pipeline on x.PipelineId equals y.PipelineId
- join mat in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals mat.MaterialCode into mm
+ join mat in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals mat.MaterialCode into mm
from mat in mm.DefaultIfEmpty()
orderby x.PipelineId, x.PrefabricatedComponents
select new
@@ -70,7 +68,7 @@ namespace BLL
x.MaterialCode,
x.PrefabricatedComponents,
x.Number,
- mat.MaterialName,
+ mat.MaterialName,
mat.MaterialDef
};
}
@@ -81,14 +79,14 @@ namespace BLL
return Funs.DB.Tw_InOutPlanDetail_Relation.FirstOrDefault(x => x.Id == Id);
}
- public static Model.Tw_InOutPlanDetail_Relation GetByPipelineId(string pipelineId,string WarehouseCode)
+ public static Model.Tw_InOutPlanDetail_Relation GetByPipelineId(string pipelineId, string WarehouseCode)
{
int typeInt = (int)TwConst.TypeInt.散件出库;
- var q= from x in Funs.DB.Tw_InOutPlanDetail_Relation
- join y in Funs.DB .Tw_InOutPlanMaster on x.InOutPlanMasterId equals y.Id
- where x.PipelineId == pipelineId && y.WarehouseCode == WarehouseCode && y.TypeInt!= typeInt
- select x;
- return q.FirstOrDefault();
+ var q = from x in Funs.DB.Tw_InOutPlanDetail_Relation
+ join y in Funs.DB.Tw_InOutPlanMaster on x.InOutPlanMasterId equals y.Id
+ where x.PipelineId == pipelineId && y.WarehouseCode == WarehouseCode && y.TypeInt != typeInt
+ select x;
+ return q.FirstOrDefault();
}
public static void Add(Model.Tw_InOutPlanDetail_Relation newtable)
{
@@ -156,14 +154,14 @@ namespace BLL
Funs.DB.SubmitChanges();
}
}
-
+
public static void InsertByPipeLineMat(string inOutPlanMasterId, List tw_PipeLineMats)
{
- var master =TwInOutplanmasterService.GetById(inOutPlanMasterId);
+ var master = TwInOutplanmasterService.GetById(inOutPlanMasterId);
if (master == null)
{
return;
- }
+ }
var outMateriaList = from x in tw_PipeLineMats
group x by new { x.MaterialCode, x.MaterialUnit }
into g
@@ -183,7 +181,7 @@ namespace BLL
outMateriaList.Where(x => x.MaterialName.Contains("个"));//管件
break;
}
-
+
foreach (var item in outMateriaList)
{
Model.Tw_InOutPlanDetail detail = new Model.Tw_InOutPlanDetail
@@ -206,27 +204,27 @@ namespace BLL
}
-
+
public static IEnumerable GetPrintListByOutputMasterIds(List outputMasterIds)
{
var q = from x in Funs.DB.Tw_InOutPlanDetail_Relation
join y in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
- join plan in Funs.DB.Tw_InOutPlanMaster on x.InOutPlanMasterId equals plan.Id
+ join plan in Funs.DB.Tw_InOutPlanMaster on x.InOutPlanMasterId equals plan.Id
join master in Funs.DB.Tw_OutputMaster on plan.Id equals master.InOutPlanMasterId
join pipe in Funs.DB.HJGL_Pipeline on x.PipelineId equals pipe.PipelineId
where outputMasterIds.Contains(master.Id)
- orderby master.CusBillCode
- select new
- {
- 出库单编号 = master.CusBillCode,
- 管线号=pipe.PipelineCode,
- 预制组件号= x.PrefabricatedComponents,
- 材料编码 = x.MaterialCode,
- 材料名称 = y.MaterialName,
- 材料描述 = y.MaterialDef,
- 单位=y.MaterialUnit,
- 所需量 = x.Number,
- };
+ orderby master.CusBillCode
+ select new
+ {
+ 出库单编号 = master.CusBillCode,
+ 管线号 = pipe.PipelineCode,
+ 预制组件号 = x.PrefabricatedComponents,
+ 材料编码 = x.MaterialCode,
+ 材料名称 = y.MaterialName,
+ 材料描述 = y.MaterialDef,
+ 单位 = y.MaterialUnit,
+ 所需量 = x.Number,
+ };
return q;
}
}
diff --git a/SGGL/BLL/CLGL/TwInOutplandetailService.cs b/SGGL/BLL/CLGL/TwInOutplandetailService.cs
index 5d419c90..51f195bd 100644
--- a/SGGL/BLL/CLGL/TwInOutplandetailService.cs
+++ b/SGGL/BLL/CLGL/TwInOutplandetailService.cs
@@ -3,7 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -11,7 +10,7 @@ namespace BLL
public static class TwInOutplandetailService
{
-
+
#region 获取列表
///
/// 记录数
@@ -30,14 +29,14 @@ namespace BLL
from mat in mm.DefaultIfEmpty()
join master in Funs.DB.Tw_InOutPlanMaster on x.InOutPlanMasterId equals master.Id into masters
from master in masters.DefaultIfEmpty()
- join stock in Funs.DB.Tw_MaterialStock on new { x.MaterialCode, master.WarehouseCode,master.ProjectId } equals new { MaterialCode = stock.PipeLineMatCode, stock.WarehouseCode, stock .ProjectId} into st
+ join stock in Funs.DB.Tw_MaterialStock on new { x.MaterialCode, master.WarehouseCode, master.ProjectId } equals new { MaterialCode = stock.PipeLineMatCode, stock.WarehouseCode, stock.ProjectId } into st
from stock in st.DefaultIfEmpty()
where
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
(string.IsNullOrEmpty(table.InOutPlanMasterId) || x.InOutPlanMasterId.Contains(table.InOutPlanMasterId)) &&
(string.IsNullOrEmpty(table.PipelineComponentId) || x.PipelineComponentId.Contains(table.PipelineComponentId)) &&
- (string.IsNullOrEmpty(table.MaterialCode) || x.MaterialCode.Contains(table.MaterialCode))
- orderby x.SortIndex
+ (string.IsNullOrEmpty(table.MaterialCode) || x.MaterialCode.Contains(table.MaterialCode))
+ orderby x.SortIndex
select new Model.Tw_InOutDetailOutput
{
Id = x.Id,
@@ -48,9 +47,9 @@ namespace BLL
ActNum = x.ActNum,
PipelineComponentCode = y.PipelineComponentCode,
MaterialName = mat.MaterialName,
- MaterialDef= mat.MaterialDef,
+ MaterialDef = mat.MaterialDef,
StockNum = stock.StockNum ?? 0,
- }
+ }
;
return q;
@@ -73,7 +72,7 @@ namespace BLL
q = q.Skip(grid1.PageSize * grid1.PageIndex).Take(grid1.PageSize);
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
- select x;
+ select x;
}
#endregion
@@ -100,7 +99,7 @@ namespace BLL
Funs.DB.Tw_InOutPlanDetail.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
-
+
///
/// 批量添加计划明细
///
@@ -111,8 +110,8 @@ namespace BLL
int sortIndex = 1;
foreach (var item in list)
{
- item.Id= SQLHelper.GetNewID();
- item.SortIndex= sortIndex;
+ item.Id = SQLHelper.GetNewID();
+ item.SortIndex = sortIndex;
item.InOutPlanMasterId = inoutPlanMasterId;
Add(item);
sortIndex++;
@@ -130,7 +129,7 @@ namespace BLL
table.MaterialCode = newtable.MaterialCode;
table.PlanNum = newtable.PlanNum;
table.ActNum = newtable.ActNum;
- table.SortIndex= newtable.SortIndex;
+ table.SortIndex = newtable.SortIndex;
Funs.DB.SubmitChanges();
}
@@ -146,7 +145,7 @@ namespace BLL
}
}
- public static void DeleteByInOutPlanMasterId (string inoutPlanMasterId)
+ public static void DeleteByInOutPlanMasterId(string inoutPlanMasterId)
{
var list = Funs.DB.Tw_InOutPlanDetail.Where(x => x.InOutPlanMasterId == inoutPlanMasterId);
if (list != null)
diff --git a/SGGL/BLL/CLGL/TwInOutplanmasterService.cs b/SGGL/BLL/CLGL/TwInOutplanmasterService.cs
index b66eb84e..50a2f7df 100644
--- a/SGGL/BLL/CLGL/TwInOutplanmasterService.cs
+++ b/SGGL/BLL/CLGL/TwInOutplanmasterService.cs
@@ -1,16 +1,11 @@
using EmitMapper;
using FineUIPro;
-using Microsoft.Office.Interop.Word;
using MiniExcelLibs;
using Model;
-using NPOI.Util;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Numerics;
-using System.Text;
-using System.Web.UI.WebControls;
namespace BLL
@@ -33,7 +28,7 @@ namespace BLL
var q = from x in Funs.DB.Tw_InOutPlanMaster
join y in Funs.DB.HJGL_WeldTask on x.WeldTaskId equals y.WeldTaskId into yy
from y in yy.DefaultIfEmpty()
- join person in Funs.DB.Person_Persons on x.CreateMan equals person.PersonId into persons
+ join person in Funs.DB.Person_Persons on x.CreateMan equals person.PersonId into persons
from person in persons.DefaultIfEmpty()
join auditperson in Funs.DB.Person_Persons on x.AuditMan equals auditperson.PersonId into auditpersons
from auditperson in auditpersons.DefaultIfEmpty()
@@ -42,22 +37,22 @@ namespace BLL
join warehouseperson in Funs.DB.Person_Persons on x.WarehouseMan equals warehouseperson.PersonId into warehousepersons
from warehouseperson in warehousepersons.DefaultIfEmpty()
join unit in Funs.DB.Base_Unit on x.ReqUnitId equals unit.UnitId into units
- from unit in units.DefaultIfEmpty()
- orderby x.CreateDate descending
+ from unit in units.DefaultIfEmpty()
+ orderby x.CreateDate descending
where
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
(string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId)) &&
(string.IsNullOrEmpty(table.CusBillCode) || x.CusBillCode.Contains(table.CusBillCode)) &&
(string.IsNullOrEmpty(table.WarehouseCode) || x.WarehouseCode.Contains(table.WarehouseCode)) &&
(string.IsNullOrEmpty(table.CreateMan) || x.CreateMan.Contains(table.CreateMan)) &&
- (string.IsNullOrEmpty(table.OutputMasterId) || x.OutputMasterId.Contains(table.OutputMasterId)) &&
+ (string.IsNullOrEmpty(table.OutputMasterId) || x.OutputMasterId.Contains(table.OutputMasterId)) &&
(string.IsNullOrEmpty(table.ReqUnitId) || x.ReqUnitId.Contains(table.ReqUnitId)) &&
- (string.IsNullOrEmpty(table.UnitWorkId) || x.WeldTaskId.Contains(table.UnitWorkId))&&
- (string.IsNullOrEmpty(table.WeldTaskId) || x.WeldTaskId.Contains(table.WeldTaskId))&&
+ (string.IsNullOrEmpty(table.UnitWorkId) || x.WeldTaskId.Contains(table.UnitWorkId)) &&
+ (string.IsNullOrEmpty(table.WeldTaskId) || x.WeldTaskId.Contains(table.WeldTaskId)) &&
(table.InOutType == null || x.InOutType == table.InOutType) &&
(table.TypeInt == null || x.TypeInt == table.TypeInt) &&
(table.Category == null || x.Category == table.Category) &&
- (table.State == null || x.State == table.State)
+ (table.State == null || x.State == table.State)
select new Model.Tw_InOutMasterOutput
{
Id = x.Id,
@@ -76,7 +71,7 @@ namespace BLL
WeldTaskId = x.WeldTaskId,
ReqUnitId = x.ReqUnitId,
ReqUnitName = unit.UnitName,
- UnitWorkId = y.UnitWorkId,
+ UnitWorkId = y.UnitWorkId,
WeldTaskCode = y.TaskCode,
AuditMan = x.AuditMan,
AuditManName = auditperson.PersonName,
@@ -87,8 +82,8 @@ namespace BLL
AuditDate2 = x.AuditDate2,
WarehouseMan = x.WarehouseMan,
WarehouseDate = x.WarehouseDate,
- WarehouseManName= warehouseperson.PersonName,
- PipeLineSortIndex=y.PipeLineSortIndex
+ WarehouseManName = warehouseperson.PersonName,
+ PipeLineSortIndex = y.PipeLineSortIndex
}
;
@@ -115,41 +110,41 @@ namespace BLL
var result = q.ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return (from x in result
- select new Model.Tw_InOutMasterOutput
- {
- Id = x.Id,
- ProjectId = x.ProjectId,
- CusBillCode = x.CusBillCode,
- WarehouseCode = x.WarehouseCode,
- Source = x.Source,
- InOutType = x.InOutType,
- TypeInt = x.TypeInt,
- Category = x.Category,
- State = x.State,
- CreateMan = x.CreateMan,
- CreateManName = x.CreateManName,
- CreateDate = x.CreateDate,
- OutputMasterId = x.OutputMasterId,
- WeldTaskId = x.WeldTaskId,
- ReqUnitId = x.ReqUnitId,
- ReqUnitName = x.ReqUnitName,
- UnitWorkId = x.UnitWorkId,
- WeldTaskCode = x.WeldTaskId != null ? x.WeldTaskId.Contains('|') ? Funs.DB.HJGL_WeldTask.FirstOrDefault(e => e.UnitWorkId == x.WeldTaskId.Split('|')[0].ToString() && e.UnitId == x.WeldTaskId.Split('|')[1].ToString() && e.TaskDate.Value.Date == DateTime.ParseExact(x.WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null).Date)?.TaskCode : "" : "",
- CategoryString = TwConst.CategoryMap.FirstOrDefault(y => y.Value == x.Category).Key,
- TypeString = TwConst.TypeIntMap.FirstOrDefault(y => y.Value == x.TypeInt).Key,
- StateString = TwConst.StateMap.FirstOrDefault(y => y.Value == x.State).Key,
- AuditMan = x.AuditMan,
- AuditManName = x.AuditManName,
- AuditDate = x.AuditDate,
- Remark = x.Remark,
- AuditMan2=x.AuditMan2,
- AuditManName2 = x.AuditManName2,
- AuditDate2 = x.AuditDate2,
- WarehouseMan = x.WarehouseMan,
- WarehouseDate = x.WarehouseDate,
- WarehouseManName= x.WarehouseManName,
- PipeLineSortIndex = x.PipeLineSortIndex,
- }).ToList();
+ select new Model.Tw_InOutMasterOutput
+ {
+ Id = x.Id,
+ ProjectId = x.ProjectId,
+ CusBillCode = x.CusBillCode,
+ WarehouseCode = x.WarehouseCode,
+ Source = x.Source,
+ InOutType = x.InOutType,
+ TypeInt = x.TypeInt,
+ Category = x.Category,
+ State = x.State,
+ CreateMan = x.CreateMan,
+ CreateManName = x.CreateManName,
+ CreateDate = x.CreateDate,
+ OutputMasterId = x.OutputMasterId,
+ WeldTaskId = x.WeldTaskId,
+ ReqUnitId = x.ReqUnitId,
+ ReqUnitName = x.ReqUnitName,
+ UnitWorkId = x.UnitWorkId,
+ WeldTaskCode = x.WeldTaskId != null ? x.WeldTaskId.Contains('|') ? Funs.DB.HJGL_WeldTask.FirstOrDefault(e => e.UnitWorkId == x.WeldTaskId.Split('|')[0].ToString() && e.UnitId == x.WeldTaskId.Split('|')[1].ToString() && e.TaskDate.Value.Date == DateTime.ParseExact(x.WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null).Date)?.TaskCode : "" : "",
+ CategoryString = TwConst.CategoryMap.FirstOrDefault(y => y.Value == x.Category).Key,
+ TypeString = TwConst.TypeIntMap.FirstOrDefault(y => y.Value == x.TypeInt).Key,
+ StateString = TwConst.StateMap.FirstOrDefault(y => y.Value == x.State).Key,
+ AuditMan = x.AuditMan,
+ AuditManName = x.AuditManName,
+ AuditDate = x.AuditDate,
+ Remark = x.Remark,
+ AuditMan2 = x.AuditMan2,
+ AuditManName2 = x.AuditManName2,
+ AuditDate2 = x.AuditDate2,
+ WarehouseMan = x.WarehouseMan,
+ WarehouseDate = x.WarehouseDate,
+ WarehouseManName = x.WarehouseManName,
+ PipeLineSortIndex = x.PipeLineSortIndex,
+ }).ToList();
}
public static IEnumerable GetListData(Model.Tw_InOutMasterOutput table, Grid grid1)
@@ -194,38 +189,38 @@ namespace BLL
Remark = x.Remark,
AuditMan2 = x.AuditMan2,
AuditManName2 = x.AuditManName2,
- AuditDate2 = x.AuditDate2,
+ AuditDate2 = x.AuditDate2,
WarehouseMan = x.WarehouseMan,
- WarehouseDate = x.WarehouseDate,
- WarehouseManName= x.WarehouseManName
+ WarehouseDate = x.WarehouseDate,
+ WarehouseManName = x.WarehouseManName
};
}
- public static string GetWeldTaskCode( string WeldTaskId)
+ public static string GetWeldTaskCode(string WeldTaskId)
{
- string result=String.Empty;
+ string result = String.Empty;
if (string.IsNullOrEmpty(WeldTaskId)) return result;
- if (WeldTaskId.Split('|').Length==3) //用于处理历史数据
- {
+ if (WeldTaskId.Split('|').Length == 3) //用于处理历史数据
+ {
result = (from x in Funs.DB.HJGL_WeldTask
- where x.UnitWorkId == WeldTaskId.Split('|')[0].ToString()
- && x.UnitId == WeldTaskId.Split('|')[1].ToString()
- && x.TaskDate.Value.Date ==
- DateTime.ParseExact(WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null)
- select x.TaskCode).FirstOrDefault()
+ where x.UnitWorkId == WeldTaskId.Split('|')[0].ToString()
+ && x.UnitId == WeldTaskId.Split('|')[1].ToString()
+ && x.TaskDate.Value.Date ==
+ DateTime.ParseExact(WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null)
+ select x.TaskCode).FirstOrDefault()
?.ToString();
}
else if (WeldTaskId.Split('|').Length == 4)
{
result = (from x in Funs.DB.HJGL_WeldTask
- where x.UnitWorkId == WeldTaskId.Split('|')[0].ToString()
- && x.UnitId == WeldTaskId.Split('|')[1].ToString()
- && x.TaskDate.Value.Date ==
- DateTime.ParseExact(WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null)
- && x.SerialNumber== WeldTaskId.Split('|')[3]
+ where x.UnitWorkId == WeldTaskId.Split('|')[0].ToString()
+ && x.UnitId == WeldTaskId.Split('|')[1].ToString()
+ && x.TaskDate.Value.Date ==
+ DateTime.ParseExact(WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null)
+ && x.SerialNumber == WeldTaskId.Split('|')[3]
select x.TaskCode).FirstOrDefault()
?.ToString();
}
@@ -243,7 +238,7 @@ namespace BLL
///
///
///
- public static ResponeData ImportData(string OriFileName,string path, string projectid, string creatUserId)
+ public static ResponeData ImportData(string OriFileName, string path, string projectid, string creatUserId)
{
var responeData = new ResponeData();
List temeplateDtoIns;
@@ -269,9 +264,9 @@ namespace BLL
string errorWarehouseCode = "";
foreach (var item in warehouseCodeList)
{
- if (!DropListService.HJGL_WarehouseCode().Select(x=>x.Value== item).Any())
+ if (!DropListService.HJGL_WarehouseCode().Select(x => x.Value == item).Any())
{
- errorWarehouseCode+=item+",";
+ errorWarehouseCode += item + ",";
}
}
@@ -280,15 +275,15 @@ namespace BLL
if (temeplateDtoIns.Count == 0)
{
responeData.code = 0;
- responeData.message = errorWarehouseCode+"仓库不存在!";
+ responeData.message = errorWarehouseCode + "仓库不存在!";
return responeData;
}
}
var typeString = temeplateDtoIns.Select(x => x.TypeString).Distinct().ToList(); //获取导入文件的类型
- if (typeString.Where(x=>string.IsNullOrEmpty(x)).Count()>0)
+ if (typeString.Where(x => string.IsNullOrEmpty(x)).Count() > 0)
{
responeData.code = 0;
- responeData.message ="导入数据中类型列不能为空!";
+ responeData.message = "导入数据中类型列不能为空!";
return responeData;
}
if (typeString.Contains("采购入库") && typeString.Contains("其他入库"))
@@ -300,10 +295,10 @@ namespace BLL
var materialCodeList = temeplateDtoIns.Select(x => x.MaterialCode).Distinct().ToList(); //获取导入文件的材料编码
- var IsExitMaterialCode=
- from x in Funs.DB.HJGL_MaterialCodeLib
- where materialCodeList.Contains(x.MaterialCode)
- select x.MaterialCode;
+ var IsExitMaterialCode =
+ from x in Funs.DB.HJGL_MaterialCodeLib
+ where materialCodeList.Contains(x.MaterialCode)
+ select x.MaterialCode;
if (IsExitMaterialCode.Count() < materialCodeList.Count)
{
var errorMaterialCode = materialCodeList.Except(IsExitMaterialCode.ToList());
@@ -314,7 +309,7 @@ namespace BLL
return responeData;
}
}
- string cusbilcode = GetDataInCusBillCode(projectid,UnitService.GetUnitCodeByUnitId(Person_PersonsService.GetPerson_PersonsById(creatUserId).UnitId), temeplateDtoIns.FirstOrDefault().TypeString);
+ string cusbilcode = GetDataInCusBillCode(projectid, UnitService.GetUnitCodeByUnitId(Person_PersonsService.GetPerson_PersonsById(creatUserId).UnitId), temeplateDtoIns.FirstOrDefault().TypeString);
foreach (var item in temeplateDtoIns)
{
item.CusBillCode = cusbilcode;
@@ -348,7 +343,7 @@ namespace BLL
var twInOutPlanDetails = mapperDetail.Map(CusBillCodeDtoIns.Where(x => !string.IsNullOrEmpty(x.MaterialCode) && !string.IsNullOrEmpty(x.PlanNum)).ToList());
twInOutPlanMaster.Id = SQLHelper.GetNewID();
- twInOutPlanMaster.InOutType= (int)TwConst.InOutType.入库;
+ twInOutPlanMaster.InOutType = (int)TwConst.InOutType.入库;
twInOutPlanMaster.State = (int)TwConst.State.待审核;
if ("采购入库".Equals(FirstCusBillCodeDtoIns.TypeString))
@@ -365,12 +360,12 @@ namespace BLL
twInOutPlanMaster.TypeInt = (int)TwConst.TypeInt.其他入库;
}
- twInOutPlanMaster.Category= (int)TwConst.Category.全部;
+ twInOutPlanMaster.Category = (int)TwConst.Category.全部;
twInOutPlanMaster.ProjectId = projectid;
twInOutPlanMaster.CreateMan = creatUserId;
twInOutPlanMaster.CreateDate = DateTime.Now;
twInOutPlanMaster.Remark = OriFileName;
- Add(twInOutPlanMaster);
+ Add(twInOutPlanMaster);
TwInOutplandetailService.AddList(twInOutPlanDetails, twInOutPlanMaster.Id); //插入入库明细
}
@@ -404,8 +399,8 @@ namespace BLL
AuditMan = newtable.AuditMan,
AuditDate = newtable.AuditDate,
Remark = newtable.Remark,
- AuditMan2=newtable.AuditMan2,
- AuditDate2=newtable.AuditDate2,
+ AuditMan2 = newtable.AuditMan2,
+ AuditDate2 = newtable.AuditDate2,
WarehouseMan = newtable.WarehouseMan,
WarehouseDate = newtable.WarehouseDate,
};
@@ -464,16 +459,16 @@ namespace BLL
///
///
///
- public static string GenPlanMasterByOutputMasterId(string outputMasterId,TwConst.TypeInt typeInt)
+ public static string GenPlanMasterByOutputMasterId(string outputMasterId, TwConst.TypeInt typeInt)
{
string message = "";
#region 数据校验
-
+
//获取出库单
var outMasterQuery = new Tw_InOutMasterOutput();
outMasterQuery.Id = outputMasterId;
- var outMaster = TwOutputmasterService.GetListData(outMasterQuery) .FirstOrDefault() ;
+ var outMaster = TwOutputmasterService.GetListData(outMasterQuery).FirstOrDefault();
if (outMaster == null || outMaster.State != (int)TwConst.State.已完成)
{
message = "出库单状态错误,无法生成计划单!";
@@ -482,7 +477,7 @@ namespace BLL
//判断是否已经生成过计划单
var queryIsExitInMaster = new Tw_InOutMasterOutput();
queryIsExitInMaster.OutputMasterId = outMaster.Id;
- queryIsExitInMaster.TypeInt= (int)typeInt;
+ queryIsExitInMaster.TypeInt = (int)typeInt;
var IsExitInMaster = GetModle(queryIsExitInMaster).FirstOrDefault();
if (IsExitInMaster != null)
{
@@ -497,11 +492,11 @@ namespace BLL
{
case TwConst.TypeInt.补料出库:
details = details.Where(x => x.PlanNum > x.ActNum).ToList();
- foreach (var item in details)
+ foreach (var item in details)
{
item.PlanNum = (item.PlanNum - item.ActNum);
}
- if (details.Count==0)
+ if (details.Count == 0)
{
message = "该出库单无需补料";
return message;
@@ -519,14 +514,14 @@ namespace BLL
return message;
}
break;
- }
+ }
#endregion
//生成计划单
var planMasterModel = new Model.Tw_InOutMasterOutput()
{
Id = Guid.NewGuid().ToString(),
OutputMasterId = outMaster.Id,
- ProjectId = outMaster.ProjectId,
+ ProjectId = outMaster.ProjectId,
WarehouseCode = outMaster.WarehouseCode,
Source = 2,
Category = outMaster.Category,
@@ -541,26 +536,26 @@ namespace BLL
switch (typeInt)
{
case TwConst.TypeInt.补料出库:
- planMasterModel.CusBillCode = GetCusBillCodeByTaskCode(outMaster.WeldTaskCode,TwConst.TypeInt.补料出库,(BLL.TwConst.Category)planMasterModel.Category);
- planMasterModel.TypeInt= (int)TwConst.TypeInt.补料出库;
- planMasterModel.InOutType= (int)TwConst.InOutType.出库;
+ planMasterModel.CusBillCode = GetCusBillCodeByTaskCode(outMaster.WeldTaskCode, TwConst.TypeInt.补料出库, (BLL.TwConst.Category)planMasterModel.Category);
+ planMasterModel.TypeInt = (int)TwConst.TypeInt.补料出库;
+ planMasterModel.InOutType = (int)TwConst.InOutType.出库;
break;
case TwConst.TypeInt.退料入库:
string pre = "";
pre += DateTime.Now.ToString("yyyyMMdd");
pre += UnitService.GetUnitCodeByUnitId(outMaster.ReqUnitId);
- pre += "-"+ UnitWorkService.getUnitWorkByUnitWorkId(outMaster.UnitWorkId)?.UnitWorkCode;
- planMasterModel.CusBillCode = GetCusBillCodeByTaskCode(pre , TwConst.TypeInt.退料入库, (BLL.TwConst.Category)planMasterModel.Category);
+ pre += "-" + UnitWorkService.getUnitWorkByUnitWorkId(outMaster.UnitWorkId)?.UnitWorkCode;
+ planMasterModel.CusBillCode = GetCusBillCodeByTaskCode(pre, TwConst.TypeInt.退料入库, (BLL.TwConst.Category)planMasterModel.Category);
planMasterModel.TypeInt = (int)TwConst.TypeInt.退料入库;
planMasterModel.InOutType = (int)TwConst.InOutType.入库;
- ;
+ ;
break;
}
Add(planMasterModel);
//生成明细
TwInOutplandetailService.AddList(details, planMasterModel.Id);
return message;
- }
+ }
///
/// 获取出库申请单编号
///
@@ -568,17 +563,17 @@ namespace BLL
///
///
///
- public static string GetCusBillCodeByTaskCode(string taskCode,TwConst.TypeInt typeInt,TwConst.Category category )
+ public static string GetCusBillCodeByTaskCode(string taskCode, TwConst.TypeInt typeInt, TwConst.Category category)
{
string cusBillCode = "";
- switch (typeInt )
+ switch (typeInt)
{
case TwConst.TypeInt.领料出库:
- if (category== TwConst.Category.管段)
+ if (category == TwConst.Category.管段)
{
cusBillCode = taskCode + "-AP-P01";
}
- else if (category == TwConst.Category.管件)
+ else if (category == TwConst.Category.管件)
{
cusBillCode = taskCode + "-AP-PF01";
}
@@ -611,12 +606,12 @@ namespace BLL
}
- public static string GetDataInCusBillCode(string projectid, string unitcode,string typeString,string unitWorkCode="",string Category = "")
+ public static string GetDataInCusBillCode(string projectid, string unitcode, string typeString, string unitWorkCode = "", string Category = "")
{
if (typeString == TwConst.TypeInt.其他入库.ToString())
{
//生成规则是20240919-unitcode-AP-GR01
- string cusBillCode = string.Format("{0:yyyyMMdd}", DateTime.Now) ;
+ string cusBillCode = string.Format("{0:yyyyMMdd}", DateTime.Now);
var queryAll = new Tw_InOutMasterOutput()
{
ProjectId = projectid,
@@ -629,14 +624,14 @@ namespace BLL
else if (typeString == TwConst.TypeInt.散件出库.ToString())
{
//生成规则是20240919-unitcode-AP-GR01
- string cusBillCode = string.Format("{0:yyyyMMdd}", DateTime.Now) + unitcode+"-" + unitWorkCode +"-";
+ string cusBillCode = string.Format("{0:yyyyMMdd}", DateTime.Now) + unitcode + "-" + unitWorkCode + "-";
var queryAll = new Tw_InOutMasterOutput()
{
ProjectId = projectid,
CusBillCode = cusBillCode,
Category = Category == TwConst.Category.管段.ToString() ? (int)TwConst.Category.管段 : (int)TwConst.Category.管件
- };
+ };
var queryAllresult = GetModle(queryAll).Count();
if (Category == TwConst.Category.管段.ToString())
{
@@ -660,7 +655,7 @@ namespace BLL
TypeInt = (int)TwConst.TypeInt.其他出库,
};
var queryAllresult = GetModle(queryAll).Count();
- cusBillCode = cusBillCode +"-AP-"+ (queryAllresult + 1).ToString().PadLeft(2, '0');
+ cusBillCode = cusBillCode + "-AP-" + (queryAllresult + 1).ToString().PadLeft(2, '0');
return cusBillCode;
}
@@ -686,38 +681,38 @@ namespace BLL
///
///
///
- public static void GenOutPlanmasterByWeldTaskId(string unitworkid,string unitid,DateTime date,string serialNumber, string Personid)
+ public static void GenOutPlanmasterByWeldTaskId(string unitworkid, string unitid, DateTime date, string serialNumber, string Personid)
{
Model.SGGLDB db = Funs.DB;
- Model.View_HJGL_WeldingTask weldTask = db.View_HJGL_WeldingTask.FirstOrDefault(e => e.UnitWorkId==unitworkid && e.UnitId==unitid&& e.TaskDate.Value.Date==date.Date && e.SerialNumber==serialNumber);
- if (weldTask==null)
+ Model.View_HJGL_WeldingTask weldTask = db.View_HJGL_WeldingTask.FirstOrDefault(e => e.UnitWorkId == unitworkid && e.UnitId == unitid && e.TaskDate.Value.Date == date.Date && e.SerialNumber == serialNumber);
+ if (weldTask == null)
{
return;
}
- string WeldTaskId= unitworkid+"|"+unitid+ "|" + string.Format("{0:yyyyMMdd}", date)+"|"+serialNumber;
+ string WeldTaskId = unitworkid + "|" + unitid + "|" + string.Format("{0:yyyyMMdd}", date) + "|" + serialNumber;
//判断是否已经生成过出库计划单
var queryIsExitInMaster = new Tw_InOutMasterOutput();
queryIsExitInMaster.WeldTaskId = WeldTaskId;
- queryIsExitInMaster.InOutType=(int)TwConst.InOutType.出库;
+ queryIsExitInMaster.InOutType = (int)TwConst.InOutType.出库;
queryIsExitInMaster.TypeInt = (int)TwConst.TypeInt.领料出库;
var IsExitInMaster = TwInOutplanmasterService.GetModle(queryIsExitInMaster).FirstOrDefault();
if (IsExitInMaster != null)
{
return;
- }
- var pipelineList = db.View_HJGL_WeldingTask.Where(e => e.UnitWorkId == unitworkid && e.UnitId == unitid && e.TaskDate.Value.Date == date.Date && e.SerialNumber == serialNumber).OrderBy(x=>x.PipeLineSortIndex).Select(x=>x.PipelineId).Distinct().ToList();
+ }
+ var pipelineList = db.View_HJGL_WeldingTask.Where(e => e.UnitWorkId == unitworkid && e.UnitId == unitid && e.TaskDate.Value.Date == date.Date && e.SerialNumber == serialNumber).OrderBy(x => x.PipeLineSortIndex).Select(x => x.PipelineId).Distinct().ToList();
//领料出库需要排除散件材料
- var MaterDatial= from x in db.HJGL_PipeLineMat
- join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
- where pipelineList.Contains(x.PipelineId) && x.PrefabricatedComponents !=null
- select new
- {
- x.PipelineId,
- x.PrefabricatedComponents,
- x.MaterialCode,
- x.Number,
- y.MaterialUnit,
- };
+ var MaterDatial = from x in db.HJGL_PipeLineMat
+ join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
+ where pipelineList.Contains(x.PipelineId) && x.PrefabricatedComponents != null
+ select new
+ {
+ x.PipelineId,
+ x.PrefabricatedComponents,
+ x.MaterialCode,
+ x.Number,
+ y.MaterialUnit,
+ };
//var outMateriaList = from x in db.HJGL_PipeLineMat
// join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
// where pipelineList.Contains(x.PipelineId)
@@ -729,7 +724,7 @@ namespace BLL
// planNum = g.Sum(x => x.Number) ?? 0,
// MaterialName = g.Key.MaterialUnit,
// };
- var outMateriaList = from x in MaterDatial
+ var outMateriaList = from x in MaterDatial
group x by new { x.MaterialCode, x.MaterialUnit }
into g
select new
@@ -749,7 +744,7 @@ namespace BLL
Id = Guid.NewGuid().ToString(),
ProjectId = weldTask.ProjectId,
// CusBillCode = string.Format("{0:yyyyMMdd}", DateTime.Now) + UnitService.GetUnitCodeByUnitId(weldTask.UnitId) + "-" + UnitWorkService.getUnitWorkByUnitWorkId(weldTask.UnitWorkId)?.UnitWorkCode + "AP-PF01",
- CusBillCode=TwInOutplanmasterService.GetCusBillCodeByTaskCode(weldTaskCode,TwConst.TypeInt.领料出库,TwConst.Category.管件),
+ CusBillCode = TwInOutplanmasterService.GetCusBillCodeByTaskCode(weldTaskCode, TwConst.TypeInt.领料出库, TwConst.Category.管件),
WarehouseCode = PipelineService.GetPipeArea().Where(x => x.Value == PipelineService.GetPipelineByPipelineId(weldTask.PipelineId).PipeArea).Select(x => x.Text).FirstOrDefault(),
Source = 1,
InOutType = (int)TwConst.InOutType.出库,
@@ -774,7 +769,7 @@ namespace BLL
TwInOutplandetailService.Add(detail);
}
var twinoutplandetailRelationList = MaterDatial.ToList().Select(x => new Tw_InOutPlanDetail_Relation
- {
+ {
PipelineId = x.PipelineId,
MaterialCode = x.MaterialCode,
Number = x.Number,
@@ -788,7 +783,7 @@ namespace BLL
{
Id = Guid.NewGuid().ToString(),
ProjectId = weldTask.ProjectId,
- CusBillCode =TwInOutplanmasterService.GetCusBillCodeByTaskCode(weldTaskCode, TwConst.TypeInt.领料出库, TwConst.Category.管段),
+ CusBillCode = TwInOutplanmasterService.GetCusBillCodeByTaskCode(weldTaskCode, TwConst.TypeInt.领料出库, TwConst.Category.管段),
WarehouseCode = PipelineService.GetPipeArea().Where(x => x.Value == PipelineService.GetPipelineByPipelineId(weldTask.PipelineId).PipeArea).Select(x => x.Text).FirstOrDefault(),
Source = 1,
InOutType = (int)TwConst.InOutType.出库,
diff --git a/SGGL/BLL/CLGL/TwInputdetailService.cs b/SGGL/BLL/CLGL/TwInputdetailService.cs
index 33329c0d..a0c62e0e 100644
--- a/SGGL/BLL/CLGL/TwInputdetailService.cs
+++ b/SGGL/BLL/CLGL/TwInputdetailService.cs
@@ -1,9 +1,7 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -35,7 +33,7 @@ namespace BLL
(string.IsNullOrEmpty(table.InputMasterId) || x.InputMasterId.Contains(table.InputMasterId)) &&
(string.IsNullOrEmpty(table.PipelineComponentId) || x.PipelineComponentId.Contains(table.PipelineComponentId)) &&
(string.IsNullOrEmpty(table.MaterialCode) || x.MaterialCode.Contains(table.MaterialCode))
- orderby x.SortIndex
+ orderby x.SortIndex
select new Model.Tw_InOutDetailOutput
{
Id = x.Id,
@@ -128,20 +126,20 @@ namespace BLL
public static IEnumerable GePrintListByInputMasterIds(List inputMasterIds)
{
var q = from x in Funs.DB.Tw_InputDetail
- join mat in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals mat.MaterialCode into mm
- from mat in mm.DefaultIfEmpty()
- join y in Funs.DB.Tw_InputMaster on x.InputMasterId equals y.Id
- where inputMasterIds.Contains(x.InputMasterId)
- orderby y.CusBillCode,x.SortIndex
- select new
- {
- 入库单编号 = y.CusBillCode,
- 材料编码 = x.MaterialCode,
- 材料名称 = mat.MaterialName,
- 材料描述 = mat.MaterialDef,
- 计划数量 = x.PlanNum,
- 实际数量 = x.ActNum,
- };
+ join mat in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals mat.MaterialCode into mm
+ from mat in mm.DefaultIfEmpty()
+ join y in Funs.DB.Tw_InputMaster on x.InputMasterId equals y.Id
+ where inputMasterIds.Contains(x.InputMasterId)
+ orderby y.CusBillCode, x.SortIndex
+ select new
+ {
+ 入库单编号 = y.CusBillCode,
+ 材料编码 = x.MaterialCode,
+ 材料名称 = mat.MaterialName,
+ 材料描述 = mat.MaterialDef,
+ 计划数量 = x.PlanNum,
+ 实际数量 = x.ActNum,
+ };
return q;
}
}
diff --git a/SGGL/BLL/CLGL/TwInputmasterService.cs b/SGGL/BLL/CLGL/TwInputmasterService.cs
index 0a532b5e..7f2d06eb 100644
--- a/SGGL/BLL/CLGL/TwInputmasterService.cs
+++ b/SGGL/BLL/CLGL/TwInputmasterService.cs
@@ -4,14 +4,13 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
{
public static class TwInputmasterService
- {
+ {
#region 获取列表
///
/// 记录数
@@ -39,8 +38,8 @@ namespace BLL
(string.IsNullOrEmpty(table.CusBillCode) || x.CusBillCode.Contains(table.CusBillCode)) &&
(string.IsNullOrEmpty(table.WarehouseCode) || x.WarehouseCode.Contains(table.WarehouseCode)) &&
(string.IsNullOrEmpty(table.CreateMan) || x.CreateMan.Contains(table.CreateMan)) &&
- (string.IsNullOrEmpty(table.ReqUnitId) || x.ReqUnitId.Contains(table.ReqUnitId)) &&
- (table.TypeInt == null || x.TypeInt == table.TypeInt) &&
+ (string.IsNullOrEmpty(table.ReqUnitId) || x.ReqUnitId.Contains(table.ReqUnitId)) &&
+ (table.TypeInt == null || x.TypeInt == table.TypeInt) &&
(table.Category == null || x.Category == table.Category) &&
(table.State == null || x.State == table.State)
select new Model.Tw_InOutMasterOutput
@@ -88,36 +87,36 @@ namespace BLL
var result = q.Skip(grid1.PageSize * grid1.PageIndex).Take(grid1.PageSize).ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in result
- select new Model.Tw_InOutMasterOutput
- {
- Id = x.Id,
- ProjectId = x.ProjectId,
- CusBillCode = x.CusBillCode,
- InOutPlanMasterId = x.InOutPlanMasterId,
- WarehouseCode = x.WarehouseCode,
- Source = x.Source,
- TypeInt = x.TypeInt,
- State = x.State,
- CreateMan = x.CreateMan,
- CreateManName = x.CreateManName,
- CreateDate = x.CreateDate,
- ReqUnitId = x.ReqUnitId,
- ReqUnitName = x.ReqUnitName,
- Category = x.Category,
- CategoryString = TwConst.CategoryMap.FirstOrDefault(y => y.Value == x.Category).Key,
- TypeString = TwConst.TypeIntMap.FirstOrDefault(y => y.Value == x.TypeInt).Key,
- StateString = TwConst.StateMap.FirstOrDefault(y => y.Value == x.State).Key,
- AuditMan = x.AuditMan,
- AuditManName = x.AuditManName,
- AuditDate = x.AuditDate,
- Remark=x.Remark,
- WarehouseMan = x.WarehouseMan,
- WarehouseDate = x.WarehouseDate,
- WarehouseManName= x.WarehouseManName
- };
+ select new Model.Tw_InOutMasterOutput
+ {
+ Id = x.Id,
+ ProjectId = x.ProjectId,
+ CusBillCode = x.CusBillCode,
+ InOutPlanMasterId = x.InOutPlanMasterId,
+ WarehouseCode = x.WarehouseCode,
+ Source = x.Source,
+ TypeInt = x.TypeInt,
+ State = x.State,
+ CreateMan = x.CreateMan,
+ CreateManName = x.CreateManName,
+ CreateDate = x.CreateDate,
+ ReqUnitId = x.ReqUnitId,
+ ReqUnitName = x.ReqUnitName,
+ Category = x.Category,
+ CategoryString = TwConst.CategoryMap.FirstOrDefault(y => y.Value == x.Category).Key,
+ TypeString = TwConst.TypeIntMap.FirstOrDefault(y => y.Value == x.TypeInt).Key,
+ StateString = TwConst.StateMap.FirstOrDefault(y => y.Value == x.State).Key,
+ AuditMan = x.AuditMan,
+ AuditManName = x.AuditManName,
+ AuditDate = x.AuditDate,
+ Remark = x.Remark,
+ WarehouseMan = x.WarehouseMan,
+ WarehouseDate = x.WarehouseDate,
+ WarehouseManName = x.WarehouseManName
+ };
}
- public static List GetListData(Model.Tw_InOutMasterOutput table )
+ public static List GetListData(Model.Tw_InOutMasterOutput table)
{
var q = GetModle(table);
Count = q.Count();
@@ -128,33 +127,33 @@ namespace BLL
var result = q.ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return (from x in result
- select new Model.Tw_InOutMasterOutput
- {
- Id = x.Id,
- ProjectId = x.ProjectId,
- CusBillCode = x.CusBillCode,
- InOutPlanMasterId = x.InOutPlanMasterId,
- WarehouseCode = x.WarehouseCode,
- Source = x.Source,
- TypeInt = x.TypeInt,
- State = x.State,
- CreateMan = x.CreateMan,
- CreateManName = x.CreateManName,
- CreateDate = x.CreateDate,
- ReqUnitId = x.ReqUnitId,
- ReqUnitName = x.ReqUnitName,
- Category = x.Category,
- CategoryString = TwConst.CategoryMap.FirstOrDefault(y => y.Value == x.Category).Key,
- TypeString = TwConst.TypeIntMap.FirstOrDefault(y => y.Value == x.TypeInt).Key,
- StateString = TwConst.StateMap.FirstOrDefault(y => y.Value == x.State).Key,
- AuditMan = x.AuditMan,
- AuditManName = x.AuditManName,
- AuditDate = x.AuditDate,
- Remark = x.Remark,
- WarehouseMan = x.WarehouseMan,
- WarehouseDate = x.WarehouseDate,
- WarehouseManName= x.WarehouseManName
- }).ToList();
+ select new Model.Tw_InOutMasterOutput
+ {
+ Id = x.Id,
+ ProjectId = x.ProjectId,
+ CusBillCode = x.CusBillCode,
+ InOutPlanMasterId = x.InOutPlanMasterId,
+ WarehouseCode = x.WarehouseCode,
+ Source = x.Source,
+ TypeInt = x.TypeInt,
+ State = x.State,
+ CreateMan = x.CreateMan,
+ CreateManName = x.CreateManName,
+ CreateDate = x.CreateDate,
+ ReqUnitId = x.ReqUnitId,
+ ReqUnitName = x.ReqUnitName,
+ Category = x.Category,
+ CategoryString = TwConst.CategoryMap.FirstOrDefault(y => y.Value == x.Category).Key,
+ TypeString = TwConst.TypeIntMap.FirstOrDefault(y => y.Value == x.TypeInt).Key,
+ StateString = TwConst.StateMap.FirstOrDefault(y => y.Value == x.State).Key,
+ AuditMan = x.AuditMan,
+ AuditManName = x.AuditManName,
+ AuditDate = x.AuditDate,
+ Remark = x.Remark,
+ WarehouseMan = x.WarehouseMan,
+ WarehouseDate = x.WarehouseDate,
+ WarehouseManName = x.WarehouseManName
+ }).ToList();
}
#endregion
@@ -181,16 +180,16 @@ namespace BLL
CreateMan = newtable.CreateMan,
CreateDate = newtable.CreateDate,
ReqUnitId = newtable.ReqUnitId,
- AuditMan= newtable.AuditMan,
+ AuditMan = newtable.AuditMan,
AuditDate = newtable.AuditDate,
Remark = newtable.Remark,
- WarehouseMan= newtable.WarehouseMan,
+ WarehouseMan = newtable.WarehouseMan,
WarehouseDate = newtable.WarehouseDate
};
Funs.DB.Tw_InputMaster.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
-
+
public static void Update(Model.Tw_InputMaster newtable)
{
@@ -233,16 +232,16 @@ namespace BLL
///
/// 根据计划单生成入库单
///
- public static void GenInMasterByPlanId(string planId, List detailLists,string remark)
+ public static void GenInMasterByPlanId(string planId, List detailLists, string remark)
{
//获取计划单
var planQueryModel = new Tw_InOutMasterOutput();
planQueryModel.Id = planId;
- var plan = TwInOutplanmasterService.GetListData(planQueryModel).FirstOrDefault();
- if (plan == null || plan.State!= (int)TwConst.State.已审核)
+ var plan = TwInOutplanmasterService.GetListData(planQueryModel).FirstOrDefault();
+ if (plan == null || plan.State != (int)TwConst.State.已审核)
{
return;
- }
+ }
//判断是否已经生成过入库单
var queryIsExitInMaster = new Tw_InOutMasterOutput();
queryIsExitInMaster.InOutPlanMasterId = planId;
@@ -269,7 +268,7 @@ namespace BLL
ReqUnitId = plan.ReqUnitId,
AuditMan = plan.AuditMan,
AuditDate = plan.AuditDate,
- Remark= remark,
+ Remark = remark,
WarehouseMan = plan.WarehouseMan,
WarehouseDate = plan.WarehouseDate
};
@@ -292,20 +291,20 @@ namespace BLL
TwMaterialstockService.UpdateStockNum(master.ProjectId, detail.MaterialCode, master.WarehouseCode, TwConst.InOutType.入库, detailTable.ActNum);
}
- var planTable =TwInOutplanmasterService.GetById(plan.Id);
+ var planTable = TwInOutplanmasterService.GetById(plan.Id);
if (planTable != null)
{
planTable.State = (int)TwConst.State.已完成;
TwInOutplanmasterService.Update(planTable);
}
-
+
}
///
/// 根据计划单撤销入库单
///
///
public static void RevokeGenInMasterByPlanId(string planId)
- {
+ {
//校验计划单状态
var plan = TwInOutplanmasterService.GetById(planId);
if (plan == null || plan.State != (int)TwConst.State.已完成)
@@ -329,7 +328,7 @@ namespace BLL
{
TwInputdetailService.DeleteById(detail.Id);
//撤销入库,即减去库存
- TwMaterialstockService.UpdateStockNum(master.ProjectId,detail.MaterialCode, master.WarehouseCode,TwConst.InOutType.出库, detail.ActNum);
+ TwMaterialstockService.UpdateStockNum(master.ProjectId, detail.MaterialCode, master.WarehouseCode, TwConst.InOutType.出库, detail.ActNum);
}
plan.State = (int)TwConst.State.已审核;
TwInOutplanmasterService.Update(plan);
@@ -347,7 +346,7 @@ namespace BLL
{
string cusBillCode = "";
switch (typeInt)
- {
+ {
case TwConst.TypeInt.退料入库:
if (category == TwConst.Category.管段)
{
diff --git a/SGGL/BLL/CLGL/TwMaterialstockService.cs b/SGGL/BLL/CLGL/TwMaterialstockService.cs
index 72e15ab3..6d3bcc3e 100644
--- a/SGGL/BLL/CLGL/TwMaterialstockService.cs
+++ b/SGGL/BLL/CLGL/TwMaterialstockService.cs
@@ -3,7 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -130,13 +129,13 @@ namespace BLL
///
///
///
- public static void UpdateStockNum(string ProjectId, string MaterialCode, string WarehouseCode,TwConst.InOutType inOutType , decimal? StockNum)
+ public static void UpdateStockNum(string ProjectId, string MaterialCode, string WarehouseCode, TwConst.InOutType inOutType, decimal? StockNum)
{
Model.Tw_MaterialStock table = Funs.DB.Tw_MaterialStock.FirstOrDefault(x => x.ProjectId == ProjectId && x.PipeLineMatCode == MaterialCode && x.WarehouseCode == WarehouseCode);
//如果是入库,则库存数量加上,如果是出库,则库存数量减去
- if (inOutType==TwConst.InOutType.出库)
+ if (inOutType == TwConst.InOutType.出库)
{
- StockNum=-StockNum;//出库,库存数量减去
+ StockNum = -StockNum;//出库,库存数量减去
}
if (table != null)
{
@@ -147,12 +146,12 @@ namespace BLL
else
{
Model.Tw_MaterialStock newtable = new Model.Tw_MaterialStock
- {
+ {
Id = Guid.NewGuid().ToString(),
ProjectId = ProjectId,
PipeLineMatCode = MaterialCode,
WarehouseCode = WarehouseCode,
- StockNum = StockNum??0,
+ StockNum = StockNum ?? 0,
};
Funs.DB.Tw_MaterialStock.InsertOnSubmit(newtable);
Funs.DB.SubmitChanges();
diff --git a/SGGL/BLL/CLGL/TwOutputdetailService..cs b/SGGL/BLL/CLGL/TwOutputdetailService..cs
index 93005ebb..7327842e 100644
--- a/SGGL/BLL/CLGL/TwOutputdetailService..cs
+++ b/SGGL/BLL/CLGL/TwOutputdetailService..cs
@@ -1,10 +1,7 @@
using FineUIPro;
-using NPOI.OpenXmlFormats.Wordprocessing;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -27,7 +24,7 @@ namespace BLL
var q = from x in Funs.DB.Tw_OutputDetail
join y in Funs.DB.HJGL_Pipeline_Component on x.PipelineComponentId equals y.PipelineComponentId into yy
from y in yy.DefaultIfEmpty()
- join mat in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals mat.MaterialCode into mm
+ join mat in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals mat.MaterialCode into mm
from mat in mm.DefaultIfEmpty()
join master in Funs.DB.Tw_OutputMaster on x.OutputMasterId equals master.Id into masters
from master in masters.DefaultIfEmpty()
@@ -37,14 +34,14 @@ namespace BLL
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
(string.IsNullOrEmpty(table.OutputMasterId) || x.OutputMasterId.Contains(table.OutputMasterId)) &&
(string.IsNullOrEmpty(table.PipelineComponentId) || x.PipelineComponentId.Contains(table.PipelineComponentId)) &&
- (string.IsNullOrEmpty(table.MaterialCode) || x.MaterialCode.Contains(table.MaterialCode))&&
- (table.TypeInt ==null || master.TypeInt==table.TypeInt)
+ (string.IsNullOrEmpty(table.MaterialCode) || x.MaterialCode.Contains(table.MaterialCode)) &&
+ (table.TypeInt == null || master.TypeInt == table.TypeInt)
select new Model.Tw_InOutDetailOutput
{
Id = x.Id,
OutputMasterId = x.OutputMasterId,
- CusBillCode=master.CusBillCode,
- TypeInt=master.TypeInt,
+ CusBillCode = master.CusBillCode,
+ TypeInt = master.TypeInt,
PipelineComponentId = x.PipelineComponentId,
MaterialCode = x.MaterialCode,
PlanNum = x.PlanNum,
@@ -52,7 +49,7 @@ namespace BLL
PipelineComponentCode = y.PipelineComponentCode,
MaterialName = mat.MaterialName,
StockNum = stock.StockNum ?? 0,
- DiffNum = (x.ActNum??0) - (x.PlanNum??0),
+ DiffNum = (x.ActNum ?? 0) - (x.PlanNum ?? 0),
MaterialDef = mat.MaterialDef
}
;
@@ -134,20 +131,20 @@ namespace BLL
public static IEnumerable GetPrintListByOutputMasterIds(List outputMasterIds)
{
- var q= from x in Funs.DB.Tw_OutputDetail
- join y in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
- join master in Funs.DB.Tw_OutputMaster on x.OutputMasterId equals master.Id
- where outputMasterIds.Contains(x.OutputMasterId)
- orderby master.CusBillCode
- select new
- {
- 出库单编号 = master.CusBillCode,
- 材料编码 = x.MaterialCode,
- 材料名称 = y.MaterialName,
- 材料描述 = y.MaterialDef,
- 计划数量 = x.PlanNum,
- 实际数量 = x.ActNum,
- };
+ var q = from x in Funs.DB.Tw_OutputDetail
+ join y in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
+ join master in Funs.DB.Tw_OutputMaster on x.OutputMasterId equals master.Id
+ where outputMasterIds.Contains(x.OutputMasterId)
+ orderby master.CusBillCode
+ select new
+ {
+ 出库单编号 = master.CusBillCode,
+ 材料编码 = x.MaterialCode,
+ 材料名称 = y.MaterialName,
+ 材料描述 = y.MaterialDef,
+ 计划数量 = x.PlanNum,
+ 实际数量 = x.ActNum,
+ };
return q;
}
diff --git a/SGGL/BLL/CLGL/TwOutputmasterService.cs b/SGGL/BLL/CLGL/TwOutputmasterService.cs
index 1e10ce33..1dc3177e 100644
--- a/SGGL/BLL/CLGL/TwOutputmasterService.cs
+++ b/SGGL/BLL/CLGL/TwOutputmasterService.cs
@@ -4,7 +4,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -13,7 +12,7 @@ namespace BLL
/// 入库单逻辑层
///
public static class TwOutputmasterService
- {
+ {
#region 获取列表
///
/// 记录数
@@ -26,12 +25,12 @@ namespace BLL
public static IQueryable GetModle(Model.Tw_InOutMasterOutput table)
{
var q = from x in Funs.DB.Tw_OutputMaster
- join y in Funs.DB.Tw_InOutPlanMaster on x.InOutPlanMasterId equals y.Id into yy
- from y in yy.DefaultIfEmpty()
- //join z in Funs.DB.HJGL_WeldTask on y.WeldTaskId equals z.WeldTaskId into zz
- //from z in zz.DefaultIfEmpty()
+ join y in Funs.DB.Tw_InOutPlanMaster on x.InOutPlanMasterId equals y.Id into yy
+ from y in yy.DefaultIfEmpty()
+ //join z in Funs.DB.HJGL_WeldTask on y.WeldTaskId equals z.WeldTaskId into zz
+ //from z in zz.DefaultIfEmpty()
join person in Funs.DB.Person_Persons on x.CreateMan equals person.PersonId into persons
- from person in persons.DefaultIfEmpty()
+ from person in persons.DefaultIfEmpty()
join auditperson in Funs.DB.Person_Persons on x.AuditMan equals auditperson.PersonId into auditpersons
from auditperson in auditpersons.DefaultIfEmpty()
join auditperson2 in Funs.DB.Person_Persons on x.AuditMan2 equals auditperson2.PersonId into auditpersons2
@@ -39,48 +38,48 @@ namespace BLL
join warehouseperson in Funs.DB.Person_Persons on x.WarehouseMan equals warehouseperson.PersonId into warehousepersons
from warehouseperson in warehousepersons.DefaultIfEmpty()
join unit in Funs.DB.Base_Unit on x.ReqUnitId equals unit.UnitId into units
- from unit in units.DefaultIfEmpty()
- where
- (string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
- (string.IsNullOrEmpty(table.InOutPlanMasterId) || x.InOutPlanMasterId .Contains(table.InOutPlanMasterId)) &&
- (string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId)) &&
- (string.IsNullOrEmpty(table.CusBillCode) || x.CusBillCode.Contains(table.CusBillCode)) &&
- (string.IsNullOrEmpty(table.WarehouseCode) || x.WarehouseCode.Contains(table.WarehouseCode)) &&
- (string.IsNullOrEmpty(table.CreateMan) || x.CreateMan.Contains(table.CreateMan)) &&
- (string.IsNullOrEmpty(table.ReqUnitId) || x.ReqUnitId.Contains(table.ReqUnitId)) &&
- (string.IsNullOrEmpty(table.UnitWorkId) || y.WeldTaskId.Contains(table.UnitWorkId)) &&
- (table.TypeInt == null || x.TypeInt == table.TypeInt) &&
- (table.Category == null || x.Category == table.Category) &&
- (table.State == null || x.State == table.State)
- orderby x.CreateDate descending
- select new Model.Tw_InOutMasterOutput
- {
- Id = x.Id,
- ProjectId = x.ProjectId,
- CusBillCode = x.CusBillCode,
- InOutPlanMasterId = x.InOutPlanMasterId,
- WarehouseCode = x.WarehouseCode,
- Category = x.Category,
- Source = x.Source,
- TypeInt = x.TypeInt,
- State = x.State,
- CreateMan = x.CreateMan,
- CreateManName = person.PersonName,
- CreateDate = x.CreateDate,
- ReqUnitId = x.ReqUnitId,
- ReqUnitName = unit.UnitName,
- WeldTaskId = y.WeldTaskId,
- AuditMan = x.AuditMan,
- AuditManName = auditperson.PersonName,
- AuditDate = x.AuditDate,
- AuditMan2 = x.AuditMan2,
- AuditManName2 = auditperson2.PersonName,
- AuditDate2 = x.AuditDate2,
- WarehouseMan = x.WarehouseMan,
- WarehouseDate = x.WarehouseDate,
- WarehouseManName = warehouseperson.PersonName,
- Remark=y.Remark
- };
+ from unit in units.DefaultIfEmpty()
+ where
+ (string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
+ (string.IsNullOrEmpty(table.InOutPlanMasterId) || x.InOutPlanMasterId.Contains(table.InOutPlanMasterId)) &&
+ (string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId)) &&
+ (string.IsNullOrEmpty(table.CusBillCode) || x.CusBillCode.Contains(table.CusBillCode)) &&
+ (string.IsNullOrEmpty(table.WarehouseCode) || x.WarehouseCode.Contains(table.WarehouseCode)) &&
+ (string.IsNullOrEmpty(table.CreateMan) || x.CreateMan.Contains(table.CreateMan)) &&
+ (string.IsNullOrEmpty(table.ReqUnitId) || x.ReqUnitId.Contains(table.ReqUnitId)) &&
+ (string.IsNullOrEmpty(table.UnitWorkId) || y.WeldTaskId.Contains(table.UnitWorkId)) &&
+ (table.TypeInt == null || x.TypeInt == table.TypeInt) &&
+ (table.Category == null || x.Category == table.Category) &&
+ (table.State == null || x.State == table.State)
+ orderby x.CreateDate descending
+ select new Model.Tw_InOutMasterOutput
+ {
+ Id = x.Id,
+ ProjectId = x.ProjectId,
+ CusBillCode = x.CusBillCode,
+ InOutPlanMasterId = x.InOutPlanMasterId,
+ WarehouseCode = x.WarehouseCode,
+ Category = x.Category,
+ Source = x.Source,
+ TypeInt = x.TypeInt,
+ State = x.State,
+ CreateMan = x.CreateMan,
+ CreateManName = person.PersonName,
+ CreateDate = x.CreateDate,
+ ReqUnitId = x.ReqUnitId,
+ ReqUnitName = unit.UnitName,
+ WeldTaskId = y.WeldTaskId,
+ AuditMan = x.AuditMan,
+ AuditManName = auditperson.PersonName,
+ AuditDate = x.AuditDate,
+ AuditMan2 = x.AuditMan2,
+ AuditManName2 = auditperson2.PersonName,
+ AuditDate2 = x.AuditDate2,
+ WarehouseMan = x.WarehouseMan,
+ WarehouseDate = x.WarehouseDate,
+ WarehouseManName = warehouseperson.PersonName,
+ Remark = y.Remark
+ };
return q;
}
@@ -101,39 +100,39 @@ namespace BLL
}
var result = q.Skip(grid1.PageSize * grid1.PageIndex).Take(grid1.PageSize).ToList();
return from x in result
- select new Model.Tw_InOutMasterOutput
- {
- Id = x.Id,
- ProjectId = x.ProjectId,
- CusBillCode = x.CusBillCode,
- WarehouseCode = x.WarehouseCode,
- InOutPlanMasterId = x.InOutPlanMasterId,
- Source = x.Source,
- TypeInt = x.TypeInt,
- State = x.State,
- Category= x.Category,
- CreateMan = x.CreateMan,
- CreateManName = x.CreateManName,
- CreateDate = x.CreateDate,
- ReqUnitId = x.ReqUnitId,
- ReqUnitName = x.ReqUnitName,
- TypeString = TwConst.TypeIntMap.FirstOrDefault(y => y.Value == x.TypeInt).Key,
- StateString = TwConst.StateMap.FirstOrDefault(y => y.Value == x.State).Key,
- CategoryString = TwConst.CategoryMap.FirstOrDefault(y => y.Value == x.Category).Key,
- WeldTaskId = x.WeldTaskId,
- WeldTaskCode = x.WeldTaskId != null ? x.WeldTaskId.Contains('|') ? Funs.DB.HJGL_WeldTask.FirstOrDefault(e => e.UnitWorkId == x.WeldTaskId.Split('|')[0].ToString() && e.UnitId == x.WeldTaskId.Split('|')[1].ToString() && e.TaskDate.Value.Date == DateTime.ParseExact(x.WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null).Date)?.TaskCode : "" : "",
- UnitWorkId= x.WeldTaskId != null? x.WeldTaskId.Split('|')[0].ToString():null,
- AuditMan = x.AuditMan,
- AuditManName = x.AuditManName,
- AuditDate = x.AuditDate,
- AuditMan2 = x.AuditMan2,
- AuditManName2 = x.AuditManName2,
- AuditDate2 = x.AuditDate2,
- WarehouseMan = x.WarehouseMan,
- WarehouseManName = x.WarehouseManName,
- WarehouseDate = x.WarehouseDate
+ select new Model.Tw_InOutMasterOutput
+ {
+ Id = x.Id,
+ ProjectId = x.ProjectId,
+ CusBillCode = x.CusBillCode,
+ WarehouseCode = x.WarehouseCode,
+ InOutPlanMasterId = x.InOutPlanMasterId,
+ Source = x.Source,
+ TypeInt = x.TypeInt,
+ State = x.State,
+ Category = x.Category,
+ CreateMan = x.CreateMan,
+ CreateManName = x.CreateManName,
+ CreateDate = x.CreateDate,
+ ReqUnitId = x.ReqUnitId,
+ ReqUnitName = x.ReqUnitName,
+ TypeString = TwConst.TypeIntMap.FirstOrDefault(y => y.Value == x.TypeInt).Key,
+ StateString = TwConst.StateMap.FirstOrDefault(y => y.Value == x.State).Key,
+ CategoryString = TwConst.CategoryMap.FirstOrDefault(y => y.Value == x.Category).Key,
+ WeldTaskId = x.WeldTaskId,
+ WeldTaskCode = x.WeldTaskId != null ? x.WeldTaskId.Contains('|') ? Funs.DB.HJGL_WeldTask.FirstOrDefault(e => e.UnitWorkId == x.WeldTaskId.Split('|')[0].ToString() && e.UnitId == x.WeldTaskId.Split('|')[1].ToString() && e.TaskDate.Value.Date == DateTime.ParseExact(x.WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null).Date)?.TaskCode : "" : "",
+ UnitWorkId = x.WeldTaskId != null ? x.WeldTaskId.Split('|')[0].ToString() : null,
+ AuditMan = x.AuditMan,
+ AuditManName = x.AuditManName,
+ AuditDate = x.AuditDate,
+ AuditMan2 = x.AuditMan2,
+ AuditManName2 = x.AuditManName2,
+ AuditDate2 = x.AuditDate2,
+ WarehouseMan = x.WarehouseMan,
+ WarehouseManName = x.WarehouseManName,
+ WarehouseDate = x.WarehouseDate
- };
+ };
}
public static List GetListData(Model.Tw_InOutMasterOutput table)
@@ -146,39 +145,39 @@ namespace BLL
}
var result = q.ToList();
return (from x in result
- select new Model.Tw_InOutMasterOutput
- {
- Id = x.Id,
- ProjectId = x.ProjectId,
- CusBillCode = x.CusBillCode,
- InOutPlanMasterId = x.InOutPlanMasterId,
- WarehouseCode = x.WarehouseCode,
- Source = x.Source,
- TypeInt = x.TypeInt,
- State = x.State,
- Category = x.Category,
- CreateMan = x.CreateMan,
- CreateManName = x.CreateManName,
- CreateDate = x.CreateDate,
- ReqUnitId = x.ReqUnitId,
- ReqUnitName = x.ReqUnitName,
- TypeString = TwConst.TypeIntMap.FirstOrDefault(y => y.Value == x.TypeInt).Key,
- StateString = TwConst.StateMap.FirstOrDefault(y => y.Value == x.State).Key,
- CategoryString = TwConst.CategoryMap.FirstOrDefault(y => y.Value == x.Category).Key,
- WeldTaskId = x.WeldTaskId,
- WeldTaskCode = x.WeldTaskId != null ? x.WeldTaskId.Contains('|') ? Funs.DB.HJGL_WeldTask.FirstOrDefault(e => e.UnitWorkId == x.WeldTaskId.Split('|')[0].ToString() && e.UnitId == x.WeldTaskId.Split('|')[1].ToString() && e.TaskDate.Value.Date == DateTime.ParseExact(x.WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null).Date)?.TaskCode : "" : "",
- UnitWorkId = x.WeldTaskId != null ? x.WeldTaskId.Split('|')[0].ToString() : null,
- AuditMan = x.AuditMan,
- AuditManName = x.AuditManName,
- AuditDate = x.AuditDate,
- AuditMan2 = x.AuditMan2,
- AuditManName2 = x.AuditManName2,
- AuditDate2 = x.AuditDate2,
- WarehouseMan = x.WarehouseMan,
- WarehouseManName = x.WarehouseManName,
- WarehouseDate = x.WarehouseDate
+ select new Model.Tw_InOutMasterOutput
+ {
+ Id = x.Id,
+ ProjectId = x.ProjectId,
+ CusBillCode = x.CusBillCode,
+ InOutPlanMasterId = x.InOutPlanMasterId,
+ WarehouseCode = x.WarehouseCode,
+ Source = x.Source,
+ TypeInt = x.TypeInt,
+ State = x.State,
+ Category = x.Category,
+ CreateMan = x.CreateMan,
+ CreateManName = x.CreateManName,
+ CreateDate = x.CreateDate,
+ ReqUnitId = x.ReqUnitId,
+ ReqUnitName = x.ReqUnitName,
+ TypeString = TwConst.TypeIntMap.FirstOrDefault(y => y.Value == x.TypeInt).Key,
+ StateString = TwConst.StateMap.FirstOrDefault(y => y.Value == x.State).Key,
+ CategoryString = TwConst.CategoryMap.FirstOrDefault(y => y.Value == x.Category).Key,
+ WeldTaskId = x.WeldTaskId,
+ WeldTaskCode = x.WeldTaskId != null ? x.WeldTaskId.Contains('|') ? Funs.DB.HJGL_WeldTask.FirstOrDefault(e => e.UnitWorkId == x.WeldTaskId.Split('|')[0].ToString() && e.UnitId == x.WeldTaskId.Split('|')[1].ToString() && e.TaskDate.Value.Date == DateTime.ParseExact(x.WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null).Date)?.TaskCode : "" : "",
+ UnitWorkId = x.WeldTaskId != null ? x.WeldTaskId.Split('|')[0].ToString() : null,
+ AuditMan = x.AuditMan,
+ AuditManName = x.AuditManName,
+ AuditDate = x.AuditDate,
+ AuditMan2 = x.AuditMan2,
+ AuditManName2 = x.AuditManName2,
+ AuditDate2 = x.AuditDate2,
+ WarehouseMan = x.WarehouseMan,
+ WarehouseManName = x.WarehouseManName,
+ WarehouseDate = x.WarehouseDate
- }).ToList();
+ }).ToList();
}
#endregion
@@ -204,7 +203,7 @@ namespace BLL
State = newtable.State,
CreateMan = newtable.CreateMan,
CreateDate = newtable.CreateDate,
- ReqUnitId = newtable.ReqUnitId,
+ ReqUnitId = newtable.ReqUnitId,
AuditMan = newtable.AuditMan,
AuditDate = newtable.AuditDate,
AuditMan2 = newtable.AuditMan2,
@@ -263,28 +262,28 @@ namespace BLL
{
//获取出库单
var planQueryModel = new Tw_InOutMasterOutput();
- planQueryModel.Id = planId;
- var plan = TwInOutplanmasterService.GetListData(planQueryModel).FirstOrDefault();
- if (plan == null || plan.State != (int)TwConst.State.已审核)
+ planQueryModel.Id = planId;
+ var plan = TwInOutplanmasterService.GetListData(planQueryModel).FirstOrDefault();
+ if (plan == null || plan.State != (int)TwConst.State.已审核)
{
return;
}
//判断是否已经生成过出库单
var queryIsExitInMaster = new Tw_InOutMasterOutput();
queryIsExitInMaster.InOutPlanMasterId = planId;
- queryIsExitInMaster.TypeInt= plan.TypeInt;
+ queryIsExitInMaster.TypeInt = plan.TypeInt;
var IsExitInMaster = GetModle(queryIsExitInMaster).FirstOrDefault();
if (IsExitInMaster != null)
{
return;
- }
+ }
//生成出库单
var master = new Model.Tw_OutputMaster()
{
Id = Guid.NewGuid().ToString(),
InOutPlanMasterId = plan.Id,
ProjectId = plan.ProjectId,
- CusBillCode = GetCusBillCode(plan.WeldTaskCode, (TwConst.TypeInt)plan.TypeInt, (BLL.TwConst.Category)plan.Category,plan.CusBillCode),
+ CusBillCode = GetCusBillCode(plan.WeldTaskCode, (TwConst.TypeInt)plan.TypeInt, (BLL.TwConst.Category)plan.Category, plan.CusBillCode),
WarehouseCode = plan.WarehouseCode,
Category = plan.Category,
Source = plan.Source,
@@ -299,8 +298,8 @@ namespace BLL
AuditDate2 = plan.AuditDate2,
WarehouseMan = plan.WarehouseMan,
WarehouseDate = plan.WarehouseDate,
-
- };
+
+ };
Add(master);
//生成出库单明细
foreach (var detail in detailLists)
@@ -318,7 +317,7 @@ namespace BLL
}
plan.State = (int)TwConst.State.已完成;
- TwInOutplanmasterService.Update(plan);
+ TwInOutplanmasterService.Update(plan);
}
///
/// 根据计划单撤销出库单
@@ -346,8 +345,8 @@ namespace BLL
//撤销出库,即增加库存
TwMaterialstockService.UpdateStockNum(master.ProjectId, detail.MaterialCode, master.WarehouseCode, TwConst.InOutType.入库, detail.ActNum);
}
- var planModel= TwInOutplanmasterService.GetById(planId);
- planModel.State= (int)TwConst.State.已审核;
+ var planModel = TwInOutplanmasterService.GetById(planId);
+ planModel.State = (int)TwConst.State.已审核;
planModel.WarehouseMan = null;
planModel.WarehouseDate = null;
TwInOutplanmasterService.Update(planModel);
diff --git a/SGGL/BLL/CQMS/Check/CheckControlApproveService.cs b/SGGL/BLL/CQMS/Check/CheckControlApproveService.cs
index f6369ccd..fe304fd5 100644
--- a/SGGL/BLL/CQMS/Check/CheckControlApproveService.cs
+++ b/SGGL/BLL/CQMS/Check/CheckControlApproveService.cs
@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Data;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/CheckControlService.cs b/SGGL/BLL/CQMS/Check/CheckControlService.cs
index 5d612be8..bec2a113 100644
--- a/SGGL/BLL/CQMS/Check/CheckControlService.cs
+++ b/SGGL/BLL/CQMS/Check/CheckControlService.cs
@@ -8,7 +8,7 @@ namespace BLL
{
public class CheckControlService
{
-
+
///
/// 根据质量检查与控制Id删除一个质量检查与控制信息
///
@@ -504,7 +504,7 @@ namespace BLL
x.WorkPackageName,
CNProfessionalName = (from y in db.Base_CNProfessional where y.CNProfessionalId == x.CNProfessionalCode select y.ProfessionalName).First(),
UnitWork = (from y in db.WBS_UnitWork where y.UnitWorkId == x.UnitWorkId select y.UnitWorkCode + "-" + y.UnitWorkName + (y.ProjectType == "1" ? "(建筑)" : "(安装)")).First(),
- CheckMan = (from y in db.Person_Persons where y.PersonId == x.CheckMan select y.PersonName).First(),
+ CheckMan = (from y in db.Person_Persons where y.PersonId == x.CheckMan select y.PersonName).First(),
};
var list = qq1.Skip(index * page).Take(page).ToList();
diff --git a/SGGL/BLL/CQMS/Check/CheckEquipmentApproveService.cs b/SGGL/BLL/CQMS/Check/CheckEquipmentApproveService.cs
index 51b2ff95..77c96a9e 100644
--- a/SGGL/BLL/CQMS/Check/CheckEquipmentApproveService.cs
+++ b/SGGL/BLL/CQMS/Check/CheckEquipmentApproveService.cs
@@ -1,7 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/CheckEquipmentService.cs b/SGGL/BLL/CQMS/Check/CheckEquipmentService.cs
index 8c16d859..db9502aa 100644
--- a/SGGL/BLL/CQMS/Check/CheckEquipmentService.cs
+++ b/SGGL/BLL/CQMS/Check/CheckEquipmentService.cs
@@ -3,7 +3,6 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/CheckMaterialacceptance.cs b/SGGL/BLL/CQMS/Check/CheckMaterialacceptance.cs
index afeb4c7c..3cb1d490 100644
--- a/SGGL/BLL/CQMS/Check/CheckMaterialacceptance.cs
+++ b/SGGL/BLL/CQMS/Check/CheckMaterialacceptance.cs
@@ -1,10 +1,7 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -31,7 +28,7 @@ namespace BLL
(string.IsNullOrEmpty(table.FileName) || x.FileName.Contains(table.FileName)) &&
(string.IsNullOrEmpty(table.CompileMan) || x.CompileMan.Contains(table.CompileMan)) &&
(string.IsNullOrEmpty(table.State) || x.State.Contains(table.State)) &&
- (string.IsNullOrEmpty(table.FilePath) || x.FilePath.Contains(table.FilePath))
+ (string.IsNullOrEmpty(table.FilePath) || x.FilePath.Contains(table.FilePath))
select x
;
diff --git a/SGGL/BLL/CQMS/Check/CheckMonthService.cs b/SGGL/BLL/CQMS/Check/CheckMonthService.cs
index f6dbb961..4991d587 100644
--- a/SGGL/BLL/CQMS/Check/CheckMonthService.cs
+++ b/SGGL/BLL/CQMS/Check/CheckMonthService.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/DesignApproveService.cs b/SGGL/BLL/CQMS/Check/DesignApproveService.cs
index 35d6f909..81e3c7fc 100644
--- a/SGGL/BLL/CQMS/Check/DesignApproveService.cs
+++ b/SGGL/BLL/CQMS/Check/DesignApproveService.cs
@@ -1,7 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/DesignService.cs b/SGGL/BLL/CQMS/Check/DesignService.cs
index 7d22f318..817ba7cc 100644
--- a/SGGL/BLL/CQMS/Check/DesignService.cs
+++ b/SGGL/BLL/CQMS/Check/DesignService.cs
@@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web.UI.WebControls;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/FileCabinetService.cs b/SGGL/BLL/CQMS/Check/FileCabinetService.cs
index fbff4223..7b3ee1ee 100644
--- a/SGGL/BLL/CQMS/Check/FileCabinetService.cs
+++ b/SGGL/BLL/CQMS/Check/FileCabinetService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/JointCheckApproveService.cs b/SGGL/BLL/CQMS/Check/JointCheckApproveService.cs
index 31f59089..208c6357 100644
--- a/SGGL/BLL/CQMS/Check/JointCheckApproveService.cs
+++ b/SGGL/BLL/CQMS/Check/JointCheckApproveService.cs
@@ -2,7 +2,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
@@ -387,7 +386,8 @@ namespace BLL
return newApprove;
}
return null;
- };
+ }
+ ;
}
}
diff --git a/SGGL/BLL/CQMS/Check/MonthDesignService.cs b/SGGL/BLL/CQMS/Check/MonthDesignService.cs
index a5bd5263..56c65ce9 100644
--- a/SGGL/BLL/CQMS/Check/MonthDesignService.cs
+++ b/SGGL/BLL/CQMS/Check/MonthDesignService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/MonthNDTCheckService.cs b/SGGL/BLL/CQMS/Check/MonthNDTCheckService.cs
index 1615e2d2..d37ef309 100644
--- a/SGGL/BLL/CQMS/Check/MonthNDTCheckService.cs
+++ b/SGGL/BLL/CQMS/Check/MonthNDTCheckService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/MonthRectifyService.cs b/SGGL/BLL/CQMS/Check/MonthRectifyService.cs
index e81f3ce0..492cce77 100644
--- a/SGGL/BLL/CQMS/Check/MonthRectifyService.cs
+++ b/SGGL/BLL/CQMS/Check/MonthRectifyService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/MonthSpotCheckDetailService.cs b/SGGL/BLL/CQMS/Check/MonthSpotCheckDetailService.cs
index 3584049e..52751f41 100644
--- a/SGGL/BLL/CQMS/Check/MonthSpotCheckDetailService.cs
+++ b/SGGL/BLL/CQMS/Check/MonthSpotCheckDetailService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/MonthWelderService.cs b/SGGL/BLL/CQMS/Check/MonthWelderService.cs
index 18822aea..6e96de9e 100644
--- a/SGGL/BLL/CQMS/Check/MonthWelderService.cs
+++ b/SGGL/BLL/CQMS/Check/MonthWelderService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/SpecialEquipmentDetailService.cs b/SGGL/BLL/CQMS/Check/SpecialEquipmentDetailService.cs
index 561ca451..0f4e3bc9 100644
--- a/SGGL/BLL/CQMS/Check/SpecialEquipmentDetailService.cs
+++ b/SGGL/BLL/CQMS/Check/SpecialEquipmentDetailService.cs
@@ -1,7 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/SpotCheckApproveService.cs b/SGGL/BLL/CQMS/Check/SpotCheckApproveService.cs
index 5ab817cf..baf58497 100644
--- a/SGGL/BLL/CQMS/Check/SpotCheckApproveService.cs
+++ b/SGGL/BLL/CQMS/Check/SpotCheckApproveService.cs
@@ -2,7 +2,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/SpotCheckDetailService.cs b/SGGL/BLL/CQMS/Check/SpotCheckDetailService.cs
index 983994d5..e9c7b6a8 100644
--- a/SGGL/BLL/CQMS/Check/SpotCheckDetailService.cs
+++ b/SGGL/BLL/CQMS/Check/SpotCheckDetailService.cs
@@ -2,7 +2,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/SpotCheckService.cs b/SGGL/BLL/CQMS/Check/SpotCheckService.cs
index 544018c8..c84fb439 100644
--- a/SGGL/BLL/CQMS/Check/SpotCheckService.cs
+++ b/SGGL/BLL/CQMS/Check/SpotCheckService.cs
@@ -8,7 +8,7 @@ namespace BLL
{
public class SpotCheckService
{
-
+
///
/// 添加实体验收记录
diff --git a/SGGL/BLL/CQMS/Check/TechnicalContactListApproveService.cs b/SGGL/BLL/CQMS/Check/TechnicalContactListApproveService.cs
index 9bc1fdc0..af0c842d 100644
--- a/SGGL/BLL/CQMS/Check/TechnicalContactListApproveService.cs
+++ b/SGGL/BLL/CQMS/Check/TechnicalContactListApproveService.cs
@@ -2,7 +2,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Check/TechnicalContactListService.cs b/SGGL/BLL/CQMS/Check/TechnicalContactListService.cs
index e650593b..0ab72629 100644
--- a/SGGL/BLL/CQMS/Check/TechnicalContactListService.cs
+++ b/SGGL/BLL/CQMS/Check/TechnicalContactListService.cs
@@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web.UI.WebControls;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Comprehensive/ConTechnologyDisclosureService.cs b/SGGL/BLL/CQMS/Comprehensive/ConTechnologyDisclosureService.cs
index 4a7d6d3d..ebc040da 100644
--- a/SGGL/BLL/CQMS/Comprehensive/ConTechnologyDisclosureService.cs
+++ b/SGGL/BLL/CQMS/Comprehensive/ConTechnologyDisclosureService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
@@ -65,7 +61,7 @@ namespace BLL
newCon.DisclosureDate = con.DisclosureDate;
newCon.UnitWorkId = con.UnitWorkId;
newCon.AttendMan = con.AttendMan;
- newCon.DisclosurePersonNum = con.DisclosurePersonNum;
+ newCon.DisclosurePersonNum = con.DisclosurePersonNum;
newCon.RemarkCode = con.RemarkCode;
Funs.DB.SubmitChanges();
}
diff --git a/SGGL/BLL/CQMS/Comprehensive/QualityAssuranceService.cs b/SGGL/BLL/CQMS/Comprehensive/QualityAssuranceService.cs
index 6fcb57cc..7761db37 100644
--- a/SGGL/BLL/CQMS/Comprehensive/QualityAssuranceService.cs
+++ b/SGGL/BLL/CQMS/Comprehensive/QualityAssuranceService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Comprehensive/ReviewDrawingsService.cs b/SGGL/BLL/CQMS/Comprehensive/ReviewDrawingsService.cs
index 33213111..582644cf 100644
--- a/SGGL/BLL/CQMS/Comprehensive/ReviewDrawingsService.cs
+++ b/SGGL/BLL/CQMS/Comprehensive/ReviewDrawingsService.cs
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Collections;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/ManageReport/ProjectQualityWorkSummaryReportService.cs b/SGGL/BLL/CQMS/ManageReport/ProjectQualityWorkSummaryReportService.cs
index 22b6c60c..030e9263 100644
--- a/SGGL/BLL/CQMS/ManageReport/ProjectQualityWorkSummaryReportService.cs
+++ b/SGGL/BLL/CQMS/ManageReport/ProjectQualityWorkSummaryReportService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/ManageReport/ProjectQuarterlyProjectQualityService.cs b/SGGL/BLL/CQMS/ManageReport/ProjectQuarterlyProjectQualityService.cs
index 7983d795..5ebb4b1c 100644
--- a/SGGL/BLL/CQMS/ManageReport/ProjectQuarterlyProjectQualityService.cs
+++ b/SGGL/BLL/CQMS/ManageReport/ProjectQuarterlyProjectQualityService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
@@ -27,11 +23,11 @@ namespace BLL
/// 单位Id
/// 年度
/// 季度工程项目质量信息表
- public static Model.InformationProject_QuarterlyProjectQuality GetQuarterlyProjectQualityByUnitIdAndYearAndQuarter(string unitId, int year,int quarter)
+ public static Model.InformationProject_QuarterlyProjectQuality GetQuarterlyProjectQualityByUnitIdAndYearAndQuarter(string unitId, int year, int quarter)
{
return Funs.DB.InformationProject_QuarterlyProjectQuality.FirstOrDefault(e => e.UnitId == unitId && e.Year == year && e.Quarter == quarter);
}
-
+
///
/// 添加季度工程项目质量信息表
///
@@ -43,38 +39,38 @@ namespace BLL
QuarterlyProjectQualityId = quarterlyProjectQuality.QuarterlyProjectQualityId,
ProjectId = quarterlyProjectQuality.ProjectId,
UnitId = quarterlyProjectQuality.UnitId,
- Year=quarterlyProjectQuality.Year,
+ Year = quarterlyProjectQuality.Year,
Quarter = quarterlyProjectQuality.Quarter,
- QualityManagePersonNum=quarterlyProjectQuality.QualityManagePersonNum,
- AdvancedTitlePersonNum=quarterlyProjectQuality.AdvancedTitlePersonNum,
- IntermediateTitlePersonNum=quarterlyProjectQuality.IntermediateTitlePersonNum,
- BeImplementedProjectNum=quarterlyProjectQuality.BeImplementedProjectNum,
- StartImplementedProjectNum=quarterlyProjectQuality.StartImplementedProjectNum,
- AccumulativeStartImplemented=quarterlyProjectQuality.AccumulativeStartImplemented,
- CompleteProjectNum=quarterlyProjectQuality.CompleteProjectNum,
+ QualityManagePersonNum = quarterlyProjectQuality.QualityManagePersonNum,
+ AdvancedTitlePersonNum = quarterlyProjectQuality.AdvancedTitlePersonNum,
+ IntermediateTitlePersonNum = quarterlyProjectQuality.IntermediateTitlePersonNum,
+ BeImplementedProjectNum = quarterlyProjectQuality.BeImplementedProjectNum,
+ StartImplementedProjectNum = quarterlyProjectQuality.StartImplementedProjectNum,
+ AccumulativeStartImplemented = quarterlyProjectQuality.AccumulativeStartImplemented,
+ CompleteProjectNum = quarterlyProjectQuality.CompleteProjectNum,
YearCompleteProjectNum = quarterlyProjectQuality.YearCompleteProjectNum,
- QuarterTotal= quarterlyProjectQuality.QuarterTotal,
- QuarterFirstPassNum=quarterlyProjectQuality.QuarterFirstPassNum,
- QuarterFirstPassRate=quarterlyProjectQuality.QuarterFirstPassRate,
- YearTotal=quarterlyProjectQuality.YearTotal,
- YearFirstPassNum=quarterlyProjectQuality.YearFirstPassNum,
- YearFirstPassRate=quarterlyProjectQuality.YearFirstPassRate,
- QuaterCheckSuperviseNum=quarterlyProjectQuality.QuaterCheckSuperviseNum,
- QuaterCorrectiveNoticeNum=quarterlyProjectQuality.QuaterCorrectiveNoticeNum,
- QuaterQualityProblemNum=quarterlyProjectQuality.QuaterQualityProblemNum,
- QuaterClosedQualityProblemNum=quarterlyProjectQuality.QuaterClosedQualityProblemNum,
+ QuarterTotal = quarterlyProjectQuality.QuarterTotal,
+ QuarterFirstPassNum = quarterlyProjectQuality.QuarterFirstPassNum,
+ QuarterFirstPassRate = quarterlyProjectQuality.QuarterFirstPassRate,
+ YearTotal = quarterlyProjectQuality.YearTotal,
+ YearFirstPassNum = quarterlyProjectQuality.YearFirstPassNum,
+ YearFirstPassRate = quarterlyProjectQuality.YearFirstPassRate,
+ QuaterCheckSuperviseNum = quarterlyProjectQuality.QuaterCheckSuperviseNum,
+ QuaterCorrectiveNoticeNum = quarterlyProjectQuality.QuaterCorrectiveNoticeNum,
+ QuaterQualityProblemNum = quarterlyProjectQuality.QuaterQualityProblemNum,
+ QuaterClosedQualityProblemNum = quarterlyProjectQuality.QuaterClosedQualityProblemNum,
YearCheckSuperviseNum = quarterlyProjectQuality.YearCheckSuperviseNum,
- YearCorrectiveNoticeNum=quarterlyProjectQuality.YearCorrectiveNoticeNum,
+ YearCorrectiveNoticeNum = quarterlyProjectQuality.YearCorrectiveNoticeNum,
YearQualityProblemNum = quarterlyProjectQuality.YearQualityProblemNum,
- YearClosedQualityProblemNum=quarterlyProjectQuality.YearClosedQualityProblemNum,
+ YearClosedQualityProblemNum = quarterlyProjectQuality.YearClosedQualityProblemNum,
QuaterQualityAccidentNum = quarterlyProjectQuality.QuaterQualityAccidentNum,
QuaterDirectEconomicLoss = quarterlyProjectQuality.QuaterDirectEconomicLoss,
YearQualityAccidentNum = quarterlyProjectQuality.YearQualityAccidentNum,
- YearDirectEconomicLoss=quarterlyProjectQuality.YearDirectEconomicLoss,
- ResponsiblePerson=quarterlyProjectQuality.ResponsiblePerson,
+ YearDirectEconomicLoss = quarterlyProjectQuality.YearDirectEconomicLoss,
+ ResponsiblePerson = quarterlyProjectQuality.ResponsiblePerson,
CompileMan = quarterlyProjectQuality.CompileMan,
CompileDate = quarterlyProjectQuality.CompileDate,
- Tel=quarterlyProjectQuality.Tel
+ Tel = quarterlyProjectQuality.Tel
};
Funs.DB.InformationProject_QuarterlyProjectQuality.InsertOnSubmit(newQuarterlyProjectQuality);
Funs.DB.SubmitChanges();
diff --git a/SGGL/BLL/CQMS/Material/CQMS_ConstructionTestService.cs b/SGGL/BLL/CQMS/Material/CQMS_ConstructionTestService.cs
index fa5dc31e..54f3d410 100644
--- a/SGGL/BLL/CQMS/Material/CQMS_ConstructionTestService.cs
+++ b/SGGL/BLL/CQMS/Material/CQMS_ConstructionTestService.cs
@@ -1,6 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Web.UI.WebControls;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Material/CQMS_EquipmentService.cs b/SGGL/BLL/CQMS/Material/CQMS_EquipmentService.cs
index ede171f4..8d1f47b6 100644
--- a/SGGL/BLL/CQMS/Material/CQMS_EquipmentService.cs
+++ b/SGGL/BLL/CQMS/Material/CQMS_EquipmentService.cs
@@ -1,6 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Web.UI.WebControls;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Material/CQMS_InspectionApproveService.cs b/SGGL/BLL/CQMS/Material/CQMS_InspectionApproveService.cs
index 086c41f6..a1fa49b7 100644
--- a/SGGL/BLL/CQMS/Material/CQMS_InspectionApproveService.cs
+++ b/SGGL/BLL/CQMS/Material/CQMS_InspectionApproveService.cs
@@ -1,8 +1,6 @@
using System;
-using System.Collections.Generic;
using System.Data;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Material/CQMS_InspectionService.cs b/SGGL/BLL/CQMS/Material/CQMS_InspectionService.cs
index 0a7351b1..dd3efff0 100644
--- a/SGGL/BLL/CQMS/Material/CQMS_InspectionService.cs
+++ b/SGGL/BLL/CQMS/Material/CQMS_InspectionService.cs
@@ -1,5 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
+using System.Linq;
using System.Web.UI.WebControls;
namespace BLL
diff --git a/SGGL/BLL/CQMS/Material/CQMS_MaterialService.cs b/SGGL/BLL/CQMS/Material/CQMS_MaterialService.cs
index f481d62c..93bd4d7e 100644
--- a/SGGL/BLL/CQMS/Material/CQMS_MaterialService.cs
+++ b/SGGL/BLL/CQMS/Material/CQMS_MaterialService.cs
@@ -1,6 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Web.UI.WebControls;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Material/CQMS_MaterialTestService.cs b/SGGL/BLL/CQMS/Material/CQMS_MaterialTestService.cs
index 0b999e79..03aa416f 100644
--- a/SGGL/BLL/CQMS/Material/CQMS_MaterialTestService.cs
+++ b/SGGL/BLL/CQMS/Material/CQMS_MaterialTestService.cs
@@ -1,6 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Web.UI.WebControls;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Material/CQMS_NoticeAndSupervisionService.cs b/SGGL/BLL/CQMS/Material/CQMS_NoticeAndSupervisionService.cs
index aa3b4b89..da0365b0 100644
--- a/SGGL/BLL/CQMS/Material/CQMS_NoticeAndSupervisionService.cs
+++ b/SGGL/BLL/CQMS/Material/CQMS_NoticeAndSupervisionService.cs
@@ -1,6 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Web.UI.WebControls;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Meeting/CQMS_MeetingApproveService.cs b/SGGL/BLL/CQMS/Meeting/CQMS_MeetingApproveService.cs
index 73f74f84..0c4481fd 100644
--- a/SGGL/BLL/CQMS/Meeting/CQMS_MeetingApproveService.cs
+++ b/SGGL/BLL/CQMS/Meeting/CQMS_MeetingApproveService.cs
@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Data;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Meeting/CQMS_MeetingService.cs b/SGGL/BLL/CQMS/Meeting/CQMS_MeetingService.cs
index 1b122356..19c279d2 100644
--- a/SGGL/BLL/CQMS/Meeting/CQMS_MeetingService.cs
+++ b/SGGL/BLL/CQMS/Meeting/CQMS_MeetingService.cs
@@ -10,7 +10,7 @@ namespace BLL
///
public static class CQMS_MeetingService
{
-
+
///
/// 根据主键获取质量会议
diff --git a/SGGL/BLL/CQMS/Models/QualityModelService.cs b/SGGL/BLL/CQMS/Models/QualityModelService.cs
index 334adca1..8ec0eac3 100644
--- a/SGGL/BLL/CQMS/Models/QualityModelService.cs
+++ b/SGGL/BLL/CQMS/Models/QualityModelService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
@@ -219,10 +216,10 @@ namespace BLL
var q = db.Model_QualityModel.FirstOrDefault(e => e.QualityModelId == QualityModelId);
if (q != null)
{
- q.CompanyModelId = q.CompanyModelId + "$" + (from y in db.Base_CompanyModel where y.CompanyModelId == q.CompanyModelId select y.ModelType).First() + "$"+ (from y in db.Base_CompanyModelKind
- join z in db.Base_CompanyModel on y.CompanyModelKindId equals z.CompanyModelKindId
- where z.CompanyModelId == q.CompanyModelId
- select y.CompanyModelKindName).First();
+ q.CompanyModelId = q.CompanyModelId + "$" + (from y in db.Base_CompanyModel where y.CompanyModelId == q.CompanyModelId select y.ModelType).First() + "$" + (from y in db.Base_CompanyModelKind
+ join z in db.Base_CompanyModel on y.CompanyModelKindId equals z.CompanyModelKindId
+ where z.CompanyModelId == q.CompanyModelId
+ select y.CompanyModelKindName).First();
q.CompileMan = q.CompileMan + "$" + BLL.Person_PersonsService.GetPersonsNameById(q.CompileMan);
q.AttachUrlModel = AttachFileService.getFileUrl(q.CompanyModelId);
q.AttachUrl = AttachFileService.getFileUrl(q.QualityModelId);
diff --git a/SGGL/BLL/CQMS/PersonManage/CQMS_TestPlanDetailService.cs b/SGGL/BLL/CQMS/PersonManage/CQMS_TestPlanDetailService.cs
index 1970f3e6..236ad2dc 100644
--- a/SGGL/BLL/CQMS/PersonManage/CQMS_TestPlanDetailService.cs
+++ b/SGGL/BLL/CQMS/PersonManage/CQMS_TestPlanDetailService.cs
@@ -1,10 +1,6 @@
-using System;
+using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Collections;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/PersonManage/CQMS_TestPlanService.cs b/SGGL/BLL/CQMS/PersonManage/CQMS_TestPlanService.cs
index beb43c14..aebd80d8 100644
--- a/SGGL/BLL/CQMS/PersonManage/CQMS_TestPlanService.cs
+++ b/SGGL/BLL/CQMS/PersonManage/CQMS_TestPlanService.cs
@@ -1,6 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Web.UI.WebControls;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Plan/CQMS_MainPlanApproveService.cs b/SGGL/BLL/CQMS/Plan/CQMS_MainPlanApproveService.cs
index 4648a809..e7f4a0c2 100644
--- a/SGGL/BLL/CQMS/Plan/CQMS_MainPlanApproveService.cs
+++ b/SGGL/BLL/CQMS/Plan/CQMS_MainPlanApproveService.cs
@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Data;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Plan/CQMS_SubPlanService.cs b/SGGL/BLL/CQMS/Plan/CQMS_SubPlanService.cs
index f3ae2505..17c3af06 100644
--- a/SGGL/BLL/CQMS/Plan/CQMS_SubPlanService.cs
+++ b/SGGL/BLL/CQMS/Plan/CQMS_SubPlanService.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Web.UI.WebControls;
namespace BLL
{
@@ -60,7 +59,7 @@ namespace BLL
newSubPlan.CompileDate = SubPlan.CompileDate;
newSubPlan.State = SubPlan.State;
newSubPlan.Edition = SubPlan.Edition;
- newSubPlan.FilePath=SubPlan.FilePath;
+ newSubPlan.FilePath = SubPlan.FilePath;
db.Plan_SubPlan.InsertOnSubmit(newSubPlan);
db.SubmitChanges();
}
@@ -226,8 +225,8 @@ namespace BLL
StateStr = ConvertState(x.State),
CompileManName = (from y in db.Person_Persons where y.PersonId == x.CompileMan select y.PersonName).First(),
UnitName = BLL.UnitService.GetUnitNameByUnitId(x.UnitId),
- UnitWorkNames=BLL.UnitWorkService.GetUnitWorkName(x.UnitWorkIds),
- CNProfessionalNames=BLL.CNProfessionalService.GetCNProfessionalNameByCode(x.CNProfessionalCodes),
+ UnitWorkNames = BLL.UnitWorkService.GetUnitWorkName(x.UnitWorkIds),
+ CNProfessionalNames = BLL.CNProfessionalService.GetCNProfessionalNameByCode(x.CNProfessionalCodes),
HandleManName = BLL.CQMS_SubPlanApproveService.GetHandleManName(x.SubPlanId),
FilePath = x.FilePath,
};
@@ -239,9 +238,9 @@ namespace BLL
cd.SubPlanId = item.SubPlanId;
cd.ProjectId = item.ProjectId;
cd.Code = item.Code;
- cd.UnitId=item.UnitId + "$" + item.UnitName;
+ cd.UnitId = item.UnitId + "$" + item.UnitName;
cd.PlanName = item.PlanName;
- cd.UnitWorkIds=item.UnitWorkIds + "$" + item.UnitWorkNames;
+ cd.UnitWorkIds = item.UnitWorkIds + "$" + item.UnitWorkNames;
cd.CNProfessionalCodes = item.CNProfessionalCodes + "$" + item.CNProfessionalNames;
cd.CompileDate = item.CompileDate;
cd.CompileMan = item.CompileMan + "$" + item.CompileManName;
@@ -261,13 +260,13 @@ namespace BLL
/// 一个分包施工质量计划实体
public static Model.Plan_SubPlan GetSubPlanBySubPlanIdForApi(string SubPlanId)
{
- var q= Funs.DB.Plan_SubPlan.FirstOrDefault(x => x.SubPlanId == SubPlanId);
+ var q = Funs.DB.Plan_SubPlan.FirstOrDefault(x => x.SubPlanId == SubPlanId);
if (q != null)
{
q.UnitId = q.UnitId + "$" + BLL.UnitService.GetUnitNameByUnitId(q.UnitId);
q.UnitWorkIds = q.UnitWorkIds + "$" + BLL.UnitWorkService.GetUnitWorkName(q.UnitWorkIds);
q.CNProfessionalCodes = q.CNProfessionalCodes + "$" + BLL.CNProfessionalService.GetCNProfessionalNameByCode(q.CNProfessionalCodes);
- q.CompileMan=q.CompileMan + "$" + BLL.Person_PersonsService.GetPersonsNameById(q.CompileMan);
+ q.CompileMan = q.CompileMan + "$" + BLL.Person_PersonsService.GetPersonsNameById(q.CompileMan);
q.State = q.State + "$" + ConvertState(q.State) + "$" + BLL.CQMS_SubPlanApproveService.GetHandleManName(q.SubPlanId);
}
return q;
diff --git a/SGGL/BLL/CQMS/Plan/CQMS_TechnicalProposalReviewService.cs b/SGGL/BLL/CQMS/Plan/CQMS_TechnicalProposalReviewService.cs
index 3388deb7..bdd5af04 100644
--- a/SGGL/BLL/CQMS/Plan/CQMS_TechnicalProposalReviewService.cs
+++ b/SGGL/BLL/CQMS/Plan/CQMS_TechnicalProposalReviewService.cs
@@ -1,6 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Web.UI.WebControls;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/QualityActivity/QCManage/QCManage_QCGroupRegistrationService.cs b/SGGL/BLL/CQMS/QualityActivity/QCManage/QCManage_QCGroupRegistrationService.cs
index f5503186..2d2a77ce 100644
--- a/SGGL/BLL/CQMS/QualityActivity/QCManage/QCManage_QCGroupRegistrationService.cs
+++ b/SGGL/BLL/CQMS/QualityActivity/QCManage/QCManage_QCGroupRegistrationService.cs
@@ -1,6 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Web.UI.WebControls;
+using System.Linq;
namespace BLL
{
@@ -54,7 +52,7 @@ namespace BLL
newQCGroupRegistration.Code = QCGroupRegistration.Code;
newQCGroupRegistration.Name = QCGroupRegistration.Name;
newQCGroupRegistration.CompileMan = QCGroupRegistration.CompileMan;
- newQCGroupRegistration.CompileDate = QCGroupRegistration.CompileDate;
+ newQCGroupRegistration.CompileDate = QCGroupRegistration.CompileDate;
newQCGroupRegistration.UnitId = QCGroupRegistration.UnitId;
newQCGroupRegistration.Subjects = QCGroupRegistration.Subjects;
newQCGroupRegistration.Process = QCGroupRegistration.Process;
diff --git a/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishApproveService.cs b/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishApproveService.cs
index 4c5338be..b3c1707a 100644
--- a/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishApproveService.cs
+++ b/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishApproveService.cs
@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Data;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishService.cs b/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishService.cs
index a305ca85..707af226 100644
--- a/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishService.cs
+++ b/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishService.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
@@ -10,7 +9,7 @@ namespace BLL
///
public static class RewardAndPunishService
{
-
+
///
/// 根据主键获取质量奖罚
@@ -63,7 +62,7 @@ namespace BLL
State = RewardAndPunish.State,
CompileMan = RewardAndPunish.CompileMan,
CompileDate = RewardAndPunish.CompileDate,
- RewardAndPunishDecision=RewardAndPunish.RewardAndPunishDecision,
+ RewardAndPunishDecision = RewardAndPunish.RewardAndPunishDecision,
};
db.RewardAndPunish_RewardAndPunish.InsertOnSubmit(newRewardAndPunish);
diff --git a/SGGL/BLL/CQMS/Technical/CQMS_TechnicalDiscloseService.cs b/SGGL/BLL/CQMS/Technical/CQMS_TechnicalDiscloseService.cs
index fe5ee23e..0a8fcb26 100644
--- a/SGGL/BLL/CQMS/Technical/CQMS_TechnicalDiscloseService.cs
+++ b/SGGL/BLL/CQMS/Technical/CQMS_TechnicalDiscloseService.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web.UI.WebControls;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Train/CQMS_TrainPlanService.cs b/SGGL/BLL/CQMS/Train/CQMS_TrainPlanService.cs
index 475a0175..a7dd1ea2 100644
--- a/SGGL/BLL/CQMS/Train/CQMS_TrainPlanService.cs
+++ b/SGGL/BLL/CQMS/Train/CQMS_TrainPlanService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using System.Web.UI.WebControls;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/Unqualified/WorkContactApproveService.cs b/SGGL/BLL/CQMS/Unqualified/WorkContactApproveService.cs
index a98472e3..672b21fd 100644
--- a/SGGL/BLL/CQMS/Unqualified/WorkContactApproveService.cs
+++ b/SGGL/BLL/CQMS/Unqualified/WorkContactApproveService.cs
@@ -2,7 +2,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/WBS/WorkPackageDetailService.cs b/SGGL/BLL/CQMS/WBS/WorkPackageDetailService.cs
index 98777b83..1ca4c7c5 100644
--- a/SGGL/BLL/CQMS/WBS/WorkPackageDetailService.cs
+++ b/SGGL/BLL/CQMS/WBS/WorkPackageDetailService.cs
@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Web.UI.WebControls;
namespace BLL
{
diff --git a/SGGL/BLL/CQMS/WBS/WorkPackageInitService.cs b/SGGL/BLL/CQMS/WBS/WorkPackageInitService.cs
index b5af2eab..15fa27f2 100644
--- a/SGGL/BLL/CQMS/WBS/WorkPackageInitService.cs
+++ b/SGGL/BLL/CQMS/WBS/WorkPackageInitService.cs
@@ -87,7 +87,7 @@ namespace BLL
public static string GetWorkPackageCodeByPackageContent(string packageContent)
{
string workPackageCode = string.Empty;
- var q= Funs.DB.WBS_WorkPackageInit.FirstOrDefault(x => x.PackageContent == packageContent);
+ var q = Funs.DB.WBS_WorkPackageInit.FirstOrDefault(x => x.PackageContent == packageContent);
if (q != null)
{
workPackageCode = q.WorkPackageCode;
diff --git a/SGGL/BLL/CQMS/WBS/WorkPackageParentDetailService.cs b/SGGL/BLL/CQMS/WBS/WorkPackageParentDetailService.cs
index 4f14044a..50ac13b8 100644
--- a/SGGL/BLL/CQMS/WBS/WorkPackageParentDetailService.cs
+++ b/SGGL/BLL/CQMS/WBS/WorkPackageParentDetailService.cs
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/Common/AttachFileService.cs b/SGGL/BLL/Common/AttachFileService.cs
index e38782ca..185a565e 100644
--- a/SGGL/BLL/Common/AttachFileService.cs
+++ b/SGGL/BLL/Common/AttachFileService.cs
@@ -465,6 +465,30 @@ namespace BLL
}
+ ///
+ /// 判断文件类型是否是图片
+ ///
+ ///
+ ///
+ public static bool IsImage(string FiletExtension)
+ {
+ bool result = false;
+ List list = new List();
+ list.Add(".png");
+ list.Add(".jpg");
+ list.Add(".jpeg");
+ foreach (var item in list)
+ {
+ if (item == FiletExtension)
+ {
+ result = true;
+ break;
+ }
+ }
+ return result;
+ }
+
+
#region 根据图片路径转换为base64
///
/// 根据图片路径转换为base64
diff --git a/SGGL/BLL/Common/CommonService.cs b/SGGL/BLL/Common/CommonService.cs
index 93c94a29..d2ac7d52 100644
--- a/SGGL/BLL/Common/CommonService.cs
+++ b/SGGL/BLL/Common/CommonService.cs
@@ -355,8 +355,8 @@ namespace BLL
}
else
{
- var uinit =UnitService.GetUnitByUnitId(unitId);
- if (uinit != null && uinit.IsBranch ==true)
+ var uinit = UnitService.GetUnitByUnitId(unitId);
+ if (uinit != null && uinit.IsBranch == true)
{
result = true;
}
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 47c1d207..9b2dcfea 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -857,7 +857,7 @@ namespace BLL
///
/// 发起检查
///
- public const string CheckInfoMenuId = "6090DD54-FE59-4011-92EE-9906C9BC69B6";
+ public const string CheckInfoMenuId = "6090DD54-FE59-4011-92EE-9906C9BC69B6";
///
/// 实业
@@ -3221,19 +3221,19 @@ namespace BLL
///
/// 工程量清单菜单id
///
- public const string TemQuantityListMenuId0= "326AA80C-6B01-4214-ACF2-B29595BA28D5";
- public const string TemQuantityListMenuId1= "0A679077-6D89-4272-A1B0-CF384DEDC9B8";
- public const string TemQuantityListMenuId2= "0E04FA16-FFA6-4987-A0A5-A4658F0099F2";
- public const string TemQuantityListMenuId3= "FAC4F0F7-A7C0-4F66-8BCB-846C082BCA40";
- public const string TemQuantityListMenuId4= "10586190-0FDD-4DA8-A877-CE4599D6F0DF";
- public const string TemQuantityListMenuId5= "1C770E20-7912-484C-9739-499B1B2F8DEB";
- public const string TemQuantityListMenuId5_1= "3593DF22-78C1-4A73-8468-B20CB44D88C9";
- public const string TemQuantityListMenuId5_2= "3ECE6333-6785-424D-996E-B923A650D8C7";
- public const string TemQuantityListMenuId5_3= "480F8C85-F5F2-4C5C-BE72-2ADABB7250CF";
- public const string TemQuantityListMenuId6= "92101A90-9C22-4B43-B012-9AFF8402F85D";
- public const string TemQuantityListMenuId7= "33A03E2C-4E00-4722-AA14-F50419468154";
- public const string TemQuantityListMenuId8= "A5A31FE8-0643-4396-99E3-A4A31A947789";
- public const string TemQuantityListMenuId9= "481E6B1E-A3D5-4012-B828-FE62EB6BA861";
+ public const string TemQuantityListMenuId0 = "326AA80C-6B01-4214-ACF2-B29595BA28D5";
+ public const string TemQuantityListMenuId1 = "0A679077-6D89-4272-A1B0-CF384DEDC9B8";
+ public const string TemQuantityListMenuId2 = "0E04FA16-FFA6-4987-A0A5-A4658F0099F2";
+ public const string TemQuantityListMenuId3 = "FAC4F0F7-A7C0-4F66-8BCB-846C082BCA40";
+ public const string TemQuantityListMenuId4 = "10586190-0FDD-4DA8-A877-CE4599D6F0DF";
+ public const string TemQuantityListMenuId5 = "1C770E20-7912-484C-9739-499B1B2F8DEB";
+ public const string TemQuantityListMenuId5_1 = "3593DF22-78C1-4A73-8468-B20CB44D88C9";
+ public const string TemQuantityListMenuId5_2 = "3ECE6333-6785-424D-996E-B923A650D8C7";
+ public const string TemQuantityListMenuId5_3 = "480F8C85-F5F2-4C5C-BE72-2ADABB7250CF";
+ public const string TemQuantityListMenuId6 = "92101A90-9C22-4B43-B012-9AFF8402F85D";
+ public const string TemQuantityListMenuId7 = "33A03E2C-4E00-4722-AA14-F50419468154";
+ public const string TemQuantityListMenuId8 = "A5A31FE8-0643-4396-99E3-A4A31A947789";
+ public const string TemQuantityListMenuId9 = "481E6B1E-A3D5-4012-B828-FE62EB6BA861";
///
/// 招标工程量清单定制
///
diff --git a/SGGL/BLL/Common/CreateQRCodeService.cs b/SGGL/BLL/Common/CreateQRCodeService.cs
index 4f2c0f1f..93e76a6e 100644
--- a/SGGL/BLL/Common/CreateQRCodeService.cs
+++ b/SGGL/BLL/Common/CreateQRCodeService.cs
@@ -1,9 +1,8 @@
-using NPOI.OpenXmlFormats.Shared;
+using QRCoder;
using System;
using System.IO;
using System.Text;
using ThoughtWorks.QRCode.Codec;
-using QRCoder;
namespace BLL
{
@@ -61,7 +60,7 @@ namespace BLL
int iconBorderWidth:水印图标的边框。不能设为0,否则会显示“参数错误”,程序运行出错。
bool drawQuietZones:静止区,即是否绘画二维码的空白边框区域,默认为true。
*/
- public static string CreateCode_Simple(string nr,string filename)
+ public static string CreateCode_Simple(string nr, string filename)
{
try
{
@@ -89,7 +88,7 @@ namespace BLL
{
Directory.CreateDirectory(filepath);
}
- // string filename = DateTime.Now.ToString("yyyymmddhhmmssfff").ToString() + ".jpg";
+ // string filename = DateTime.Now.ToString("yyyymmddhhmmssfff").ToString() + ".jpg";
filename = filename + ".jpg";
//if (File.Exists(filepath + filename))
//{
diff --git a/SGGL/BLL/Common/FastReport.cs b/SGGL/BLL/Common/FastReport.cs
index a044c483..9ecf8a8b 100644
--- a/SGGL/BLL/Common/FastReport.cs
+++ b/SGGL/BLL/Common/FastReport.cs
@@ -1,11 +1,7 @@
-using System.Web;
-using System.Web.Security;
+using FastReport;
using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Data;
-using FastReport;
+using System.Web;
namespace BLL
{
diff --git a/SGGL/BLL/Common/Funs.cs b/SGGL/BLL/Common/Funs.cs
index a92041d7..df9536a4 100644
--- a/SGGL/BLL/Common/Funs.cs
+++ b/SGGL/BLL/Common/Funs.cs
@@ -2,7 +2,6 @@ namespace BLL
{
using MiniExcelLibs;
using Model;
- using NPOI.SS.Formula.Functions;
using Quartz;
using RestSharp;
using System;
@@ -1212,7 +1211,7 @@ namespace BLL
p.SetValue(entity, Convert.ToInt32(row[p.Name]), null);
continue;
}
-
+
p.SetValue(entity, row[p.Name], null);
}
list.Add(entity);
@@ -1364,7 +1363,7 @@ namespace BLL
///
/// ÿҳ
///
- public static int GetEndPageNumber(int pageTotal,int pagesize )
+ public static int GetEndPageNumber(int pageTotal, int pagesize)
{
double aa = (pageTotal + pagesize - 1) / pagesize; //ʹ/ÿҳʾҳdouble
@@ -1451,7 +1450,7 @@ namespace BLL
return response.Content;
}
- public static string RequestPost(string Baseurl, Dictionary Token, string JsonBody)
+ public static string RequestPost(string Baseurl, Dictionary Token, string JsonBody)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
@@ -1461,7 +1460,7 @@ namespace BLL
foreach (var item in Token)
{
request.AddHeader(item.Key, item.Value);
- }
+ }
request.AddHeader("ClientId", SysConstSetService.ClientId);
request.AddHeader("OperationCode", Baseurl.Substring(Baseurl.LastIndexOf("/", StringComparison.Ordinal) + 1));
if (!string.IsNullOrEmpty(JsonBody))
diff --git a/SGGL/BLL/Common/MultiHeaderTable.cs b/SGGL/BLL/Common/MultiHeaderTable.cs
index 1e99cd70..3fa8c588 100644
--- a/SGGL/BLL/Common/MultiHeaderTable.cs
+++ b/SGGL/BLL/Common/MultiHeaderTable.cs
@@ -1,6 +1,6 @@
using FineUIPro;
-using System.Collections.Generic;
using System;
+using System.Collections.Generic;
///
/// 处理多表头的类
///
diff --git a/SGGL/BLL/Common/PrinterDocService.cs b/SGGL/BLL/Common/PrinterDocService.cs
index 99df54a3..fb910e90 100644
--- a/SGGL/BLL/Common/PrinterDocService.cs
+++ b/SGGL/BLL/Common/PrinterDocService.cs
@@ -1,6 +1,5 @@
namespace BLL
{
- using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
@@ -272,9 +271,9 @@
public static string GetRectifyNoticesTableHtmlAll(string projectId)
{
StringBuilder sb = new StringBuilder();
- var getRectifyNoticesAll = from x in Funs.DB.Check_RectifyNotices
+ var getRectifyNoticesAll = from x in Funs.DB.Check_RectifyNotices
orderby x.RectifyNoticesCode
- where x.ProjectId == projectId
+ where x.ProjectId == projectId
select x;
sb.Append("");
foreach (var getRectifyNotices in getRectifyNoticesAll)
@@ -641,7 +640,7 @@
where x.ProjectId == projectId
select x;
foreach (var getRectifyNotices in getRectifyNoticesAll)
- {
+ {
sb.Append("");
sb.Append("");
sb.AppendFormat("| {0} | ", "安全隐患整改反馈单");
diff --git a/SGGL/BLL/Common/ProjectDataFlowSetService.cs b/SGGL/BLL/Common/ProjectDataFlowSetService.cs
index 10e39813..8ba576b4 100644
--- a/SGGL/BLL/Common/ProjectDataFlowSetService.cs
+++ b/SGGL/BLL/Common/ProjectDataFlowSetService.cs
@@ -1,6 +1,4 @@
-using Model;
-
-namespace BLL
+namespace BLL
{
using System;
using System.Collections;
diff --git a/SGGL/BLL/Common/Sys_CQMS_DataInTempService.cs b/SGGL/BLL/Common/Sys_CQMS_DataInTempService.cs
index 8b1bbef5..4e709f76 100644
--- a/SGGL/BLL/Common/Sys_CQMS_DataInTempService.cs
+++ b/SGGL/BLL/Common/Sys_CQMS_DataInTempService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/Common/WeatherService.cs b/SGGL/BLL/Common/WeatherService.cs
index cc194d10..76906644 100644
--- a/SGGL/BLL/Common/WeatherService.cs
+++ b/SGGL/BLL/Common/WeatherService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public class WeatherService
{
-
+
///
/// 根据主键获取事故类型
diff --git a/SGGL/BLL/Common/WordHelp.cs b/SGGL/BLL/Common/WordHelp.cs
index 3a65d367..eb9404bb 100644
--- a/SGGL/BLL/Common/WordHelp.cs
+++ b/SGGL/BLL/Common/WordHelp.cs
@@ -1,5 +1,4 @@
using Aspose.Words;
-using Microsoft.Office.Interop.Excel;
using System;
using System.IO;
using System.Net;
@@ -242,7 +241,7 @@ namespace BLL
}
}
}
- public static void WordIntoPdf(string wordPath, string pdfPath)
+/* public static void WordIntoPdf(string wordPath, string pdfPath)
{
Microsoft.Office.Interop.Word.Application application = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document document = null;
@@ -261,7 +260,7 @@ namespace BLL
document.Close();
}
}
-
+*/
///
/// html代码转word
///
@@ -281,7 +280,7 @@ namespace BLL
sw.Flush();
sw.Close();
}
- public static string WordToHtml(object wordFileName)
+/* public static string WordToHtml(object wordFileName)
{
//在此处放置用户代码以初始化页面
Microsoft.Office.Interop.Word.ApplicationClass word = new Microsoft.Office.Interop.Word.ApplicationClass();
@@ -340,7 +339,7 @@ namespace BLL
//process.Start();
}
- #endregion
+ #endregion*/
//public static string GetPathByDocToHTML(string strFile)
//{
// if (string.IsNullOrEmpty(strFile))
diff --git a/SGGL/BLL/DCGL/ServerCheck/DCGLCheckNoticeItemService.cs b/SGGL/BLL/DCGL/ServerCheck/DCGLCheckNoticeItemService.cs
index 31313172..1bc69b81 100644
--- a/SGGL/BLL/DCGL/ServerCheck/DCGLCheckNoticeItemService.cs
+++ b/SGGL/BLL/DCGL/ServerCheck/DCGLCheckNoticeItemService.cs
@@ -1,9 +1,4 @@
-using Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/DCGL/ServerCheck/DCGLCheckRectifyItemService.cs b/SGGL/BLL/DCGL/ServerCheck/DCGLCheckRectifyItemService.cs
index 9cb9afe4..10fb27b3 100644
--- a/SGGL/BLL/DCGL/ServerCheck/DCGLCheckRectifyItemService.cs
+++ b/SGGL/BLL/DCGL/ServerCheck/DCGLCheckRectifyItemService.cs
@@ -1,9 +1,5 @@
-using Model;
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/DCGL/ServerCheck/DCGLCheckRectifyService.cs b/SGGL/BLL/DCGL/ServerCheck/DCGLCheckRectifyService.cs
index 01b1c0aa..051820f1 100644
--- a/SGGL/BLL/DCGL/ServerCheck/DCGLCheckRectifyService.cs
+++ b/SGGL/BLL/DCGL/ServerCheck/DCGLCheckRectifyService.cs
@@ -1,12 +1,8 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
- public static class DCGLCheckRectifyService
+ public static class DCGLCheckRectifyService
{
///
/// 根据整改ID获取督查检查信息
diff --git a/SGGL/BLL/DigData/CQMSDataDWService .cs b/SGGL/BLL/DigData/CQMSDataDWService .cs
index 394a110a..aa4eeef8 100644
--- a/SGGL/BLL/DigData/CQMSDataDWService .cs
+++ b/SGGL/BLL/DigData/CQMSDataDWService .cs
@@ -2,7 +2,6 @@
using System;
using System.Collections;
using System.Linq;
-using Model;
namespace BLL
{
@@ -36,7 +35,7 @@ namespace BLL
///
///
///
- public static IEnumerable getDataDWList( string projectId, DateTime? startTime, DateTime? endTime, Grid Grid1)
+ public static IEnumerable getDataDWList(string projectId, DateTime? startTime, DateTime? endTime, Grid Grid1)
{
IQueryable getDataList = getDataLists;
if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null)
@@ -82,7 +81,7 @@ namespace BLL
int onesOKCount = getSpotCheckDetail.Where(x => x.IsOnesOK == true).Count(); //一次合格
// this.lbSpotCheck2.Text= okCount.ToString();
- return all > 0 ? Math.Round(onesOKCount * 100.0 / (all * 1.0)).ToString() + "%" : "0%";
+ return all > 0 ? Math.Round(onesOKCount * 100.0 / (all * 1.0)).ToString() + "%" : "0%";
}
///
@@ -90,17 +89,17 @@ namespace BLL
///
///
///
- public static string getSpotCheckDataRate(string projectId)
+ public static string getSpotCheckDataRate(string projectId)
{
var getSpotCheckDetail = from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.Check_SpotCheck on x.SpotCheckCode equals y.SpotCheckCode
- where (y.ProjectId == projectId || projectId == null) && y.State == "8"
+ where (y.ProjectId == projectId || projectId == null) && y.State == "8"
select x;
/// 资料验收合格项目
var getOKSpotCheckDetail = getSpotCheckDetail.Where(x => x.IsOK == true);
int okYSCount = getOKSpotCheckDetail.Count(); //验收合格
int okDateCount = getSpotCheckDetail.Where(x => x.IsDataOK == "1").Count(); //资料合格
- return okYSCount > 0 ? Math.Round(okDateCount * 100.0 / (okYSCount * 1.0)).ToString() + "%" : "0%";
+ return okYSCount > 0 ? Math.Round(okDateCount * 100.0 / (okYSCount * 1.0)).ToString() + "%" : "0%";
}
///
@@ -110,7 +109,7 @@ namespace BLL
///
public static string getCheckControlStates(string projectId)
{
- var getCheck_CheckControl = from x in Funs.DB.Check_CheckControl
+ var getCheck_CheckControl = from x in Funs.DB.Check_CheckControl
where (x.ProjectId == projectId || projectId == null)
select x;
int allCheckControlCount = getCheck_CheckControl.Count();
@@ -136,7 +135,7 @@ namespace BLL
int allHJCount = getJots.Count();
var getOk = getJots.Where(x => x.CheckResult == "1");
int okHJCount = getOk.Count();
- return allHJCount > 0 ? Math.Round(okHJCount * 100.0 / (allHJCount * 1.0)).ToString() + "%" : "0%";
+ return allHJCount > 0 ? Math.Round(okHJCount * 100.0 / (allHJCount * 1.0)).ToString() + "%" : "0%";
}
}
}
\ No newline at end of file
diff --git a/SGGL/BLL/DigData/HSEDataDWService.cs b/SGGL/BLL/DigData/HSEDataDWService.cs
index 0803eba6..0d674c36 100644
--- a/SGGL/BLL/DigData/HSEDataDWService.cs
+++ b/SGGL/BLL/DigData/HSEDataDWService.cs
@@ -2,7 +2,6 @@
using System;
using System.Collections;
using System.Linq;
-using Model;
namespace BLL
{
@@ -36,7 +35,7 @@ namespace BLL
///
///
///
- public static IEnumerable getDataDWList( string projectId, DateTime? startTime, DateTime? endTime, Grid Grid1)
+ public static IEnumerable getDataDWList(string projectId, DateTime? startTime, DateTime? endTime, Grid Grid1)
{
IQueryable getDataList = getDataLists;
if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null)
@@ -57,9 +56,9 @@ namespace BLL
x.ProjectId,
x.ProjectName,
x.ProjectCode,
- Count1=db1.SitePerson_Person.Where(p=>p.ProjectId == x.ProjectId && p.States == Const.ProjectPersonStates_1).Count(), //人员数量
+ Count1 = db1.SitePerson_Person.Where(p => p.ProjectId == x.ProjectId && p.States == Const.ProjectPersonStates_1).Count(), //人员数量
Count2 = getProjecctSafeHours(x.ProjectId), //安全人工时
- Count3 =db1.EduTrain_TrainRecord.Where(p => p.ProjectId == x.ProjectId && p.States == BLL.Const.State_2).Count(), //安全培训次数
+ Count3 = db1.EduTrain_TrainRecord.Where(p => p.ProjectId == x.ProjectId && p.States == BLL.Const.State_2).Count(), //安全培训次数
ProblemRate = getProblemRate(x.ProjectId), //安全巡检整改率
};
}
@@ -79,7 +78,7 @@ namespace BLL
if (getPersonInOutNumber != null)
{
count = getPersonInOutNumber.WorkHours ?? 0;
- }
+ }
return count;
}
diff --git a/SGGL/BLL/DigData/HTGLDataDWService.cs b/SGGL/BLL/DigData/HTGLDataDWService.cs
index 72324a87..cdc2163d 100644
--- a/SGGL/BLL/DigData/HTGLDataDWService.cs
+++ b/SGGL/BLL/DigData/HTGLDataDWService.cs
@@ -2,7 +2,6 @@
using System;
using System.Collections;
using System.Linq;
-using Model;
namespace BLL
{
@@ -25,7 +24,7 @@ namespace BLL
/// 定义变量
///
private static IQueryable getDataLists = from x in Funs.DB.Base_Project
- select x;
+ select x;
///
/// 合同管理数据仓库
@@ -35,7 +34,7 @@ namespace BLL
///
///
///
- public static IEnumerable getDataDWList( string projectId, Grid Grid1)
+ public static IEnumerable getDataDWList(string projectId, Grid Grid1)
{
var getDataList = from x in Funs.DB.Base_Project select x;
if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null)
@@ -55,7 +54,7 @@ namespace BLL
x.ProjectId,
x.ProjectName,
x.ProjectCode,
- Count1= getTotalProfit(x.ProjectId),
+ Count1 = getTotalProfit(x.ProjectId),
};
}
#endregion
@@ -67,16 +66,16 @@ namespace BLL
if (getContract.Count() > 0)
{
contractAmount = getContract.Sum(x => x.ContractAmount ?? 0);
- }
+ }
decimal estimatedAmount = 0;
var getContractTrack = Funs.DB.PHTGL_ContractTrack.Where(x => x.ProjectId == projectId);
if (getContractTrack.Count() > 0)
{
estimatedAmount = getContractTrack.Sum(x => x.EstimatedAmount ?? 0);
- }
+ }
- return estimatedAmount > 0 ? Math.Round(contractAmount / estimatedAmount).ToString() + "%" : "0%";
+ return estimatedAmount > 0 ? Math.Round(contractAmount / estimatedAmount).ToString() + "%" : "0%";
}
}
diff --git a/SGGL/BLL/DigData/JDGLDataDWService.cs b/SGGL/BLL/DigData/JDGLDataDWService.cs
index 9fae9a90..98487e0a 100644
--- a/SGGL/BLL/DigData/JDGLDataDWService.cs
+++ b/SGGL/BLL/DigData/JDGLDataDWService.cs
@@ -2,7 +2,6 @@
using System;
using System.Collections;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/DigData/ProblemAnalysisService.cs b/SGGL/BLL/DigData/ProblemAnalysisService.cs
index 83367bf0..f1c1beac 100644
--- a/SGGL/BLL/DigData/ProblemAnalysisService.cs
+++ b/SGGL/BLL/DigData/ProblemAnalysisService.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/DigData/ProjectWBSAnalysisService.cs b/SGGL/BLL/DigData/ProjectWBSAnalysisService.cs
index 0f2411fb..3b5649c1 100644
--- a/SGGL/BLL/DigData/ProjectWBSAnalysisService.cs
+++ b/SGGL/BLL/DigData/ProjectWBSAnalysisService.cs
@@ -1,11 +1,7 @@
using FineUIPro;
-using NPOI.SS.Formula.Functions;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Web.Util;
-using Model;
namespace BLL
{
@@ -112,7 +108,7 @@ namespace BLL
{
x.WorkPackageId,
x.PackageContent,
- Count1 = WBSAnalysisService.getWBSExpertArgumentCount(projectId,x.WorkPackageId),
+ Count1 = WBSAnalysisService.getWBSExpertArgumentCount(projectId, x.WorkPackageId),
Count2 = WBSAnalysisService.getWBSAccidentCount(projectId, x.WorkPackageId),
Count3 = WBSAnalysisService.getWBSHSEProblemCount(projectId, x.WorkPackageId),
Count4 = WBSAnalysisService.getWBSSpotCheckRate(projectId, x.WorkPackageId),
diff --git a/SGGL/BLL/DigData/WBSAnalysisService.cs b/SGGL/BLL/DigData/WBSAnalysisService.cs
index 219290ec..ea0d559b 100644
--- a/SGGL/BLL/DigData/WBSAnalysisService.cs
+++ b/SGGL/BLL/DigData/WBSAnalysisService.cs
@@ -1,11 +1,8 @@
using FineUIPro;
-using NPOI.SS.Formula.Functions;
-using Org.BouncyCastle.Crypto.Tls;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
@@ -28,7 +25,7 @@ namespace BLL
/// 定义变量
///
private static IQueryable getDataLists = from x in Funs.DB.WBS_WorkPackageInit
- select x;
+ select x;
///
/// 合同管理数据仓库
@@ -39,9 +36,9 @@ namespace BLL
///
///
public static IEnumerable getDataDWList(string workPackageId, Grid Grid1)
- {
+ {
var getDataList = getDataLists;
- if (string.IsNullOrEmpty(workPackageId) )
+ if (string.IsNullOrEmpty(workPackageId))
{
List listWork = new List();
Model.WBS_WorkPackageInit work1 = new Model.WBS_WorkPackageInit
@@ -85,9 +82,9 @@ namespace BLL
{
x.WorkPackageCode,
x.PackageContent,
- Count1= getWBSExpertArgumentCount(null, x.WorkPackageCode),
- Count2 = getWBSAccidentCount(null,x.WorkPackageCode),
- Count3 = getWBSHSEProblemCount(null, x.WorkPackageCode),
+ Count1 = getWBSExpertArgumentCount(null, x.WorkPackageCode),
+ Count2 = getWBSAccidentCount(null, x.WorkPackageCode),
+ Count3 = getWBSHSEProblemCount(null, x.WorkPackageCode),
Count4 = getWBSSpotCheckRate(null, x.WorkPackageCode),
Count5 = getWBSSpotCheckDataRate(null, x.WorkPackageCode),
Count6 = getWBSCheckControlCount(null, x.WorkPackageCode),
@@ -100,13 +97,13 @@ namespace BLL
///
///
///
- public static int getWBSExpertArgumentCount(string projectId,string workPackageId)
+ public static int getWBSExpertArgumentCount(string projectId, string workPackageId)
{
var getLargerHazardListItem = from x in Funs.DB.Solution_LargerHazardListItem
join y in Funs.DB.Solution_LargerHazardList on x.LargerHazardListId equals y.LargerHazardListId
- where x.WorkPackageId.Contains(workPackageId)
+ where x.WorkPackageId.Contains(workPackageId)
&& y.States == Const.State_1
- select new {x.LargerHazardListItemId,y.LargerHazardListId,y.ProjectId,x.WorkPackageId };
+ select new { x.LargerHazardListItemId, y.LargerHazardListId, y.ProjectId, x.WorkPackageId };
if (!string.IsNullOrEmpty(projectId))
{
getLargerHazardListItem = getLargerHazardListItem.Where(x => x.ProjectId == projectId);
@@ -121,7 +118,7 @@ namespace BLL
///
///
public static int getWBSAccidentCount(string projectId, string workPackageId)
- {
+ {
var getAccidentPersonRecord = from x in Funs.DB.Accident_AccidentPersonRecord
where x.WorkPackageId.Contains(workPackageId)
&& x.States == Const.State_2
@@ -142,7 +139,7 @@ namespace BLL
public static int getWBSHSEProblemCount(string projectId, string workPackageId)
{
var getHazardRegister = from x in Funs.DB.HSSE_Hazard_HazardRegister
- where x.States != "4" && x.States != "0"
+ where x.States != "4" && x.States != "0"
&& x.WorkPackageId.Contains(workPackageId)
select x;
if (!string.IsNullOrEmpty(projectId))
@@ -162,9 +159,9 @@ namespace BLL
{
var getSpotCheckDetail = from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.Check_SpotCheck on x.SpotCheckCode equals y.SpotCheckCode
- where x.WorkPackageId.Contains(workPackageId) && (projectId ==null || y.ProjectId == projectId)
+ where x.WorkPackageId.Contains(workPackageId) && (projectId == null || y.ProjectId == projectId)
&& y.State == "8"
- select new { x.SpotCheckCode ,y.ProjectId,x.IsDataOK,x.IsOnesOK};
+ select new { x.SpotCheckCode, y.ProjectId, x.IsDataOK, x.IsOnesOK };
if (!string.IsNullOrEmpty(projectId))
{
getSpotCheckDetail = getSpotCheckDetail.Where(x => x.ProjectId == projectId);
@@ -186,9 +183,9 @@ namespace BLL
//// 实体验收 资料验收
var getSpotCheckDetail = from x in Funs.DB.Check_SpotCheckDetail
join y in Funs.DB.Check_SpotCheck on x.SpotCheckCode equals y.SpotCheckCode
- where x.WorkPackageId.Contains(workPackageId)
+ where x.WorkPackageId.Contains(workPackageId)
&& y.State == "8"
- select new { x.SpotCheckCode, y.ProjectId, x.IsDataOK, x.IsOnesOK,x.IsOK };
+ select new { x.SpotCheckCode, y.ProjectId, x.IsDataOK, x.IsOnesOK, x.IsOK };
if (!string.IsNullOrEmpty(projectId))
{
getSpotCheckDetail = getSpotCheckDetail.Where(x => x.ProjectId == projectId);
@@ -209,7 +206,7 @@ namespace BLL
public static int getWBSCheckControlCount(string projectId, string workPackageId)
{
var getCheck_CheckControl = from x in Funs.DB.Check_CheckControl
- where x.WorkPackageId.Contains(workPackageId)
+ where x.WorkPackageId.Contains(workPackageId)
select x;
if (!string.IsNullOrEmpty(projectId))
{
diff --git a/SGGL/BLL/Doc/DocService.cs b/SGGL/BLL/Doc/DocService.cs
index 37a3b0f3..a2e90d65 100644
--- a/SGGL/BLL/Doc/DocService.cs
+++ b/SGGL/BLL/Doc/DocService.cs
@@ -1,5 +1,4 @@
-using System.Collections.Generic;
-using System.Linq;
+using System.Linq;
namespace BLL
{
@@ -8,7 +7,7 @@ namespace BLL
///
public static class DocService
{
-
+
///
/// 根据主键获取帮助文档
diff --git a/SGGL/BLL/DropListService.cs b/SGGL/BLL/DropListService.cs
index 685a962e..f616d01e 100644
--- a/SGGL/BLL/DropListService.cs
+++ b/SGGL/BLL/DropListService.cs
@@ -1,5 +1,4 @@
-using BLL;
-using System.Collections.Generic;
+using System.Collections.Generic;
namespace BLL
{
@@ -18,7 +17,7 @@ namespace BLL
/// 下拉框名字
/// 是否显示请选择
public static void InitConstDropDownList(FineUIPro.DropDownList dropName, string groupId, bool isShowPlease)
- {
+ {
dropName.DataValueField = "Value";
dropName.DataTextField = "Text";
if (groupId == Group_IsPost)
diff --git a/SGGL/BLL/HJGL/BaseInfo/Base_DNCompareService.cs b/SGGL/BLL/HJGL/BaseInfo/Base_DNCompareService.cs
index a7df7932..707f4ba1 100644
--- a/SGGL/BLL/HJGL/BaseInfo/Base_DNCompareService.cs
+++ b/SGGL/BLL/HJGL/BaseInfo/Base_DNCompareService.cs
@@ -1,5 +1,4 @@
using Model;
-using System;
using System.Collections.Generic;
using System.Linq;
@@ -145,11 +144,11 @@ namespace BLL
///
///
///
- public static decimal? GetThicknessByDNDia(int DN,string sch)
+ public static decimal? GetThicknessByDNDia(int DN, string sch)
{
decimal result = 0;
var q = GetDNCompareByDN(DN);
- if (q!=null)
+ if (q != null)
{
var diaProperty = q.GetType().GetProperty(sch);
diaProperty = (diaProperty == null ? q.GetType().GetProperty(sch.Replace("Sch", "SCH")) : diaProperty);
diff --git a/SGGL/BLL/HJGL/BaseInfo/Base_MaterialColorService.cs b/SGGL/BLL/HJGL/BaseInfo/Base_MaterialColorService.cs
index 763b3fcc..0a1541ac 100644
--- a/SGGL/BLL/HJGL/BaseInfo/Base_MaterialColorService.cs
+++ b/SGGL/BLL/HJGL/BaseInfo/Base_MaterialColorService.cs
@@ -1,10 +1,8 @@
using FineUIPro;
using Model;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -26,7 +24,7 @@ namespace BLL
}
private static IQueryable GetByQueryModle(Model.BaseMaterialcolorOutput table)
{
- var q = from x in Funs.DB.Base_MaterialColor
+ var q = from x in Funs.DB.Base_MaterialColor
join y in Funs.DB.Base_Material on x.MaterialId equals y.MaterialId into yy
from y in yy.DefaultIfEmpty()
select new BaseMaterialcolorOutput
@@ -39,7 +37,7 @@ namespace BLL
ColorName = x.ColorName,
ColorCardNo = x.ColorCardNo,
RGB = x.RGB,
- Remark= x.Remark,
+ Remark = x.Remark,
};
if (table == null)
@@ -150,7 +148,7 @@ namespace BLL
{
MaterialColorId = newtable.MaterialColorId,
UnitId = newtable.UnitId,
- ProjectId= newtable.ProjectId,
+ ProjectId = newtable.ProjectId,
MaterialId = newtable.MaterialId,
ColorName = newtable.ColorName,
ColorCardNo = newtable.ColorCardNo,
diff --git a/SGGL/BLL/HJGL/BaseInfo/MaterialCodeLibService.cs b/SGGL/BLL/HJGL/BaseInfo/MaterialCodeLibService.cs
index 0cc5296a..affcee68 100644
--- a/SGGL/BLL/HJGL/BaseInfo/MaterialCodeLibService.cs
+++ b/SGGL/BLL/HJGL/BaseInfo/MaterialCodeLibService.cs
@@ -111,5 +111,5 @@
[ExcelColumnName("类型")]
public string MaterialName { get; set; }
}
-
+
}
diff --git a/SGGL/BLL/HJGL/DataImport/DataImportService.cs b/SGGL/BLL/HJGL/DataImport/DataImportService.cs
index 51721ab3..d2917108 100644
--- a/SGGL/BLL/HJGL/DataImport/DataImportService.cs
+++ b/SGGL/BLL/HJGL/DataImport/DataImportService.cs
@@ -43,20 +43,20 @@ namespace BLL
///
///
///
- public static Model.HJGL_DataImport GetLatestFileByFileName(string FileName,string ImportType, string project)
+ public static Model.HJGL_DataImport GetLatestFileByFileName(string FileName, string ImportType, string project)
{
var q = (from x in Funs.DB.HJGL_DataImport
- where x.FileName.Contains(FileName) && x.ProjectId == project&&x.ImportType==ImportType
+ where x.FileName.Contains(FileName) && x.ProjectId == project && x.ImportType == ImportType
select x
).OrderByDescending(x => x.Version).FirstOrDefault();
return q;
}
- public static string ConvertFileType(object ImportType)
+ public static string ConvertFileType(object ImportType)
{
- string TypeName=string.Empty;
+ string TypeName = string.Empty;
if (ImportType != null)
{
- switch (ImportType.ToString ())
+ switch (ImportType.ToString())
{
case "0":
TypeName = "ISO轴测图";
@@ -77,7 +77,7 @@ namespace BLL
}
return TypeName;
-
+
}
public static List GetListVersionByUnitWorkId(string UnitWorkId)
{
@@ -115,13 +115,14 @@ namespace BLL
System.Web.HttpContext.Current.Response.TransmitFile(url, 0, fileSize);
System.Web.HttpContext.Current.Response.Flush();
System.Web.HttpContext.Current.Response.Close();
- }
-
+ }
+
}
catch (System.Exception ex)
{
throw;
- };
+ }
+ ;
}
///
@@ -150,11 +151,11 @@ namespace BLL
catch (System.Exception)
{
- result =false;
+ result = false;
}
return result;
-
- }
+
+ }
///
/// 获取当前文件新的版本号
///
@@ -173,7 +174,7 @@ namespace BLL
var newVersion = MaxVersion + 0.1m;
return newVersion;
}
- public static string Getlatest3DModelNameByUnitWorkId(string UnitWorkId )
+ public static string Getlatest3DModelNameByUnitWorkId(string UnitWorkId)
{
string result = "";
var q = (from x in Funs.DB.HJGL_DataImport
@@ -184,13 +185,13 @@ namespace BLL
from t in tt.DefaultIfEmpty()
select new
{
- FileName = (from x2 in tt where x2.Version == tt.Max(x => x.Version ) select x2.FileName).FirstOrDefault()
+ FileName = (from x2 in tt where x2.Version == tt.Max(x => x.Version) select x2.FileName).FirstOrDefault()
}
).FirstOrDefault();
//where t.Key == UnitWorkId & x.FileType == "1" select x.Version).Distinct().ToList();
- if (q!=null&&!string.IsNullOrEmpty(q.FileName))
+ if (q != null && !string.IsNullOrEmpty(q.FileName))
{
- result=q.FileName.Substring (0,q.FileName.LastIndexOf('.'));
+ result = q.FileName.Substring(0, q.FileName.LastIndexOf('.'));
}
return result;
diff --git a/SGGL/BLL/HJGL/DataImport/HJGL_DesignBasisDataImport.cs b/SGGL/BLL/HJGL/DataImport/HJGL_DesignBasisDataImport.cs
index f29a9430..c453c01d 100644
--- a/SGGL/BLL/HJGL/DataImport/HJGL_DesignBasisDataImport.cs
+++ b/SGGL/BLL/HJGL/DataImport/HJGL_DesignBasisDataImport.cs
@@ -3,8 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -65,9 +63,9 @@ namespace BLL
{
return Funs.DB.HJGL_DesignBasisDataImport.FirstOrDefault(x => x.DesignBasisDataImportId == DesignBasisDataImportId);
}
- public static List GetDataByUnitWorkIdAndVersion(string unitworkid,decimal version,string dataclassification)
+ public static List GetDataByUnitWorkIdAndVersion(string unitworkid, decimal version, string dataclassification)
{
- var q = Funs.DB.HJGL_DesignBasisDataImport.Where(e => e.UnitWorkId == unitworkid && e.Version == version&& e.DataClassification==dataclassification).OrderBy(e => e.CreateDate).ToList();
+ var q = Funs.DB.HJGL_DesignBasisDataImport.Where(e => e.UnitWorkId == unitworkid && e.Version == version && e.DataClassification == dataclassification).OrderBy(e => e.CreateDate).ToList();
return q;
@@ -100,7 +98,7 @@ namespace BLL
FileId = newtable.FileId,
Version = newtable.Version,
Remark = newtable.Remark,
- DataClassification=newtable.DataClassification,
+ DataClassification = newtable.DataClassification,
CreateMan = newtable.CreateMan,
CreateDate = newtable.CreateDate,
};
@@ -108,11 +106,12 @@ namespace BLL
db1.HJGL_DesignBasisDataImport.InsertOnSubmit(table);
db1.SubmitChanges();
}
- public static List GetListVersionByUnitWorkId(string UnitWorkId,string dataclassification)
+ public static List GetListVersionByUnitWorkId(string UnitWorkId, string dataclassification)
{
//decimal a = 0.1M;
- var q = (from x in Funs.DB.HJGL_DesignBasisDataImport where x.UnitWorkId == UnitWorkId &&x.DataClassification==dataclassification
- select x.Version).Distinct().ToList();
+ var q = (from x in Funs.DB.HJGL_DesignBasisDataImport
+ where x.UnitWorkId == UnitWorkId && x.DataClassification == dataclassification
+ select x.Version).Distinct().ToList();
return q;
}
///
@@ -120,11 +119,12 @@ namespace BLL
///
///
///
- public static decimal GetNewVersionByUnitWorkId(string UnitWorkId,string dataclassification)
+ public static decimal GetNewVersionByUnitWorkId(string UnitWorkId, string dataclassification)
{
decimal MaxVersion = 0.0M;
- var q = (from x in Funs.DB.HJGL_DesignBasisDataImport where x.UnitWorkId == UnitWorkId && x.DataClassification == dataclassification
- select x.Version).Distinct().ToList();
+ var q = (from x in Funs.DB.HJGL_DesignBasisDataImport
+ where x.UnitWorkId == UnitWorkId && x.DataClassification == dataclassification
+ select x.Version).Distinct().ToList();
if (q != null && q.Count() > 0)
{
MaxVersion = (decimal)q.Max();
@@ -133,11 +133,11 @@ namespace BLL
return newVersion;
}
- public static decimal GetNowVersionByUnitWorkId(string unitworkId,string dataclassification)
+ public static decimal GetNowVersionByUnitWorkId(string unitworkId, string dataclassification)
{
- decimal newVersion=0.0M;
- var q= Funs.DB.HJGL_DesignBasisDataImportVerSionLog.FirstOrDefault(x => x.UnitWorkId == unitworkId && x.DataClassification == dataclassification);
- if (q!=null)
+ decimal newVersion = 0.0M;
+ var q = Funs.DB.HJGL_DesignBasisDataImportVerSionLog.FirstOrDefault(x => x.UnitWorkId == unitworkId && x.DataClassification == dataclassification);
+ if (q != null)
{
newVersion = (decimal)q.Version;
@@ -145,10 +145,10 @@ namespace BLL
return newVersion;
}
- public static void InitVersionDownList(FineUIPro.DropDownList dropName, string UnitWorkId,string dataClassification)
+ public static void InitVersionDownList(FineUIPro.DropDownList dropName, string UnitWorkId, string dataClassification)
{
- dropName.DataSource = GetListVersionByUnitWorkId(UnitWorkId,dataClassification);
+ dropName.DataSource = GetListVersionByUnitWorkId(UnitWorkId, dataClassification);
dropName.DataBind();
}
diff --git a/SGGL/BLL/HJGL/DataImport/HJGL_DesignBasisDataImportVerSionLog.cs b/SGGL/BLL/HJGL/DataImport/HJGL_DesignBasisDataImportVerSionLog.cs
index fa959a7a..72b939ab 100644
--- a/SGGL/BLL/HJGL/DataImport/HJGL_DesignBasisDataImportVerSionLog.cs
+++ b/SGGL/BLL/HJGL/DataImport/HJGL_DesignBasisDataImportVerSionLog.cs
@@ -1,10 +1,4 @@
-using FineUIPro;
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Model;
+using System.Linq;
namespace BLL
@@ -17,10 +11,10 @@ namespace BLL
return Funs.DB.HJGL_DesignBasisDataImportVerSionLog.FirstOrDefault(x => x.DesignBasisDataImportVerSionLogId == DesignBasisDataImportVerSionLogId);
}
- public static Model.HJGL_DesignBasisDataImportVerSionLog GetHJGL_DesignBasisDataImportVerSionLogByunitworkId(string unitworkId,string DataClassification)
+ public static Model.HJGL_DesignBasisDataImportVerSionLog GetHJGL_DesignBasisDataImportVerSionLogByunitworkId(string unitworkId, string DataClassification)
{
- var q = Funs.DB.HJGL_DesignBasisDataImportVerSionLog.FirstOrDefault(x => x.UnitWorkId == unitworkId&&x.DataClassification== DataClassification);
-
+ var q = Funs.DB.HJGL_DesignBasisDataImportVerSionLog.FirstOrDefault(x => x.UnitWorkId == unitworkId && x.DataClassification == DataClassification);
+
return q;
}
public static void AddHJGL_DesignBasisDataImportVerSionLog(Model.HJGL_DesignBasisDataImportVerSionLog newtable)
@@ -50,18 +44,18 @@ namespace BLL
table.ProjectId = newtable.ProjectId;
table.UnitWorkId = newtable.UnitWorkId;
table.Version = newtable.Version;
- table.DataClassification=newtable.DataClassification;
+ table.DataClassification = newtable.DataClassification;
db1.SubmitChanges();
}
}
- public static void UpdateVersion(string projectId,string unitworkId,decimal version,string DataClassification)
+ public static void UpdateVersion(string projectId, string unitworkId, decimal version, string DataClassification)
{
- var q = GetHJGL_DesignBasisDataImportVerSionLogByunitworkId(unitworkId,DataClassification);
+ var q = GetHJGL_DesignBasisDataImportVerSionLogByunitworkId(unitworkId, DataClassification);
var db1 = Funs.DB;
- if (q!=null)
+ if (q != null)
{
q.Version = version;
db1.SubmitChanges();
@@ -75,7 +69,7 @@ namespace BLL
ProjectId = projectId,
UnitWorkId = unitworkId,
Version = version,
- DataClassification= DataClassification
+ DataClassification = DataClassification
};
db1.HJGL_DesignBasisDataImportVerSionLog.InsertOnSubmit(table);
db1.SubmitChanges();
diff --git a/SGGL/BLL/HJGL/PersonManage/WelderQualifyService.cs b/SGGL/BLL/HJGL/PersonManage/WelderQualifyService.cs
index 7a394f1f..6eda56d7 100644
--- a/SGGL/BLL/HJGL/PersonManage/WelderQualifyService.cs
+++ b/SGGL/BLL/HJGL/PersonManage/WelderQualifyService.cs
@@ -662,7 +662,7 @@ namespace BLL
#endregion
#region 审核焊工合格项目
- public static string AuditWelderQualify(string welderQualifyId,string personId)
+ public static string AuditWelderQualify(string welderQualifyId, string personId)
{
string str = string.Empty;
using (var db = new Model.SGGLDB(Funs.ConnString))
diff --git a/SGGL/BLL/HJGL/PointTrust/PointBatchService.cs b/SGGL/BLL/HJGL/PointTrust/PointBatchService.cs
index cf0e465e..4fc01cc7 100644
--- a/SGGL/BLL/HJGL/PointTrust/PointBatchService.cs
+++ b/SGGL/BLL/HJGL/PointTrust/PointBatchService.cs
@@ -1,12 +1,8 @@
-using NPOI.SS.Formula.Functions;
-using System;
+using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
-using System.Windows.Media.Animation;
-using System.Windows;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HJGL/PreDesign/HJGLPackagingmanagedetailService.cs b/SGGL/BLL/HJGL/PreDesign/HJGLPackagingmanagedetailService.cs
index cecc20c1..86749d7e 100644
--- a/SGGL/BLL/HJGL/PreDesign/HJGLPackagingmanagedetailService.cs
+++ b/SGGL/BLL/HJGL/PreDesign/HJGLPackagingmanagedetailService.cs
@@ -1,17 +1,15 @@
using FineUIPro;
using Model;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
{
public static class HJGLPackagingmanagedetailService
- {
+ {
#region 获取列表
///
/// 记录数
@@ -206,7 +204,7 @@ namespace BLL
MaterialMade = libItem.MaterialMade,
MaterialDef = libItem.MaterialDef,
Number = tb.Number,
- CusBillCode = twOutItem.CusBillCode,
+ CusBillCode = twOutItem.CusBillCode,
};
result = q.ToList();
return result;
diff --git a/SGGL/BLL/HJGL/PreDesign/HJGL_MaterialService.cs b/SGGL/BLL/HJGL/PreDesign/HJGL_MaterialService.cs
index c7ff9f15..784ed5f9 100644
--- a/SGGL/BLL/HJGL/PreDesign/HJGL_MaterialService.cs
+++ b/SGGL/BLL/HJGL/PreDesign/HJGL_MaterialService.cs
@@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
-using System.Web.UI.WebControls;
namespace BLL
{
@@ -106,7 +105,7 @@ namespace BLL
///
///
///
- public static DataTable GetSHOPStockDt( string projectid)
+ public static DataTable GetSHOPStockDt(string projectid)
{
string strSql = @" SELECT mat.MaterialCode,
lib.MaterialName,
@@ -167,7 +166,7 @@ namespace BLL
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
return tb;
- }
+ }
public static DataTable GetFIELDStockDt(string projectid)
{
string strSql = @"
@@ -240,7 +239,7 @@ namespace BLL
/// 管线划分
///
public static List GetMaterialStockItems(string projectid, string PipeArea)
- {
+ {
List list = new List();
DataTable dataTable = new DataTable();
switch (PipeArea)
@@ -252,9 +251,9 @@ namespace BLL
dataTable = GetFIELDStockDt(projectid);
break;
}
- if (dataTable!=null)
+ if (dataTable != null)
{
- list =Funs.TableToEntity(dataTable);
+ list = Funs.TableToEntity(dataTable);
}
return list;
}
@@ -262,8 +261,8 @@ namespace BLL
{
decimal num = 0;
- var list = GetMaterialStockItems(projectid, PipeArea);
- if (list!=null && list.Count>0)
+ var list = GetMaterialStockItems(projectid, PipeArea);
+ if (list != null && list.Count > 0)
{
var item = list.Where(x => x.MaterialCode == materialcode).FirstOrDefault();
if (item != null)
@@ -280,17 +279,17 @@ namespace BLL
///
///
///
- public static bool isInStockByMaterialCode(string MaterialCode, decimal num,string PipeArea,string projectid)
+ public static bool isInStockByMaterialCode(string MaterialCode, decimal num, string PipeArea, string projectid)
{
- bool state=false;
+ bool state = false;
List list = GetMaterialStockItems(projectid, PipeArea);
if (list != null && list.Count > 0)
{
var Material = list.Where(x => x.MaterialCode == MaterialCode).FirstOrDefault();
- if (Material!=null)
+ if (Material != null)
{
var StockNum = Material.MaterialNum;
- if (num<= StockNum)
+ if (num <= StockNum)
{
state = true;
}
@@ -299,7 +298,7 @@ namespace BLL
}
return state;
-
+
}
///
/// 判断库存是否满足此管线
@@ -307,9 +306,9 @@ namespace BLL
///
///
///
- public static bool isInStockByPipeline(string pipelineid,string projectid)
+ public static bool isInStockByPipeline(string pipelineid, string projectid)
{
- bool state = true ;
+ bool state = true;
try
{
var q = from x in Funs.DB.HJGL_PipeLineMat
@@ -324,7 +323,7 @@ namespace BLL
{
var pipemodel = BLL.PipelineService.GetPipelineByPipelineId(pipelineid);
List materialStockItems = new List();
- if (pipemodel.PipeArea==PipelineService.PipeArea_SHOP)
+ if (pipemodel.PipeArea == PipelineService.PipeArea_SHOP)
{
if (HJGL_MaterialService.materialStockItems_SHOP.Count == 0)
{
@@ -334,13 +333,13 @@ namespace BLL
}
else if (pipemodel.PipeArea == PipelineService.PipeArea_FIELD)
{
- if(HJGL_MaterialService.materialStockItems_FIELD.Count == 0)
+ if (HJGL_MaterialService.materialStockItems_FIELD.Count == 0)
{
HJGL_MaterialService.materialStockItems_FIELD = GetMaterialStockItems(projectid, pipemodel.PipeArea);
}
materialStockItems = materialStockItems_FIELD;
}
-
+
//List materialStockItems = GetMaterialStockItems(projectid, pipemodel.PipeArea);
if (materialStockItems != null && materialStockItems.Count > 0) //判断是否有库存信息
{
@@ -382,10 +381,10 @@ namespace BLL
{
state = false;
- ErrLogInfo.WriteLog(ex.ToString ());
+ ErrLogInfo.WriteLog(ex.ToString());
}
-
-
+
+
return state;
}
diff --git a/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs b/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs
index 7339744a..39c69551 100644
--- a/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs
+++ b/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs
@@ -1,12 +1,9 @@
using FineUIPro;
using System;
-using System.Collections;
using System.Collections.Generic;
using System.Data;
-using System.Data.SqlClient;
using System.Linq;
-using System.Text;
namespace BLL
{
diff --git a/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs b/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs
index 8180e310..e31fa98a 100644
--- a/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs
+++ b/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs
@@ -1,10 +1,6 @@
using Model;
-using System;
using System.Collections.Generic;
using System.Linq;
-using System.Runtime.CompilerServices;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
@@ -136,7 +132,7 @@ namespace BLL
///
///
///
- public static void DeleteProductionSchedulingPlanByUnitWork(string projectId,string unitWorkName)
+ public static void DeleteProductionSchedulingPlanByUnitWork(string projectId, string unitWorkName)
{
SGGLDB db = Funs.DB;
var q = (from x in db.HJGL_ProductionSchedulingPlan where x.ProjectId == projectId && x.MainItemName == unitWorkName select x).ToList();
diff --git a/SGGL/BLL/HJGL/PreDesign/TrainNumberManageService.cs b/SGGL/BLL/HJGL/PreDesign/TrainNumberManageService.cs
index 1f4ec522..17572a55 100644
--- a/SGGL/BLL/HJGL/PreDesign/TrainNumberManageService.cs
+++ b/SGGL/BLL/HJGL/PreDesign/TrainNumberManageService.cs
@@ -1,6 +1,4 @@
-using FineUIPro;
-using System.Collections;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
namespace BLL
@@ -30,7 +28,7 @@ namespace BLL
if (!string.IsNullOrEmpty(table.TrainNumber))
{
q = q.Where(x => x.TrainNumber.Contains(table.TrainNumber));
- }
+ }
if (!string.IsNullOrEmpty(table.ProjectId))
{
q = q.Where(x => x.ProjectId.Contains(table.ProjectId));
@@ -99,9 +97,9 @@ namespace BLL
where x.ProjectId == ProjectId
select x.TrainNumber;
var max = q.Count();
- var NewTrainNumber=(max+1).ToString().PadLeft(2, '0');
+ var NewTrainNumber = (max + 1).ToString().PadLeft(2, '0');
return NewTrainNumber;
-
+
}
public static void Add(Model.HJGL_TrainNumberManage newtable)
@@ -118,7 +116,7 @@ namespace BLL
ContactName = newtable.ContactName,
ContactPhone = newtable.ContactPhone,
Remark = newtable.Remark,
- ReceiveDate=newtable.ReceiveDate,
+ ReceiveDate = newtable.ReceiveDate,
};
Funs.DB.HJGL_TrainNumberManage.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
diff --git a/SGGL/BLL/HJGL/PreDesign/YardPlanningService.cs b/SGGL/BLL/HJGL/PreDesign/YardPlanningService.cs
index d5f46421..9a5bf4dd 100644
--- a/SGGL/BLL/HJGL/PreDesign/YardPlanningService.cs
+++ b/SGGL/BLL/HJGL/PreDesign/YardPlanningService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
@@ -16,10 +13,10 @@ namespace BLL
}
public static List GetHJGL_YardPlanningBySurperId(string SurperId)
{
- var q= (from x in Funs.DB.HJGL_YardPlanning where x.SurperId== SurperId select x ) .ToList();
+ var q = (from x in Funs.DB.HJGL_YardPlanning where x.SurperId == SurperId select x).ToList();
return q;
}
- public static Model.HJGL_YardPlanning GetHJGL_YardPlanningByProjectId(string projectId,string unitworkid)
+ public static Model.HJGL_YardPlanning GetHJGL_YardPlanningByProjectId(string projectId, string unitworkid)
{
return Funs.DB.HJGL_YardPlanning.FirstOrDefault(e => e.ProjectId == projectId && e.UnitWorkId == unitworkid);
@@ -30,9 +27,9 @@ namespace BLL
///
///
///
- public static void SavePic(string projectid,string unitworkid, string imgurl)
+ public static void SavePic(string projectid, string unitworkid, string imgurl)
{
- var model = Funs.DB.HJGL_YardPlanning.FirstOrDefault(e => e.ProjectId == projectid && e.UnitWorkId==unitworkid);
+ var model = Funs.DB.HJGL_YardPlanning.FirstOrDefault(e => e.ProjectId == projectid && e.UnitWorkId == unitworkid);
if (model != null)
{
model.FlowChartPic = imgurl;
@@ -51,12 +48,12 @@ namespace BLL
}
public static void SavePic(string YardPlanningId, string imgurl)
{
- var model = Funs.DB.HJGL_YardPlanning.FirstOrDefault(e => e.YardPlanningId== YardPlanningId);
+ var model = Funs.DB.HJGL_YardPlanning.FirstOrDefault(e => e.YardPlanningId == YardPlanningId);
if (model != null)
{
model.FlowChartPic = imgurl;
UpdateHJGL_YardPlanning(model);
- }
+ }
}
public static void AddHJGL_YardPlanning(Model.HJGL_YardPlanning newtable)
{
@@ -66,7 +63,7 @@ namespace BLL
table.Remark = newtable.Remark;
table.FlowChartPic = newtable.FlowChartPic;
table.UnitWorkId = newtable.UnitWorkId;
- table.YardPlanName=newtable.YardPlanName;
+ table.YardPlanName = newtable.YardPlanName;
table.SurperId = newtable.SurperId;
Funs.DB.HJGL_YardPlanning.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
@@ -102,8 +99,8 @@ namespace BLL
}
public static void DeleteHJGL_YardPlanningBySurperId(string SurperId)
{
- var q= GetHJGL_YardPlanningBySurperId(SurperId);
- if (q.Count >0)
+ var q = GetHJGL_YardPlanningBySurperId(SurperId);
+ if (q.Count > 0)
{
Funs.DB.HJGL_YardPlanning.DeleteAllOnSubmit(q);
Funs.DB.SubmitChanges();
@@ -116,13 +113,13 @@ namespace BLL
var id = q.YardPlanningId;
DeleteHJGL_YardPlanningById(YardPlanningId);
var chirdList = GetHJGL_YardPlanningBySurperId(id);
- if (chirdList.Count>0)
+ if (chirdList.Count > 0)
{
foreach (var item in chirdList)
{
DleteAllById(item.YardPlanningId);
}
- }
+ }
}
diff --git a/SGGL/BLL/HJGL/TestPackage/TestPackageApproveService.cs b/SGGL/BLL/HJGL/TestPackage/TestPackageApproveService.cs
index d053e15c..74c6994a 100644
--- a/SGGL/BLL/HJGL/TestPackage/TestPackageApproveService.cs
+++ b/SGGL/BLL/HJGL/TestPackage/TestPackageApproveService.cs
@@ -1,6 +1,5 @@
using System.Data;
using System.Linq;
-using Model;
namespace BLL
{
@@ -49,7 +48,8 @@ namespace BLL
return newApprove;
}
return null;
- };
+ }
+ ;
}
///
diff --git a/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs b/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs
index 405ecc4a..a631a58e 100644
--- a/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs
+++ b/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs
@@ -1,6 +1,4 @@
using Model;
-using NPOI.SS.Formula.Functions;
-using NPOI.SS.UserModel;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -12,13 +10,20 @@ namespace BLL
{
public enum State : int
{
- 未确认 = 0,
- 已确认 = 1,
- 待整改 = 2,
- 已整改 = 3,
- 已完成 = 4,
+ 试压前条件未确认 = 0,
+ 试压前条件已确认 = 1,
+ 尾项检查待整改 = 2,
+ 尾项检查已整改 = 3,
+ 试压包已完成 = 4,
}
-
+ public static Dictionary StateMap = new Dictionary()
+ {
+ { 0, State.试压前条件未确认.ToString()},
+ { 1, State.试压前条件已确认.ToString()},
+ { 2, State.尾项检查待整改.ToString()},
+ { 3, State.尾项检查已整改.ToString()},
+ { 4, State.试压包已完成.ToString()},
+ };
///
/// 根据试压Id获取用于试压信息
///
@@ -441,7 +446,7 @@ namespace BLL
{
var q = Funs.DB.PTP_TestPackage.Where(e => e.ProjectId == projectid).ToList();
return q;
- }
+ }
public static void DeletePipelineListByUnitWorkId(string unitworkId)
{
@@ -508,33 +513,33 @@ namespace BLL
Model.SGGLDB db = Funs.DB;
var testPackage = db.PTP_TestPackage.FirstOrDefault(p => p.PTP_ID == PTP_ID);
if (testPackage == null) return null; // 无效试压包,直接返回空结果
- result.PTP_ID= PTP_ID;
+ result.PTP_ID = PTP_ID;
result.TestPackageNo = testPackage.TestPackageNo;
result.UnitWorkName = BLL.UnitWorkService.GetUnitWorkALLName(testPackage.UnitWorkId);
//判断当前试压包的状态
- result.StateStr = State.未确认.ToString();
+ result.StateStr = State.试压前条件未确认.ToString();
if (testPackage.AduditDate.HasValue)
{
- result.StateStr=State.已确认.ToString();
+ result.StateStr = State.试压前条件已确认.ToString();
}
- var PtpItemEndCheckList=(from x in db.PTP_ItemEndCheckList where x.PTP_ID==PTP_ID select x).FirstOrDefault();
- if (PtpItemEndCheckList != null )
+ var PtpItemEndCheckList = (from x in db.PTP_ItemEndCheckList where x.PTP_ID == PTP_ID select x).FirstOrDefault();
+ if (PtpItemEndCheckList != null)
{
if (PtpItemEndCheckList.State == Const.TestPackage_Complete)
{
- result.StateStr = State.已整改.ToString();
+ result.StateStr = State.尾项检查已整改.ToString();
}
else
{
- result.StateStr = State.待整改.ToString();
+ result.StateStr = State.尾项检查待整改.ToString();
}
}
if (testPackage.FinishDate.HasValue)
{
- result.StateStr = State.已完成.ToString();
+ result.StateStr = State.试压包已完成.ToString();
}
// 当前试压包下所有管线ID集合
@@ -709,10 +714,10 @@ namespace BLL
{
Model.SGGLDB db = Funs.DB;
// 获取该单位工程下所有试压包
- int totalPipelines = db.PTP_TestPackage.Count(x => x.ProjectId == projectId && x.UnitWorkId == unitWorkId) ;
+ int totalPipelines = db.PTP_TestPackage.Count(x => x.ProjectId == projectId && x.UnitWorkId == unitWorkId);
if (totalPipelines == 0)
- return 0M;
- int finishedPipelines = db.PTP_TestPackage.Count(x => x.ProjectId == projectId && x.UnitWorkId == unitWorkId&&x.FinishDate.HasValue);
+ return 0M;
+ int finishedPipelines = db.PTP_TestPackage.Count(x => x.ProjectId == projectId && x.UnitWorkId == unitWorkId && x.FinishDate.HasValue);
if (totalPipelines == 0)
return 0M;
return Math.Round((decimal)finishedPipelines / totalPipelines * 100, 2);
@@ -725,7 +730,8 @@ namespace BLL
var groupQuery = db.PTP_TestPackage
.Where(x => x.ProjectId == projectId)
.GroupBy(x => x.UnitWorkId)
- .Select(g => new {
+ .Select(g => new
+ {
UnitWorkId = g.Key,
Total = g.Count(),
Finished = g.Count(t => t.FinishDate.HasValue)
diff --git a/SGGL/BLL/HJGL/TestPackage/TestPackagePrintService.cs b/SGGL/BLL/HJGL/TestPackage/TestPackagePrintService.cs
index 60b6dc82..966c6fbc 100644
--- a/SGGL/BLL/HJGL/TestPackage/TestPackagePrintService.cs
+++ b/SGGL/BLL/HJGL/TestPackage/TestPackagePrintService.cs
@@ -3,8 +3,6 @@ using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/HJGL/WPQ/WPQListService.cs b/SGGL/BLL/HJGL/WPQ/WPQListService.cs
index c9d1f40d..f1ae2fc5 100644
--- a/SGGL/BLL/HJGL/WPQ/WPQListService.cs
+++ b/SGGL/BLL/HJGL/WPQ/WPQListService.cs
@@ -1,7 +1,7 @@
-using System;
+using Model;
+using System;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
@@ -185,7 +185,7 @@ namespace BLL
decimal dia = jot.Dia.HasValue ? jot.Dia.Value : 0;
decimal sch = jot.Thickness.HasValue ? jot.Thickness.Value : 0;
string unitId = string.Empty;
- if (unitid!=Const._Null)
+ if (unitid != Const._Null)
{
unitId = unitid;
}
@@ -193,7 +193,7 @@ namespace BLL
{
unitId = pipe.UnitId;
}
-
+
string weldType = string.Empty;
if (weldT != null)
{
@@ -382,12 +382,12 @@ namespace BLL
}
}
}
- catch (Exception ex )
+ catch (Exception ex)
{
ErrLogInfo.WriteLog(ex.ToString());
- continue ;
+ continue;
}
-
+
}
// 一、材质类别不相等
var wpq2 = from x in wpq where x.Material1Class != x.Material2Class select x;
diff --git a/SGGL/BLL/HJGL/WeldingManage/HJGL_ComponentJointService.cs b/SGGL/BLL/HJGL/WeldingManage/HJGL_ComponentJointService.cs
index 8f014136..696f5532 100644
--- a/SGGL/BLL/HJGL/WeldingManage/HJGL_ComponentJointService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/HJGL_ComponentJointService.cs
@@ -3,7 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -11,7 +10,7 @@ namespace BLL
public static class HJGL_PipelineComponentjointService
{
-
+
#region 获取列表
@@ -31,7 +30,7 @@ namespace BLL
(string.IsNullOrEmpty(table.PipelineComponentId) || x.PipelineComponentId.Contains(table.PipelineComponentId)) &&
(string.IsNullOrEmpty(table.PipelineComponentCode) || x.PipelineComponentCode.Contains(table.PipelineComponentCode)) &&
(string.IsNullOrEmpty(table.WeldJointId) || x.WeldJointId.Contains(table.WeldJointId)) &&
- (string.IsNullOrEmpty(table.WeldJointCode) || x.WeldJointCode.Contains(table.WeldJointCode))
+ (string.IsNullOrEmpty(table.WeldJointCode) || x.WeldJointCode.Contains(table.WeldJointCode))
select x
;
@@ -120,13 +119,13 @@ namespace BLL
/// 根据焊口号更改状态
///
///
- public static void UpdateStateByWeldJointId(string WeldJointId,DateTime TaskDate)
+ public static void UpdateStateByWeldJointId(string WeldJointId, DateTime TaskDate)
{
Model.HJGL_Pipeline_ComponentJoint table = Funs.DB.HJGL_Pipeline_ComponentJoint.FirstOrDefault(x => x.WeldJointId == WeldJointId);
if (table != null)
- {
- table.State =1;
+ {
+ table.State = 1;
Funs.DB.SubmitChanges();
GetProductionByPipelineComponentId(table.PipelineComponentId, TaskDate);
}
@@ -134,10 +133,10 @@ namespace BLL
}
public static void GetProductionByPipelineComponentId(string PipelineComponentId, DateTime TaskDate)
{
- var q = Funs.DB.HJGL_Pipeline_ComponentJoint.Where(x => x.PipelineComponentId == PipelineComponentId).ToList();
- if (q.Count!=0)
+ var q = Funs.DB.HJGL_Pipeline_ComponentJoint.Where(x => x.PipelineComponentId == PipelineComponentId).ToList();
+ if (q.Count != 0)
{
- var NotProductionNum = (from x in q where x.State == 0||x.State ==null select x).Count(); //未生产数量
+ var NotProductionNum = (from x in q where x.State == 0 || x.State == null select x).Count(); //未生产数量
var ProductionNum = (from x in q where x.State == 1 select x).Count(); //已生产数量
if (NotProductionNum == 0) //全部完成
{
@@ -154,10 +153,10 @@ namespace BLL
HJGL_PipelineComponentService.UpdateProductionState(PipelineComponentId, 1, TaskDate);
}
- }
-
+ }
+
}
-
+
public static void DeleteHJGL_Pipeline_ComponentJointById(string Id)
{
@@ -172,7 +171,7 @@ namespace BLL
public static void DeleteHJGL_Pipeline_ComponentJointByPipelineComponentId(string PipelineComponentId)
{
- var table = Funs.DB.HJGL_Pipeline_ComponentJoint.Where(x => x.PipelineComponentId == PipelineComponentId);
+ var table = Funs.DB.HJGL_Pipeline_ComponentJoint.Where(x => x.PipelineComponentId == PipelineComponentId);
if (table != null)
{
Funs.DB.HJGL_Pipeline_ComponentJoint.DeleteAllOnSubmit(table);
diff --git a/SGGL/BLL/HJGL/WeldingManage/HJGL_WeldingReportService.cs b/SGGL/BLL/HJGL/WeldingManage/HJGL_WeldingReportService.cs
index a19c700b..3fe2383d 100644
--- a/SGGL/BLL/HJGL/WeldingManage/HJGL_WeldingReportService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/HJGL_WeldingReportService.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Security.Cryptography;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
@@ -15,7 +10,7 @@ namespace BLL
///
/// 0总达因,1预制口总达因,2安装口总达因
///
- public static decimal GetSumSize(string projectId,int type)
+ public static decimal GetSumSize(string projectId, int type)
{
decimal result = 0;
@@ -42,7 +37,7 @@ namespace BLL
}
}
-
+
return result;
}
///
@@ -56,7 +51,7 @@ namespace BLL
var getWelds = Funs.DB.HJGL_WeldJoint.Where(x => x.ProjectId == projectId);
if (getWelds.Count() > 0)
{
-
+
var getWeldsOk = getWelds.Where(x => x.WeldingDailyId != null);
if (getWeldsOk.Count() > 0)
{
@@ -64,9 +59,9 @@ namespace BLL
if (GCModel.Count() > 0)
{
result = GCModel.Sum(x => x.Size ?? 0);
-
+
}
-
+
}
}
return result;
@@ -146,23 +141,23 @@ namespace BLL
///
///
///
- public static decimal GetWelderEfficacy(string projectId)
+ public static decimal GetWelderEfficacy(string projectId)
{
decimal result = 0;
var db = Funs.DB;
var q = (from x in db.HJGL_WeldJoint
join y in db.HJGL_WeldingDaily on x.WeldingDailyId equals y.WeldingDailyId
- where x.ProjectId ==projectId
+ where x.ProjectId == projectId
group x by x.ProjectId into g
- select new
+ select new
{
TotalDin = g.Sum(x => x.Size),
- worktime = g.Select(x=>x.WeldingDailyId).Distinct().Count(),
- }) ;
+ worktime = g.Select(x => x.WeldingDailyId).Distinct().Count(),
+ });
foreach (var item in q)
{
- result = decimal.Divide((decimal)item.TotalDin, item.worktime) ;
-
+ result = decimal.Divide((decimal)item.TotalDin, item.worktime);
+
}
return decimal.Truncate(result);
@@ -173,7 +168,7 @@ namespace BLL
var db = Funs.DB;
var q = (from x in db.HJGL_WeldJoint
join y in db.HJGL_WeldingDaily on x.WeldingDailyId equals y.WeldingDailyId
- where x.ProjectId == projectId && x.JointAttribute=="预制口"
+ where x.ProjectId == projectId && x.JointAttribute == "预制口"
group x by x.ProjectId into g
select new
{
diff --git a/SGGL/BLL/HJGL/WeldingManage/PipelineComponentService.cs b/SGGL/BLL/HJGL/WeldingManage/PipelineComponentService.cs
index f2046f18..1bc23022 100644
--- a/SGGL/BLL/HJGL/WeldingManage/PipelineComponentService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/PipelineComponentService.cs
@@ -1,11 +1,9 @@
-using System;
-using System.Collections;
+using Model;
+using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web.UI.WebControls;
-using Model;
-using NPOI.SS.Formula.Functions;
namespace BLL
{
@@ -33,7 +31,7 @@ namespace BLL
/// 已装箱
///
public static int State2 = 2;
-
+
///
/// 获取状态名称
@@ -44,9 +42,9 @@ namespace BLL
ListItem[] list = new ListItem[5];
list[0] = new ListItem("未验收", State0.ToString());
list[1] = new ListItem("已验收", State1.ToString());
- list[2] = new ListItem("已出库", State2.ToString());
- list[3] = new ListItem("待整改", StatePenRec.ToString());
- list[4] = new ListItem("已整改", StateRec.ToString());
+ list[2] = new ListItem("已出库", State2.ToString());
+ list[3] = new ListItem("待整改", StatePenRec.ToString());
+ list[4] = new ListItem("已整改", StateRec.ToString());
return list;
}
///
@@ -72,7 +70,7 @@ namespace BLL
}
public static Model.HJGL_Pipeline_Component GetPipelineComponentByCodeandpipelineId(string pipelineComponentCode, string pipelineId)
{
- var q = Funs.DB.HJGL_Pipeline_Component.FirstOrDefault(x => x.PipelineComponentCode == pipelineComponentCode && x.PipelineId == pipelineId);
+ var q = Funs.DB.HJGL_Pipeline_Component.FirstOrDefault(x => x.PipelineComponentCode == pipelineComponentCode && x.PipelineId == pipelineId);
return q;
}
///
@@ -121,7 +119,7 @@ namespace BLL
query = query.OrderBy(x => x.PrefabricatedComponents);
-
+
return query.ToList();
}
///
@@ -136,7 +134,7 @@ namespace BLL
from libItem in libJoin.DefaultIfEmpty()
join line in Funs.DB.HJGL_Pipeline on pipe.PipelineId equals line.PipelineId into lineJoin
from lineItem in lineJoin.DefaultIfEmpty()
- where lineItem != null && lineItem.PipeArea == "1"
+ where lineItem != null && lineItem.PipeArea == "1"
&& (pipe.PrefabricatedComponents == null || pipe.PrefabricatedComponents == "")
select new PipelinePrefabricatedComponentsItem
{
@@ -159,7 +157,7 @@ namespace BLL
query = query.OrderBy(x => x.PrefabricatedComponents);
- var inoutplandetail = (from x in Funs.DB.HJGL_PackagingManageDetail
+ var inoutplandetail = (from x in Funs.DB.HJGL_PackagingManageDetail
where x.PipelineId == pipelineId
&& (x.PipelineComponentId == null || x.PipelineComponentId == "")
select x).ToList();
@@ -278,22 +276,22 @@ namespace BLL
var model_mat = BLL.PipelineMatService.GetPipeLineMat(pipeLineMatId);
var PipelineId = model_mat.PipelineId;
var PipeArea = BLL.PipelineService.GetPipelineByPipelineId(PipelineId).PipeArea;
- if (PipeArea=="1" &&!string.IsNullOrEmpty(model_mat.PrefabricatedComponents))
+ if (PipeArea == "1" && !string.IsNullOrEmpty(model_mat.PrefabricatedComponents))
{
- // var model = GetPipelineComponentByMatId(pipeLineMatId);
- var model = GetPipelineComponentByCodeandpipelineId(model_mat.PrefabricatedComponents,PipelineId);
- if (model!=null)
+ // var model = GetPipelineComponentByMatId(pipeLineMatId);
+ var model = GetPipelineComponentByCodeandpipelineId(model_mat.PrefabricatedComponents, PipelineId);
+ if (model != null)
{
model.PipelineId = PipelineId;
model.PipelineComponentCode = model_mat.PrefabricatedComponents;
- model.DrawingName = model_mat.PrefabricatedComponents.Substring(0, model_mat.PrefabricatedComponents.LastIndexOf('-')).Replace("\"", "");
+ model.DrawingName = model_mat.PrefabricatedComponents.Substring(0, model_mat.PrefabricatedComponents.LastIndexOf('-')).Replace("\"", "");
model.State = State0;
model.ProductionState = 0;
UpdatePipelineComponent(model);
}
else
{
- model=new Model.HJGL_Pipeline_Component();
+ model = new Model.HJGL_Pipeline_Component();
model.PipelineComponentId = SQLHelper.GetNewID();
model.PipelineId = PipelineId;
model.PipelineComponentCode = model_mat.PrefabricatedComponents;
@@ -326,17 +324,17 @@ namespace BLL
newPipeline.BoxNumber = pipeline.BoxNumber;
newPipeline.AssembleUnit = pipeline.AssembleUnit;
newPipeline.PipeLineMatId = pipeline.PipeLineMatId;
- newPipeline.State= pipeline.State;
- newPipeline.QRCode= pipeline.QRCode;
+ newPipeline.State = pipeline.State;
+ newPipeline.QRCode = pipeline.QRCode;
newPipeline.PlanStartDate = pipeline.PlanStartDate;
newPipeline.PlanEndDate = pipeline.PlanEndDate;
newPipeline.ActStartDate = pipeline.ActStartDate;
newPipeline.ActEndDate = pipeline.ActEndDate;
newPipeline.DrawingName = pipeline.DrawingName;
- newPipeline.ReceiveMan= pipeline.ReceiveMan;
- newPipeline.ReceiveDate= pipeline.ReceiveDate;
- newPipeline.ProductionState= pipeline.ProductionState;
- newPipeline.IsPrint= pipeline.IsPrint;
+ newPipeline.ReceiveMan = pipeline.ReceiveMan;
+ newPipeline.ReceiveDate = pipeline.ReceiveDate;
+ newPipeline.ProductionState = pipeline.ProductionState;
+ newPipeline.IsPrint = pipeline.IsPrint;
newPipeline.Remark = pipeline.Remark;
db.HJGL_Pipeline_Component.InsertOnSubmit(newPipeline);
db.SubmitChanges();
@@ -368,7 +366,7 @@ namespace BLL
newPipeline.ReceiveMan = pipeline.ReceiveMan;
newPipeline.ReceiveDate = pipeline.ReceiveDate;
newPipeline.ProductionState = pipeline.ProductionState;
- newPipeline.IsPrint=pipeline.IsPrint;
+ newPipeline.IsPrint = pipeline.IsPrint;
newPipeline.Remark = pipeline.Remark;
db.SubmitChanges();
}
@@ -378,17 +376,17 @@ namespace BLL
///
///
///
- public static void UpdateOutState(string pipelineComponentId,string BoxNumber)
+ public static void UpdateOutState(string pipelineComponentId, string BoxNumber)
{
- var q=GetPipelineComponentById(pipelineComponentId);
- if (q.State==State1)
+ var q = GetPipelineComponentById(pipelineComponentId);
+ if (q.State == State1)
{
q.State = State2;
- q.BoxNumber=BoxNumber;
+ q.BoxNumber = BoxNumber;
UpdatePipelineComponent(q);
}
-
+
}
///
/// 修改组件打印状态
@@ -416,22 +414,22 @@ namespace BLL
public static void UpdateProductionState(string pipelineComponentId, int state, DateTime TaskDate)
{
var q = GetPipelineComponentById(pipelineComponentId);
- if (q!=null)
+ if (q != null)
{
q.ProductionState = state;
- if (state==2)
+ if (state == 2)
{
q.ActEndDate = TaskDate;
}
- else if(state==1)
+ else if (state == 1)
{
- if (q.ActStartDate ==null)
+ if (q.ActStartDate == null)
{
q.ActStartDate = TaskDate;
}
else
{
- if (DateTime.Compare(TaskDate,q.ActStartDate.Value) < 0)
+ if (DateTime.Compare(TaskDate, q.ActStartDate.Value) < 0)
{
q.ActStartDate = TaskDate;
}
@@ -494,13 +492,13 @@ namespace BLL
///
///
public static List GetAcceptedPipelineComponent(string projectId, string pipelineCode,
- string pipelineComponentCode,string flowingSection)
+ string pipelineComponentCode, string flowingSection)
{
Model.SGGLDB db = Funs.DB;
var q = (from x in db.HJGL_Pipeline_Component
join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
where y.ProjectId.Contains(projectId) && x.State.Equals(State1) &&
- (string.IsNullOrEmpty(pipelineCode) || y.PipelineCode.Contains(pipelineCode)) &&
+ (string.IsNullOrEmpty(pipelineCode) || y.PipelineCode.Contains(pipelineCode)) &&
(string.IsNullOrEmpty(pipelineComponentCode) || x.PipelineComponentCode.Contains(pipelineComponentCode)) &&
(string.IsNullOrEmpty(flowingSection) || y.FlowingSection.Contains(flowingSection))
select x).ToList();
@@ -513,7 +511,7 @@ namespace BLL
Model.SGGLDB db = Funs.DB;
var q = (from x in db.HJGL_Pipeline_Component
where x.PipelineId == PipelineId
- select x).OrderBy(x=>x.PlanStartDate).ToList();
+ select x).OrderBy(x => x.PlanStartDate).ToList();
return q;
}
diff --git a/SGGL/BLL/HJGL/WeldingManage/PipelineService.cs b/SGGL/BLL/HJGL/WeldingManage/PipelineService.cs
index 43b7e118..fe8c91d4 100644
--- a/SGGL/BLL/HJGL/WeldingManage/PipelineService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/PipelineService.cs
@@ -1,5 +1,4 @@
-using Microsoft.Office.Interop.Word;
-using MiniExcelLibs;
+using MiniExcelLibs;
using Model;
using System;
using System.Collections.Generic;
@@ -7,10 +6,7 @@ using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
-using System.Web.UI.DataVisualization.Charting;
using System.Web.UI.WebControls;
-using System.Windows.Media.Animation;
-using static BLL.PipelineService;
namespace BLL
{
@@ -258,7 +254,7 @@ namespace BLL
///
public static Model.HJGL_Pipeline GetPipelineByPipelineCode(string projectId, string pipelineCode)
{
- return Funs.DB.HJGL_Pipeline.FirstOrDefault(e => e.PipelineCode == pipelineCode&&e.ProjectId==projectId );
+ return Funs.DB.HJGL_Pipeline.FirstOrDefault(e => e.PipelineCode == pipelineCode && e.ProjectId == projectId);
}
///
/// 根据管线信息筛选管线
@@ -624,7 +620,7 @@ namespace BLL
newPipeline.FlowingSection = pipeline.FlowingSection;
db.HJGL_Pipeline.InsertOnSubmit(newPipeline);
db.SubmitChanges();
- }
+ }
}
///
diff --git a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
index e9c4010f..3f21f363 100644
--- a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using System.Web;
namespace BLL
{
diff --git a/SGGL/BLL/HJGL/WeldingManage/WeldTaskService.cs b/SGGL/BLL/HJGL/WeldingManage/WeldTaskService.cs
index 90c5745a..11cb83f2 100644
--- a/SGGL/BLL/HJGL/WeldingManage/WeldTaskService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/WeldTaskService.cs
@@ -1,9 +1,6 @@
-using Model;
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
-using System.Linq.Expressions;
-using System.Numerics;
namespace BLL
{
@@ -32,12 +29,12 @@ namespace BLL
///获取焊接任务单编号
///
///
- public static string GetTaskCodeByDate(string projectId, string date,string unitworkid,string unitid)
+ public static string GetTaskCodeByDate(string projectId, string date, string unitworkid, string unitid)
{
string code = string.Empty;
- var list = (from x in Funs.DB.HJGL_WeldTask where x.ProjectId == projectId && x.UnitWorkId== unitworkid && x.UnitId== unitid && x.TaskDate == Convert.ToDateTime(date) orderby x.TaskCode descending select x.TaskCode).Distinct().ToList();
+ var list = (from x in Funs.DB.HJGL_WeldTask where x.ProjectId == projectId && x.UnitWorkId == unitworkid && x.UnitId == unitid && x.TaskDate == Convert.ToDateTime(date) orderby x.TaskCode descending select x.TaskCode).Distinct().ToList();
var count = list.Count;
- code = date +"-"+ (count + 1).ToString("D3") + UnitService.GetUnitCodeByUnitId(unitid) + "-" + UnitWorkService.getUnitWorkByUnitWorkId(unitworkid)?.UnitWorkCode;
+ code = date + "-" + (count + 1).ToString("D3") + UnitService.GetUnitCodeByUnitId(unitid) + "-" + UnitWorkService.getUnitWorkByUnitWorkId(unitworkid)?.UnitWorkCode;
/*if (list.Count > 0)
{
string oldCode = list[0];
@@ -74,26 +71,26 @@ namespace BLL
public static string GetSerialNumberByDate(string projectId, string date, string unitworkid, string unitid)
{
- string code = string.Empty;
+ string code = string.Empty;
var list = (from x in Funs.DB.HJGL_WeldTask where x.ProjectId == projectId && x.UnitWorkId == unitworkid && x.UnitId == unitid && x.TaskDate == Convert.ToDateTime(date) orderby x.TaskCode descending select x.TaskCode).Distinct().ToList();
var count = list.Count;
- code = (count + 1).ToString("D3");
+ code = (count + 1).ToString("D3");
return code;
}
- public static string GetSerialNumberByDate(string projectId,string taskCode)
+ public static string GetSerialNumberByDate(string projectId, string taskCode)
{
string result = string.Empty;
- var list = (from x in Funs.DB.HJGL_WeldTask where x.ProjectId == projectId && x.TaskCode == taskCode orderby x.SerialNumber descending select x.SerialNumber).FirstOrDefault();
+ var list = (from x in Funs.DB.HJGL_WeldTask where x.ProjectId == projectId && x.TaskCode == taskCode orderby x.SerialNumber descending select x.SerialNumber).FirstOrDefault();
result = list?.ToString();
return result;
}
- public static List GetWeldingTaskList(string ProjectId, string UnitWorkId, string unitId, DateTime taskDate, string canWelder,string serialNumber)
+ public static List GetWeldingTaskList(string ProjectId, string UnitWorkId, string unitId, DateTime taskDate, string canWelder, string serialNumber)
{
var q = from x in Funs.DB.View_HJGL_WeldingTask
where x.ProjectId == ProjectId && x.UnitWorkId == UnitWorkId
- && x.TaskDate.Value.Date == taskDate.Date
+ && x.TaskDate.Value.Date == taskDate.Date
select x;
if (!string.IsNullOrEmpty(unitId))
@@ -173,8 +170,8 @@ namespace BLL
newWeldTask.TableDate = WeldTask.TableDate;
newWeldTask.WeldingMode = WeldTask.WeldingMode;
newWeldTask.IsSaved = WeldTask.IsSaved;
- newWeldTask.SerialNumber= WeldTask.SerialNumber;
- newWeldTask.PipeLineSortIndex= WeldTask.PipeLineSortIndex;
+ newWeldTask.SerialNumber = WeldTask.SerialNumber;
+ newWeldTask.PipeLineSortIndex = WeldTask.PipeLineSortIndex;
db.SubmitChanges();
}
}
diff --git a/SGGL/BLL/HJGL/WeldingManage/WeldingDailyService.cs b/SGGL/BLL/HJGL/WeldingManage/WeldingDailyService.cs
index a71e9e64..d0384827 100644
--- a/SGGL/BLL/HJGL/WeldingManage/WeldingDailyService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/WeldingDailyService.cs
@@ -1,11 +1,9 @@
-using Aspose.Words;
-using Model;
+using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
-using WIA;
namespace BLL
{
@@ -47,29 +45,29 @@ namespace BLL
{
List returnViewMatch = new List();
var weldlineLists = (from x in Funs.DB.View_HJGL_WeldJoint
- where x.WeldingDailyId == weldingDailyId
- select new SpWeldingDailyItem
- {
- WeldJointId = x.WeldJointId,
- WeldJointCode = x.WeldJointCode,
- PipelineCode = x.PipelineCode,
- CoverWelderCode = x.CoverWelderCode,
- CoverWelderId = x.CoverWelderId,
- BackingWelderCode = x.BackingWelderCode,
- BackingWelderId = x.BackingWelderId,
- WeldTypeId = x.WeldTypeCode,
- JointArea = x.JointArea,
- WeldingLocationId = x.WeldingLocationId,
- WeldingLocationCode = x.WeldingLocationCode,
- JointAttribute = x.JointAttribute,
- Size = x.Size,
- Dia = x.Dia,
- Thickness = x.Thickness,
- WeldingMethodCode = x.WeldingMethodCode,
- WeldingWireCode = x.WeldingWireCode,
- WeldingRodCode = x.WeldingRodCode
+ where x.WeldingDailyId == weldingDailyId
+ select new SpWeldingDailyItem
+ {
+ WeldJointId = x.WeldJointId,
+ WeldJointCode = x.WeldJointCode,
+ PipelineCode = x.PipelineCode,
+ CoverWelderCode = x.CoverWelderCode,
+ CoverWelderId = x.CoverWelderId,
+ BackingWelderCode = x.BackingWelderCode,
+ BackingWelderId = x.BackingWelderId,
+ WeldTypeId = x.WeldTypeCode,
+ JointArea = x.JointArea,
+ WeldingLocationId = x.WeldingLocationId,
+ WeldingLocationCode = x.WeldingLocationCode,
+ JointAttribute = x.JointAttribute,
+ Size = x.Size,
+ Dia = x.Dia,
+ Thickness = x.Thickness,
+ WeldingMethodCode = x.WeldingMethodCode,
+ WeldingWireCode = x.WeldingWireCode,
+ WeldingRodCode = x.WeldingRodCode
- }).ToList();
+ }).ToList();
returnViewMatch = weldlineLists;
//if (weldlineLists.Count() > 0)
//{
@@ -409,7 +407,7 @@ namespace BLL
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
var WeldingDailyCode = (from x in Funs.DB.HJGL_WeldingDaily
- where x.WeldingDailyId == WeldingDailyId
+ where x.WeldingDailyId == WeldingDailyId
select x.WeldingDailyCode).FirstOrDefault();
if (!string.IsNullOrEmpty(WeldingDailyCode))
{
@@ -417,7 +415,7 @@ namespace BLL
}
return value;
}
- public static Dictionary GetFileOutValueByUnitWorkId(string UnitWorkId,string Month)
+ public static Dictionary GetFileOutValueByUnitWorkId(string UnitWorkId, string Month)
{
var value = new Dictionary();
var p = from x in Funs.DB.HJGL_WeldingDaily
@@ -435,7 +433,7 @@ namespace BLL
}
}
- return value;
+ return value;
}
#region 焊接日报下拉项
///
diff --git a/SGGL/BLL/HSSE/Accident/AccidentHandleService.cs b/SGGL/BLL/HSSE/Accident/AccidentHandleService.cs
index 380f2d1c..1e2a091d 100644
--- a/SGGL/BLL/HSSE/Accident/AccidentHandleService.cs
+++ b/SGGL/BLL/HSSE/Accident/AccidentHandleService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class AccidentHandleService
{
-
+
///
/// 根据主键获取HSSE事故(含未遂)处理
diff --git a/SGGL/BLL/HSSE/Accident/AccidentPersonRecordService.cs b/SGGL/BLL/HSSE/Accident/AccidentPersonRecordService.cs
index 50e1e080..a06d477e 100644
--- a/SGGL/BLL/HSSE/Accident/AccidentPersonRecordService.cs
+++ b/SGGL/BLL/HSSE/Accident/AccidentPersonRecordService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class AccidentPersonRecordService
{
-
+
///
/// 根据主键获取HSSE事故(对人员)记录
diff --git a/SGGL/BLL/HSSE/Accident/AccidentReportOtherService.cs b/SGGL/BLL/HSSE/Accident/AccidentReportOtherService.cs
index 97d3b7c9..53b7f552 100644
--- a/SGGL/BLL/HSSE/Accident/AccidentReportOtherService.cs
+++ b/SGGL/BLL/HSSE/Accident/AccidentReportOtherService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class AccidentReportOtherService
{
-
+
///
/// 根据主键获取事故调查处理报告
diff --git a/SGGL/BLL/HSSE/Accident/AccidentReportService.cs b/SGGL/BLL/HSSE/Accident/AccidentReportService.cs
index cfb8a4a9..fe678655 100644
--- a/SGGL/BLL/HSSE/Accident/AccidentReportService.cs
+++ b/SGGL/BLL/HSSE/Accident/AccidentReportService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class AccidentReportService
{
-
+
///
/// 根据主键获取事故调查报告
diff --git a/SGGL/BLL/HSSE/Accident/NoFourLetoffService.cs b/SGGL/BLL/HSSE/Accident/NoFourLetoffService.cs
index c8b25545..9dde7532 100644
--- a/SGGL/BLL/HSSE/Accident/NoFourLetoffService.cs
+++ b/SGGL/BLL/HSSE/Accident/NoFourLetoffService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class NoFourLetoffService
{
-
+
///
/// 根据主键获取四不放过
diff --git a/SGGL/BLL/HSSE/Check/Check_CheckColligationDetailService.cs b/SGGL/BLL/HSSE/Check/Check_CheckColligationDetailService.cs
index 5f7a8a1f..3b2792bb 100644
--- a/SGGL/BLL/HSSE/Check/Check_CheckColligationDetailService.cs
+++ b/SGGL/BLL/HSSE/Check/Check_CheckColligationDetailService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public class Check_CheckColligationDetailService
{
-
+
///
/// 根据综合检查id获取所有相关明细信息
diff --git a/SGGL/BLL/HSSE/Check/Check_CheckSpecialDetailService.cs b/SGGL/BLL/HSSE/Check/Check_CheckSpecialDetailService.cs
index 04556b37..504dd896 100644
--- a/SGGL/BLL/HSSE/Check/Check_CheckSpecialDetailService.cs
+++ b/SGGL/BLL/HSSE/Check/Check_CheckSpecialDetailService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public class Check_CheckSpecialDetailService
{
-
+
///
/// 根据专项检查id获取所有相关明细信息
diff --git a/SGGL/BLL/HSSE/Check/Check_CheckSpecialService.cs b/SGGL/BLL/HSSE/Check/Check_CheckSpecialService.cs
index 73d4e40b..6713b5c3 100644
--- a/SGGL/BLL/HSSE/Check/Check_CheckSpecialService.cs
+++ b/SGGL/BLL/HSSE/Check/Check_CheckSpecialService.cs
@@ -1,10 +1,8 @@
using FineUIPro;
-using NPOI.SS.Formula.Functions;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
@@ -27,7 +25,7 @@ namespace BLL
/// 定义变量
///
private static IQueryable getDataLists = from x in Funs.DB.Check_CheckSpecial
- select x;
+ select x;
///
/// 列表
@@ -61,13 +59,13 @@ namespace BLL
}
else
{
- getDataList = getDataList.Where(e => e.CheckType == checkType || e.CheckType == null );
- }
+ getDataList = getDataList.Where(e => e.CheckType == checkType || e.CheckType == null);
+ }
}
if (!string.IsNullOrEmpty(checkItemSetId) && checkItemSetId != Const._Null)
{
getDataList = getDataList.Where(e => e.CheckItemSetId == checkItemSetId);
- }
+ }
if (startTime.HasValue)
{
getDataList = getDataList.Where(e => e.CheckTime >= startTime);
@@ -75,7 +73,7 @@ namespace BLL
if (endTime.HasValue)
{
getDataList = getDataList.Where(e => e.CheckTime <= endTime);
- }
+ }
count = getDataList.Count();
if (count == 0)
@@ -89,7 +87,7 @@ namespace BLL
x.CheckSpecialId,
x.CheckTime,
x.CheckSpecialCode,
- CheckItemName =Funs.DB.Technique_CheckItemSet .First(y=>y.CheckItemSetId ==x. CheckItemSetId).CheckItemName,
+ CheckItemName = Funs.DB.Technique_CheckItemSet.First(y => y.CheckItemSetId == x.CheckItemSetId).CheckItemName,
CheckTypeName = x.CheckType == "1" ? "联合检查" : "专项检查",
StatesName = x.States == "2" ? "已完成" : (x.States == "1" ? "待整改" : "待提交"),
};
diff --git a/SGGL/BLL/HSSE/Check/Check_ProjectLeaderCheckService.cs b/SGGL/BLL/HSSE/Check/Check_ProjectLeaderCheckService.cs
index f761e310..80c2b087 100644
--- a/SGGL/BLL/HSSE/Check/Check_ProjectLeaderCheckService.cs
+++ b/SGGL/BLL/HSSE/Check/Check_ProjectLeaderCheckService.cs
@@ -3,8 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Web.UI.WebControls;
-using Model;
namespace BLL
{
@@ -76,8 +74,8 @@ namespace BLL
getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
var db1 = Funs.DB;
return from x in getDataList
- join y in db1.Base_Project on x.ProjectId equals y.ProjectId
- into ps
+ join y in db1.Base_Project on x.ProjectId equals y.ProjectId
+ into ps
from y in ps.DefaultIfEmpty()
select new
{
diff --git a/SGGL/BLL/HSSE/Check/IncentiveNoticeService.cs b/SGGL/BLL/HSSE/Check/IncentiveNoticeService.cs
index c2ee3e19..e3adcccd 100644
--- a/SGGL/BLL/HSSE/Check/IncentiveNoticeService.cs
+++ b/SGGL/BLL/HSSE/Check/IncentiveNoticeService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class IncentiveNoticeService
{
-
+
///
/// 根据主键获取奖励通知单
diff --git a/SGGL/BLL/HSSE/Check/PunishNoticeService.cs b/SGGL/BLL/HSSE/Check/PunishNoticeService.cs
index e990caa9..0a5d4cb1 100644
--- a/SGGL/BLL/HSSE/Check/PunishNoticeService.cs
+++ b/SGGL/BLL/HSSE/Check/PunishNoticeService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class PunishNoticeService
{
-
+
///
/// 根据主键获取处罚通知单
diff --git a/SGGL/BLL/HSSE/CostGoods/CostManageItemService.cs b/SGGL/BLL/HSSE/CostGoods/CostManageItemService.cs
index e3d24cd0..b5f306c1 100644
--- a/SGGL/BLL/HSSE/CostGoods/CostManageItemService.cs
+++ b/SGGL/BLL/HSSE/CostGoods/CostManageItemService.cs
@@ -1,7 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Web.UI.WebControls;
namespace BLL
{
@@ -10,7 +8,7 @@ namespace BLL
///
public static class CostManageItemService
{
-
+
///
/// 根据主键删除费用管理明细
diff --git a/SGGL/BLL/HSSE/CostGoods/CostManageService.cs b/SGGL/BLL/HSSE/CostGoods/CostManageService.cs
index 660ee615..1c9a0270 100644
--- a/SGGL/BLL/HSSE/CostGoods/CostManageService.cs
+++ b/SGGL/BLL/HSSE/CostGoods/CostManageService.cs
@@ -1,13 +1,10 @@
using Model;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
-using NPOI.SS.UserModel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
-using System.Numerics;
-using WIA;
namespace BLL
{
@@ -374,7 +371,7 @@ namespace BLL
}
- public static string PushDataToHSE(string projectId, string contractNum,string costManageId)
+ public static string PushDataToHSE(string projectId, string contractNum, string costManageId)
{
try
{
@@ -384,12 +381,12 @@ namespace BLL
where x.ProjectId == projectId && x.ContractNum == contractNum && x.States == Const.State_2
orderby x.CostManageDate descending
select x;
- var projectModel=ProjectService.GetProjectByProjectId(projectId);
+ var projectModel = ProjectService.GetProjectByProjectId(projectId);
var contractModel = CostManageService.GetCostManageById(costManageId);
//decimal totalAmount = costData.Sum(x => x.SumMoney ?? 0);
var files = new List
public static class CostSmallDetailItemService
{
-
+
///
/// 根据主键获取安全费用投入登记明细
diff --git a/SGGL/BLL/HSSE/CostGoods/CostSmallDetailService.cs b/SGGL/BLL/HSSE/CostGoods/CostSmallDetailService.cs
index 3e00df41..e8ee1ec0 100644
--- a/SGGL/BLL/HSSE/CostGoods/CostSmallDetailService.cs
+++ b/SGGL/BLL/HSSE/CostGoods/CostSmallDetailService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class CostSmallDetailService
{
-
+
///
/// 根据主键获取安全费用投入登记
diff --git a/SGGL/BLL/HSSE/CostGoods/ExpenseDetailService.cs b/SGGL/BLL/HSSE/CostGoods/ExpenseDetailService.cs
index aaf94ad4..2bad1eb6 100644
--- a/SGGL/BLL/HSSE/CostGoods/ExpenseDetailService.cs
+++ b/SGGL/BLL/HSSE/CostGoods/ExpenseDetailService.cs
@@ -1,7 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using WIA;
namespace BLL
{
@@ -27,7 +25,7 @@ namespace BLL
join y in db.Base_CostType on x.CostTypeId equals y.CostTypeId
select new
{
- ExpenseId=expenseId,
+ ExpenseId = expenseId,
SupCostTypeId = y.CostTypeId,
SupCostTypeName = y.CostTypeName,
SupSortIndex = y.CostTypeCode,
diff --git a/SGGL/BLL/HSSE/CostGoods/ExpenseService.cs b/SGGL/BLL/HSSE/CostGoods/ExpenseService.cs
index decd801a..ddd6b448 100644
--- a/SGGL/BLL/HSSE/CostGoods/ExpenseService.cs
+++ b/SGGL/BLL/HSSE/CostGoods/ExpenseService.cs
@@ -31,7 +31,7 @@ namespace BLL
select x;
if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null)
{
- getData = getData.Where(x =>x.UnitId == unitId);
+ getData = getData.Where(x => x.UnitId == unitId);
}
if (year.HasValue)
{
@@ -69,10 +69,10 @@ namespace BLL
ProjectId = expense.ProjectId,
ExpenseCode = expense.ExpenseCode,
UnitId = expense.UnitId,
- ReportDate=expense.ReportDate,
+ ReportDate = expense.ReportDate,
CreateDate = expense.CreateDate,
States = expense.States,
- CompileMan = expense.CompileMan,
+ CompileMan = expense.CompileMan,
CompileDate = expense.CompileDate,
SortIndex = expense.SortIndex,
Year = expense.Year,
@@ -94,7 +94,7 @@ namespace BLL
{
//newExpense.ProjectId = expense.ProjectId;
newExpense.ExpenseCode = expense.ExpenseCode;
- newExpense.UnitId = expense.UnitId;
+ newExpense.UnitId = expense.UnitId;
newExpense.States = expense.States;
newExpense.Months = expense.Months;
newExpense.ReportDate = expense.ReportDate;
@@ -142,16 +142,16 @@ namespace BLL
///
///
///
- public static void SetSumYearExpense(string projectId,int Year)
+ public static void SetSumYearExpense(string projectId, int Year)
{
- var getYearEx = Funs.DB. CostGoods_Expense.FirstOrDefault(x=>x.ProjectId == projectId && x.Year == Year && x.UnitId == null);
+ var getYearEx = Funs.DB.CostGoods_Expense.FirstOrDefault(x => x.ProjectId == projectId && x.Year == Year && x.UnitId == null);
if (getYearEx != null)
{
Funs.DB.CostGoods_Expense.DeleteOnSubmit(getYearEx);
Funs.DB.SubmitChanges();
}
- var getALLEx=from x in Funs.DB.CostGoods_Expense where x.ProjectId == projectId && x.Year == Year && x.UnitId != null select x;
+ var getALLEx = from x in Funs.DB.CostGoods_Expense where x.ProjectId == projectId && x.Year == Year && x.UnitId != null select x;
if (getALLEx.Count() > 0)
{
Model.CostGoods_Expense newExpense = new Model.CostGoods_Expense
diff --git a/SGGL/BLL/HSSE/EduTrain/AccidentCaseItemService.cs b/SGGL/BLL/HSSE/EduTrain/AccidentCaseItemService.cs
index a73d23c9..0e129f5f 100644
--- a/SGGL/BLL/HSSE/EduTrain/AccidentCaseItemService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/AccidentCaseItemService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public class AccidentCaseItemService
{
-
+
///
/// 根据常见事故案例明细Id获取事故案例明细
diff --git a/SGGL/BLL/HSSE/EduTrain/AccidentCaseService.cs b/SGGL/BLL/HSSE/EduTrain/AccidentCaseService.cs
index 81f83935..7cfc31e3 100644
--- a/SGGL/BLL/HSSE/EduTrain/AccidentCaseService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/AccidentCaseService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public class AccidentCaseService
{
-
+
///
/// 根据主键获取事故伤害及预防
diff --git a/SGGL/BLL/HSSE/EduTrain/CompanyTrainingItemService.cs b/SGGL/BLL/HSSE/EduTrain/CompanyTrainingItemService.cs
index 5b282b88..bff9e4c1 100644
--- a/SGGL/BLL/HSSE/EduTrain/CompanyTrainingItemService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/CompanyTrainingItemService.cs
@@ -1,5 +1,4 @@
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/EduTrain/CompanyTrainingService.cs b/SGGL/BLL/HSSE/EduTrain/CompanyTrainingService.cs
index a472317e..f81223a7 100644
--- a/SGGL/BLL/HSSE/EduTrain/CompanyTrainingService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/CompanyTrainingService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordDetailService.cs b/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordDetailService.cs
index da11a58e..d22c6e2f 100644
--- a/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordDetailService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordDetailService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class EduTrain_TrainRecordDetailService
{
-
+
///
/// 根据教育培训主键获取所有的教育培训明细信息
diff --git a/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordService.cs b/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordService.cs
index 4f3f02ce..313bdc5f 100644
--- a/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainRecordService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class EduTrain_TrainRecordService
{
-
+
///
/// 根据教育培训主键获取教育培训信息
diff --git a/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainTestService.cs b/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainTestService.cs
index e58fd1e3..6a95b4b9 100644
--- a/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainTestService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/EduTrain_TrainTestService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class EduTrain_TrainTestService
{
-
+
///
/// 根据教育培训主键获取所有的教育培训明细信息
diff --git a/SGGL/BLL/HSSE/EduTrain/TestPlanService.cs b/SGGL/BLL/HSSE/EduTrain/TestPlanService.cs
index e951a993..7414819b 100644
--- a/SGGL/BLL/HSSE/EduTrain/TestPlanService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TestPlanService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs b/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs
index 5e1d7713..c2ed027b 100644
--- a/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs
@@ -2,7 +2,6 @@
using System;
using System.Collections;
using System.Linq;
-using Model;
namespace BLL
{
@@ -64,7 +63,7 @@ namespace BLL
x.TestEndTime,
x.TestScores,
z.TrainTypeId,
- db1.Base_TrainType.First(u=>u.TrainTypeId == z.TrainTypeId).TrainTypeName,
+ db1.Base_TrainType.First(u => u.TrainTypeId == z.TrainTypeId).TrainTypeName,
z.TrainStartDate,
};
}
@@ -190,7 +189,7 @@ namespace BLL
{
item.TestEndTime = item.TestStartTime.Value.AddMinutes(item.Duration);
item.TestScores = db.Training_TestRecordItem.Where(x => x.TestRecordId == item.TestRecordId).Sum(x => x.SubjectScore) ?? 0;
-
+
icount++;
}
db.SubmitChanges();
diff --git a/SGGL/BLL/HSSE/EduTrain/TestTrainingItemService.cs b/SGGL/BLL/HSSE/EduTrain/TestTrainingItemService.cs
index 55aa4fef..fe15d35f 100644
--- a/SGGL/BLL/HSSE/EduTrain/TestTrainingItemService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TestTrainingItemService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class TestTrainingItemService
{
-
+
///
/// 根据主键获取信息
diff --git a/SGGL/BLL/HSSE/EduTrain/TestTrainingService.cs b/SGGL/BLL/HSSE/EduTrain/TestTrainingService.cs
index 8a9f4ce4..891fa36c 100644
--- a/SGGL/BLL/HSSE/EduTrain/TestTrainingService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TestTrainingService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/EduTrain/TrainTestDBItemService.cs b/SGGL/BLL/HSSE/EduTrain/TrainTestDBItemService.cs
index 65370871..5a132d1c 100644
--- a/SGGL/BLL/HSSE/EduTrain/TrainTestDBItemService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TrainTestDBItemService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class TrainTestDBItemService
{
-
+
///
/// 根据主键删除安全试题库明细信息
diff --git a/SGGL/BLL/HSSE/EduTrain/TrainTestDBService.cs b/SGGL/BLL/HSSE/EduTrain/TrainTestDBService.cs
index 6c9225d9..b88cc8a6 100644
--- a/SGGL/BLL/HSSE/EduTrain/TrainTestDBService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TrainTestDBService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class TrainTestDBService
{
-
+
///
/// 根据主键获取安全试题库信息
diff --git a/SGGL/BLL/HSSE/EduTrain/TrainingItemService.cs b/SGGL/BLL/HSSE/EduTrain/TrainingItemService.cs
index faabeb05..706f6749 100644
--- a/SGGL/BLL/HSSE/EduTrain/TrainingItemService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TrainingItemService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public class TrainingItemService
{
-
+
///
///
diff --git a/SGGL/BLL/HSSE/EduTrain/TrainingPlanItemService.cs b/SGGL/BLL/HSSE/EduTrain/TrainingPlanItemService.cs
index 819b3a53..4add3ff4 100644
--- a/SGGL/BLL/HSSE/EduTrain/TrainingPlanItemService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TrainingPlanItemService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs b/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs
index 88fe6465..73313bc1 100644
--- a/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/EduTrain/TrainingService.cs b/SGGL/BLL/HSSE/EduTrain/TrainingService.cs
index 805236b3..a505a339 100644
--- a/SGGL/BLL/HSSE/EduTrain/TrainingService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TrainingService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public class TrainingService
{
-
+
///
/// 根据上级Id查询所有教育培训主键列的值
diff --git a/SGGL/BLL/HSSE/EduTrain/TrainingTaskService.cs b/SGGL/BLL/HSSE/EduTrain/TrainingTaskService.cs
index 25854680..8e172df6 100644
--- a/SGGL/BLL/HSSE/EduTrain/TrainingTaskService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TrainingTaskService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/Emergency/DrillRecordListService.cs b/SGGL/BLL/HSSE/Emergency/DrillRecordListService.cs
index 75566100..ed6e67fa 100644
--- a/SGGL/BLL/HSSE/Emergency/DrillRecordListService.cs
+++ b/SGGL/BLL/HSSE/Emergency/DrillRecordListService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class DrillRecordListService
{
-
+
///
/// 根据主键获取应急演练
diff --git a/SGGL/BLL/HSSE/Emergency/EmergencyListService.cs b/SGGL/BLL/HSSE/Emergency/EmergencyListService.cs
index eb4db2ba..e6087a21 100644
--- a/SGGL/BLL/HSSE/Emergency/EmergencyListService.cs
+++ b/SGGL/BLL/HSSE/Emergency/EmergencyListService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class EmergencyListService
{
-
+
///
/// 根据主键获取应急预案管理
diff --git a/SGGL/BLL/HSSE/Emergency/EmergencySupplyService.cs b/SGGL/BLL/HSSE/Emergency/EmergencySupplyService.cs
index 53f31961..db452e7a 100644
--- a/SGGL/BLL/HSSE/Emergency/EmergencySupplyService.cs
+++ b/SGGL/BLL/HSSE/Emergency/EmergencySupplyService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class EmergencySupplyService
{
-
+
///
/// 根据主键获取应急物资管理
diff --git a/SGGL/BLL/HSSE/Emergency/EmergencyTeamAndTrainService.cs b/SGGL/BLL/HSSE/Emergency/EmergencyTeamAndTrainService.cs
index 6528d9a4..f8fe6f7a 100644
--- a/SGGL/BLL/HSSE/Emergency/EmergencyTeamAndTrainService.cs
+++ b/SGGL/BLL/HSSE/Emergency/EmergencyTeamAndTrainService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class EmergencyTeamAndTrainService
{
-
+
///
/// 根据主键获取应急队伍/培训
diff --git a/SGGL/BLL/HSSE/Environmental/EIAReportService.cs b/SGGL/BLL/HSSE/Environmental/EIAReportService.cs
index 78f2a1ea..52427413 100644
--- a/SGGL/BLL/HSSE/Environmental/EIAReportService.cs
+++ b/SGGL/BLL/HSSE/Environmental/EIAReportService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class EIAReportService
{
-
+
///
/// 根据主键获取环评报告
diff --git a/SGGL/BLL/HSSE/Environmental/EnvironmentalCheckService.cs b/SGGL/BLL/HSSE/Environmental/EnvironmentalCheckService.cs
index fee9c321..5049b4e2 100644
--- a/SGGL/BLL/HSSE/Environmental/EnvironmentalCheckService.cs
+++ b/SGGL/BLL/HSSE/Environmental/EnvironmentalCheckService.cs
@@ -1,9 +1,6 @@
using Model;
using Newtonsoft.Json;
-using System;
-using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/Environmental/EnvironmentalEmergencyPlanService.cs b/SGGL/BLL/HSSE/Environmental/EnvironmentalEmergencyPlanService.cs
index a86705a2..800ab3f8 100644
--- a/SGGL/BLL/HSSE/Environmental/EnvironmentalEmergencyPlanService.cs
+++ b/SGGL/BLL/HSSE/Environmental/EnvironmentalEmergencyPlanService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class EnvironmentalEmergencyPlanService
{
-
+
///
/// 根据主键获取环境事件应急预案
diff --git a/SGGL/BLL/HSSE/Environmental/EnvironmentalMonitoringService.cs b/SGGL/BLL/HSSE/Environmental/EnvironmentalMonitoringService.cs
index c73f949e..527f1837 100644
--- a/SGGL/BLL/HSSE/Environmental/EnvironmentalMonitoringService.cs
+++ b/SGGL/BLL/HSSE/Environmental/EnvironmentalMonitoringService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class EnvironmentalMonitoringService
{
-
+
///
/// 根据主键获取环境监测数据
diff --git a/SGGL/BLL/HSSE/Environmental/UnexpectedEnvironmentalService.cs b/SGGL/BLL/HSSE/Environmental/UnexpectedEnvironmentalService.cs
index 52be605b..4509a3f5 100644
--- a/SGGL/BLL/HSSE/Environmental/UnexpectedEnvironmentalService.cs
+++ b/SGGL/BLL/HSSE/Environmental/UnexpectedEnvironmentalService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class UnexpectedEnvironmentalService
{
-
+
///
/// 根据主键获取突发环境事件
diff --git a/SGGL/BLL/HSSE/HSSESystem/HSSEMainDutyService.cs b/SGGL/BLL/HSSE/HSSESystem/HSSEMainDutyService.cs
index 7aa276de..4077de10 100644
--- a/SGGL/BLL/HSSE/HSSESystem/HSSEMainDutyService.cs
+++ b/SGGL/BLL/HSSE/HSSESystem/HSSEMainDutyService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class HSSEMainDutyService
{
-
+
///
/// 根据主键获取安全主体责任
diff --git a/SGGL/BLL/HSSE/HSSESystem/ServerSafetyInstitutionService.cs b/SGGL/BLL/HSSE/HSSESystem/ServerSafetyInstitutionService.cs
index 65f1d729..db7e2680 100644
--- a/SGGL/BLL/HSSE/HSSESystem/ServerSafetyInstitutionService.cs
+++ b/SGGL/BLL/HSSE/HSSESystem/ServerSafetyInstitutionService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ServerSafetyInstitutionService
{
-
+
///
/// 根据主键获取安全制度
diff --git a/SGGL/BLL/HSSE/Hazard/ConstructionRiskApproveService.cs b/SGGL/BLL/HSSE/Hazard/ConstructionRiskApproveService.cs
index a9bfb873..507605b5 100644
--- a/SGGL/BLL/HSSE/Hazard/ConstructionRiskApproveService.cs
+++ b/SGGL/BLL/HSSE/Hazard/ConstructionRiskApproveService.cs
@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Data;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/Hazard/ConstructionRiskCheckService.cs b/SGGL/BLL/HSSE/Hazard/ConstructionRiskCheckService.cs
index 2c60aa8a..610bff2c 100644
--- a/SGGL/BLL/HSSE/Hazard/ConstructionRiskCheckService.cs
+++ b/SGGL/BLL/HSSE/Hazard/ConstructionRiskCheckService.cs
@@ -1,13 +1,10 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web.UI.WebControls;
+using System.Linq;
namespace BLL
{
public static class ConstructionRiskCheckService
{
-
+
///
/// 要求主键获取危险清单信息
diff --git a/SGGL/BLL/HSSE/Hazard/ConstructionRiskListService.cs b/SGGL/BLL/HSSE/Hazard/ConstructionRiskListService.cs
index 1deb450a..0f5512bf 100644
--- a/SGGL/BLL/HSSE/Hazard/ConstructionRiskListService.cs
+++ b/SGGL/BLL/HSSE/Hazard/ConstructionRiskListService.cs
@@ -1,6 +1,4 @@
-using Org.BouncyCastle.Bcpg.Sig;
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
diff --git a/SGGL/BLL/HSSE/Hazard/Hazard_EnvironmentalRiskItemService.cs b/SGGL/BLL/HSSE/Hazard/Hazard_EnvironmentalRiskItemService.cs
index 5948096e..9c5fe3ac 100644
--- a/SGGL/BLL/HSSE/Hazard/Hazard_EnvironmentalRiskItemService.cs
+++ b/SGGL/BLL/HSSE/Hazard/Hazard_EnvironmentalRiskItemService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/Hazard/Hazard_EnvironmentalRiskListService.cs b/SGGL/BLL/HSSE/Hazard/Hazard_EnvironmentalRiskListService.cs
index 0b8c6878..ad3f3a6d 100644
--- a/SGGL/BLL/HSSE/Hazard/Hazard_EnvironmentalRiskListService.cs
+++ b/SGGL/BLL/HSSE/Hazard/Hazard_EnvironmentalRiskListService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class Hazard_EnvironmentalRiskListService
{
-
+
///
/// 要求主键获取危险清单信息
diff --git a/SGGL/BLL/HSSE/Hazard/Hazard_HazardListService.cs b/SGGL/BLL/HSSE/Hazard/Hazard_HazardListService.cs
index b8fe0d50..95d093d8 100644
--- a/SGGL/BLL/HSSE/Hazard/Hazard_HazardListService.cs
+++ b/SGGL/BLL/HSSE/Hazard/Hazard_HazardListService.cs
@@ -1,6 +1,5 @@
using System;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/Hazard/Hazard_HazardSelectedItemService.cs b/SGGL/BLL/HSSE/Hazard/Hazard_HazardSelectedItemService.cs
index a323f07e..6d3bfe14 100644
--- a/SGGL/BLL/HSSE/Hazard/Hazard_HazardSelectedItemService.cs
+++ b/SGGL/BLL/HSSE/Hazard/Hazard_HazardSelectedItemService.cs
@@ -1,8 +1,7 @@
-using System.Collections;
+using FineUIPro;
+using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using FineUIPro;
-using Model;
namespace BLL
{
@@ -228,7 +227,7 @@ namespace BLL
var returndata = Project_HSSEData_HSSEService.DeleteProjectSecurityRiskData(item.HazardId);
if (returndata.code == 1)
{
-
+
}
else
{
diff --git a/SGGL/BLL/HSSE/HiddenInspection/HSSE_Hazard_HazardRegisterService.cs b/SGGL/BLL/HSSE/HiddenInspection/HSSE_Hazard_HazardRegisterService.cs
index cb904158..b800d5ff 100644
--- a/SGGL/BLL/HSSE/HiddenInspection/HSSE_Hazard_HazardRegisterService.cs
+++ b/SGGL/BLL/HSSE/HiddenInspection/HSSE_Hazard_HazardRegisterService.cs
@@ -3,7 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs b/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs
index c8c0a992..b4b1f43c 100644
--- a/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class EquipmentInItemService
{
-
+
///
/// 根据主键获取特种设备机具入场报批明细信息
diff --git a/SGGL/BLL/HSSE/InApproveManager/EquipmentInService.cs b/SGGL/BLL/HSSE/InApproveManager/EquipmentInService.cs
index dad87495..a9ceeb47 100644
--- a/SGGL/BLL/HSSE/InApproveManager/EquipmentInService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/EquipmentInService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class EquipmentInService
{
-
+
///
/// 根据主键获取特种设备机具入场报批
diff --git a/SGGL/BLL/HSSE/InApproveManager/EquipmentOutItemService.cs b/SGGL/BLL/HSSE/InApproveManager/EquipmentOutItemService.cs
index 6bbcf503..3f6916ea 100644
--- a/SGGL/BLL/HSSE/InApproveManager/EquipmentOutItemService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/EquipmentOutItemService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class EquipmentOutItemService
{
-
+
///
/// 根据主键获取特种设备机具出场报批明细
diff --git a/SGGL/BLL/HSSE/InApproveManager/EquipmentOutService.cs b/SGGL/BLL/HSSE/InApproveManager/EquipmentOutService.cs
index 385ccc8c..6013eea2 100644
--- a/SGGL/BLL/HSSE/InApproveManager/EquipmentOutService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/EquipmentOutService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class EquipmentOutService
{
-
+
///
/// 根据主键获取特种设备机具出场报批
diff --git a/SGGL/BLL/HSSE/InApproveManager/EquipmentQualityInItemService.cs b/SGGL/BLL/HSSE/InApproveManager/EquipmentQualityInItemService.cs
index da08b1d7..7ef8fe5c 100644
--- a/SGGL/BLL/HSSE/InApproveManager/EquipmentQualityInItemService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/EquipmentQualityInItemService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class EquipmentQualityInItemService
{
-
+
///
/// 根据主表ID获取明细信息
diff --git a/SGGL/BLL/HSSE/InApproveManager/EquipmentQualityInService.cs b/SGGL/BLL/HSSE/InApproveManager/EquipmentQualityInService.cs
index 2d2d145e..9a29ee18 100644
--- a/SGGL/BLL/HSSE/InApproveManager/EquipmentQualityInService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/EquipmentQualityInService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class EquipmentQualityInService
{
-
+
///
/// 根据主键获取特种设备审批
diff --git a/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInItemService.cs b/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInItemService.cs
index 09d03ff7..e92ac845 100644
--- a/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInItemService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInItemService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class GeneralEquipmentInItemService
{
-
+
///
/// 根据主键获取一般设备机具入场报批明细信息
diff --git a/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInService.cs b/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInService.cs
index a99a0ca8..0e5b7efa 100644
--- a/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentInService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class GeneralEquipmentInService
{
-
+
///
/// 根据主键获取一般设备机具入场报批
diff --git a/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentOutItemService.cs b/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentOutItemService.cs
index 635605d0..7ce99bba 100644
--- a/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentOutItemService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentOutItemService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class GeneralEquipmentOutItemService
{
-
+
///
/// 根据主键获取一般设备机具出场报批
diff --git a/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentOutService.cs b/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentOutService.cs
index e70b2a82..e9dda304 100644
--- a/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentOutService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/GeneralEquipmentOutService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class GeneralEquipmentOutService
{
-
+
///
/// 根据主键获取一般设备机具出场报批
diff --git a/SGGL/BLL/HSSE/InformationProject/ConstructionStandardIdentifyService.cs b/SGGL/BLL/HSSE/InformationProject/ConstructionStandardIdentifyService.cs
index 1d33dc2e..7705700d 100644
--- a/SGGL/BLL/HSSE/InformationProject/ConstructionStandardIdentifyService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ConstructionStandardIdentifyService.cs
@@ -4,7 +4,7 @@ namespace BLL
{
public static class ConstructionStandardIdentifyService
{
-
+
///
/// 根据标准规范辨识主键获取一个标准规范辨识信息
diff --git a/SGGL/BLL/HSSE/InformationProject/ConstructionStandardSelectedItemService.cs b/SGGL/BLL/HSSE/InformationProject/ConstructionStandardSelectedItemService.cs
index 8a82fb21..41dd0cd8 100644
--- a/SGGL/BLL/HSSE/InformationProject/ConstructionStandardSelectedItemService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ConstructionStandardSelectedItemService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class ConstructionStandardSelectedItemService
{
-
+
///
/// 根据标准规范辨识Id获取对应所有标准规范项信息
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectAccidentCauseReportItemService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectAccidentCauseReportItemService.cs
index 78387217..341a980d 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectAccidentCauseReportItemService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectAccidentCauseReportItemService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class ProjectAccidentCauseReportItemService
{
-
+
///
/// 职工伤亡事故原因分析报表明细表
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectAccidentCauseReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectAccidentCauseReportService.cs
index 3473868c..e58e131c 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectAccidentCauseReportService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectAccidentCauseReportService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ProjectAccidentCauseReportService
{
-
+
///
/// 职工伤亡事故原因分析报表
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectDrillConductedQuarterlyReportItemService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectDrillConductedQuarterlyReportItemService.cs
index 71baae6b..1330a8f3 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectDrillConductedQuarterlyReportItemService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectDrillConductedQuarterlyReportItemService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class ProjectDrillConductedQuarterlyReportItemService
{
-
+
///
/// 根据主键获取应急演练开展情况季报表明细信息
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectDrillConductedQuarterlyReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectDrillConductedQuarterlyReportService.cs
index f57abf45..136dc8c2 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectDrillConductedQuarterlyReportService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectDrillConductedQuarterlyReportService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ProjectDrillConductedQuarterlyReportService
{
-
+
///
/// 根据主键获取应急演练开展情况季报表
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectDrillPlanHalfYearReportItemService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectDrillPlanHalfYearReportItemService.cs
index 68218e45..ec2d1a1c 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectDrillPlanHalfYearReportItemService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectDrillPlanHalfYearReportItemService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class ProjectDrillPlanHalfYearReportItemService
{
-
+
///
/// 根据主键获取应急演练工作计划半年报明细信息
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectDrillPlanHalfYearReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectDrillPlanHalfYearReportService.cs
index 93d1a600..de61a2f3 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectDrillPlanHalfYearReportService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectDrillPlanHalfYearReportService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ProjectDrillPlanHalfYearReportService
{
-
+
///
/// 根据主键获取应急演练工作计划半年报
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs
index adc32ad9..1656cffe 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
@@ -33,7 +29,7 @@ namespace BLL
ProjectId = ePSummaryReport.ProjectId,
UnitId = ePSummaryReport.UnitId,
YearId = ePSummaryReport.YearId,
- Quarter= ePSummaryReport.Quarter,
+ Quarter = ePSummaryReport.Quarter,
ResponsiblePerson = ePSummaryReport.ResponsiblePerson,
ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel,
ContactPerson = ePSummaryReport.ContactPerson,
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectMillionsMonthlyReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectMillionsMonthlyReportService.cs
index 41338257..d68e4e29 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectMillionsMonthlyReportService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectMillionsMonthlyReportService.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
+using System.Linq;
namespace BLL
{
@@ -10,7 +7,7 @@ namespace BLL
///
public static class ProjectMillionsMonthlyReportService
{
-
+
///
/// 根据主键获取企业安全数据统计月报
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectSafetyQuarterlyReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectSafetyQuarterlyReportService.cs
index e5b3aa01..fda9fd2d 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectSafetyQuarterlyReportService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectSafetyQuarterlyReportService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ProjectSafetyQuarterlyReportService
{
-
+
///
/// 根据主键获取安全生产数据季报
diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectWorkSummaryReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectWorkSummaryReportService.cs
index 694e8156..816bebb9 100644
--- a/SGGL/BLL/HSSE/InformationProject/ProjectWorkSummaryReportService.cs
+++ b/SGGL/BLL/HSSE/InformationProject/ProjectWorkSummaryReportService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
@@ -30,7 +26,7 @@ namespace BLL
Model.InformationProject_WorkSummaryReport newWorkSummaryReport = new Model.InformationProject_WorkSummaryReport
{
WorkSummaryReportId = workSummaryReport.WorkSummaryReportId,
- ProjectId=workSummaryReport.ProjectId,
+ ProjectId = workSummaryReport.ProjectId,
YearId = workSummaryReport.YearId,
UnitId = workSummaryReport.UnitId,
ResponsiblePerson = workSummaryReport.ResponsiblePerson,
@@ -50,8 +46,8 @@ namespace BLL
Countermeasures = workSummaryReport.Countermeasures,
NextYearWorkPlan = workSummaryReport.NextYearWorkPlan,
JobSuggestion = workSummaryReport.JobSuggestion,
- CompileMan=workSummaryReport.CompileMan,
- CompileDate=workSummaryReport.CompileDate
+ CompileMan = workSummaryReport.CompileMan,
+ CompileDate = workSummaryReport.CompileDate
};
Funs.DB.InformationProject_WorkSummaryReport.InsertOnSubmit(newWorkSummaryReport);
Funs.DB.SubmitChanges();
diff --git a/SGGL/BLL/HSSE/Law/HSSEStandardsListService.cs b/SGGL/BLL/HSSE/Law/HSSEStandardsListService.cs
index 170217a0..5ab663e9 100644
--- a/SGGL/BLL/HSSE/Law/HSSEStandardsListService.cs
+++ b/SGGL/BLL/HSSE/Law/HSSEStandardsListService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public class HSSEStandardsListService
{
-
+
///
/// 根据id查询标准规范信息
diff --git a/SGGL/BLL/HSSE/Law/LawRegulationListService.cs b/SGGL/BLL/HSSE/Law/LawRegulationListService.cs
index 0aa8f499..7217286e 100644
--- a/SGGL/BLL/HSSE/Law/LawRegulationListService.cs
+++ b/SGGL/BLL/HSSE/Law/LawRegulationListService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class LawRegulationListService
{
-
+
///
/// 根据主键获取法律法规
diff --git a/SGGL/BLL/HSSE/Law/ManageRuleService.cs b/SGGL/BLL/HSSE/Law/ManageRuleService.cs
index a6a46877..3ff5349c 100644
--- a/SGGL/BLL/HSSE/Law/ManageRuleService.cs
+++ b/SGGL/BLL/HSSE/Law/ManageRuleService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class ManageRuleService
{
-
+
///
/// 根据主键获取管理规定
diff --git a/SGGL/BLL/HSSE/Law/RulesRegulationsService.cs b/SGGL/BLL/HSSE/Law/RulesRegulationsService.cs
index 9b594406..55372586 100644
--- a/SGGL/BLL/HSSE/Law/RulesRegulationsService.cs
+++ b/SGGL/BLL/HSSE/Law/RulesRegulationsService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class RulesRegulationsService
{
-
+
///
/// 根据主键获取生产规章制度
diff --git a/SGGL/BLL/HSSE/License/HSETechnicalService.cs b/SGGL/BLL/HSSE/License/HSETechnicalService.cs
index 527239db..93db4a7c 100644
--- a/SGGL/BLL/HSSE/License/HSETechnicalService.cs
+++ b/SGGL/BLL/HSSE/License/HSETechnicalService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class HSETechnicalService
{
-
+
///
/// 根据主键获取安全技术交底
diff --git a/SGGL/BLL/HSSE/License/LicenseManagerService.cs b/SGGL/BLL/HSSE/License/LicenseManagerService.cs
index d2d330a2..c791bd5d 100644
--- a/SGGL/BLL/HSSE/License/LicenseManagerService.cs
+++ b/SGGL/BLL/HSSE/License/LicenseManagerService.cs
@@ -1,10 +1,6 @@
using FineUIPro;
-using Model;
-using NPOI.SS.Formula.Functions;
using System;
using System.Collections;
-using System.Collections.Generic;
-using System.ComponentModel;
using System.Linq;
namespace BLL
@@ -28,7 +24,7 @@ namespace BLL
/// 定义变量
///
private static IQueryable getDataLists = from x in Funs.DB.License_LicenseManager
- select x;
+ select x;
///
///
@@ -47,7 +43,7 @@ namespace BLL
///
///
///
- public static IEnumerable getListData(string projectId, string unitId, DateTime? startTime, DateTime? endTime, string licenseType, string unitId2, Grid Grid1)
+ public static IEnumerable getListData(string projectId, string unitId, DateTime? startTime, DateTime? endTime, string licenseType, string unitId2, Grid Grid1)
{
IQueryable getDataList = getDataLists;
if (!string.IsNullOrEmpty(projectId))
@@ -69,11 +65,11 @@ namespace BLL
if (!string.IsNullOrEmpty(licenseType))
{
getDataList = getDataList.Where(e => e.LicenseTypeId == licenseType);
- }
+ }
if (!string.IsNullOrEmpty(unitId2) && unitId2 != Const._Null)
{
- getDataList = getDataList.Where(e => e.UnitId == unitId2 );
+ getDataList = getDataList.Where(e => e.UnitId == unitId2);
}
@@ -99,7 +95,7 @@ namespace BLL
};
}
- public static string getFlow(string id,string states)
+ public static string getFlow(string id, string states)
{
string strrValue = string.Empty;
string name = string.Empty;
@@ -120,7 +116,8 @@ namespace BLL
else if (states == BLL.Const.State_1)
{
strrValue = "审核/审批完成";
- } else
+ }
+ else
{
strrValue = "待[" + name + "]办理";
}
diff --git a/SGGL/BLL/HSSE/License/LicensePublicService.cs b/SGGL/BLL/HSSE/License/LicensePublicService.cs
index f9a0a3c5..49a034d5 100644
--- a/SGGL/BLL/HSSE/License/LicensePublicService.cs
+++ b/SGGL/BLL/HSSE/License/LicensePublicService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class LicensePublicService
{
-
+
///
/// 状态下拉框
///
diff --git a/SGGL/BLL/HSSE/Manager/CompletionReportService.cs b/SGGL/BLL/HSSE/Manager/CompletionReportService.cs
index d4e574da..317d81be 100644
--- a/SGGL/BLL/HSSE/Manager/CompletionReportService.cs
+++ b/SGGL/BLL/HSSE/Manager/CompletionReportService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class CompletionReportService
{
-
+
///
/// 根据主键获取完工报告
diff --git a/SGGL/BLL/HSSE/Meeting/AttendMeetingService.cs b/SGGL/BLL/HSSE/Meeting/AttendMeetingService.cs
index f5937a83..e41e1c4d 100644
--- a/SGGL/BLL/HSSE/Meeting/AttendMeetingService.cs
+++ b/SGGL/BLL/HSSE/Meeting/AttendMeetingService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class AttendMeetingService
{
-
+
///
/// 根据主键获取其他会议记录
diff --git a/SGGL/BLL/HSSE/Meeting/ClassMeetingService.cs b/SGGL/BLL/HSSE/Meeting/ClassMeetingService.cs
index 5fe301bf..f745907c 100644
--- a/SGGL/BLL/HSSE/Meeting/ClassMeetingService.cs
+++ b/SGGL/BLL/HSSE/Meeting/ClassMeetingService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ClassMeetingService
{
-
+
///
/// 根据主键获取班前会
diff --git a/SGGL/BLL/HSSE/Meeting/MonthMeetingService.cs b/SGGL/BLL/HSSE/Meeting/MonthMeetingService.cs
index 40c39444..92c71bab 100644
--- a/SGGL/BLL/HSSE/Meeting/MonthMeetingService.cs
+++ b/SGGL/BLL/HSSE/Meeting/MonthMeetingService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class MonthMeetingService
{
-
+
///
/// 根据主键获取安全月例会
diff --git a/SGGL/BLL/HSSE/Meeting/SafetyLeaderGroupMeetingService.cs b/SGGL/BLL/HSSE/Meeting/SafetyLeaderGroupMeetingService.cs
index 071fabf9..73e7accf 100644
--- a/SGGL/BLL/HSSE/Meeting/SafetyLeaderGroupMeetingService.cs
+++ b/SGGL/BLL/HSSE/Meeting/SafetyLeaderGroupMeetingService.cs
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
@@ -11,7 +9,7 @@ namespace BLL
///
public static class SafetyLeaderGroupMeetingService
{
-
+
///
/// 根据主键获取安全领导小组会议
diff --git a/SGGL/BLL/HSSE/Meeting/SpecialMeetingService.cs b/SGGL/BLL/HSSE/Meeting/SpecialMeetingService.cs
index 44955ca8..f37eff4a 100644
--- a/SGGL/BLL/HSSE/Meeting/SpecialMeetingService.cs
+++ b/SGGL/BLL/HSSE/Meeting/SpecialMeetingService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class SpecialMeetingService
{
-
+
///
/// 根据主键获取专题例会
diff --git a/SGGL/BLL/HSSE/Meeting/WeekMeetingService.cs b/SGGL/BLL/HSSE/Meeting/WeekMeetingService.cs
index a4d3b1c0..fd749ed2 100644
--- a/SGGL/BLL/HSSE/Meeting/WeekMeetingService.cs
+++ b/SGGL/BLL/HSSE/Meeting/WeekMeetingService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class WeekMeetingService
{
-
+
///
/// 根据主键获取周例会
diff --git a/SGGL/BLL/HSSE/OccupationHealth/HazardDetectionService.cs b/SGGL/BLL/HSSE/OccupationHealth/HazardDetectionService.cs
index 3a7a1159..4976c418 100644
--- a/SGGL/BLL/HSSE/OccupationHealth/HazardDetectionService.cs
+++ b/SGGL/BLL/HSSE/OccupationHealth/HazardDetectionService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class HazardDetectionService
{
-
+
///
/// 根据主键获取危害检测
diff --git a/SGGL/BLL/HSSE/OccupationHealth/OccupationalDiseaseAccidentService.cs b/SGGL/BLL/HSSE/OccupationHealth/OccupationalDiseaseAccidentService.cs
index 264aa649..547be4f1 100644
--- a/SGGL/BLL/HSSE/OccupationHealth/OccupationalDiseaseAccidentService.cs
+++ b/SGGL/BLL/HSSE/OccupationHealth/OccupationalDiseaseAccidentService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class OccupationalDiseaseAccidentService
{
-
+
///
/// 根据主键获取职业病事故
diff --git a/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs b/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs
index 1e3b62bb..c4b07c8a 100644
--- a/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs
+++ b/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs
@@ -1,9 +1,6 @@
using FineUIPro;
-using System;
using System.Collections;
-using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
@@ -26,16 +23,16 @@ namespace BLL
/// 定义变量
///
private static IQueryable getDataLists = from x in Funs.DB.SitePerson_Person
- select x;
+ select x;
- ///
- ///
- ///
- ///
- ///
- ///
- ///
- public static IEnumerable getListData(string projectId, string personName, Grid Grid1)
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static IEnumerable getListData(string projectId, string personName, Grid Grid1)
{
var db1 = Funs.DB;
IQueryable getDataList = from x in db1.SitePerson_Person
@@ -48,14 +45,14 @@ namespace BLL
{
getDataList = getDataList.Where(e => e.PersonName.Contains(personName));
}
-
+
count = getDataList.Count();
if (count == 0)
{
return null;
}
getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
-
+
return from x in getDataList
select new
{
diff --git a/SGGL/BLL/HSSE/QualityAudit/EquipmentPersonQualityService.cs b/SGGL/BLL/HSSE/QualityAudit/EquipmentPersonQualityService.cs
index b182255c..f0d5d358 100644
--- a/SGGL/BLL/HSSE/QualityAudit/EquipmentPersonQualityService.cs
+++ b/SGGL/BLL/HSSE/QualityAudit/EquipmentPersonQualityService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class EquipmentPersonQualityService
{
-
+
///
/// 根据主键获取特种设备作业人员资质
diff --git a/SGGL/BLL/HSSE/QualityAudit/EquipmentQualityAuditDetailService.cs b/SGGL/BLL/HSSE/QualityAudit/EquipmentQualityAuditDetailService.cs
index 53b1828f..39c55420 100644
--- a/SGGL/BLL/HSSE/QualityAudit/EquipmentQualityAuditDetailService.cs
+++ b/SGGL/BLL/HSSE/QualityAudit/EquipmentQualityAuditDetailService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class EquipmentQualityAuditDetailService
{
-
+
///
/// 根据主键获取特种设备资质审查明细
diff --git a/SGGL/BLL/HSSE/QualityAudit/EquipmentQualityService.cs b/SGGL/BLL/HSSE/QualityAudit/EquipmentQualityService.cs
index 756c5b79..e607c05d 100644
--- a/SGGL/BLL/HSSE/QualityAudit/EquipmentQualityService.cs
+++ b/SGGL/BLL/HSSE/QualityAudit/EquipmentQualityService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class EquipmentQualityService
{
-
+
///
/// 根据主键获取特殊机具设备资质
diff --git a/SGGL/BLL/HSSE/QualityAudit/GeneralEquipmentQualityService.cs b/SGGL/BLL/HSSE/QualityAudit/GeneralEquipmentQualityService.cs
index 23e535e6..0bad34d5 100644
--- a/SGGL/BLL/HSSE/QualityAudit/GeneralEquipmentQualityService.cs
+++ b/SGGL/BLL/HSSE/QualityAudit/GeneralEquipmentQualityService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class GeneralEquipmentQualityService
{
-
+
///
/// 根据主键获取一般机具设备资质
diff --git a/SGGL/BLL/HSSE/QualityAudit/PersonQualityService.cs b/SGGL/BLL/HSSE/QualityAudit/PersonQualityService.cs
index ea2bda7d..1e48080a 100644
--- a/SGGL/BLL/HSSE/QualityAudit/PersonQualityService.cs
+++ b/SGGL/BLL/HSSE/QualityAudit/PersonQualityService.cs
@@ -1,11 +1,8 @@
-using System;
+using FineUIPro;
+using System;
+using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Aspose.Words.Lists;
-using FineUIPro;
-using Org.BouncyCastle.Ocsp;
-using System.Collections;
-using Model;
namespace BLL
{
@@ -47,7 +44,7 @@ namespace BLL
return null;
}
getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
-
+
return from x in getDataList
select new
{
@@ -181,7 +178,7 @@ namespace BLL
public static void DeleteDataByPersonId(string personId)
{
Model.SGGLDB db = Funs.DB;
- var personQuality =from x in Funs.DB.QualityAudit_PersonQuality where x.PersonId == personId select x;
+ var personQuality = from x in Funs.DB.QualityAudit_PersonQuality where x.PersonId == personId select x;
if (personQuality.Count() > 0)
{
db.QualityAudit_PersonQuality.DeleteAllOnSubmit(personQuality);
@@ -196,7 +193,7 @@ namespace BLL
public static void DeleteData(string id)
{
Model.SGGLDB db = Funs.DB;
- var deleteData = db.QualityAudit_PersonQuality.FirstOrDefault(e => e.PersonQualityId == id);
+ var deleteData = db.QualityAudit_PersonQuality.FirstOrDefault(e => e.PersonQualityId == id);
if (deleteData != null)
{
db.QualityAudit_PersonQuality.DeleteOnSubmit(deleteData);
diff --git a/SGGL/BLL/HSSE/QualityAudit/SafePersonQualityService.cs b/SGGL/BLL/HSSE/QualityAudit/SafePersonQualityService.cs
index 3fecf64f..4665c6df 100644
--- a/SGGL/BLL/HSSE/QualityAudit/SafePersonQualityService.cs
+++ b/SGGL/BLL/HSSE/QualityAudit/SafePersonQualityService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class SafePersonQualityService
{
-
+
///
/// 根据主键获取安全人员资质
diff --git a/SGGL/BLL/HSSE/QualityAudit/SubUnitQualityAuditDetailService.cs b/SGGL/BLL/HSSE/QualityAudit/SubUnitQualityAuditDetailService.cs
index a4fb47ad..57db730d 100644
--- a/SGGL/BLL/HSSE/QualityAudit/SubUnitQualityAuditDetailService.cs
+++ b/SGGL/BLL/HSSE/QualityAudit/SubUnitQualityAuditDetailService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class SubUnitQualityAuditDetailService
{
-
+
///
/// 根据主键获取分包商资质审查明细
diff --git a/SGGL/BLL/HSSE/QualityAudit/SubUnitQualityService.cs b/SGGL/BLL/HSSE/QualityAudit/SubUnitQualityService.cs
index 39bd5fa2..cb12f395 100644
--- a/SGGL/BLL/HSSE/QualityAudit/SubUnitQualityService.cs
+++ b/SGGL/BLL/HSSE/QualityAudit/SubUnitQualityService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class SubUnitQualityService
{
-
+
///
/// 根据主键获取分包商资质
diff --git a/SGGL/BLL/HSSE/Resources/SignManageService.cs b/SGGL/BLL/HSSE/Resources/SignManageService.cs
index a82f95f7..e376341d 100644
--- a/SGGL/BLL/HSSE/Resources/SignManageService.cs
+++ b/SGGL/BLL/HSSE/Resources/SignManageService.cs
@@ -4,7 +4,7 @@
public static class SignManageService
{
-
+
///
/// 获取标牌信息
diff --git a/SGGL/BLL/HSSE/SecuritySystem/SafetyOrganizationService.cs b/SGGL/BLL/HSSE/SecuritySystem/SafetyOrganizationService.cs
index e67b21bd..977f6561 100644
--- a/SGGL/BLL/HSSE/SecuritySystem/SafetyOrganizationService.cs
+++ b/SGGL/BLL/HSSE/SecuritySystem/SafetyOrganizationService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class SafetyOrganizationService
{
-
+
///
/// 根据主键获取安全管理机构信息
diff --git a/SGGL/BLL/HSSE/SitePerson/PersonInOutService.cs b/SGGL/BLL/HSSE/SitePerson/PersonInOutService.cs
index 7a2bd10f..20c24fb3 100644
--- a/SGGL/BLL/HSSE/SitePerson/PersonInOutService.cs
+++ b/SGGL/BLL/HSSE/SitePerson/PersonInOutService.cs
@@ -3,7 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_CheckingService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_CheckingService.cs
index ebad051e..3036af8f 100644
--- a/SGGL/BLL/HSSE/SitePerson/SitePerson_CheckingService.cs
+++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_CheckingService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public class SitePerson_CheckingService
{
-
+
///
/// 根据人员考勤主键获取人员考勤管理信息
diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_DayReportUnitDetailService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_DayReportUnitDetailService.cs
index a6d71c70..7f51dbc9 100644
--- a/SGGL/BLL/HSSE/SitePerson/SitePerson_DayReportUnitDetailService.cs
+++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_DayReportUnitDetailService.cs
@@ -6,7 +6,7 @@ namespace BLL
{
public class SitePerson_DayReportUnitDetailService
{
-
+
///
diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_MonthReportUnitDetailService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_MonthReportUnitDetailService.cs
index 83db0cbc..3d41c328 100644
--- a/SGGL/BLL/HSSE/SitePerson/SitePerson_MonthReportUnitDetailService.cs
+++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_MonthReportUnitDetailService.cs
@@ -4,7 +4,7 @@ namespace BLL
{
public class SitePerson_MonthReportUnitDetailService
{
-
+
///
/// 增加工作日报明细信息
diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonItemService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonItemService.cs
index e98b36e9..3a34a626 100644
--- a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonItemService.cs
+++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonItemService.cs
@@ -1,10 +1,7 @@
using FineUIPro;
-using Microsoft.Office.Interop.Excel;
-using Model;
using System;
using System.Collections;
using System.Linq;
-using System.Web.Security;
namespace BLL
{
@@ -87,13 +84,13 @@ namespace BLL
x.UnitId,
x.UnitName,
x.WorkPostId,
- x.WorkPostName,
+ x.WorkPostName,
x.TeamGroupId,
x.TeamGroupName,
x.RoleId,
x.RoleName,
x.InTime,
- x.OutTime,
+ x.OutTime,
x.OutResult,
};
}
@@ -126,7 +123,7 @@ namespace BLL
db.SubmitChanges();
////在岗
- if (sitePerson.States == Const.ProjectPersonStates_1 )
+ if (sitePerson.States == Const.ProjectPersonStates_1)
{
Model.SitePerson_PersonItem newPersonItem = new Model.SitePerson_PersonItem
{
@@ -287,7 +284,7 @@ namespace BLL
public static void UpdatePersonItem(Model.SitePerson_PersonItem newitem)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
- {
+ {
var getPerson = Person_PersonsService.GetPerson_PersonsById(newitem.PersonId);
if (getPerson != null)
{
diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs
index 85108c23..c1444f0a 100644
--- a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs
+++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs
@@ -1,14 +1,9 @@
using FineUIPro;
using Model;
-using NPOI.HSSF.Record.Aggregates;
-using NPOI.SS.Formula.PTG;
-using NPOI.XWPF.UserModel;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Windows.Controls.Primitives;
-using WIA;
namespace BLL
{
@@ -844,7 +839,7 @@ namespace BLL
Isprint = "0",
States = person.States,
IsSafetyMonitoring = person.IsSafetyMonitoring,
- IsCQMSCheck=person.IsCQMSCheck,
+ IsCQMSCheck = person.IsCQMSCheck,
};
if (newPerson.WorkPostId == Const.WorkPost_Welder)
diff --git a/SGGL/BLL/HSSE/Solution/ConstructSolutionService.cs b/SGGL/BLL/HSSE/Solution/ConstructSolutionService.cs
index b46c4842..2d0e18f6 100644
--- a/SGGL/BLL/HSSE/Solution/ConstructSolutionService.cs
+++ b/SGGL/BLL/HSSE/Solution/ConstructSolutionService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class ConstructSolutionService
{
-
+
///
/// 根据主键获取施工方案/审查
diff --git a/SGGL/BLL/HSSE/Solution/ExpertArgumentService.cs b/SGGL/BLL/HSSE/Solution/ExpertArgumentService.cs
index 793d4833..cf1f3390 100644
--- a/SGGL/BLL/HSSE/Solution/ExpertArgumentService.cs
+++ b/SGGL/BLL/HSSE/Solution/ExpertArgumentService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ExpertArgumentService
{
-
+
#region 专家论证清单
///
diff --git a/SGGL/BLL/HSSE/Solution/LargerHazardService.cs b/SGGL/BLL/HSSE/Solution/LargerHazardService.cs
index df047acf..0f1ef864 100644
--- a/SGGL/BLL/HSSE/Solution/LargerHazardService.cs
+++ b/SGGL/BLL/HSSE/Solution/LargerHazardService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Collections;
+using System.Linq;
namespace BLL
{
@@ -30,7 +26,7 @@ namespace BLL
Model.SGGLDB db = Funs.DB;
Model.Solution_LargerHazard newLargerHazard = new Model.Solution_LargerHazard
{
- HazardName=largerHazard.HazardName,
+ HazardName = largerHazard.HazardName,
HazardId = largerHazard.HazardId,
HazardCode = largerHazard.HazardCode,
HazardType = largerHazard.HazardType,
diff --git a/SGGL/BLL/HSSE/Solution/SolutionTemplateService.cs b/SGGL/BLL/HSSE/Solution/SolutionTemplateService.cs
index 785f5815..a5e0739f 100644
--- a/SGGL/BLL/HSSE/Solution/SolutionTemplateService.cs
+++ b/SGGL/BLL/HSSE/Solution/SolutionTemplateService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class SolutionTemplateService
{
-
+
///
/// 根据主键获取方案模板
diff --git a/SGGL/BLL/HSSE/Technique/EmergencyService.cs b/SGGL/BLL/HSSE/Technique/EmergencyService.cs
index 719ffc02..71635db4 100644
--- a/SGGL/BLL/HSSE/Technique/EmergencyService.cs
+++ b/SGGL/BLL/HSSE/Technique/EmergencyService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class EmergencyService
{
-
+
///
/// 根据主键获取应急预案
diff --git a/SGGL/BLL/HSSE/Technique/EnvironmentalService.cs b/SGGL/BLL/HSSE/Technique/EnvironmentalService.cs
index 9fd8c158..313f7d1d 100644
--- a/SGGL/BLL/HSSE/Technique/EnvironmentalService.cs
+++ b/SGGL/BLL/HSSE/Technique/EnvironmentalService.cs
@@ -4,7 +4,7 @@ namespace BLL
{
public static class EnvironmentalService
{
-
+
///
/// 获取环境危险源信息
diff --git a/SGGL/BLL/HSSE/Technique/HazardListService.cs b/SGGL/BLL/HSSE/Technique/HazardListService.cs
index 4e756ee5..0a599b8d 100644
--- a/SGGL/BLL/HSSE/Technique/HazardListService.cs
+++ b/SGGL/BLL/HSSE/Technique/HazardListService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class HazardListService
{
-
+
///
/// 根据主键获取危险源清单
diff --git a/SGGL/BLL/HSSE/Technique/HazardListTypeService.cs b/SGGL/BLL/HSSE/Technique/HazardListTypeService.cs
index b6c0770a..fc1524f7 100644
--- a/SGGL/BLL/HSSE/Technique/HazardListTypeService.cs
+++ b/SGGL/BLL/HSSE/Technique/HazardListTypeService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class HazardListTypeService
{
-
+
///
/// 根据主键获取危险源类型
diff --git a/SGGL/BLL/HSSE/Technique/RectifyItemService.cs b/SGGL/BLL/HSSE/Technique/RectifyItemService.cs
index 0e006a05..1d83f9d1 100644
--- a/SGGL/BLL/HSSE/Technique/RectifyItemService.cs
+++ b/SGGL/BLL/HSSE/Technique/RectifyItemService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class RectifyItemService
{
-
+
///
/// 根据主键获取安全隐患明细
diff --git a/SGGL/BLL/HSSE/Technique/RectifyService.cs b/SGGL/BLL/HSSE/Technique/RectifyService.cs
index d3477abd..675a1ea7 100644
--- a/SGGL/BLL/HSSE/Technique/RectifyService.cs
+++ b/SGGL/BLL/HSSE/Technique/RectifyService.cs
@@ -1,7 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
{
diff --git a/SGGL/BLL/HSSE/Technique/SpecialSchemeService.cs b/SGGL/BLL/HSSE/Technique/SpecialSchemeService.cs
index 0c530bd4..4d1f92c1 100644
--- a/SGGL/BLL/HSSE/Technique/SpecialSchemeService.cs
+++ b/SGGL/BLL/HSSE/Technique/SpecialSchemeService.cs
@@ -6,7 +6,7 @@ namespace BLL
public static class SpecialSchemeService
{
-
+
///
/// 根据主键获取专项方案
diff --git a/SGGL/BLL/HSSE/Technique/Technique_CheckItemDetailService.cs b/SGGL/BLL/HSSE/Technique/Technique_CheckItemDetailService.cs
index cce5ac81..c1dcca72 100644
--- a/SGGL/BLL/HSSE/Technique/Technique_CheckItemDetailService.cs
+++ b/SGGL/BLL/HSSE/Technique/Technique_CheckItemDetailService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class Technique_CheckItemDetailService
{
-
+
///
/// 根据主键获取检查项明细
diff --git a/SGGL/BLL/HSSE/Technique/Technique_CheckItemSetService.cs b/SGGL/BLL/HSSE/Technique/Technique_CheckItemSetService.cs
index 7af74f4a..40e754c3 100644
--- a/SGGL/BLL/HSSE/Technique/Technique_CheckItemSetService.cs
+++ b/SGGL/BLL/HSSE/Technique/Technique_CheckItemSetService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class Technique_CheckItemSetService
{
-
+
///
/// 根据主键获取检查项
diff --git a/SGGL/BLL/Notice/NoticeService.cs b/SGGL/BLL/Notice/NoticeService.cs
index d0d2e525..db94921b 100644
--- a/SGGL/BLL/Notice/NoticeService.cs
+++ b/SGGL/BLL/Notice/NoticeService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class NoticeService
{
-
+
///
/// 根据主键获取通知
diff --git a/SGGL/BLL/OfficeCheck/Check/CheckNoticeService.cs b/SGGL/BLL/OfficeCheck/Check/CheckNoticeService.cs
index c3629b5f..48b23b9c 100644
--- a/SGGL/BLL/OfficeCheck/Check/CheckNoticeService.cs
+++ b/SGGL/BLL/OfficeCheck/Check/CheckNoticeService.cs
@@ -1,5 +1,4 @@
-using NPOI.SS.Formula;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
namespace BLL
@@ -26,12 +25,12 @@ namespace BLL
public static void AddCheckNotice(Model.ProjectSupervision_CheckNotice checkNotice)
{
Model.ProjectSupervision_CheckNotice newCheckNotice = new Model.ProjectSupervision_CheckNotice();
- newCheckNotice.CheckNoticeId = checkNotice.CheckNoticeId;
+ newCheckNotice.CheckNoticeId = checkNotice.CheckNoticeId;
newCheckNotice.SubjectUnitAdd = checkNotice.SubjectUnitAdd;
newCheckNotice.SubjectUnitMan = checkNotice.SubjectUnitMan;
newCheckNotice.SubjectUnitTel = checkNotice.SubjectUnitTel;
newCheckNotice.CheckStartTime = checkNotice.CheckStartTime;
- newCheckNotice.CheckEndTime = checkNotice.CheckEndTime;
+ newCheckNotice.CheckEndTime = checkNotice.CheckEndTime;
newCheckNotice.CheckTeamLeader = checkNotice.CheckTeamLeader;
newCheckNotice.CompileMan = checkNotice.CompileMan;
newCheckNotice.CompileDate = checkNotice.CompileDate;
diff --git a/SGGL/BLL/OfficeCheck/Check/CheckTeamService.cs b/SGGL/BLL/OfficeCheck/Check/CheckTeamService.cs
index 7db7a43e..d966e13a 100644
--- a/SGGL/BLL/OfficeCheck/Check/CheckTeamService.cs
+++ b/SGGL/BLL/OfficeCheck/Check/CheckTeamService.cs
@@ -48,7 +48,7 @@ namespace BLL
UserName = CheckTeam.UserName,
UnitId = CheckTeam.UnitId,
SexName = CheckTeam.SexName,
- DepartId=CheckTeam.DepartId,
+ DepartId = CheckTeam.DepartId,
};
Funs.DB.ProjectSupervision_CheckTeam.InsertOnSubmit(newCheckTeam);
Funs.DB.SubmitChanges();
diff --git a/SGGL/BLL/OfficeCheck/ProjectEvaluation/ProjectEvaluationService.cs b/SGGL/BLL/OfficeCheck/ProjectEvaluation/ProjectEvaluationService.cs
index 6acc2d44..152147c7 100644
--- a/SGGL/BLL/OfficeCheck/ProjectEvaluation/ProjectEvaluationService.cs
+++ b/SGGL/BLL/OfficeCheck/ProjectEvaluation/ProjectEvaluationService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ProjectEvaluationService
{
-
+
///
/// 根据主键获取项目绩效评价
diff --git a/SGGL/BLL/OpenService/FileInsertService.cs b/SGGL/BLL/OpenService/FileInsertService.cs
index 273de9e7..bf427c54 100644
--- a/SGGL/BLL/OpenService/FileInsertService.cs
+++ b/SGGL/BLL/OpenService/FileInsertService.cs
@@ -1,12 +1,9 @@
using System;
using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Collections;
using System.IO;
-using System.Web;
-using System.Text.RegularExpressions;
+using System.Linq;
using System.Net;
+using System.Text.RegularExpressions;
namespace BLL
{
diff --git a/SGGL/BLL/OpenService/GetDataService.cs b/SGGL/BLL/OpenService/GetDataService.cs
index 660eb57f..305e0f07 100644
--- a/SGGL/BLL/OpenService/GetDataService.cs
+++ b/SGGL/BLL/OpenService/GetDataService.cs
@@ -1,9 +1,7 @@
-using NPOI.SS.Formula.Functions;
-using System;
+using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
-using WIA;
namespace BLL
{
@@ -518,7 +516,7 @@ namespace BLL
{
int count = 0;
var getPersons = from x in db.SitePerson_Person
- where x.States == Const.State_1 && (x.CardNo == null || x.CardNo =="" || x.CardNo.Length==0) && x.ProjectId == projectId
+ where x.States == Const.State_1 && (x.CardNo == null || x.CardNo == "" || x.CardNo.Length == 0) && x.ProjectId == projectId
select x;
foreach (var item in getPersons)
{
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanFormationService.cs b/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanFormationService.cs
index 18a35f6b..6d800440 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanFormationService.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanFormationService.cs
@@ -231,7 +231,7 @@ namespace BLL
/// ActionPlanID
///
///
- public static Document Print( string ActionPlanID)
+ public static Document Print(string ActionPlanID)
{
string rootPath = Funs.RootPath;
@@ -550,12 +550,12 @@ namespace BLL
doc.UpdateWordCount();
File.Delete(Path);
}
- doc.Save(newUrl);
- Document doc1 = new Aspose.Words.Document(newUrl);
+ doc.Save(newUrl);
+ Document doc1 = new Aspose.Words.Document(newUrl);
File.Delete(newUrl);
return doc1;
}
- public static void PrintFile( string Id)
+ public static void PrintFile(string Id)
{
string rootPath = Funs.RootPath;
string newUrl = string.Empty;
@@ -566,7 +566,7 @@ namespace BLL
File.Delete(newUrl);
}
var q = PHTGL_ActionPlanFormationService.GetPHTGL_ActionPlanFormationById(Id);
- var doc = BLL.PHTGL_ActionPlanFormationService.Print( Id);
+ var doc = BLL.PHTGL_ActionPlanFormationService.Print(Id);
doc.Save(newUrl);
//生成PDF文件
string pdfUrl = newUrl.Replace(".docx", ".pdf");
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanReviewService.cs b/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanReviewService.cs
index 1dedc0da..4762192c 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanReviewService.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanReviewService.cs
@@ -1,6 +1,6 @@
-using System.Collections.Generic;
+using Model;
+using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReviewService.cs b/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReviewService.cs
index 5bc4c5f0..0254e93d 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReviewService.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReviewService.cs
@@ -1,11 +1,11 @@
using Aspose.Words;
+using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
-using Model;
namespace BLL
{
@@ -186,7 +186,7 @@ namespace BLL
File.Delete(newUrl);
return doc1;
}
- public static void PrintFile( string Id)
+ public static void PrintFile(string Id)
{
string rootPath = Funs.RootPath;
@@ -197,7 +197,7 @@ namespace BLL
{
File.Delete(newUrl);
}
- var doc = Print( Id);
+ var doc = Print(Id);
doc.Save(newUrl);
//生成PDF文件
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReview_Sch1Service.cs b/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReview_Sch1Service.cs
index 6882091f..02a06346 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReview_Sch1Service.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReview_Sch1Service.cs
@@ -24,7 +24,7 @@ namespace BLL
Model.PHTGL_BidApproveUserReview_Sch1 table = new Model.PHTGL_BidApproveUserReview_Sch1();
table.ID = newtable.ID;
table.ApproveUserReviewID = newtable.ApproveUserReviewID;
- var name= BLL.Person_PersonsService.GetPersonsNameById(newtable.ApproveUserName);
+ var name = BLL.Person_PersonsService.GetPersonsNameById(newtable.ApproveUserName);
if (!string.IsNullOrEmpty(name))
{
table.ApproveUserName = name;
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/BidDocStandingBookService.cs b/SGGL/BLL/PHTGL/BiddingManagement/BidDocStandingBookService.cs
index f69fd2ec..1315d05e 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/BidDocStandingBookService.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/BidDocStandingBookService.cs
@@ -1,11 +1,7 @@
using FineUIPro;
-using MiniExcelLibs.Attributes;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -41,11 +37,11 @@ namespace BLL
(string.IsNullOrEmpty(table.ApprovePersonFormCode) || x.ApprovePersonFormCode.Contains(table.ApprovePersonFormCode)) &&
(string.IsNullOrEmpty(table.BidWinner) || x.BidWinner.Contains(table.BidWinner)) &&
(string.IsNullOrEmpty(table.SetSubReviewCode) || x.SetSubReviewCode.Contains(table.SetSubReviewCode)) &&
- (string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId))&&
- (string.IsNullOrEmpty(table.BidNoticeCode) || x.BidNoticeCode.Contains(table.BidNoticeCode))&&
- (string.IsNullOrEmpty(table.BidUnitFileCode) || x.BidUnitFileCode.Contains(table.BidUnitFileCode))&&
- (table.State == null||x.State==table.State)
- select x
+ (string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId)) &&
+ (string.IsNullOrEmpty(table.BidNoticeCode) || x.BidNoticeCode.Contains(table.BidNoticeCode)) &&
+ (string.IsNullOrEmpty(table.BidUnitFileCode) || x.BidUnitFileCode.Contains(table.BidUnitFileCode)) &&
+ (table.State == null || x.State == table.State)
+ select x
;
return q.ToList();
@@ -64,7 +60,7 @@ namespace BLL
{
return null;
}
- q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
+ q = q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
@@ -108,8 +104,8 @@ namespace BLL
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook
{
BidDocumentsStandingBookId = newtable.BidDocumentsStandingBookId,
- UnitId= newtable.UnitId,
- DepartId= newtable.DepartId,
+ UnitId = newtable.UnitId,
+ DepartId = newtable.DepartId,
EPCCode = newtable.EPCCode,
ProjectShortName = newtable.ProjectShortName,
ProjectCode = newtable.ProjectCode,
@@ -125,10 +121,10 @@ namespace BLL
ApprovePersonFormCode = newtable.ApprovePersonFormCode,
BidWinner = newtable.BidWinner,
SetSubReviewCode = newtable.SetSubReviewCode,
- ProjectId= newtable.ProjectId,
- State=newtable.State,
- BidNoticeCode=newtable.BidNoticeCode,
- BidUnitFileCode=newtable.BidUnitFileCode,
+ ProjectId = newtable.ProjectId,
+ State = newtable.State,
+ BidNoticeCode = newtable.BidNoticeCode,
+ BidUnitFileCode = newtable.BidUnitFileCode,
};
var db1 = Funs.DB;
db1.PHTGL_BidDocumentsStandingBook.InsertOnSubmit(table);
@@ -150,8 +146,8 @@ namespace BLL
if (table != null)
{
table.BidDocumentsStandingBookId = newtable.BidDocumentsStandingBookId;
- table.UnitId= newtable.UnitId;
- table.DepartId= newtable.DepartId;
+ table.UnitId = newtable.UnitId;
+ table.DepartId = newtable.DepartId;
table.EPCCode = newtable.EPCCode;
table.ProjectShortName = newtable.ProjectShortName;
table.ProjectCode = newtable.ProjectCode;
@@ -167,10 +163,10 @@ namespace BLL
table.ApprovePersonFormCode = newtable.ApprovePersonFormCode;
table.BidWinner = newtable.BidWinner;
table.SetSubReviewCode = newtable.SetSubReviewCode;
- table.ProjectId=newtable.ProjectId;
- table.State=newtable.State;
- table.BidNoticeCode= newtable.BidNoticeCode;
- table.BidUnitFileCode=newtable.BidUnitFileCode;
+ table.ProjectId = newtable.ProjectId;
+ table.State = newtable.State;
+ table.BidNoticeCode = newtable.BidNoticeCode;
+ table.BidUnitFileCode = newtable.BidUnitFileCode;
db1.SubmitChanges();
}
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/BidDocumentsReviewService.cs b/SGGL/BLL/PHTGL/BiddingManagement/BidDocumentsReviewService.cs
index 1dfb1ece..840d9350 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/BidDocumentsReviewService.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/BidDocumentsReviewService.cs
@@ -1,9 +1,9 @@
using Aspose.Words;
+using Model;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
-using Model;
namespace BLL
{
@@ -141,7 +141,7 @@ namespace BLL
///
///
///
- public static void InitGetBidCompleteDropDownList(FineUIPro.DropDownList dropName,string projectid, bool isShowPlease)
+ public static void InitGetBidCompleteDropDownList(FineUIPro.DropDownList dropName, string projectid, bool isShowPlease)
{
dropName.DataValueField = "BidDocumentsReviewId";
dropName.DataTextField = "BidDocumentsCode";
@@ -244,9 +244,9 @@ namespace BLL
Document doc1 = new Aspose.Words.Document(newUrl);
File.Delete(newUrl);
return doc1;
-
+
}
- public static void PrintFile( string Id)
+ public static void PrintFile(string Id)
{
string rootPath = Funs.RootPath;
@@ -258,7 +258,7 @@ namespace BLL
{
File.Delete(newUrl);
}
- var doc = Print( Id);
+ var doc = Print(Id);
doc.Save(newUrl);
//生成PDF文件
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/SetSubReviewService.cs b/SGGL/BLL/PHTGL/BiddingManagement/SetSubReviewService.cs
index 160f9e6c..d727aef4 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/SetSubReviewService.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/SetSubReviewService.cs
@@ -1,5 +1,5 @@
using Aspose.Words;
-using NPOI.SS.Formula.Functions;
+using Model;
using System;
using System.Collections.Generic;
using System.Data;
@@ -7,7 +7,6 @@ using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Web.UI.WebControls;
-using Model;
namespace BLL
{
@@ -238,7 +237,7 @@ namespace BLL
+ @" FROM PHTGL_SetSubReview_Sch1 AS Sch1 "
+ @"where 1=1 AND SetSubReviewID = @SetSubReviewID order by SortIndex ";
break;
-
+
}
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace(".docx", string.Format("{0:yyyy-MM}", DateTime.Now) + ".docx");
@@ -315,7 +314,7 @@ namespace BLL
doc.Save(newUrl);
Document doc1 = new Aspose.Words.Document(newUrl);
-
+
File.Delete(newUrl);
return doc1;
}
@@ -345,7 +344,7 @@ namespace BLL
}
}
-
+
break;
case PHTGL_SetSubReviewService.Type_MinPrice:
if (Act != null)
@@ -361,9 +360,9 @@ namespace BLL
}
}
-
+
break;
-
+
}
newUrl = rootPath + initTemplatePath;
diff --git a/SGGL/BLL/PHTGL/BillOfQuantities/PhtglBidprojectquantityService .cs b/SGGL/BLL/PHTGL/BillOfQuantities/PhtglBidprojectquantityService .cs
index f3dd421a..b93c5ad3 100644
--- a/SGGL/BLL/PHTGL/BillOfQuantities/PhtglBidprojectquantityService .cs
+++ b/SGGL/BLL/PHTGL/BillOfQuantities/PhtglBidprojectquantityService .cs
@@ -1,11 +1,11 @@
-using System;
+using FineUIPro;
+using MiniExcelLibs;
+using Model;
+using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
-using FineUIPro;
-using MiniExcelLibs;
-using Model;
namespace BLL
{
@@ -78,27 +78,27 @@ namespace BLL
querytable.IsTemplate = false;
querytable.ParentId = item.MainProjectQuantityId;
var tb = PHTGL_QuantityService.GetPHTGL_QuantityByModle(querytable);
- var exportmodel = (from x in tb
- select new
- {
- 专业= x.Major,
- 分部工程= x.SubProject,
- 分项工程= x.SubItemProject,
- 项目编码= x.ProjectCode,
- 项目名称=x.ProjectName,
- 项目特征描述= x.ProjectDescription,
- 计量单位= x.UnitOfMeasurement,
- 工程量=x.Quantity,
- 全费用固定综合单价=x.TotalCostFixedComprehensiveUnitPrice,
- 主材费=x.MainMaterialCost,
- 合价=x.TotalPrice,
- 计算规则=x.CalculationRule,
- 工作内容=x.WorkContent,
- 备注=x.Remarks,
- }).ToList();
- sheets.Add(item.MainProjectQuantityName,exportmodel);
+ var exportmodel = (from x in tb
+ select new
+ {
+ 专业 = x.Major,
+ 分部工程 = x.SubProject,
+ 分项工程 = x.SubItemProject,
+ 项目编码 = x.ProjectCode,
+ 项目名称 = x.ProjectName,
+ 项目特征描述 = x.ProjectDescription,
+ 计量单位 = x.UnitOfMeasurement,
+ 工程量 = x.Quantity,
+ 全费用固定综合单价 = x.TotalCostFixedComprehensiveUnitPrice,
+ 主材费 = x.MainMaterialCost,
+ 合价 = x.TotalPrice,
+ 计算规则 = x.CalculationRule,
+ 工作内容 = x.WorkContent,
+ 备注 = x.Remarks,
+ }).ToList();
+ sheets.Add(item.MainProjectQuantityName, exportmodel);
}
- string path = Funs.RootPath + @"File\Excel\Temp\招标工作清单-"+ bidProjectQuantity.BidProjectCode+ ".xlsx";
+ string path = Funs.RootPath + @"File\Excel\Temp\招标工作清单-" + bidProjectQuantity.BidProjectCode + ".xlsx";
path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd-HH-mm}", DateTime.Now) + ".xlsx");
MiniExcel.SaveAs(path, sheets);
string fileName = "招标工作清单-" + bidProjectQuantity.BidProjectCode + ".xlsx";
@@ -117,7 +117,7 @@ namespace BLL
{
var sheets = new Dictionary();
var mainProjectList = PHTGL_MainProjectQuantityService.GetPHTGL_MainProjectQuantityById(mainProjectQuantityId);//获取主项
- if (mainProjectList==null)
+ if (mainProjectList == null)
{
return;
}
@@ -126,25 +126,25 @@ namespace BLL
querytable.ParentId = mainProjectQuantityId;
var tb = PHTGL_QuantityService.GetPHTGL_QuantityByModle(querytable);
var exportmodel = (from x in tb
- select new
- {
- 专业 = x.Major,
- 分部工程 = x.SubProject,
- 分项工程 = x.SubItemProject,
- 项目编码 = x.ProjectCode,
- 项目名称 = x.ProjectName,
- 项目特征描述 = x.ProjectDescription,
- 计量单位 = x.UnitOfMeasurement,
- 工程量 = x.Quantity,
- 全费用固定综合单价 = x.TotalCostFixedComprehensiveUnitPrice,
- 主材费 = x.MainMaterialCost,
- 合价 = x.TotalPrice,
- 计算规则 = x.CalculationRule,
- 工作内容 = x.WorkContent,
- 备注 = x.Remarks,
- }).ToList();
+ select new
+ {
+ 专业 = x.Major,
+ 分部工程 = x.SubProject,
+ 分项工程 = x.SubItemProject,
+ 项目编码 = x.ProjectCode,
+ 项目名称 = x.ProjectName,
+ 项目特征描述 = x.ProjectDescription,
+ 计量单位 = x.UnitOfMeasurement,
+ 工程量 = x.Quantity,
+ 全费用固定综合单价 = x.TotalCostFixedComprehensiveUnitPrice,
+ 主材费 = x.MainMaterialCost,
+ 合价 = x.TotalPrice,
+ 计算规则 = x.CalculationRule,
+ 工作内容 = x.WorkContent,
+ 备注 = x.Remarks,
+ }).ToList();
sheets.Add(mainProjectList.MainProjectQuantityName, exportmodel);
-
+
string path = Funs.RootPath + @"File\Excel\Temp\招标工作清单-" + mainProjectList.MainProjectQuantityCode + ".xlsx";
path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd-HH-mm}", DateTime.Now) + ".xlsx");
MiniExcel.SaveAs(path, sheets);
@@ -202,16 +202,16 @@ namespace BLL
q = q.Skip(Grid1.PageSize * Grid1.PageIndex).Take(Grid1.PageSize).ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
- select new
- {
- x.BidProjectQuantityId,
- x.LotNumber,
- x.BidProjectCode,
- x.IsMainProject,
- x.ProjectId,
- x.CreatorId,
- x.CreateDate
- };
+ select new
+ {
+ x.BidProjectQuantityId,
+ x.LotNumber,
+ x.BidProjectCode,
+ x.IsMainProject,
+ x.ProjectId,
+ x.CreatorId,
+ x.CreateDate
+ };
}
#endregion
diff --git a/SGGL/BLL/PHTGL/BillOfQuantities/PhtglMainprojectquantityService .cs b/SGGL/BLL/PHTGL/BillOfQuantities/PhtglMainprojectquantityService .cs
index 66ddb486..b16bfb63 100644
--- a/SGGL/BLL/PHTGL/BillOfQuantities/PhtglMainprojectquantityService .cs
+++ b/SGGL/BLL/PHTGL/BillOfQuantities/PhtglMainprojectquantityService .cs
@@ -1,8 +1,8 @@
-using System.Collections;
+using FineUIPro;
+using Model;
+using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using FineUIPro;
-using Model;
namespace BLL
{
@@ -105,13 +105,13 @@ namespace BLL
q = q.Skip(Grid1.PageSize * Grid1.PageIndex).Take(Grid1.PageSize).ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
- select new
- {
- x.MainProjectQuantityId,
- x.MainProjectQuantityCode,
- x.MainProjectQuantityName,
- x.QuantityId
- };
+ select new
+ {
+ x.MainProjectQuantityId,
+ x.MainProjectQuantityCode,
+ x.MainProjectQuantityName,
+ x.QuantityId
+ };
}
#endregion
diff --git a/SGGL/BLL/PHTGL/BillOfQuantities/PhtglQuantityService.cs b/SGGL/BLL/PHTGL/BillOfQuantities/PhtglQuantityService.cs
index b910b324..896d0194 100644
--- a/SGGL/BLL/PHTGL/BillOfQuantities/PhtglQuantityService.cs
+++ b/SGGL/BLL/PHTGL/BillOfQuantities/PhtglQuantityService.cs
@@ -1,12 +1,12 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using EmitMapper;
+using EmitMapper;
using FineUIPro;
using MiniExcelLibs;
using MiniExcelLibs.Attributes;
using Model;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
namespace BLL
{
@@ -17,9 +17,9 @@ namespace BLL
return Funs.DB.PHTGL_Quantity.FirstOrDefault(x => x.Id == Id);
}
- public static PHTGL_Quantity GetPHTGL_QuantityByNumBer(string serialNumber,string marjor)
+ public static PHTGL_Quantity GetPHTGL_QuantityByNumBer(string serialNumber, string marjor)
{
- return Funs.DB.PHTGL_Quantity.FirstOrDefault(x => x.SerialNumber == serialNumber && x.Major==marjor);
+ return Funs.DB.PHTGL_Quantity.FirstOrDefault(x => x.SerialNumber == serialNumber && x.Major == marjor);
}
public static void AddPHTGL_Quantity(PHTGL_Quantity newtable)
@@ -136,24 +136,24 @@ namespace BLL
public static ResponeData ImportData(string path, string majortype)
{
var responeData = new ResponeData();
- List rows= new List();
- List remarkQuery=new List();
+ List rows = new List();
+ List remarkQuery = new List();
string Major = "";
try
{
var sheetNames = MiniExcel.GetSheetNames(path);
foreach (var item in sheetNames)
{
- if (item=="编制说明")
+ if (item == "编制说明")
{
- remarkQuery = MiniExcel.Query(path, sheetName: item).ToList();
+ remarkQuery = MiniExcel.Query(path, sheetName: item).ToList();
}
else
{
rows = MiniExcel.Query(path, sheetName: item).ToList();
}
}
-
+
}
catch (Exception e)
{
@@ -174,7 +174,7 @@ namespace BLL
Major = GetMajorItems().Where(x => x.Text == majortype).Select(x => x.Value).FirstOrDefault() ??
"";
- List consts=new List();
+ List consts = new List();
int SortIndex = 0;
foreach (var item in remarkQuery)
{
@@ -184,14 +184,14 @@ namespace BLL
ID = SQLHelper.GetNewID(),
ConstValue = item.A?.ToString(),
SortIndex = SortIndex,
- GroupId = "工程量清单-"+ Major
+ GroupId = "工程量清单-" + Major
};
consts.Add(model);
SortIndex++;
}
var old = ConstValue.drpConstItemList("工程量清单-" + Major);
- if (old.Count>0)
+ if (old.Count > 0)
{
Funs.DB.Sys_Const.DeleteAllOnSubmit(old);
Funs.DB.SubmitChanges();
@@ -203,8 +203,8 @@ namespace BLL
{
item.Major = Major;
if (string.IsNullOrEmpty(Major)) break;
- if (string .IsNullOrEmpty(item.ProjectName)) continue;
- if (item.ProjectName== "项目名称") continue;
+ if (string.IsNullOrEmpty(item.ProjectName)) continue;
+ if (item.ProjectName == "项目名称") continue;
var queryPhtglQuantity = new PHTGL_Quantity
{
Major = item.Major,
@@ -401,36 +401,36 @@ namespace BLL
public static List GetPHTGL_QuantityByModle(PHTGL_Quantity table)
{
var q = from x in Funs.DB.PHTGL_Quantity
- where
- (string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
- (string.IsNullOrEmpty(table.Major) || x.Major.Contains(table.Major)) &&
- (string.IsNullOrEmpty(table.SubProject) || x.SubProject.Contains(table.SubProject)) &&
- (string.IsNullOrEmpty(table.SubItemProject) ||
- x.SubItemProject.Contains(table.SubItemProject)) &&
- (string.IsNullOrEmpty(table.ProjectCode) || x.ProjectCode.Contains(table.ProjectCode)) &&
- (string.IsNullOrEmpty(table.ProjectName) || x.ProjectName.Contains(table.ProjectName)) &&
- (string.IsNullOrEmpty(table.ProjectDescription) ||
- x.ProjectDescription.Contains(table.ProjectDescription)) &&
- (string.IsNullOrEmpty(table.UnitOfMeasurement) ||
- x.UnitOfMeasurement.Contains(table.UnitOfMeasurement)) &&
- (string.IsNullOrEmpty(table.Quantity) || x.Quantity.Contains(table.Quantity)) &&
- (string.IsNullOrEmpty(table.TotalCostFixedComprehensiveUnitPrice) ||
- x.TotalCostFixedComprehensiveUnitPrice.Contains(table.TotalCostFixedComprehensiveUnitPrice)) &&
- (string.IsNullOrEmpty(table.MainMaterialCost) ||
- x.MainMaterialCost.Contains(table.MainMaterialCost)) &&
- (string.IsNullOrEmpty(table.TotalPrice) || x.TotalPrice.Contains(table.TotalPrice)) &&
- (string.IsNullOrEmpty(table.CalculationRule) ||
- x.CalculationRule.Contains(table.CalculationRule)) &&
- (string.IsNullOrEmpty(table.WorkContent) || x.WorkContent.Contains(table.WorkContent)) &&
- (string.IsNullOrEmpty(table.Remarks) || x.Remarks.Contains(table.Remarks)) &&
- x.IsTemplate == table.IsTemplate &&
- (string.IsNullOrEmpty(table.ParentId) || x.ParentId.Contains(table.ParentId))
+ where
+ (string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
+ (string.IsNullOrEmpty(table.Major) || x.Major.Contains(table.Major)) &&
+ (string.IsNullOrEmpty(table.SubProject) || x.SubProject.Contains(table.SubProject)) &&
+ (string.IsNullOrEmpty(table.SubItemProject) ||
+ x.SubItemProject.Contains(table.SubItemProject)) &&
+ (string.IsNullOrEmpty(table.ProjectCode) || x.ProjectCode.Contains(table.ProjectCode)) &&
+ (string.IsNullOrEmpty(table.ProjectName) || x.ProjectName.Contains(table.ProjectName)) &&
+ (string.IsNullOrEmpty(table.ProjectDescription) ||
+ x.ProjectDescription.Contains(table.ProjectDescription)) &&
+ (string.IsNullOrEmpty(table.UnitOfMeasurement) ||
+ x.UnitOfMeasurement.Contains(table.UnitOfMeasurement)) &&
+ (string.IsNullOrEmpty(table.Quantity) || x.Quantity.Contains(table.Quantity)) &&
+ (string.IsNullOrEmpty(table.TotalCostFixedComprehensiveUnitPrice) ||
+ x.TotalCostFixedComprehensiveUnitPrice.Contains(table.TotalCostFixedComprehensiveUnitPrice)) &&
+ (string.IsNullOrEmpty(table.MainMaterialCost) ||
+ x.MainMaterialCost.Contains(table.MainMaterialCost)) &&
+ (string.IsNullOrEmpty(table.TotalPrice) || x.TotalPrice.Contains(table.TotalPrice)) &&
+ (string.IsNullOrEmpty(table.CalculationRule) ||
+ x.CalculationRule.Contains(table.CalculationRule)) &&
+ (string.IsNullOrEmpty(table.WorkContent) || x.WorkContent.Contains(table.WorkContent)) &&
+ (string.IsNullOrEmpty(table.Remarks) || x.Remarks.Contains(table.Remarks)) &&
+ x.IsTemplate == table.IsTemplate &&
+ (string.IsNullOrEmpty(table.ParentId) || x.ParentId.Contains(table.ParentId))
- select x;
- //select new { x ,IntSerialNumber= Funs.GetNewIntOrZero(x.SerialNumber.Replace(".", ""))
- // }
+ select x;
+ //select new { x ,IntSerialNumber= Funs.GetNewIntOrZero(x.SerialNumber.Replace(".", ""))
+ // }
- ;
+ ;
//var model = q.ToList().OrderBy(x => x.IntSerialNumber).Select(itemx => itemx.x).ToList();
var model = q.ToList().OrderBy(x => x.SerialNumber, new CustomComparer()).ToList();
return model;
@@ -449,27 +449,27 @@ namespace BLL
q = q.Skip(Grid1.PageSize * Grid1.PageIndex).Take(Grid1.PageSize).ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
- select new
- {
- x.Id,
- x.SerialNumber,
- x.Major,
- x.SubProject,
- x.SubItemProject,
- x.ProjectCode,
- x.ProjectName,
- x.ProjectDescription,
- x.UnitOfMeasurement,
- x.Quantity,
- x.TotalCostFixedComprehensiveUnitPrice,
- x.MainMaterialCost,
- x.TotalPrice,
- x.CalculationRule,
- x.WorkContent,
- x.Remarks,
- x.IsTemplate,
- x.ParentId
- };
+ select new
+ {
+ x.Id,
+ x.SerialNumber,
+ x.Major,
+ x.SubProject,
+ x.SubItemProject,
+ x.ProjectCode,
+ x.ProjectName,
+ x.ProjectDescription,
+ x.UnitOfMeasurement,
+ x.Quantity,
+ x.TotalCostFixedComprehensiveUnitPrice,
+ x.MainMaterialCost,
+ x.TotalPrice,
+ x.CalculationRule,
+ x.WorkContent,
+ x.Remarks,
+ x.IsTemplate,
+ x.ParentId
+ };
}
public static void CheckSubProjectName(List list)
@@ -479,7 +479,7 @@ namespace BLL
var SubProject = "";
var SubItemProject = "";
var SerialNumberArry = item.SerialNumber?.Split('.');
- if (SerialNumberArry.Length==2)
+ if (SerialNumberArry.Length == 2)
{
item.SubProject = GetPHTGL_QuantityByNumBer(SerialNumberArry[0], item.Major).ProjectName;
UpdatePHTGL_Quantity(item);
@@ -488,10 +488,10 @@ namespace BLL
else if (SerialNumberArry.Length == 3)
{
item.SubProject = GetPHTGL_QuantityByNumBer(SerialNumberArry[0], item.Major).ProjectName;
- item.SubItemProject= GetPHTGL_QuantityByNumBer(SerialNumberArry[0]+"."+ SerialNumberArry[1], item.Major).ProjectName;
+ item.SubItemProject = GetPHTGL_QuantityByNumBer(SerialNumberArry[0] + "." + SerialNumberArry[1], item.Major).ProjectName;
UpdatePHTGL_Quantity(item);
}
-
+
}
}
@@ -501,7 +501,7 @@ namespace BLL
{
public int Compare(string x, string y)
{
- if (string.IsNullOrEmpty(x)||string.IsNullOrEmpty(y))
+ if (string.IsNullOrEmpty(x) || string.IsNullOrEmpty(y))
{
return 0;
}
diff --git a/SGGL/BLL/PHTGL/ContractCompile/ContractReviewService.cs b/SGGL/BLL/PHTGL/ContractCompile/ContractReviewService.cs
index aa41388b..6afb389e 100644
--- a/SGGL/BLL/PHTGL/ContractCompile/ContractReviewService.cs
+++ b/SGGL/BLL/PHTGL/ContractCompile/ContractReviewService.cs
@@ -1,7 +1,6 @@
using Aspose.Words;
using FineUIPro;
-using ICSharpCode.SharpZipLib.Zip;
-using Microsoft.SqlServer.Server;
+using Model;
using System;
using System.Collections.Generic;
using System.Data;
@@ -10,7 +9,6 @@ using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
-using Model;
namespace BLL
{
@@ -584,7 +582,7 @@ namespace BLL
return doc1;
}
- public static void PrintFile( string ContractReviewId)
+ public static void PrintFile(string ContractReviewId)
{
string rootPath = Funs.RootPath;
var ReviewModel = BLL.PHTGL_ContractReviewService.GetPHTGL_ContractReviewById(ContractReviewId);
@@ -621,10 +619,10 @@ namespace BLL
}
- public static void PrintFileByDocument(Document doc,string name)
+ public static void PrintFileByDocument(Document doc, string name)
{
string rootPath = Funs.RootPath;
-
+
string newUrl = string.Empty;
newUrl = rootPath + "File\\Word\\PHTGL\\合同评审.docx";
newUrl = newUrl.Replace(".docx", string.Format("{0:yyyy-MM}", DateTime.Now) + ".docx");
@@ -639,7 +637,7 @@ namespace BLL
//验证参数
if (doc1 == null) { throw new Exception("Word文件无效"); }
doc1.Save(pdfUrl, Aspose.Words.SaveFormat.Pdf);//还可以改成其它格式
- string fileName = Path.GetFileName(pdfUrl).Replace("合同评审", name );
+ string fileName = Path.GetFileName(pdfUrl).Replace("合同评审", name);
FileInfo info = new FileInfo(pdfUrl);
long fileSize = info.Length;
System.Web.HttpContext.Current.Response.Clear();
@@ -654,15 +652,15 @@ namespace BLL
}
- public static void PrintApprovalForm(string ContractReviewId)
+ public static void PrintApprovalForm(string ContractReviewId)
{
var ReviewModel = BLL.PHTGL_ContractReviewService.GetPHTGL_ContractReviewById(ContractReviewId);
var getFireWork = BLL.ContractService.GetContractById(ReviewModel.ContractId);
- string projectname=ProjectService.GetProjectNameByProjectId(getFireWork.ProjectId);
+ string projectname = ProjectService.GetProjectNameByProjectId(getFireWork.ProjectId);
string rootPath = Funs.RootPath;
- string startPath = rootPath + "File\\Word\\PHTGL\\"+ getFireWork.ContractNum + "-"+projectname + "-" + getFireWork.ContractName + "-合同管理资料";
- if (!Directory.Exists(startPath))
+ string startPath = rootPath + "File\\Word\\PHTGL\\" + getFireWork.ContractNum + "-" + projectname + "-" + getFireWork.ContractName + "-合同管理资料";
+ if (!Directory.Exists(startPath))
{
Directory.CreateDirectory(startPath);
}
@@ -670,24 +668,24 @@ namespace BLL
switch (getFireWork.ConfirmWay)
{
case "1":
- PrintApprovalFormType_SetSub(ContractReviewId, startPath + "\\");
+ PrintApprovalFormType_SetSub(ContractReviewId, startPath + "\\");
break;
case "2":
- PrintApprovalFormType_SetSub(ContractReviewId, startPath + "\\");
+ PrintApprovalFormType_SetSub(ContractReviewId, startPath + "\\");
break;
case "3":
- PrintApprovalFormType_SetSub(ContractReviewId, startPath + "\\");
+ PrintApprovalFormType_SetSub(ContractReviewId, startPath + "\\");
break;
case "4":
- PrintApprovalFormType_Act(ContractReviewId, startPath + "\\");
+ PrintApprovalFormType_Act(ContractReviewId, startPath + "\\");
break;
case "5":
PrintApprovalFormType_Act(ContractReviewId, startPath + "\\");
- break;
- default :
- PrintApprovalFormType__Con(ContractReviewId, startPath + "\\");
+ break;
+ default:
+ PrintApprovalFormType__Con(ContractReviewId, startPath + "\\");
break;
}
System.IO.Compression.ZipFile.CreateFromDirectory(startPath, zipPath);
@@ -701,9 +699,9 @@ namespace BLL
System.Web.HttpContext.Current.Response.Flush();
System.Web.HttpContext.Current.Response.Close();
Funs.DeleteDir(startPath);
- File.Delete (zipPath);
+ File.Delete(zipPath);
- }
+ }
///
/// ConfirmWay 4,5
///
@@ -729,37 +727,37 @@ namespace BLL
///
/// ConfirmWay 1,2,3
///
- public static void PrintApprovalFormType_SetSub(string ContractReviewId,string path)
+ public static void PrintApprovalFormType_SetSub(string ContractReviewId, string path)
{
-
- Model.PHTGL_Contract Contract =new Model.PHTGL_Contract(); //合同信息
+
+ Model.PHTGL_Contract Contract = new Model.PHTGL_Contract(); //合同信息
Model.PHTGL_SetSubReview SetSub = new Model.PHTGL_SetSubReview(); //确认分包商信息
Model.PHTGL_BidApproveUserReview ApproveUser = new Model.PHTGL_BidApproveUserReview(); //评标小组名单信息
Model.PHTGL_BidDocumentsReview BidDoc = new Model.PHTGL_BidDocumentsReview();//招标文件信息
Model.PHTGL_ActionPlanReview ActPlan = new Model.PHTGL_ActionPlanReview();//实施计划信息
Model.PHTGL_ActionPlanFormation ActPlanFormat = new Model.PHTGL_ActionPlanFormation(); //实施计划编制信息
- var ReviewModel = BLL.PHTGL_ContractReviewService.GetPHTGL_ContractReviewById(ContractReviewId);
- Contract = BLL.ContractService.GetContractById(ReviewModel.ContractId);
- SetSub = BLL.PHTGL_SetSubReviewService.GetPHTGL_SetSubReviewBySetSubReviewCode(Contract.SetSubReviewCode);
- ApproveUser = BLL.PHTGL_BidApproveUserReviewService.GetPHTGL_BidApproveUserReviewById(SetSub.ApproveUserReviewID);
- BidDoc = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(ApproveUser.BidDocumentsReviewId);
- ActPlan = BLL.PHTGL_ActionPlanReviewService.GetPHTGL_ActionPlanReviewById(BidDoc.ActionPlanReviewId);
- ActPlanFormat = PHTGL_ActionPlanFormationService.GetPHTGL_ActionPlanFormationById(ActPlan.ActionPlanID);
+ var ReviewModel = BLL.PHTGL_ContractReviewService.GetPHTGL_ContractReviewById(ContractReviewId);
+ Contract = BLL.ContractService.GetContractById(ReviewModel.ContractId);
+ SetSub = BLL.PHTGL_SetSubReviewService.GetPHTGL_SetSubReviewBySetSubReviewCode(Contract.SetSubReviewCode);
+ ApproveUser = BLL.PHTGL_BidApproveUserReviewService.GetPHTGL_BidApproveUserReviewById(SetSub.ApproveUserReviewID);
+ BidDoc = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(ApproveUser.BidDocumentsReviewId);
+ ActPlan = BLL.PHTGL_ActionPlanReviewService.GetPHTGL_ActionPlanReviewById(BidDoc.ActionPlanReviewId);
+ ActPlanFormat = PHTGL_ActionPlanFormationService.GetPHTGL_ActionPlanFormationById(ActPlan.ActionPlanID);
- var Doc_ActPlan = PHTGL_ActionPlanFormationService.Print(ActPlan.ActionPlanID);
+ var Doc_ActPlan = PHTGL_ActionPlanFormationService.Print(ActPlan.ActionPlanID);
var Doc_BidDoc = PHTGL_BidDocumentsReviewService.Print(BidDoc.BidDocumentsReviewId);
var Doc_ApproveUser = PHTGL_BidApproveUserReviewService.Print(ApproveUser.ApproveUserReviewID);
var Doc_SetSub = PHTGL_SetSubReviewService.Print(SetSub.SetSubReviewID);
var Doc_Contract = Print(ContractReviewId);
- Doc_ActPlan.Save(path+ ActPlanFormat.ActionPlanCode+ "施工分包实施计划.pdf" , SaveFormat.Pdf);
- Doc_BidDoc.Save(path + BidDoc.BidDocumentsCode + "招标文件审批表.pdf",SaveFormat.Pdf);
- Doc_ApproveUser.Save(path+ "施工招标评标小组名单审批表.pdf", SaveFormat.Pdf);
- Doc_SetSub.Save(path+ SetSub.SetSubReviewCode+ "确定分包商审批表.pdf", SaveFormat.Pdf);
- Doc_Contract.Save(path+ Contract.ContractNum + "合同评审.pdf", SaveFormat.Pdf);
+ Doc_ActPlan.Save(path + ActPlanFormat.ActionPlanCode + "施工分包实施计划.pdf", SaveFormat.Pdf);
+ Doc_BidDoc.Save(path + BidDoc.BidDocumentsCode + "招标文件审批表.pdf", SaveFormat.Pdf);
+ Doc_ApproveUser.Save(path + "施工招标评标小组名单审批表.pdf", SaveFormat.Pdf);
+ Doc_SetSub.Save(path + SetSub.SetSubReviewCode + "确定分包商审批表.pdf", SaveFormat.Pdf);
+ Doc_Contract.Save(path + Contract.ContractNum + "合同评审.pdf", SaveFormat.Pdf);
}
- public static void PrintApprovalFormType__Con(string ContractReviewId,string path)
+ public static void PrintApprovalFormType__Con(string ContractReviewId, string path)
{
Model.PHTGL_Contract Contract = new Model.PHTGL_Contract(); //合同信息
var ReviewModel = BLL.PHTGL_ContractReviewService.GetPHTGL_ContractReviewById(ContractReviewId);
diff --git a/SGGL/BLL/PHTGL/ContractCompile/ContractService.cs b/SGGL/BLL/PHTGL/ContractCompile/ContractService.cs
index bce910e4..7dfc100b 100644
--- a/SGGL/BLL/PHTGL/ContractCompile/ContractService.cs
+++ b/SGGL/BLL/PHTGL/ContractCompile/ContractService.cs
@@ -50,15 +50,15 @@ namespace BLL
///
///
public static List GetCompletedContracts(string ProjectId)
- {
- var q= from x in Funs.DB.PHTGL_Contract
- join y in Funs.DB.PHTGL_ContractReview on x.ContractId equals y.ContractId
- where
- y.State== Const.ContractReview_Complete &&
- x.ContractAttribute==0 &&
- x.ProjectId==ProjectId
- select x;
- return q.ToList();
+ {
+ var q = from x in Funs.DB.PHTGL_Contract
+ join y in Funs.DB.PHTGL_ContractReview on x.ContractId equals y.ContractId
+ where
+ y.State == Const.ContractReview_Complete &&
+ x.ContractAttribute == 0 &&
+ x.ProjectId == ProjectId
+ select x;
+ return q.ToList();
}
public static void InitAllProjectCodeDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
{
@@ -82,7 +82,7 @@ namespace BLL
dropName.DataTextField = "ContractNum";
var CompletedContractslist = GetCompletedContracts(projectId);
dropName.DataSource = CompletedContractslist;
- dropName.DataBind();
+ dropName.DataBind();
}
///
diff --git a/SGGL/BLL/PHTGL/ContractCompile/ContractStandingBookService.cs b/SGGL/BLL/PHTGL/ContractCompile/ContractStandingBookService.cs
index 47db61d9..1b85c28c 100644
--- a/SGGL/BLL/PHTGL/ContractCompile/ContractStandingBookService.cs
+++ b/SGGL/BLL/PHTGL/ContractCompile/ContractStandingBookService.cs
@@ -11,7 +11,7 @@ namespace BLL
///
public static class ContractStandingBookService
{
-
+
#region 获取列表
///
/// 记录数
@@ -58,7 +58,7 @@ namespace BLL
(string.IsNullOrEmpty(table.Retentionmoney) || x.Retentionmoney.Contains(table.Retentionmoney)) &&
(string.IsNullOrEmpty(table.CreateDate) || x.CreateDate.Contains(table.CreateDate)) &&
(string.IsNullOrEmpty(table.Status) || x.Status.Contains(table.Status)) &&
- (table.States == null || x.States==table.States) &&
+ (table.States == null || x.States == table.States) &&
(string.IsNullOrEmpty(table.ContactUnitOfPartyA) || x.ContactUnitOfPartyA.Contains(table.ContactUnitOfPartyA)) &&
(string.IsNullOrEmpty(table.ContactPersonOfPartyA) || x.ContactPersonOfPartyA.Contains(table.ContactPersonOfPartyA)) &&
(string.IsNullOrEmpty(table.ContactPersonOfPartyB) || x.ContactPersonOfPartyB.Contains(table.ContactPersonOfPartyB)) &&
@@ -72,7 +72,7 @@ namespace BLL
(string.IsNullOrEmpty(table.SubcontractingMethod) || x.SubcontractingMethod.Contains(table.SubcontractingMethod)) &&
(string.IsNullOrEmpty(table.IsItACentralizedPurchaseSupplier) || x.IsItACentralizedPurchaseSupplier.Contains(table.IsItACentralizedPurchaseSupplier)) &&
(string.IsNullOrEmpty(table.Clause) || x.Clause.Contains(table.Clause)) &&
- (string.IsNullOrEmpty(table.MainContent) || x.MainContent.Contains(table.MainContent))
+ (string.IsNullOrEmpty(table.MainContent) || x.MainContent.Contains(table.MainContent))
select x
;
@@ -92,7 +92,7 @@ namespace BLL
{
return null;
}
- q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
+ q = q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
@@ -218,9 +218,9 @@ namespace BLL
{
ContractId = newtable.ContractId,
ProjectId = newtable.ProjectId,
- UnitId=newtable.UnitId,
- ProjectName= newtable.ProjectName,
- ProjectCode= newtable.ProjectCode,
+ UnitId = newtable.UnitId,
+ ProjectName = newtable.ProjectName,
+ ProjectCode = newtable.ProjectCode,
ContractName = newtable.ContractName,
ContractNum = newtable.ContractNum,
Parties = newtable.Parties,
@@ -286,9 +286,9 @@ namespace BLL
if (newContract != null)
{
newContract.ProjectId = contract.ProjectId;
- newContract.UnitId= contract.UnitId;
- newContract.ProjectName=contract.ProjectName;
- newContract.ProjectCode=contract.ProjectCode;
+ newContract.UnitId = contract.UnitId;
+ newContract.ProjectName = contract.ProjectName;
+ newContract.ProjectCode = contract.ProjectCode;
newContract.ContractCode = contract.ContractCode;
newContract.ContractName = contract.ContractName;
newContract.ContractNum = contract.ContractNum;
@@ -370,7 +370,7 @@ namespace BLL
public class ContractStandingBooKDtoIn
{
-
+
///
/// 合同名称
///
@@ -379,7 +379,7 @@ namespace BLL
///
/// 合同编号
///
- [ExcelColumnName("合同编号")]
+ [ExcelColumnName("合同编号")]
public string ContractNum { get; set; }
[ExcelColumnName("项目名称")]
@@ -390,7 +390,7 @@ namespace BLL
///
/// 签约方
///
- [ExcelColumnName("签约方")]
+ [ExcelColumnName("签约方")]
public string Parties { get; set; }
///
/// 币种(人民币、美元、欧元、印尼盾)
@@ -408,7 +408,7 @@ namespace BLL
///
[ExcelColumnName("合同类型")]
public string ContractType { get; set; }
-
+
///
///
///
@@ -424,7 +424,7 @@ namespace BLL
///
[ExcelColumnName("合同属性")]
public string ContractAttribute { get; set; }
-
+
///
///
///
@@ -455,13 +455,13 @@ namespace BLL
///
[ExcelColumnName("质保金")]
public string Retentionmoney { get; set; }
-
+
///
/// 合同状态
///
[ExcelColumnName("合同状态")]
public string Status { get; set; }
-
+
///
/// 甲方联系单位
///
@@ -527,7 +527,7 @@ namespace BLL
///
[ExcelColumnName("乙方是否为集采供应商/分包商")]
public string IsItACentralizedPurchaseSupplier { get; set; }
-
+
}
diff --git a/SGGL/BLL/PHTGL/ContractCompile/PHTGL_ApproveService.cs b/SGGL/BLL/PHTGL/ContractCompile/PHTGL_ApproveService.cs
index 42b34d15..b1bc1214 100644
--- a/SGGL/BLL/PHTGL/ContractCompile/PHTGL_ApproveService.cs
+++ b/SGGL/BLL/PHTGL/ContractCompile/PHTGL_ApproveService.cs
@@ -1,6 +1,4 @@
-using Model;
-using System;
-using System.Collections;
+using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
@@ -37,7 +35,7 @@ namespace BLL
return q;
}
-
+
///
///获取当前人员的所有审批信息
///
@@ -52,7 +50,7 @@ namespace BLL
}
public static Model.PHTGL_Approve GetPHTGL_ApproveByContractIdandUserId(string contractId, string UserID)
{
- var q=(from x in Funs.DB.PHTGL_Approve where x.ContractId==contractId && x.ApproveMan==UserID orderby x.ApproveDate descending select x ).FirstOrDefault();
+ var q = (from x in Funs.DB.PHTGL_Approve where x.ContractId == contractId && x.ApproveMan == UserID orderby x.ApproveDate descending select x).FirstOrDefault();
//return Funs.DB.PHTGL_Approve.FirstOrDefault(e => e.ContractId == contractId && e.ApproveMan == UserID );
return q;
}
@@ -99,8 +97,8 @@ namespace BLL
public static bool IsApprovingMan(string contractId, string approveMan)
{
bool IsExit = false;
- var q = (from x in Funs.DB.PHTGL_Approve where x.ContractId == contractId && x.ApproveMan == approveMan && x.State==0 select x).ToList();
- if (q.Count>0)
+ var q = (from x in Funs.DB.PHTGL_Approve where x.ContractId == contractId && x.ApproveMan == approveMan && x.State == 0 select x).ToList();
+ if (q.Count > 0)
{
IsExit = true;
}
@@ -172,7 +170,7 @@ namespace BLL
///
public static List GetApproves_NopushOa()
{
- var q = (from x in Funs.DB.PHTGL_Approve where x.IsPushOa == 0 && x.ApproveMan != "" && x.State==0 select x).ToList();
+ var q = (from x in Funs.DB.PHTGL_Approve where x.IsPushOa == 0 && x.ApproveMan != "" && x.State == 0 select x).ToList();
return q;
}
///
@@ -254,47 +252,47 @@ namespace BLL
public static IEnumerable GetAllApproveData(string contractId)
{
var result = (from x in Funs.DB.PHTGL_Approve
- join u in Funs.DB.Person_Persons on x.ApproveMan equals u.PersonId
- where x.IsAgree != 0 && x.ContractId == contractId
- orderby x.ApproveDate
+ join u in Funs.DB.Person_Persons on x.ApproveMan equals u.PersonId
+ where x.IsAgree != 0 && x.ContractId == contractId
+ orderby x.ApproveDate
select new
- {
- ApproveMan = u.PersonName,
- x.ApproveDate,
- IsAgree = x.IsAgree == 1 ? "不同意" : "同意",
- x.ApproveIdea,
- x.ApproveId,
- x.ApproveType,
- x.ApproveForm
- }
+ {
+ ApproveMan = u.PersonName,
+ x.ApproveDate,
+ IsAgree = x.IsAgree == 1 ? "不同意" : "同意",
+ x.ApproveIdea,
+ x.ApproveId,
+ x.ApproveType,
+ x.ApproveForm
+ }
- ).ToList();
+ ).ToList();
return result;
}
- public static IEnumerable GetAllApproveData(string contractId,string aproveForm)
+ public static IEnumerable GetAllApproveData(string contractId, string aproveForm)
{
var result = (from x in Funs.DB.PHTGL_Approve
- join u in Funs.DB.Person_Persons on x.ApproveMan equals u.PersonId
- where x.IsAgree != 0 && x.ContractId == contractId
- orderby x.ApproveDate
- select new
- {
- ApproveMan = u.PersonName,
- x.ApproveDate,
- IsAgree = x.IsAgree == 1 ? "不同意" : "同意",
- x.ApproveIdea,
- x.ApproveId,
- x.ApproveType,
- x.ApproveForm
- }
+ join u in Funs.DB.Person_Persons on x.ApproveMan equals u.PersonId
+ where x.IsAgree != 0 && x.ContractId == contractId
+ orderby x.ApproveDate
+ select new
+ {
+ ApproveMan = u.PersonName,
+ x.ApproveDate,
+ IsAgree = x.IsAgree == 1 ? "不同意" : "同意",
+ x.ApproveIdea,
+ x.ApproveId,
+ x.ApproveType,
+ x.ApproveForm
+ }
).ToList();
if (!string.IsNullOrEmpty(aproveForm))
{
result = result.Where(x => x.ApproveForm == aproveForm).ToList();
}
-
+
return result;
}
diff --git a/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackService .cs b/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackService .cs
index afbbe131..5d03bdef 100644
--- a/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackService .cs
+++ b/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackService .cs
@@ -1,17 +1,12 @@
-using System;
+using EmitMapper;
+using FineUIPro;
+using MiniExcelLibs;
+using Model;
+using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
-using System.Threading.Tasks;
-using EmitMapper;
-using EmitMapper.MappingConfiguration;
-using FineUIPro;
-using MiniExcelLibs;
-using MiniExcelLibs.Attributes;
-using MiniExcelLibs.OpenXml;
-using Model;
-using WIA;
namespace BLL
{
@@ -59,7 +54,7 @@ namespace BLL
(string.IsNullOrEmpty(table.SettledQuantity) ||
x.SettledQuantity.Contains(table.SettledQuantity)) &&
(string.IsNullOrEmpty(table.ContractId) ||
- table.ContractId.Split(',').Contains(x.ContractId))&&
+ table.ContractId.Split(',').Contains(x.ContractId)) &&
(string.IsNullOrEmpty(table.ProjectId) ||
x.ProjectId.Contains(table.ProjectId))
@@ -72,44 +67,44 @@ namespace BLL
public static PHTGL_ContractTrack GetFirstPHTGL_ContractTrackByModle(PHTGL_ContractTrack table)
{
var q = (from x in Funs.DB.PHTGL_ContractTrack
- where
- (string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
- (string.IsNullOrEmpty(table.ContractNum) || x.ContractNum.Contains(table.ContractNum)) &&
- (string.IsNullOrEmpty(table.MainItemCode) || x.MainItemCode.Contains(table.MainItemCode)) &&
- (string.IsNullOrEmpty(table.MainItemName) || x.MainItemName.Contains(table.MainItemName)) &&
- (string.IsNullOrEmpty(table.MajorName) || x.MajorName.Contains(table.MajorName)) &&
- (string.IsNullOrEmpty(table.MajorCode) || x.MajorCode.Contains(table.MajorCode)) &&
- (string.IsNullOrEmpty(table.SubProject) || x.SubProject.Contains(table.SubProject)) &&
- (string.IsNullOrEmpty(table.SubItemProject) ||
- x.SubItemProject.Contains(table.SubItemProject)) &&
- (string.IsNullOrEmpty(table.ProjectCode) || x.ProjectCode.Contains(table.ProjectCode)) &&
- (string.IsNullOrEmpty(table.ProjectName) || x.ProjectName.Contains(table.ProjectName)) &&
- (string.IsNullOrEmpty(table.ProjectDescription) ||
- x.ProjectDescription.Contains(table.ProjectDescription)) &&
- (string.IsNullOrEmpty(table.UnitOfMeasurement) ||
- x.UnitOfMeasurement.Contains(table.UnitOfMeasurement)) &&
- (string.IsNullOrEmpty(table.Quantity) || x.Quantity.Contains(table.Quantity)) &&
- (string.IsNullOrEmpty(table.CalculationRule) ||
- x.CalculationRule.Contains(table.CalculationRule)) &&
- (string.IsNullOrEmpty(table.WorkContent) || x.WorkContent.Contains(table.WorkContent)) &&
- (string.IsNullOrEmpty(table.Remarks) || x.Remarks.Contains(table.Remarks)) &&
- (string.IsNullOrEmpty(table.ConstructionSubcontractor) ||
- x.ConstructionSubcontractor.Contains(table.ConstructionSubcontractor)) &&
- (string.IsNullOrEmpty(table.ContractWeight) ||
- x.ContractWeight.Contains(table.ContractWeight)) &&
- (string.IsNullOrEmpty(table.MaterialSupplier) ||
- x.MaterialSupplier.Contains(table.MaterialSupplier)) &&
- (string.IsNullOrEmpty(table.EstimatedQuantity) ||
- x.EstimatedQuantity.Contains(table.EstimatedQuantity)) &&
- (string.IsNullOrEmpty(table.SettledQuantity) ||
- x.SettledQuantity.Contains(table.SettledQuantity)) &&
- (string.IsNullOrEmpty(table.ContractId) ||
- table.ContractId.Split(',').Contains(x.ContractId)) &&
- (string.IsNullOrEmpty(table.ProjectId) ||
- x.ProjectId.Contains(table.ProjectId))
+ where
+ (string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
+ (string.IsNullOrEmpty(table.ContractNum) || x.ContractNum.Contains(table.ContractNum)) &&
+ (string.IsNullOrEmpty(table.MainItemCode) || x.MainItemCode.Contains(table.MainItemCode)) &&
+ (string.IsNullOrEmpty(table.MainItemName) || x.MainItemName.Contains(table.MainItemName)) &&
+ (string.IsNullOrEmpty(table.MajorName) || x.MajorName.Contains(table.MajorName)) &&
+ (string.IsNullOrEmpty(table.MajorCode) || x.MajorCode.Contains(table.MajorCode)) &&
+ (string.IsNullOrEmpty(table.SubProject) || x.SubProject.Contains(table.SubProject)) &&
+ (string.IsNullOrEmpty(table.SubItemProject) ||
+ x.SubItemProject.Contains(table.SubItemProject)) &&
+ (string.IsNullOrEmpty(table.ProjectCode) || x.ProjectCode.Contains(table.ProjectCode)) &&
+ (string.IsNullOrEmpty(table.ProjectName) || x.ProjectName.Contains(table.ProjectName)) &&
+ (string.IsNullOrEmpty(table.ProjectDescription) ||
+ x.ProjectDescription.Contains(table.ProjectDescription)) &&
+ (string.IsNullOrEmpty(table.UnitOfMeasurement) ||
+ x.UnitOfMeasurement.Contains(table.UnitOfMeasurement)) &&
+ (string.IsNullOrEmpty(table.Quantity) || x.Quantity.Contains(table.Quantity)) &&
+ (string.IsNullOrEmpty(table.CalculationRule) ||
+ x.CalculationRule.Contains(table.CalculationRule)) &&
+ (string.IsNullOrEmpty(table.WorkContent) || x.WorkContent.Contains(table.WorkContent)) &&
+ (string.IsNullOrEmpty(table.Remarks) || x.Remarks.Contains(table.Remarks)) &&
+ (string.IsNullOrEmpty(table.ConstructionSubcontractor) ||
+ x.ConstructionSubcontractor.Contains(table.ConstructionSubcontractor)) &&
+ (string.IsNullOrEmpty(table.ContractWeight) ||
+ x.ContractWeight.Contains(table.ContractWeight)) &&
+ (string.IsNullOrEmpty(table.MaterialSupplier) ||
+ x.MaterialSupplier.Contains(table.MaterialSupplier)) &&
+ (string.IsNullOrEmpty(table.EstimatedQuantity) ||
+ x.EstimatedQuantity.Contains(table.EstimatedQuantity)) &&
+ (string.IsNullOrEmpty(table.SettledQuantity) ||
+ x.SettledQuantity.Contains(table.SettledQuantity)) &&
+ (string.IsNullOrEmpty(table.ContractId) ||
+ table.ContractId.Split(',').Contains(x.ContractId)) &&
+ (string.IsNullOrEmpty(table.ProjectId) ||
+ x.ProjectId.Contains(table.ProjectId))
- select x).FirstOrDefault()
- ;
+ select x).FirstOrDefault()
+ ;
return q;
}
@@ -264,11 +259,11 @@ namespace BLL
var table = Funs.DB.PHTGL_ContractTrack.FirstOrDefault(x => x.Id == id);
if (table != null)
{
-
+
table.EstimatedQuantity = string.Empty;
table.EstimatedAmount = 0m;
table.SettledQuantity = string.Empty;
- table.SettledAmount = 0m;
+ table.SettledAmount = 0m;
Funs.DB.SubmitChanges();
}
}
@@ -350,7 +345,7 @@ namespace BLL
Funs.GetNewDecimalOrZero(model.SettledQuantity);
}
- return result;
+ return result;
}
///
@@ -364,7 +359,7 @@ namespace BLL
var model = GetPHTGL_ContractTrackById(id.ToString());
if (model != null)
{
- result =(model.EstimatedAmount??0 )- ( model.SettledAmount??0);
+ result = (model.EstimatedAmount ?? 0) - (model.SettledAmount ?? 0);
}
return result;
@@ -373,19 +368,19 @@ namespace BLL
{
var responeData = new ResponeData();
List rows;
- List thisContractTracks =new List();
-
+ List thisContractTracks = new List();
+
var sheetNames = MiniExcel.GetSheetNames(path);
foreach (var sheet in sheetNames) ////多sheet导入
{
try
{
- rows = MiniExcel.Query(path, sheetName: sheet,startCell:"A2").ToList();
+ rows = MiniExcel.Query(path, sheetName: sheet, startCell: "A2").ToList();
}
catch (Exception ex)
{
responeData.code = 0;
- responeData.message = sheet+"模板错误:" + ex.ToString();
+ responeData.message = sheet + "模板错误:" + ex.ToString();
return responeData;
}
var mapper =
@@ -396,7 +391,7 @@ namespace BLL
if (modeList.Count == 0)
{
responeData.code = 0;
- responeData.message = sheet+ "没有数据";
+ responeData.message = sheet + "没有数据";
return responeData;
}
foreach (var item in modeList)
@@ -418,8 +413,8 @@ namespace BLL
item.ProjectCode = item.MainItemCode + "-" + item.ProjectCode;
}
-
- if (resultModel!=null)
+
+ if (resultModel != null)
{
item.Id = resultModel.Id;
UpdatePHTGL_ContractTrack(item);
@@ -435,9 +430,9 @@ namespace BLL
}
AddBulkPHTGL_ContractTrack(goingAddList);
- PhtglContracttrackprogressService.CreateTemplateByContractList(goingAddList,projectid);
+ PhtglContracttrackprogressService.CreateTemplateByContractList(goingAddList, projectid);
}
-
+
return responeData;
}
diff --git a/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackmatchwbsService.cs b/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackmatchwbsService.cs
index 7cc62f20..2ad592b0 100644
--- a/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackmatchwbsService.cs
+++ b/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackmatchwbsService.cs
@@ -1,9 +1,7 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -29,7 +27,7 @@ namespace BLL
where
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
(string.IsNullOrEmpty(table.ContractTrackId) || x.ContractTrackId.Contains(table.ContractTrackId)) &&
- (string.IsNullOrEmpty(table.ControlItemAndCycleId) || x.ControlItemAndCycleId.Contains(table.ControlItemAndCycleId))
+ (string.IsNullOrEmpty(table.ControlItemAndCycleId) || x.ControlItemAndCycleId.Contains(table.ControlItemAndCycleId))
select x
;
diff --git a/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackprogressService.cs b/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackprogressService.cs
index 53139c81..0e4f423b 100644
--- a/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackprogressService.cs
+++ b/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackprogressService.cs
@@ -1,12 +1,11 @@
-using System;
+using FineUIPro;
+using Model;
+using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
-using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
-using FineUIPro;
-using Model;
namespace BLL
{
@@ -19,24 +18,9 @@ namespace BLL
///
public static int Count { get; set; }
- public static IQueryable GetPHTGL_ContractTrackProgressByModle( PHTGL_ContractTrackProgress table)
+ public static IQueryable GetPHTGL_ContractTrackProgressByModle(PHTGL_ContractTrackProgress table)
{
var q = from x in Funs.DB.PHTGL_ContractTrackProgress
- where
- (string.IsNullOrEmpty(table.ContractTrackProgressId) ||
- x.ContractTrackProgressId.Contains(table.ContractTrackProgressId)) &&
- (string.IsNullOrEmpty(table.ContractTrackId) ||
- x.ContractTrackId.Contains(table.ContractTrackId)) &&
- (string.IsNullOrEmpty(table.Date) ||
- x.Date.Contains(table.Date))
- orderby x.Date
- select x
- ;
- return q;
- }
- public static PHTGL_ContractTrackProgress GetFirstOrDefaultByModle(PHTGL_ContractTrackProgress table)
- {
- var q = (from x in Funs.DB.PHTGL_ContractTrackProgress
where
(string.IsNullOrEmpty(table.ContractTrackProgressId) ||
x.ContractTrackProgressId.Contains(table.ContractTrackProgressId)) &&
@@ -45,7 +29,22 @@ namespace BLL
(string.IsNullOrEmpty(table.Date) ||
x.Date.Contains(table.Date))
orderby x.Date
- select x).FirstOrDefault()
+ select x
+ ;
+ return q;
+ }
+ public static PHTGL_ContractTrackProgress GetFirstOrDefaultByModle(PHTGL_ContractTrackProgress table)
+ {
+ var q = (from x in Funs.DB.PHTGL_ContractTrackProgress
+ where
+ (string.IsNullOrEmpty(table.ContractTrackProgressId) ||
+ x.ContractTrackProgressId.Contains(table.ContractTrackProgressId)) &&
+ (string.IsNullOrEmpty(table.ContractTrackId) ||
+ x.ContractTrackId.Contains(table.ContractTrackId)) &&
+ (string.IsNullOrEmpty(table.Date) ||
+ x.Date.Contains(table.Date))
+ orderby x.Date
+ select x).FirstOrDefault()
;
return q;
}
@@ -63,18 +62,18 @@ namespace BLL
q = q.Skip(grid1.PageSize * grid1.PageIndex).Take(grid1.PageSize);
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
- select new
- {
- x.ContractTrackProgressId,
- x.ContractTrackId,
- x.BCWS_Quantity,
- x.BCWS_OutputValue,
- x.BCWS_Percentage,
- x.ACWP_Quantity,
- x.ACWP_OutputValue,
- x.ACWP_Percentage,
- x.Date
- };
+ select new
+ {
+ x.ContractTrackProgressId,
+ x.ContractTrackId,
+ x.BCWS_Quantity,
+ x.BCWS_OutputValue,
+ x.BCWS_Percentage,
+ x.ACWP_Quantity,
+ x.ACWP_OutputValue,
+ x.ACWP_Percentage,
+ x.Date
+ };
}
#endregion
@@ -84,10 +83,10 @@ namespace BLL
return Funs.DB.PHTGL_ContractTrackProgress.FirstOrDefault(x =>
x.ContractTrackProgressId == ContractTrackProgressId);
}
- public static PHTGL_ContractTrackProgress GetPHTGL_ContractTrackProgressByTrackIdAndDate(string ContractTrackId,string date)
+ public static PHTGL_ContractTrackProgress GetPHTGL_ContractTrackProgressByTrackIdAndDate(string ContractTrackId, string date)
{
return Funs.DB.PHTGL_ContractTrackProgress.FirstOrDefault(x =>
- x.ContractTrackId == ContractTrackId && x.Date==date);
+ x.ContractTrackId == ContractTrackId && x.Date == date);
}
///
/// 根据合同价格信息主键创建进度日期数据
@@ -97,7 +96,7 @@ namespace BLL
{
var model = PhtglContractTrackService.GetPHTGL_ContractTrackById(ContractTrackId);
if (model == null) return;
- var contractNum=model.ContractNum;
+ var contractNum = model.ContractNum;
var contractmode = ContractService.GetContractByContractNum(contractNum);
if (contractmode.ContractStartDate != null && contractmode.ContractEndDate != null)
{
@@ -110,7 +109,7 @@ namespace BLL
var querymodel = new Model.PHTGL_ContractTrackProgress
{
ContractTrackId = ContractTrackId,
- Date= month.ToString("yyyy-MM")
+ Date = month.ToString("yyyy-MM")
};
if (!GetPHTGL_ContractTrackProgressByModle(querymodel).Any())
@@ -130,22 +129,23 @@ namespace BLL
///
///
///
- public static void CreateTemplateByContractList(List contractTrackList,string projectid)
+ public static void CreateTemplateByContractList(List contractTrackList, string projectid)
{
- var dbcontractTrack=(from x in Funs.DB.PHTGL_ContractTrack where x.ProjectId==projectid select x).ToList();
- var dbContractTrackProgress=(from x in Funs.DB.PHTGL_ContractTrackProgress
- join y in Funs.DB.PHTGL_ContractTrack on x.ContractTrackId equals y.Id
- where y.ProjectId==projectid select x).ToList();
+ var dbcontractTrack = (from x in Funs.DB.PHTGL_ContractTrack where x.ProjectId == projectid select x).ToList();
+ var dbContractTrackProgress = (from x in Funs.DB.PHTGL_ContractTrackProgress
+ join y in Funs.DB.PHTGL_ContractTrack on x.ContractTrackId equals y.Id
+ where y.ProjectId == projectid
+ select x).ToList();
- List> splitLists = new List>();
- if (contractTrackList.Count>10)
+ List> splitLists = new List>();
+ if (contractTrackList.Count > 10)
{
splitLists = Funs.SplitList(contractTrackList, 10);
}
else
{
splitLists = Funs.SplitList(contractTrackList, 1);
- }
+ }
ConcurrentBag contractTrackProgressList = new ConcurrentBag();//用于批量新增的数据(无序集合)
ParallelOptions parallelOptions = new ParallelOptions();
@@ -154,10 +154,10 @@ namespace BLL
///使用多线程开启并行任务,操作拆分后的list 同时进行数据处理
Parallel.ForEach(splitLists, parallelOptions, sublist =>
{
-
- foreach (var item in sublist)
+
+ foreach (var item in sublist)
{
- var model =( from x in dbcontractTrack where x.Id==item.Id select x).FirstOrDefault() ;
+ var model = (from x in dbcontractTrack where x.Id == item.Id select x).FirstOrDefault();
if (model == null) return;
var contractNum = model.ContractNum;
var contractmode = ContractService.GetContractByContractNum(contractNum);
@@ -175,13 +175,13 @@ namespace BLL
Date = month.ToString("yyyy-MM")
};
var q = (from x in dbContractTrackProgress
- where
- (string.IsNullOrEmpty(querymodel.ContractTrackId) ||
- x.ContractTrackId.Contains(querymodel.ContractTrackId)) &&
- (string.IsNullOrEmpty(querymodel.Date) ||
- x.Date.Contains(querymodel.Date))
- orderby x.Date
- select x).ToList()
+ where
+ (string.IsNullOrEmpty(querymodel.ContractTrackId) ||
+ x.ContractTrackId.Contains(querymodel.ContractTrackId)) &&
+ (string.IsNullOrEmpty(querymodel.Date) ||
+ x.Date.Contains(querymodel.Date))
+ orderby x.Date
+ select x).ToList()
;
if (!q.Any())
{
@@ -190,14 +190,14 @@ namespace BLL
newmodel.ContractTrackId = item.Id;
newmodel.Date = month.ToString("yyyy-MM");
contractTrackProgressList.Add(newmodel);
- // AddPHTGL_ContractTrackProgress(newmodel);
+ // AddPHTGL_ContractTrackProgress(newmodel);
}
}
}
} // 处理完成后,可以将结果保存到集合或其他地方
});
-
+
AddBulkPHTGL_ContractTrackProgress(contractTrackProgressList.ToList());
}
@@ -242,7 +242,7 @@ namespace BLL
}
public static void UpdatePHTGL_ContractTrackProgress(PHTGL_ContractTrackProgress newtable)
- {
+ {
var table = Funs.DB.PHTGL_ContractTrackProgress.FirstOrDefault(x =>
x.ContractTrackProgressId == newtable.ContractTrackProgressId);
if (table != null)
@@ -255,7 +255,7 @@ namespace BLL
table.ACWP_Quantity = newtable.ACWP_Quantity;
table.ACWP_OutputValue = newtable.ACWP_OutputValue;
table.ACWP_Percentage = newtable.ACWP_Percentage;
- table.Date =newtable.Date;
+ table.Date = newtable.Date;
Funs.DB.SubmitChanges();
}
}
@@ -266,19 +266,19 @@ namespace BLL
public static void CheckProgressByContractTrackId(string contractTrackId)
{
var modeContractTrack = PhtglContractTrackService.GetPHTGL_ContractTrackById(contractTrackId);
- if (modeContractTrack!=null)
+ if (modeContractTrack != null)
{
var totalCostFixedComprehensiveUnitPrice = modeContractTrack.TotalCostFixedComprehensiveUnitPrice; //全费用综合单价
- var settledAmount = modeContractTrack.SettledAmount??0;//预算金额
- var contractWeight= Funs.GetNewDecimalOrZero(modeContractTrack.ContractWeight)==0?0: Funs.GetNewDecimalOrZero(modeContractTrack.ContractWeight)/100;//合同权重
+ var settledAmount = modeContractTrack.SettledAmount ?? 0;//预算金额
+ var contractWeight = Funs.GetNewDecimalOrZero(modeContractTrack.ContractWeight) == 0 ? 0 : Funs.GetNewDecimalOrZero(modeContractTrack.ContractWeight) / 100;//合同权重
var quserytable = new Model.PHTGL_ContractTrackProgress();
quserytable.ContractTrackId = contractTrackId;
- var list= GetPHTGL_ContractTrackProgressByModle(quserytable);
+ var list = GetPHTGL_ContractTrackProgressByModle(quserytable);
foreach (var item in list)
{
//产值=计划工程量*全费用综合单价(来源于“费用对比统计”),
// 百分比 =(产值 / 预算金额)*合同权重
- item.ACWP_OutputValue = (item.ACWP_Quantity??0)* totalCostFixedComprehensiveUnitPrice;
+ item.ACWP_OutputValue = (item.ACWP_Quantity ?? 0) * totalCostFixedComprehensiveUnitPrice;
if (settledAmount == 0)
{
item.ACWP_Percentage = 0;
@@ -295,7 +295,7 @@ namespace BLL
}
else
{
- item.BCWS_Percentage = Math.Round(((item.BCWS_OutputValue ?? 0) / settledAmount) * contractWeight * 100, 2) ;
+ item.BCWS_Percentage = Math.Round(((item.BCWS_OutputValue ?? 0) / settledAmount) * contractWeight * 100, 2);
}
UpdatePHTGL_ContractTrackProgress(item);
}
@@ -307,13 +307,13 @@ namespace BLL
///
///
public static PHTGL_ContractTrackProgress GetSumProgress(string contractTrackProgressId)
- {
- var result=new PHTGL_ContractTrackProgress();
+ {
+ var result = new PHTGL_ContractTrackProgress();
var model = GetPHTGL_ContractTrackProgressById(contractTrackProgressId);
var q = (from x in Funs.DB.PHTGL_ContractTrackProgress
- where x.ContractTrackId == model.ContractTrackId && string.Compare(x.Date,model.Date)<=0
- select x).ToList();
- result.ACWP_Quantity = q.Sum(x => x.ACWP_Quantity ??0);
+ where x.ContractTrackId == model.ContractTrackId && string.Compare(x.Date, model.Date) <= 0
+ select x).ToList();
+ result.ACWP_Quantity = q.Sum(x => x.ACWP_Quantity ?? 0);
result.ACWP_OutputValue = q.Sum(x => x.ACWP_OutputValue ?? 0);
result.ACWP_Percentage = q.Sum(x => x.ACWP_Percentage ?? 0);
diff --git a/SGGL/BLL/PHTGL/InvoiceManage/PhtglInvoiceService .cs b/SGGL/BLL/PHTGL/InvoiceManage/PhtglInvoiceService .cs
index 4a49c8f7..d37f01cb 100644
--- a/SGGL/BLL/PHTGL/InvoiceManage/PhtglInvoiceService .cs
+++ b/SGGL/BLL/PHTGL/InvoiceManage/PhtglInvoiceService .cs
@@ -1,20 +1,11 @@
using EmitMapper;
using FineUIPro;
using MiniExcelLibs;
-using MiniExcelLibs.Attributes;
using Model;
-using NPOI.SS.Formula.Eval;
-using NPOI.SS.Formula.Functions;
-using Org.BouncyCastle.Security;
using System;
using System.Collections;
using System.Collections.Generic;
-using System.Diagnostics.Contracts;
using System.Linq;
-using System.Runtime.CompilerServices;
-using System.Security.Cryptography;
-using System.Text;
-using WIA;
namespace BLL
@@ -58,9 +49,9 @@ namespace BLL
public static string GetState(object invoiceId)
{
string result = "";
- if (invoiceId!=null && !string.IsNullOrEmpty(invoiceId.ToString()) )
+ if (invoiceId != null && !string.IsNullOrEmpty(invoiceId.ToString()))
{
- var InvoiceId=invoiceId.ToString();
+ var InvoiceId = invoiceId.ToString();
var model = GetPHTGL_InvoiceById(InvoiceId);
var approveModel = PHTGL_ApproveService.GetPHTGL_ApproveByContractId(InvoiceId);
@@ -74,7 +65,7 @@ namespace BLL
result = "已创建入库订单";
break;
case 1:
- result = "入库审核中"+",当前节点-"+BLL.Person_PersonsService.getPersonsNamesPersonIds(string.Join(",",approveModel.Select(x => x.ApproveMan)));
+ result = "入库审核中" + ",当前节点-" + BLL.Person_PersonsService.getPersonsNamesPersonIds(string.Join(",", approveModel.Select(x => x.ApproveMan)));
break;
case 2:
result = "入库审核拒绝";
@@ -121,13 +112,13 @@ namespace BLL
(string.IsNullOrEmpty(table.SellerTaxNumber) || x.SellerTaxNumber.Contains(table.SellerTaxNumber)) &&
(string.IsNullOrEmpty(table.ApproveManJson) || x.ApproveManJson.Contains(table.ApproveManJson)) &&
(string.IsNullOrEmpty(table.CreateUser) || x.CreateUser.Contains(table.CreateUser)) &&
- (table.State==null ||x.State==table.State)
+ (table.State == null || x.State == table.State)
select x
;
return q.ToList();
}
-
+
///
/// 获取分页列表
///
@@ -144,60 +135,61 @@ namespace BLL
}
q = q.Skip(grid1.PageSize * grid1.PageIndex).Take(grid1.PageSize).ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
- return (from x in q
- join y in Funs.DB.PHTGL_Contract on x.ContractId equals y.ContractId into g
- from c in g.DefaultIfEmpty()
- select new
- {
- c?.ContractName,
- c?.ContractNum,
- c?.Parties,
- c?.ContractAmount,
- x.InvoiceId,
- x.ProjectId,
- x.ContractId,
- x.State,
- x.InvoiceCode,
- x.InvoiceNumber,
- x.SellerName,
- x.InvoiceDate,
- x.AmountExcludingTax,
- x.TotalTax,
- x.Remark,
- x.ImagePath,
- x.SellerTaxNumber,
- x.InvoiceAmount,
- x.ApproveManJson,
- x.CreateDate,
- x.CreateUser,
- x.OrderInDate,
- x.OrderOutDate,
- x.OrderCode,
- x.MaterialRequisitionUnit
- });
+ return (from x in q
+ join y in Funs.DB.PHTGL_Contract on x.ContractId equals y.ContractId into g
+ from c in g.DefaultIfEmpty()
+ select new
+ {
+ c?.ContractName,
+ c?.ContractNum,
+ c?.Parties,
+ c?.ContractAmount,
+ x.InvoiceId,
+ x.ProjectId,
+ x.ContractId,
+ x.State,
+ x.InvoiceCode,
+ x.InvoiceNumber,
+ x.SellerName,
+ x.InvoiceDate,
+ x.AmountExcludingTax,
+ x.TotalTax,
+ x.Remark,
+ x.ImagePath,
+ x.SellerTaxNumber,
+ x.InvoiceAmount,
+ x.ApproveManJson,
+ x.CreateDate,
+ x.CreateUser,
+ x.OrderInDate,
+ x.OrderOutDate,
+ x.OrderCode,
+ x.MaterialRequisitionUnit
+ });
}
-
- public static IEnumerable GetOrderInListData(Model.PHTGL_Invoice table, Grid grid1,string state)
+
+ public static IEnumerable GetOrderInListData(Model.PHTGL_Invoice table, Grid grid1, string state)
{
var q = GetPHTGL_InvoiceByModle(table);
-
+
switch (state)
{
- case "0": q = q.Where(x => x.State > StateDataIn); //全部
+ case "0":
+ q = q.Where(x => x.State > StateDataIn); //全部
break;
- case "1":
- q = q.Where(x => x.State > StateDataIn &&x.State< StateInPutApproveSuccess); //未入库
- break;
- case "2":
- q = q.Where(x => x.State >= StateInPutApproveSuccess ); //已入库
- break;
- case "3":
- q = q.Where(x => x.State >=StateInPutApproveSuccess && x.State < StateOutPutApproveSuccess);//未出库
- break;
- case "4":
+ case "1":
+ q = q.Where(x => x.State > StateDataIn && x.State < StateInPutApproveSuccess); //未入库
+ break;
+ case "2":
+ q = q.Where(x => x.State >= StateInPutApproveSuccess); //已入库
+ break;
+ case "3":
+ q = q.Where(x => x.State >= StateInPutApproveSuccess && x.State < StateOutPutApproveSuccess);//未出库
+ break;
+ case "4":
q = q.Where(x => x.State == StateOutPutApproveSuccess);//已出库
- break;
+ break;
}
Count = q.Count();
@@ -208,37 +200,37 @@ namespace BLL
q = q.Skip(grid1.PageSize * grid1.PageIndex).Take(grid1.PageSize).ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return (from x in q
- join y in Funs.DB.PHTGL_Contract on x.ContractId equals y.ContractId into g
- from c in g.DefaultIfEmpty()
- where x.State>StateDataIn
- select new
- {
- c?.ContractName,
- c?.ContractNum,
- c?.Parties,
- c?.ContractAmount,
- x.InvoiceId,
- x.ProjectId,
- x.ContractId,
- x.State,
- x.InvoiceCode,
- x.InvoiceNumber,
- x.SellerName,
- x.InvoiceDate,
- x.AmountExcludingTax,
- x.TotalTax,
- x.Remark,
- x.ImagePath,
- x.SellerTaxNumber,
- x.InvoiceAmount,
- x.ApproveManJson,
- x.CreateDate,
- x.CreateUser,
- x.OrderInDate,
- x.OrderOutDate,
- x.OrderCode,
- x.MaterialRequisitionUnit
- }).ToList();
+ join y in Funs.DB.PHTGL_Contract on x.ContractId equals y.ContractId into g
+ from c in g.DefaultIfEmpty()
+ where x.State > StateDataIn
+ select new
+ {
+ c?.ContractName,
+ c?.ContractNum,
+ c?.Parties,
+ c?.ContractAmount,
+ x.InvoiceId,
+ x.ProjectId,
+ x.ContractId,
+ x.State,
+ x.InvoiceCode,
+ x.InvoiceNumber,
+ x.SellerName,
+ x.InvoiceDate,
+ x.AmountExcludingTax,
+ x.TotalTax,
+ x.Remark,
+ x.ImagePath,
+ x.SellerTaxNumber,
+ x.InvoiceAmount,
+ x.ApproveManJson,
+ x.CreateDate,
+ x.CreateUser,
+ x.OrderInDate,
+ x.OrderOutDate,
+ x.OrderCode,
+ x.MaterialRequisitionUnit
+ }).ToList();
}
#endregion
@@ -256,17 +248,17 @@ namespace BLL
OrderApproveOut orderApproveOut = new OrderApproveOut();
var invoiceModel = GetPHTGL_InvoiceById(InvoiceId);
- var invoiceDetail = PhtglInvoicedetailService.GetPHTGL_InvoiceDetailByInvoiceId(InvoiceId);
+ var invoiceDetail = PhtglInvoicedetailService.GetPHTGL_InvoiceDetailByInvoiceId(InvoiceId);
var approveManModels = GetInvoiceApproveManEntity(InvoiceId);
//将invoiceModel 映射到order
var mapper = EmitMapper.ObjectMapperManager.DefaultInstance.GetMapper();
- order=mapper.Map(invoiceModel);
- order.ProjectName=ProjectService.GetProjectNameByProjectId(invoiceModel.ProjectId);
- order.ContractCode=ContractService.GetContractById(invoiceModel.ContractId)?.ContractNum;
+ order = mapper.Map(invoiceModel);
+ order.ProjectName = ProjectService.GetProjectNameByProjectId(invoiceModel.ProjectId);
+ order.ContractCode = ContractService.GetContractById(invoiceModel.ContractId)?.ContractNum;
//invoiceDetail 映射到orderDetails
var mapper2 = EmitMapper.ObjectMapperManager.DefaultInstance.GetMapper, List>();
orderDetails = mapper2.Map(invoiceDetail);
- orderDetails= orderDetails.Select(x => new OrderDetail
+ orderDetails = orderDetails.Select(x => new OrderDetail
{
GoodsOrServicesName = x.GoodsOrServicesName,
SpecificationModel = x.SpecificationModel,
@@ -274,11 +266,11 @@ namespace BLL
Quantity = x.Quantity,
UnitPrice = x.UnitPrice,
NoTaxPrice = x.Amount - x.Tax,
- TaxRate = string.Format("{0:P0}", Convert.ToDecimal(x.TaxRate) ),
- Tax =x.Tax ,
+ TaxRate = string.Format("{0:P0}", Convert.ToDecimal(x.TaxRate)),
+ Tax = x.Tax,
Amount = x.Amount,
}).ToList();
- if (approveManModels!=null)
+ if (approveManModels != null)
{
orderApproveIn.ProjectManager = !string.IsNullOrEmpty(approveManModels.InputApproveMan.ProjectManager) ? BLL.Person_PersonsService.getSignatureUrl(approveManModels.InputApproveMan.ProjectManager) : "";
orderApproveIn.ControlManager = !string.IsNullOrEmpty(approveManModels.InputApproveMan.ControlManager) ? BLL.Person_PersonsService.getSignatureUrl(approveManModels.InputApproveMan.ControlManager) : "";
@@ -395,10 +387,10 @@ namespace BLL
{
Model.PHTGL_InvoiceApproveManEntity list = new Model.PHTGL_InvoiceApproveManEntity();
Model.PHTGL_Invoice data = Funs.DB.PHTGL_Invoice.FirstOrDefault(e => e.InvoiceId == InvoiceId);
- if (data != null && !string .IsNullOrEmpty(data.ApproveManJson))
+ if (data != null && !string.IsNullOrEmpty(data.ApproveManJson))
{
list = Newtonsoft.Json.JsonConvert.DeserializeObject(data.ApproveManJson);
- }
+ }
return list;
}
///
@@ -527,33 +519,35 @@ namespace BLL
return responeData;
}
-
+
///
/// 获取审批人员
///
/// 主键id
/// 0 入库 1出库
///
- public static List GetApproveManModels(string invoiceId ,int type)
+ public static List GetApproveManModels(string invoiceId, int type)
{
List approveManModels = new List();
var table = GetInvoiceApproveManEntity(invoiceId);
- if (type==0) //入库
+ if (type == 0) //入库
{
approveManModels.Add(new ApproveManModel { Number = 1, userid = table.InputApproveMan.ProfessionalEngineer, Rolename = "专业工程师" });
approveManModels.Add(new ApproveManModel { Number = 2, userid = table.InputApproveMan.ConstructionManager, Rolename = "施工经理" });
approveManModels.Add(new ApproveManModel { Number = 3, userid = table.InputApproveMan.ControlManager, Rolename = "控制经理" });
- approveManModels.Add(new ApproveManModel { Number = 4, userid = table.InputApproveMan.ProjectManager, Rolename = "项目经理" }); }
- else {
- approveManModels.Add(new ApproveManModel { Number = 5, userid = table.OutputApproveMan.PurchasingMan, Rolename = "采购员" });
- approveManModels.Add(new ApproveManModel { Number = 6, userid = table.OutputApproveMan.ControlManager, Rolename = "控制经理" });
- approveManModels.Add(new ApproveManModel { Number = 7, userid = table.OutputApproveMan.ProjectManager, Rolename = "项目经理" });
- approveManModels.Add(new ApproveManModel { Number = 8, userid = table.OutputApproveMan.ConUnitMaterialOfficer, Rolename = "施工单位材料经理" });
- approveManModels.Add(new ApproveManModel { Number = 9, userid = table.OutputApproveMan.ConUnitProjectManager, Rolename = "施工单位项目经理" });
+ approveManModels.Add(new ApproveManModel { Number = 4, userid = table.InputApproveMan.ProjectManager, Rolename = "项目经理" });
}
-
-
+ else
+ {
+ approveManModels.Add(new ApproveManModel { Number = 5, userid = table.OutputApproveMan.PurchasingMan, Rolename = "采购员" });
+ approveManModels.Add(new ApproveManModel { Number = 6, userid = table.OutputApproveMan.ControlManager, Rolename = "控制经理" });
+ approveManModels.Add(new ApproveManModel { Number = 7, userid = table.OutputApproveMan.ProjectManager, Rolename = "项目经理" });
+ approveManModels.Add(new ApproveManModel { Number = 8, userid = table.OutputApproveMan.ConUnitMaterialOfficer, Rolename = "施工单位材料经理" });
+ approveManModels.Add(new ApproveManModel { Number = 9, userid = table.OutputApproveMan.ConUnitProjectManager, Rolename = "施工单位项目经理" });
+ }
+
+
return approveManModels;
}
@@ -561,22 +555,22 @@ namespace BLL
/// 开启审批流程
///
///
- public static void StartApprovalProcess(string invoiceId )
+ public static void StartApprovalProcess(string invoiceId)
{
-
+
var model = GetPHTGL_InvoiceById(invoiceId);
- if (model.State ==StateCreate || model.State == StateInPutApproveRefuse)
- {
+ if (model.State == StateCreate || model.State == StateInPutApproveRefuse)
+ {
CreateFirstApprove(invoiceId, 0);
model.State = StateInPutApprove;
UpdatePHTGL_Invoice(model);
- }
+ }
else if (model.State == StateInPutApproveSuccess || model.State == StateOutPutApproveRefuse)
{
CreateFirstApprove(invoiceId, 1);
model.State = StateOutPutApprove;
UpdatePHTGL_Invoice(model);
- }
+ }
}
///
@@ -585,8 +579,8 @@ namespace BLL
/// 主键
/// 0 入库 1出库
public static void CreateFirstApprove(string invoiceId, int type)
- {
- var approveManModels = GetApproveManModels(invoiceId, type).OrderBy(x=>x.Number).FirstOrDefault();
+ {
+ var approveManModels = GetApproveManModels(invoiceId, type).OrderBy(x => x.Number).FirstOrDefault();
Model.PHTGL_Approve _Approve = new Model.PHTGL_Approve();
_Approve.ApproveId = SQLHelper.GetNewID(typeof(Model.PHTGL_Approve));
_Approve.ContractId = invoiceId;
@@ -597,7 +591,7 @@ namespace BLL
_Approve.ApproveIdea = "";
_Approve.IsPushOa = 0;
_Approve.ApproveType = approveManModels.Rolename;
- _Approve.ApproveForm =(type==0? "Invoice_Input": "Invoice_Output");
+ _Approve.ApproveForm = (type == 0 ? "Invoice_Input" : "Invoice_Output");
BLL.PHTGL_ApproveService.AddPHTGL_Approve(_Approve);
}
@@ -617,7 +611,7 @@ namespace BLL
var thisApproveTypeNumber = approveManModels.Find(x => x.userid == userid && x.Rolename == thisApprovemodel.ApproveType).Number; //当前审批人员序号
int nextApproveTypeNumber = thisApproveTypeNumber + 1; //下一个审批人员序号
int maxApproveTypeNumber = approveManModels.Max(x => x.Number); //最大审批人员序号
-
+
thisApprovemodel.ApproveDate = Funs.GetNewDateTimeOrNow("").ToString();
thisApprovemodel.IsAgree = isAgree ? 2 : 1;
@@ -626,7 +620,7 @@ namespace BLL
PHTGL_ApproveService.UpdatePHTGL_Approve(thisApprovemodel);
if (isAgree)
{
- if (PHTGL_ApproveService.GetPHTGL_ApproveByContractId(invoiceId).Count==0) //当前节点是否全部审批结束
+ if (PHTGL_ApproveService.GetPHTGL_ApproveByContractId(invoiceId).Count == 0) //当前节点是否全部审批结束
{
if (thisApproveTypeNumber < maxApproveTypeNumber) //是否最末节点
{
@@ -647,8 +641,8 @@ namespace BLL
{
//流程走完结束
var model = GetPHTGL_InvoiceById(invoiceId);
- model.State = (type == 0 ? StateInPutApproveSuccess:StateOutPutApproveSuccess);
- UpdatePHTGL_Invoice(model);
+ model.State = (type == 0 ? StateInPutApproveSuccess : StateOutPutApproveSuccess);
+ UpdatePHTGL_Invoice(model);
}
}
}
@@ -656,7 +650,7 @@ namespace BLL
{ //审批拒绝-流程结束
var model = GetPHTGL_InvoiceById(invoiceId);
model.State = (type == 0 ? StateInPutApproveRefuse : StateOutPutApproveRefuse);
- UpdatePHTGL_Invoice(model);
+ UpdatePHTGL_Invoice(model);
}
OAWebSevice.Pushoa();
OAWebSevice.DoneRequest(thisApprovemodel.ApproveId);
diff --git a/SGGL/BLL/PHTGL/InvoiceManage/PhtglInvoicedetailService.cs b/SGGL/BLL/PHTGL/InvoiceManage/PhtglInvoicedetailService.cs
index 7c34c5a1..82d9ce05 100644
--- a/SGGL/BLL/PHTGL/InvoiceManage/PhtglInvoicedetailService.cs
+++ b/SGGL/BLL/PHTGL/InvoiceManage/PhtglInvoicedetailService.cs
@@ -1,9 +1,7 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -32,7 +30,7 @@ namespace BLL
(string.IsNullOrEmpty(table.GoodsOrServicesName) || x.GoodsOrServicesName.Contains(table.GoodsOrServicesName)) &&
(string.IsNullOrEmpty(table.SpecificationModel) || x.SpecificationModel.Contains(table.SpecificationModel)) &&
(string.IsNullOrEmpty(table.Unit) || x.Unit.Contains(table.Unit)) &&
- (string.IsNullOrEmpty(table.TaxRate) || x.TaxRate.Contains(table.TaxRate))
+ (string.IsNullOrEmpty(table.TaxRate) || x.TaxRate.Contains(table.TaxRate))
select x
;
@@ -146,18 +144,18 @@ namespace BLL
}
}
- public static void BatchAddPHTGL_InvoiveDetail(IEnumerable list, string invoiceId )
+ public static void BatchAddPHTGL_InvoiveDetail(IEnumerable list, string invoiceId)
{
foreach (var item in list)
{
- item.InvoiceId= invoiceId;
+ item.InvoiceId = invoiceId;
AddPHTGL_InvoiceDetail(item);
}
}
public static void BatchAddPHTGL_InvoiveDetail(IEnumerable list)
{
foreach (var item in list)
- {
+ {
AddPHTGL_InvoiceDetail(item);
}
}
diff --git a/SGGL/BLL/PHTGL/OAWebSevice.cs b/SGGL/BLL/PHTGL/OAWebSevice.cs
index cf30dac1..3b147008 100644
--- a/SGGL/BLL/PHTGL/OAWebSevice.cs
+++ b/SGGL/BLL/PHTGL/OAWebSevice.cs
@@ -259,7 +259,7 @@ namespace BLL
}
break;
- case PHTGL_ApproveService.Invoice_Input:
+ case PHTGL_ApproveService.Invoice_Input:
var invoice = BLL.PhtglInvoiceService.GetPHTGL_InvoiceById(users.ContractId);
if (invoice != null)
{
@@ -275,7 +275,7 @@ namespace BLL
webJson.appurl = getAppurl(invoice.ProjectId, PHTGL_ApproveService.Invoice_Input, invoice.InvoiceId, gereceiver.PersonId);
}
break;
- case PHTGL_ApproveService.Invoice_Output:
+ case PHTGL_ApproveService.Invoice_Output:
var invoice_output = BLL.PhtglInvoiceService.GetPHTGL_InvoiceById(users.ContractId);
if (invoice_output != null)
{
@@ -449,7 +449,7 @@ namespace BLL
webJson.appurl = getAppurl(invoice.ProjectId, PHTGL_ApproveService.Invoice_Input, invoice.InvoiceId, users[i].ApproveMan);
}
break;
- case PHTGL_ApproveService.Invoice_Output:
+ case PHTGL_ApproveService.Invoice_Output:
var invoice_output = BLL.PhtglInvoiceService.GetPHTGL_InvoiceById(users[i].ContractId);
if (invoice_output != null)
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogHJGLService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogHJGLService.cs
index 59b5ecff..a8cc4fe8 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogHJGLService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogHJGLService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs
index a634c776..63a61853 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs
index c35d0300..88c72976 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs
index 5e65c6da..8d74acd1 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs
index 0b240491..1ef42981 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogRecordService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogRecordService.cs
index e04da4ea..308d5181 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogRecordService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogRecordService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs
index 6f7c8bb8..952b7a69 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class ConstructionLogService
{
-
+
///
/// 根据主键获取项目级施工日志
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyCompanyService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyCompanyService.cs
index b8070e0f..87efa19e 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyCompanyService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyCompanyService.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyMonthService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyMonthService.cs
index 561312b9..9eab79f4 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyMonthService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyMonthService.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyProjectService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyProjectService.cs
index 858a8d42..67134469 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyProjectService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyProjectService.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyService.cs
index 50ab2c5c..c808c876 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogWorkEfficiencyService.cs
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionPlanApproveService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionPlanApproveService.cs
index aa10f957..447745d0 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionPlanApproveService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionPlanApproveService.cs
@@ -1,7 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionPlanService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionPlanService.cs
index 8c268639..dbeb294a 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionPlanService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionPlanService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class ConstructionPlanService
{
-
+
///
/// 根据主键获取总承包商施工计划
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionReportApproveService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionReportApproveService.cs
index 603102ef..57f0123b 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionReportApproveService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionReportApproveService.cs
@@ -1,7 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionReportService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionReportService.cs
index 61d3577d..a67bf460 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionReportService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionReportService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class ConstructionReportService
{
-
+
///
/// 根据主键获取总承包商施工报告
diff --git a/SGGL/BLL/PZHGL/InformationProject/PictureService.cs b/SGGL/BLL/PZHGL/InformationProject/PictureService.cs
index 8870efa7..faed0ce6 100644
--- a/SGGL/BLL/PZHGL/InformationProject/PictureService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/PictureService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class PictureService
{
-
+
///
/// 根据主键获取项目图片
diff --git a/SGGL/BLL/PZHGL/InformationProject/ProjectConstructionLogService.cs b/SGGL/BLL/PZHGL/InformationProject/ProjectConstructionLogService.cs
index 4a98e2dd..6d4dc338 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ProjectConstructionLogService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ProjectConstructionLogService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class ProjectConstructionLogService
{
-
+
///
/// 根据主键获取项目级施工日志
diff --git a/SGGL/BLL/PZHGL/InformationProject/WorkHandoverApproveService.cs b/SGGL/BLL/PZHGL/InformationProject/WorkHandoverApproveService.cs
index c76923e7..348195ec 100644
--- a/SGGL/BLL/PZHGL/InformationProject/WorkHandoverApproveService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/WorkHandoverApproveService.cs
@@ -1,7 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/WorkHandoverDetailService.cs b/SGGL/BLL/PZHGL/InformationProject/WorkHandoverDetailService.cs
index 04a1c7d8..7f2d293c 100644
--- a/SGGL/BLL/PZHGL/InformationProject/WorkHandoverDetailService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/WorkHandoverDetailService.cs
@@ -1,7 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/PZHGL/InformationProject/WorkHandoverService.cs b/SGGL/BLL/PZHGL/InformationProject/WorkHandoverService.cs
index 65a203b0..4842035d 100644
--- a/SGGL/BLL/PZHGL/InformationProject/WorkHandoverService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/WorkHandoverService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class WorkHandoverService
{
-
+
///
/// 根据主键获取工作交接
diff --git a/SGGL/BLL/PZHGL/ProjectData/ProjectMapService.cs b/SGGL/BLL/PZHGL/ProjectData/ProjectMapService.cs
index 1350fb2b..dced6350 100644
--- a/SGGL/BLL/PZHGL/ProjectData/ProjectMapService.cs
+++ b/SGGL/BLL/PZHGL/ProjectData/ProjectMapService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ProjectMapService
{
-
+
///
/// 根据主键获取项目地图
diff --git a/SGGL/BLL/Person/PersonTotalService.cs b/SGGL/BLL/Person/PersonTotalService.cs
index 1bbecedc..934543ae 100644
--- a/SGGL/BLL/Person/PersonTotalService.cs
+++ b/SGGL/BLL/Person/PersonTotalService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class PersonTotalService
{
-
+
///
/// 获取人员信息
diff --git a/SGGL/BLL/Person/Person_DutyService.cs b/SGGL/BLL/Person/Person_DutyService.cs
index 29963576..63850fb3 100644
--- a/SGGL/BLL/Person/Person_DutyService.cs
+++ b/SGGL/BLL/Person/Person_DutyService.cs
@@ -1,8 +1,6 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Linq;
-using Model;
namespace BLL
{
@@ -48,7 +46,7 @@ namespace BLL
x.CompilePersonId,
x.CompileTime,
x.WorkPostId,
- WorkPostName=Funs.DB.Base_WorkPost.First(U=>U.WorkPostId == x.WorkPostId).WorkPostName,
+ WorkPostName = Funs.DB.Base_WorkPost.First(U => U.WorkPostId == x.WorkPostId).WorkPostName,
x.ApprovePersonId,
x.ApproveTime,
x.State,
diff --git a/SGGL/BLL/Person/Person_DutyTemplateService.cs b/SGGL/BLL/Person/Person_DutyTemplateService.cs
index f0eb52d1..36f2c40a 100644
--- a/SGGL/BLL/Person/Person_DutyTemplateService.cs
+++ b/SGGL/BLL/Person/Person_DutyTemplateService.cs
@@ -4,7 +4,7 @@ namespace BLL
{
public static class Person_DutyTemplateService
{
-
+
///
/// 获取员工责任书模板信息
///
diff --git a/SGGL/BLL/Person/Person_PersonContractService.cs b/SGGL/BLL/Person/Person_PersonContractService.cs
index 7fae1013..814629a3 100644
--- a/SGGL/BLL/Person/Person_PersonContractService.cs
+++ b/SGGL/BLL/Person/Person_PersonContractService.cs
@@ -1,9 +1,6 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Linq;
-using System.Runtime.InteropServices.ComTypes;
-using Model;
namespace BLL
{
@@ -23,7 +20,7 @@ namespace BLL
/// 定义变量
///
private static IQueryable getDataLists = from x in Funs.DB.Person_PersonContract
- select x;
+ select x;
///
/// 获取分页列表
@@ -34,8 +31,8 @@ namespace BLL
public static IEnumerable getListData(string personId, Grid Grid1)
{
var db1 = Funs.DB;
- var q= from x in db1.Person_PersonContract
- select x;
+ var q = from x in db1.Person_PersonContract
+ select x;
IQueryable getDataList = q.Where(x => x.PersonId == personId);
count = getDataList.Count();
if (count == 0)
@@ -43,7 +40,7 @@ namespace BLL
return null;
}
getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
-
+
return from x in getDataList
select new
{
@@ -55,7 +52,7 @@ namespace BLL
db1.Base_Project.First(u => u.ProjectId == x.ProjectId).ProjectName,
x.LeadManId,
x.Telephone,
- x.ContractType,
+ x.ContractType,
x.StartDate,
x.EndDate,
};
diff --git a/SGGL/BLL/Person/Person_PersonTrainService.cs b/SGGL/BLL/Person/Person_PersonTrainService.cs
index f7da6fab..36ee2a1c 100644
--- a/SGGL/BLL/Person/Person_PersonTrainService.cs
+++ b/SGGL/BLL/Person/Person_PersonTrainService.cs
@@ -1,8 +1,6 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Linq;
-using Model;
namespace BLL
{
@@ -34,7 +32,7 @@ namespace BLL
{
Model.SGGLDB db = Funs.DB;
IQueryable getDataLists = from x in Funs.DB.Person_PersonTrain
- select x;
+ select x;
IQueryable getDataList = getDataLists.Where(x => x.PersonId == personId);
count = getDataList.Count();
if (count == 0)
diff --git a/SGGL/BLL/Person/Person_PersonsService.cs b/SGGL/BLL/Person/Person_PersonsService.cs
index 29a2e971..ac4848fe 100644
--- a/SGGL/BLL/Person/Person_PersonsService.cs
+++ b/SGGL/BLL/Person/Person_PersonsService.cs
@@ -1,7 +1,4 @@
using FineUIPro;
-using Microsoft.Office.Interop.Excel;
-using Microsoft.Office.Interop.Word;
-using Model;
using System;
using System.Collections;
using System.Collections.Generic;
diff --git a/SGGL/BLL/Person/Person_QuarterCheckApproveService.cs b/SGGL/BLL/Person/Person_QuarterCheckApproveService.cs
index 545d32e1..52f9f8d3 100644
--- a/SGGL/BLL/Person/Person_QuarterCheckApproveService.cs
+++ b/SGGL/BLL/Person/Person_QuarterCheckApproveService.cs
@@ -6,7 +6,7 @@ namespace BLL
{
public static class Person_QuarterCheckApproveService
{
-
+
///
/// 获取人员信息
diff --git a/SGGL/BLL/Person/Person_QuarterCheckItemService.cs b/SGGL/BLL/Person/Person_QuarterCheckItemService.cs
index 287a3ba3..531bd494 100644
--- a/SGGL/BLL/Person/Person_QuarterCheckItemService.cs
+++ b/SGGL/BLL/Person/Person_QuarterCheckItemService.cs
@@ -6,7 +6,7 @@ namespace BLL
{
public static class Person_QuarterCheckItemService
{
-
+
///
/// 获取人员信息
diff --git a/SGGL/BLL/Person/Person_QuarterCheckService.cs b/SGGL/BLL/Person/Person_QuarterCheckService.cs
index bc4c8121..c95f9d87 100644
--- a/SGGL/BLL/Person/Person_QuarterCheckService.cs
+++ b/SGGL/BLL/Person/Person_QuarterCheckService.cs
@@ -7,7 +7,7 @@ namespace BLL
{
public static class Person_QuarterCheckService
{
-
+
///
/// 获取人员信息
diff --git a/SGGL/BLL/Person/Person_ShuntApproveService.cs b/SGGL/BLL/Person/Person_ShuntApproveService.cs
index 883be408..16b17350 100644
--- a/SGGL/BLL/Person/Person_ShuntApproveService.cs
+++ b/SGGL/BLL/Person/Person_ShuntApproveService.cs
@@ -1,7 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/Person/Person_ShuntService.cs b/SGGL/BLL/Person/Person_ShuntService.cs
index 4dd4bf30..4085b9b4 100644
--- a/SGGL/BLL/Person/Person_ShuntService.cs
+++ b/SGGL/BLL/Person/Person_ShuntService.cs
@@ -1,8 +1,6 @@
using FineUIPro;
-using NPOI.SS.Formula.Functions;
using System.Collections;
using System.Linq;
-using Model;
namespace BLL
{
@@ -23,7 +21,7 @@ namespace BLL
///
private static IQueryable getDataLists = from x in Funs.DB.Person_Persons
where x.PersonId != Const.sysglyId && x.PersonId != Const.hfnbdId && x.UnitId == Const.UnitId_SEDIN
- && x.DepartId == Const.Depart_constructionId
+ && x.DepartId == Const.Depart_constructionId
&& x.CurrentProjectId == null && (!x.IsOffice.HasValue || x.IsOffice == false)
select x;
@@ -38,9 +36,9 @@ namespace BLL
///
///
///
- public static IEnumerable getListData(string workPostId, string postTitleId, string name, string certificateId, Grid Grid1)
+ public static IEnumerable getListData(string workPostId, string postTitleId, string name, string certificateId, Grid Grid1)
{
- IQueryable getDataList = getDataLists;
+ IQueryable getDataList = getDataLists;
if (!string.IsNullOrEmpty(workPostId) && workPostId != Const._Null)
{
getDataList = getDataList.Where(e => e.WorkPostId == workPostId);
@@ -49,7 +47,7 @@ namespace BLL
{
getDataList = getDataList.Where(e => e.PostTitleId == postTitleId);
}
-
+
if (!string.IsNullOrEmpty(name))
{
getDataList = getDataList.Where(e => e.PersonName.Contains(name));
@@ -58,7 +56,7 @@ namespace BLL
{
getDataList = getDataList.Where(e => e.CertificateId.Contains(certificateId));
}
-
+
count = getDataList.Count();
if (count == 0)
{
@@ -75,7 +73,7 @@ namespace BLL
x.IdentityCard,
Sex = x.Sex ?? "1",
x.Birthday,
- x.UnitId,
+ x.UnitId,
x.DepartId,
x.WorkPostId,
WorkPostName = WorkPostService.getWorkPostNamesWorkPostIds(x.WorkPostId),
@@ -88,7 +86,7 @@ namespace BLL
x.CurrentProjectId,
LastProjectName = getCurrentProjectName(x.PersonId),
x.CurrentProjectWorkPostId,
- LastWorkPostName = getCurrentProjectWorkPostName(x.PersonId),
+ LastWorkPostName = getCurrentProjectWorkPostName(x.PersonId),
IsPost = x.IsPost ?? true,
IsPostName = x.IsPost == false ? "否" : "是",
x.SignatureUrl,
@@ -106,9 +104,10 @@ namespace BLL
///
public static string getCurrentProjectName(string PersonId)
{
- var getItem = (from x in Funs.DB.SitePerson_PersonItem where x.PersonId == PersonId
- orderby x.InTime descending
- select x).FirstOrDefault();
+ var getItem = (from x in Funs.DB.SitePerson_PersonItem
+ where x.PersonId == PersonId
+ orderby x.InTime descending
+ select x).FirstOrDefault();
if (getItem != null)
{
return ProjectService.GetShortNameByProjectId(getItem.ProjectId);
diff --git a/SGGL/BLL/Person/Person_TrainingPlanService.cs b/SGGL/BLL/Person/Person_TrainingPlanService.cs
index 1ec02e41..9b2b5a07 100644
--- a/SGGL/BLL/Person/Person_TrainingPlanService.cs
+++ b/SGGL/BLL/Person/Person_TrainingPlanService.cs
@@ -4,7 +4,7 @@ namespace BLL
{
public static class Person_TrainingPlanService
{
-
+
///
/// 获取人员信息
///
diff --git a/SGGL/BLL/PersonManage/Test/ServerTestPlanService.cs b/SGGL/BLL/PersonManage/Test/ServerTestPlanService.cs
index c62ac7fa..c30ef06b 100644
--- a/SGGL/BLL/PersonManage/Test/ServerTestPlanService.cs
+++ b/SGGL/BLL/PersonManage/Test/ServerTestPlanService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class ServerTestPlanService
{
-
+
///
/// 根据主键获取知识竞赛计划
diff --git a/SGGL/BLL/PersonManage/Test/ServerTestPlanTrainingService.cs b/SGGL/BLL/PersonManage/Test/ServerTestPlanTrainingService.cs
index 92bbc507..b078e110 100644
--- a/SGGL/BLL/PersonManage/Test/ServerTestPlanTrainingService.cs
+++ b/SGGL/BLL/PersonManage/Test/ServerTestPlanTrainingService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ServerTestPlanTrainingService
{
-
+
///
/// 根据主键获取知识竞赛计划
diff --git a/SGGL/BLL/PersonManage/Test/ServerTestRecordService.cs b/SGGL/BLL/PersonManage/Test/ServerTestRecordService.cs
index 70c8c893..9b59f0fa 100644
--- a/SGGL/BLL/PersonManage/Test/ServerTestRecordService.cs
+++ b/SGGL/BLL/PersonManage/Test/ServerTestRecordService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class ServerTestRecordService
{
-
+
///
/// 根据主键获取考试记录
diff --git a/SGGL/BLL/ProjectData/MainItemService.cs b/SGGL/BLL/ProjectData/MainItemService.cs
index 311bfeba..1357bd47 100644
--- a/SGGL/BLL/ProjectData/MainItemService.cs
+++ b/SGGL/BLL/ProjectData/MainItemService.cs
@@ -1,7 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/ProjectData/ProjectSateService.cs b/SGGL/BLL/ProjectData/ProjectSateService.cs
index 7ebd9ead..fc5acc2b 100644
--- a/SGGL/BLL/ProjectData/ProjectSateService.cs
+++ b/SGGL/BLL/ProjectData/ProjectSateService.cs
@@ -7,7 +7,7 @@ namespace BLL
///
public static class ProjectSateService
{
-
+
///
/// 根据主键获取项目状态及软件关闭信息
diff --git a/SGGL/BLL/ProjectData/ProjectService.cs b/SGGL/BLL/ProjectData/ProjectService.cs
index cc1f3006..604285d7 100644
--- a/SGGL/BLL/ProjectData/ProjectService.cs
+++ b/SGGL/BLL/ProjectData/ProjectService.cs
@@ -2,11 +2,9 @@
{
using Model;
using Newtonsoft.Json;
- using NPOI.Util;
using System;
using System.Collections.Generic;
using System.Linq;
- using System.Security.Cryptography;
public static class ProjectService
{
diff --git a/SGGL/BLL/ProjectData/ProjectUnitService.cs b/SGGL/BLL/ProjectData/ProjectUnitService.cs
index 4d93ab2d..d1d9cbd6 100644
--- a/SGGL/BLL/ProjectData/ProjectUnitService.cs
+++ b/SGGL/BLL/ProjectData/ProjectUnitService.cs
@@ -261,7 +261,7 @@
CompileManId = projectUnit.CompileManId,
CompileDate = projectUnit.CompileDate,
};
-
+
db.Project_ProjectUnitItem.InsertOnSubmit(newProjectUnit);
db.SubmitChanges();
}
diff --git a/SGGL/BLL/ProjectData/Project_SysSetService.cs b/SGGL/BLL/ProjectData/Project_SysSetService.cs
index d814cc50..3cf2ba78 100644
--- a/SGGL/BLL/ProjectData/Project_SysSetService.cs
+++ b/SGGL/BLL/ProjectData/Project_SysSetService.cs
@@ -16,12 +16,12 @@ namespace BLL
if (q.Count() == 0)
{
return "";
- }
+ }
return q.First().SetValue;
}
public static string GetAvevaNetUrl_Item(string projectId)
{
- string url="";
+ string url = "";
var q = from x in Funs.DB.Project_Sys_Set where x.SetId == "9" && x.ProjectId == projectId select x;
if (q.Count() == 0)
{
@@ -34,12 +34,12 @@ namespace BLL
string value = collection["portalid"];
url = q.First().SetValue + "item/" + value + "%7C";
}
- catch (Exception ex )
+ catch (Exception ex)
{
url = "";
}
-
+
return url;
}
public static Model.ColorModel GetColorModel(string projectId)
diff --git a/SGGL/BLL/ProjectData/TeamGroupService.cs b/SGGL/BLL/ProjectData/TeamGroupService.cs
index 7f0d711d..d7bcb4f3 100644
--- a/SGGL/BLL/ProjectData/TeamGroupService.cs
+++ b/SGGL/BLL/ProjectData/TeamGroupService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class TeamGroupService
{
-
+
///
/// 根据主键获取班组信息
diff --git a/SGGL/BLL/ProjectData/UnitWorkService.cs b/SGGL/BLL/ProjectData/UnitWorkService.cs
index a025f94b..87436b3f 100644
--- a/SGGL/BLL/ProjectData/UnitWorkService.cs
+++ b/SGGL/BLL/ProjectData/UnitWorkService.cs
@@ -8,7 +8,7 @@ namespace BLL
{
public class UnitWorkService
{
-
+
///
/// 添加单位工程信息
@@ -548,7 +548,7 @@ namespace BLL
public static string GetUnitWorkName(object unitWorkIds)
{
string unitWorkName = string.Empty;
- if (unitWorkIds!=null&&!string.IsNullOrEmpty(unitWorkIds.ToString()))
+ if (unitWorkIds != null && !string.IsNullOrEmpty(unitWorkIds.ToString()))
{
string[] strs = unitWorkIds.ToString().Split(',');
foreach (var item in strs)
@@ -670,7 +670,7 @@ namespace BLL
}
return name;
}
-
+
///
/// 获取主项及设计专业名称
///
diff --git a/SGGL/BLL/SHIYE/InformationProject_SafetyBriefingService.cs b/SGGL/BLL/SHIYE/InformationProject_SafetyBriefingService.cs
index 931e9d00..ef03691e 100644
--- a/SGGL/BLL/SHIYE/InformationProject_SafetyBriefingService.cs
+++ b/SGGL/BLL/SHIYE/InformationProject_SafetyBriefingService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/SmartSite/EquipmentService.cs b/SGGL/BLL/SmartSite/EquipmentService.cs
index a1951ad7..d7dab1c6 100644
--- a/SGGL/BLL/SmartSite/EquipmentService.cs
+++ b/SGGL/BLL/SmartSite/EquipmentService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class EquipmentService
{
-
+
///
/// 根据主键获取设备管理
diff --git a/SGGL/BLL/SmartSite/EquipmentSoftService.cs b/SGGL/BLL/SmartSite/EquipmentSoftService.cs
index a5f160fe..3ea2dab1 100644
--- a/SGGL/BLL/SmartSite/EquipmentSoftService.cs
+++ b/SGGL/BLL/SmartSite/EquipmentSoftService.cs
@@ -8,7 +8,7 @@ namespace BLL
///
public static class EquipmentSoftService
{
-
+
///
/// 根据主键获取软件管理
@@ -69,7 +69,7 @@ namespace BLL
{
Model.SmartSite_EquipmentSoft newEquipmentSoft = Funs.DB.SmartSite_EquipmentSoft.FirstOrDefault(e => e.EquipmentSoftId == EquipmentSoft.EquipmentSoftId);
if (newEquipmentSoft != null)
- {
+ {
newEquipmentSoft.EquipmentId = EquipmentSoft.EquipmentId;
newEquipmentSoft.EquipmentSoftName = EquipmentSoft.EquipmentSoftName;
newEquipmentSoft.EquipmentSoftModel = EquipmentSoft.EquipmentSoftModel;
diff --git a/SGGL/BLL/SysManage/DepartService.cs b/SGGL/BLL/SysManage/DepartService.cs
index c5e3373b..9a640b5c 100644
--- a/SGGL/BLL/SysManage/DepartService.cs
+++ b/SGGL/BLL/SysManage/DepartService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class DepartService
{
-
+
///
/// 根据主键获取信息
@@ -95,7 +95,7 @@ namespace BLL
public static string getDepartNameById(object departId)
{
string name = string.Empty;
- if (departId!=null&& !string.IsNullOrEmpty(departId.ToString()))
+ if (departId != null && !string.IsNullOrEmpty(departId.ToString()))
{
var dep = Funs.DB.Base_Depart.FirstOrDefault(e => e.DepartId == departId.ToString());
if (dep != null)
@@ -103,7 +103,7 @@ namespace BLL
name = dep.DepartName;
}
}
-
+
return name;
}
#region 表下拉框
diff --git a/SGGL/BLL/SysManage/LogService.cs b/SGGL/BLL/SysManage/LogService.cs
index c6cbe637..c72ac0bc 100644
--- a/SGGL/BLL/SysManage/LogService.cs
+++ b/SGGL/BLL/SysManage/LogService.cs
@@ -1,13 +1,12 @@
namespace BLL
{
- using NPOI.SS.Formula.PTG;
using System;
using System.Linq;
using System.Net;
public static class LogService
{
-
+
///
/// Ӳ־
diff --git a/SGGL/BLL/SysManage/RoleItemService.cs b/SGGL/BLL/SysManage/RoleItemService.cs
index a8844359..4ebd6eb6 100644
--- a/SGGL/BLL/SysManage/RoleItemService.cs
+++ b/SGGL/BLL/SysManage/RoleItemService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class RoleItemService
{
-
+
///
/// 获取角色明细信息
diff --git a/SGGL/BLL/SysManage/RoleService.cs b/SGGL/BLL/SysManage/RoleService.cs
index 64c01bc0..53050916 100644
--- a/SGGL/BLL/SysManage/RoleService.cs
+++ b/SGGL/BLL/SysManage/RoleService.cs
@@ -5,7 +5,7 @@
public static class RoleService
{
-
+
///
/// 获取角色信息
diff --git a/SGGL/BLL/SysManage/SysHttplogService.cs b/SGGL/BLL/SysManage/SysHttplogService.cs
index b0e8cd51..1b5f7e86 100644
--- a/SGGL/BLL/SysManage/SysHttplogService.cs
+++ b/SGGL/BLL/SysManage/SysHttplogService.cs
@@ -1,10 +1,7 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
diff --git a/SGGL/BLL/SysManage/SysMenuService.cs b/SGGL/BLL/SysManage/SysMenuService.cs
index 1718031c..b497e973 100644
--- a/SGGL/BLL/SysManage/SysMenuService.cs
+++ b/SGGL/BLL/SysManage/SysMenuService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class SysMenuService
{
-
+
///
/// 根据MenuId获取菜单名称项
diff --git a/SGGL/BLL/SysManage/UnitService.cs b/SGGL/BLL/SysManage/UnitService.cs
index c83e0b59..b40fcef1 100644
--- a/SGGL/BLL/SysManage/UnitService.cs
+++ b/SGGL/BLL/SysManage/UnitService.cs
@@ -1,8 +1,8 @@
-using System;
+using Model;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/TaskScheduling/InterFaceService/DataForJTApiService.cs b/SGGL/BLL/TaskScheduling/InterFaceService/DataForJTApiService.cs
index dbb986a9..85ef122d 100644
--- a/SGGL/BLL/TaskScheduling/InterFaceService/DataForJTApiService.cs
+++ b/SGGL/BLL/TaskScheduling/InterFaceService/DataForJTApiService.cs
@@ -1,12 +1,10 @@
namespace BLL
{
- using System;
- using System.Collections.Generic;
using System.Linq;
public static class DataForJTApiService
{
-
+
///
/// ȡӿϢ
@@ -65,7 +63,7 @@ namespace BLL
}
}
-
+
///
/// IdɾϢ
///
diff --git a/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceLogService .cs b/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceLogService .cs
index cfa8ad4f..78d6769f 100644
--- a/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceLogService .cs
+++ b/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceLogService .cs
@@ -1,25 +1,20 @@
using FineUIPro;
-using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
-using System.Drawing.Printing;
using System.Linq;
-using System.Runtime.InteropServices;
-using System.Text;
-using Model;
namespace BLL
{
-
- public static class InterFaceLogService
+
+ public static class InterFaceLogService
{
public const string Type1 = "上报";
- public const string Type2= "下发";
+ public const string Type2 = "下发";
public const string Type3 = "回调";
-
- #region 获取列表
+
+ #region 获取列表
///
/// 记录数
///
@@ -56,62 +51,63 @@ namespace BLL
///
public static IEnumerable getListData(Model.InterFaceLog table, Grid Grid1)
{
- var q= GetInterFaceLogByModle(table);
+ var q = GetInterFaceLogByModle(table);
count = q.Count();
if (count == 0)
{
return null;
}
- q = q.Skip(Grid1.PageSize * (Grid1.PageIndex)).Take(Grid1.PageSize).ToList();
- // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ q = q.Skip(Grid1.PageSize * (Grid1.PageIndex)).Take(Grid1.PageSize).ToList();
+ // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return (from x in q
- select new
- {
- x.InterFaceLogId,
- x.UserId,
- x.UnitId,
- x.InterFaceName,
- x.InterFaceUrl,
- x.InterFaceMehtod,
- x.InterFaceBody,
- x.InterFaceReturnData,
- x.InterFaceLogDate,
- x.InterFaceType,
- x.LogSate,
- x.IP,
-
- });
+ select new
+ {
+ x.InterFaceLogId,
+ x.UserId,
+ x.UnitId,
+ x.InterFaceName,
+ x.InterFaceUrl,
+ x.InterFaceMehtod,
+ x.InterFaceBody,
+ x.InterFaceReturnData,
+ x.InterFaceLogDate,
+ x.InterFaceType,
+ x.LogSate,
+ x.IP,
+
+ });
}
#endregion
- public static Model.InterFaceLog GetInterFaceLogById(string InterFaceLogId)
- {
- return Funs.DB.InterFaceLog.FirstOrDefault(x=>x.InterFaceLogId==InterFaceLogId);
+ public static Model.InterFaceLog GetInterFaceLogById(string InterFaceLogId)
+ {
+ return Funs.DB.InterFaceLog.FirstOrDefault(x => x.InterFaceLogId == InterFaceLogId);
}
-
+
public static void AddInterFaceLog(Model.InterFaceLog newtable)
{
-
- Model.InterFaceLog table = new Model.InterFaceLog{
- InterFaceLogId=newtable.InterFaceLogId,
- UserId=newtable.UserId,
- UnitId=newtable.UnitId,
- InterFaceName=newtable.InterFaceName,
- InterFaceUrl=newtable.InterFaceUrl,
- InterFaceMehtod=newtable.InterFaceMehtod,
- InterFaceBody=newtable.InterFaceBody,
- InterFaceReturnData=newtable.InterFaceReturnData,
- InterFaceLogDate=newtable.InterFaceLogDate,
- InterFaceType=newtable.InterFaceType,
- LogSate=newtable.LogSate,
- IP=newtable.IP,
+
+ Model.InterFaceLog table = new Model.InterFaceLog
+ {
+ InterFaceLogId = newtable.InterFaceLogId,
+ UserId = newtable.UserId,
+ UnitId = newtable.UnitId,
+ InterFaceName = newtable.InterFaceName,
+ InterFaceUrl = newtable.InterFaceUrl,
+ InterFaceMehtod = newtable.InterFaceMehtod,
+ InterFaceBody = newtable.InterFaceBody,
+ InterFaceReturnData = newtable.InterFaceReturnData,
+ InterFaceLogDate = newtable.InterFaceLogDate,
+ InterFaceType = newtable.InterFaceType,
+ LogSate = newtable.LogSate,
+ IP = newtable.IP,
};
Funs.DB.InterFaceLog.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
- public static void WriteInterFaceLog(string InterFaceSetlId, string InterFaceBody, string ReturnData, string InterFaceType,bool isSuccess)
+ public static void WriteInterFaceLog(string InterFaceSetlId, string InterFaceBody, string ReturnData, string InterFaceType, bool isSuccess)
{
var InterfaceSetModel = InterFaceSetService.GetInterFaceSetById(InterFaceSetlId);
Model.InterFaceLog table = new Model.InterFaceLog();
@@ -130,7 +126,7 @@ namespace BLL
table.UnitId = InterfaceSetModel.UnitId;
table.InterFaceUrl = InterfaceSetModel.InterFaceUrl;
table.InterFaceMehtod = InterfaceSetModel.UrlReqMethod;
-
+
break;
case Type2:
table.UnitId = InterfaceSetModel.AuthUnitIds;
@@ -149,36 +145,36 @@ namespace BLL
public static void UpdateInterFaceLog(Model.InterFaceLog newtable)
{
-
- Model.InterFaceLog table = Funs.DB.InterFaceLog.FirstOrDefault(x=>x.InterFaceLogId==newtable.InterFaceLogId);
- if (table != null)
+
+ Model.InterFaceLog table = Funs.DB.InterFaceLog.FirstOrDefault(x => x.InterFaceLogId == newtable.InterFaceLogId);
+ if (table != null)
{
- table.InterFaceLogId=newtable.InterFaceLogId;
- table.UserId=newtable.UserId;
- table.UnitId=newtable.UnitId;
- table.InterFaceName=newtable.InterFaceName;
- table.InterFaceUrl=newtable.InterFaceUrl;
- table.InterFaceMehtod=newtable.InterFaceMehtod;
- table.InterFaceBody=newtable.InterFaceBody;
- table.InterFaceReturnData=newtable.InterFaceReturnData;
- table.InterFaceLogDate=newtable.InterFaceLogDate;
- table.InterFaceType=newtable.InterFaceType;
- table.LogSate=newtable.LogSate;
- table.IP=newtable.IP;
+ table.InterFaceLogId = newtable.InterFaceLogId;
+ table.UserId = newtable.UserId;
+ table.UnitId = newtable.UnitId;
+ table.InterFaceName = newtable.InterFaceName;
+ table.InterFaceUrl = newtable.InterFaceUrl;
+ table.InterFaceMehtod = newtable.InterFaceMehtod;
+ table.InterFaceBody = newtable.InterFaceBody;
+ table.InterFaceReturnData = newtable.InterFaceReturnData;
+ table.InterFaceLogDate = newtable.InterFaceLogDate;
+ table.InterFaceType = newtable.InterFaceType;
+ table.LogSate = newtable.LogSate;
+ table.IP = newtable.IP;
Funs.DB.SubmitChanges();
}
-
+
}
- public static void DeleteInterFaceLogById (string InterFaceLogId)
- {
-
- Model.InterFaceLog table =Funs.DB.InterFaceLog.FirstOrDefault(x=>x.InterFaceLogId==InterFaceLogId);
- if (table != null)
- {
+ public static void DeleteInterFaceLogById(string InterFaceLogId)
+ {
+
+ Model.InterFaceLog table = Funs.DB.InterFaceLog.FirstOrDefault(x => x.InterFaceLogId == InterFaceLogId);
+ if (table != null)
+ {
Funs.DB.InterFaceLog.DeleteOnSubmit(table);
Funs.DB.SubmitChanges();
- }
-
+ }
+
}
}
diff --git a/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceSetService .cs b/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceSetService .cs
index 15f62596..b5dae641 100644
--- a/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceSetService .cs
+++ b/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceSetService .cs
@@ -1,19 +1,17 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
{
-
- public static class InterFaceSetService
+
+ public static class InterFaceSetService
{
-
-
- #region 获取列表
+
+
+ #region 获取列表
///
/// 记录数
///
@@ -22,24 +20,24 @@ namespace BLL
get;
set;
}
- public static List GetInterFaceSetByModle(Model.InterFaceSet table)
- {
- var q= from x in Funs.DB.InterFaceSet
- where
- ( string.IsNullOrEmpty(table.InterFaceSetId)||x.InterFaceSetId.Contains(table.InterFaceSetId)) &&
- ( string.IsNullOrEmpty(table.InterFaceName)||x.InterFaceName.Contains(table.InterFaceName)) &&
- ( string.IsNullOrEmpty(table.InterFaceUrl)||x.InterFaceUrl.Contains(table.InterFaceUrl)) &&
- ( string.IsNullOrEmpty(table.UnitId)||x.UnitId.Contains(table.UnitId)) &&
- ( string.IsNullOrEmpty(table.AuthUnitIds)||x.AuthUnitIds.Contains(table.AuthUnitIds)) &&
- ( string.IsNullOrEmpty(table.AuthUnitName)||x.AuthUnitName.Contains(table.AuthUnitName)) &&
- ( string.IsNullOrEmpty(table.ValidPeriod)||x.ValidPeriod.Contains(table.ValidPeriod)) &&
- ( string.IsNullOrEmpty(table.TxtRemarks)||x.TxtRemarks.Contains(table.TxtRemarks)) &&
- ( string.IsNullOrEmpty(table.InterFaceForUrl)||x.InterFaceForUrl.Contains(table.InterFaceForUrl)) &&
- ( string.IsNullOrEmpty(table.InterFaceCallBackUrl)||x.InterFaceCallBackUrl.Contains(table.InterFaceCallBackUrl))
- select x
- ;
-
- return q.ToList();
+ public static List GetInterFaceSetByModle(Model.InterFaceSet table)
+ {
+ var q = from x in Funs.DB.InterFaceSet
+ where
+ (string.IsNullOrEmpty(table.InterFaceSetId) || x.InterFaceSetId.Contains(table.InterFaceSetId)) &&
+ (string.IsNullOrEmpty(table.InterFaceName) || x.InterFaceName.Contains(table.InterFaceName)) &&
+ (string.IsNullOrEmpty(table.InterFaceUrl) || x.InterFaceUrl.Contains(table.InterFaceUrl)) &&
+ (string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
+ (string.IsNullOrEmpty(table.AuthUnitIds) || x.AuthUnitIds.Contains(table.AuthUnitIds)) &&
+ (string.IsNullOrEmpty(table.AuthUnitName) || x.AuthUnitName.Contains(table.AuthUnitName)) &&
+ (string.IsNullOrEmpty(table.ValidPeriod) || x.ValidPeriod.Contains(table.ValidPeriod)) &&
+ (string.IsNullOrEmpty(table.TxtRemarks) || x.TxtRemarks.Contains(table.TxtRemarks)) &&
+ (string.IsNullOrEmpty(table.InterFaceForUrl) || x.InterFaceForUrl.Contains(table.InterFaceForUrl)) &&
+ (string.IsNullOrEmpty(table.InterFaceCallBackUrl) || x.InterFaceCallBackUrl.Contains(table.InterFaceCallBackUrl))
+ select x
+ ;
+
+ return q.ToList();
}
/// 获取分页列表
@@ -49,107 +47,108 @@ namespace BLL
///
public static IEnumerable getListData(Model.InterFaceSet table, Grid Grid1)
{
- var q= GetInterFaceSetByModle(table);
+ var q = GetInterFaceSetByModle(table);
count = q.Count();
if (count == 0)
{
return null;
}
// q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
- // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
{
- x.InterFaceSetId,
- x.InterFaceName,
- x.InterFaceUrl,
- x.UnitId,
- x.AuthUnitIds,
- x.AuthUnitName,
- x.IsOpen,
- x.ValidPeriod,
- x.TxtRemarks,
- x.InterFaceForUrl,
- x.IsCallBack,
- x.InterFaceCallBackUrl,
- x.UrlReqMethod,
- x.CallBackUrlReqMethod,
- x.ForUrlReqMethod
-
+ x.InterFaceSetId,
+ x.InterFaceName,
+ x.InterFaceUrl,
+ x.UnitId,
+ x.AuthUnitIds,
+ x.AuthUnitName,
+ x.IsOpen,
+ x.ValidPeriod,
+ x.TxtRemarks,
+ x.InterFaceForUrl,
+ x.IsCallBack,
+ x.InterFaceCallBackUrl,
+ x.UrlReqMethod,
+ x.CallBackUrlReqMethod,
+ x.ForUrlReqMethod
+
};
}
#endregion
- public static Model.InterFaceSet GetInterFaceSetById(string InterFaceSetId)
- {
- return Funs.DB.InterFaceSet.FirstOrDefault(x=>x.InterFaceSetId==InterFaceSetId);
- }
- public static List GetInterFaceSets()
+ public static Model.InterFaceSet GetInterFaceSetById(string InterFaceSetId)
{
- var q = (from x in Funs.DB.InterFaceSet select x).ToList();
+ return Funs.DB.InterFaceSet.FirstOrDefault(x => x.InterFaceSetId == InterFaceSetId);
+ }
+ public static List GetInterFaceSets()
+ {
+ var q = (from x in Funs.DB.InterFaceSet select x).ToList();
return q;
}
public static void AddInterFaceSet(Model.InterFaceSet newtable)
{
-
- Model.InterFaceSet table = new Model.InterFaceSet{
- InterFaceSetId=newtable.InterFaceSetId,
- InterFaceName=newtable.InterFaceName,
- InterFaceUrl=newtable.InterFaceUrl,
- UnitId=newtable.UnitId,
- AuthUnitIds=newtable.AuthUnitIds,
- AuthUnitName=newtable.AuthUnitName,
- IsOpen=newtable.IsOpen,
- ValidPeriod=newtable.ValidPeriod,
- TxtRemarks=newtable.TxtRemarks,
- InterFaceForUrl=newtable.InterFaceForUrl,
- IsCallBack=newtable.IsCallBack,
- InterFaceCallBackUrl=newtable.InterFaceCallBackUrl,
- UrlReqMethod=newtable.UrlReqMethod,
- ForUrlReqMethod=newtable.ForUrlReqMethod,
- CallBackUrlReqMethod= newtable.CallBackUrlReqMethod,
+
+ Model.InterFaceSet table = new Model.InterFaceSet
+ {
+ InterFaceSetId = newtable.InterFaceSetId,
+ InterFaceName = newtable.InterFaceName,
+ InterFaceUrl = newtable.InterFaceUrl,
+ UnitId = newtable.UnitId,
+ AuthUnitIds = newtable.AuthUnitIds,
+ AuthUnitName = newtable.AuthUnitName,
+ IsOpen = newtable.IsOpen,
+ ValidPeriod = newtable.ValidPeriod,
+ TxtRemarks = newtable.TxtRemarks,
+ InterFaceForUrl = newtable.InterFaceForUrl,
+ IsCallBack = newtable.IsCallBack,
+ InterFaceCallBackUrl = newtable.InterFaceCallBackUrl,
+ UrlReqMethod = newtable.UrlReqMethod,
+ ForUrlReqMethod = newtable.ForUrlReqMethod,
+ CallBackUrlReqMethod = newtable.CallBackUrlReqMethod,
};
Funs.DB.InterFaceSet.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
-
+
public static void UpdateInterFaceSet(Model.InterFaceSet newtable)
{
-
- Model.InterFaceSet table = Funs.DB.InterFaceSet.FirstOrDefault(x=>x.InterFaceSetId==newtable.InterFaceSetId);
- if (table != null)
+
+ Model.InterFaceSet table = Funs.DB.InterFaceSet.FirstOrDefault(x => x.InterFaceSetId == newtable.InterFaceSetId);
+ if (table != null)
{
- table.InterFaceSetId=newtable.InterFaceSetId;
- table.InterFaceName=newtable.InterFaceName;
- table.InterFaceUrl=newtable.InterFaceUrl;
- table.UnitId=newtable.UnitId;
- table.AuthUnitIds=newtable.AuthUnitIds;
- table.AuthUnitName=newtable.AuthUnitName;
- table.IsOpen=newtable.IsOpen;
- table.ValidPeriod=newtable.ValidPeriod;
- table.TxtRemarks=newtable.TxtRemarks;
- table.InterFaceForUrl=newtable.InterFaceForUrl;
- table.IsCallBack=newtable.IsCallBack;
- table.InterFaceCallBackUrl=newtable.InterFaceCallBackUrl;
- table.UrlReqMethod=newtable.UrlReqMethod;
- table.ForUrlReqMethod=newtable.ForUrlReqMethod;
- table.CallBackUrlReqMethod=newtable.CallBackUrlReqMethod;
+ table.InterFaceSetId = newtable.InterFaceSetId;
+ table.InterFaceName = newtable.InterFaceName;
+ table.InterFaceUrl = newtable.InterFaceUrl;
+ table.UnitId = newtable.UnitId;
+ table.AuthUnitIds = newtable.AuthUnitIds;
+ table.AuthUnitName = newtable.AuthUnitName;
+ table.IsOpen = newtable.IsOpen;
+ table.ValidPeriod = newtable.ValidPeriod;
+ table.TxtRemarks = newtable.TxtRemarks;
+ table.InterFaceForUrl = newtable.InterFaceForUrl;
+ table.IsCallBack = newtable.IsCallBack;
+ table.InterFaceCallBackUrl = newtable.InterFaceCallBackUrl;
+ table.UrlReqMethod = newtable.UrlReqMethod;
+ table.ForUrlReqMethod = newtable.ForUrlReqMethod;
+ table.CallBackUrlReqMethod = newtable.CallBackUrlReqMethod;
Funs.DB.SubmitChanges();
}
-
+
}
- public static void DeleteInterFaceSetById (string InterFaceSetId)
- {
-
- Model.InterFaceSet table =Funs.DB.InterFaceSet.FirstOrDefault(x=>x.InterFaceSetId==InterFaceSetId);
- if (table != null)
- {
+ public static void DeleteInterFaceSetById(string InterFaceSetId)
+ {
+
+ Model.InterFaceSet table = Funs.DB.InterFaceSet.FirstOrDefault(x => x.InterFaceSetId == InterFaceSetId);
+ if (table != null)
+ {
Funs.DB.InterFaceSet.DeleteOnSubmit(table);
Funs.DB.SubmitChanges();
- }
-
+ }
+
}
public static void InitInterFaceDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
{
diff --git a/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceTaskService .cs b/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceTaskService .cs
index 27ea69ea..2895d555 100644
--- a/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceTaskService .cs
+++ b/SGGL/BLL/TaskScheduling/InterFaceService/InterFaceTaskService .cs
@@ -1,19 +1,16 @@
using FineUIPro;
using Model;
using Newtonsoft.Json;
-using Quartz;
-using RestSharp;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
{
-
- public static class InterFaceTaskService
+
+ public static class InterFaceTaskService
{
#region 获取列表
///
@@ -24,19 +21,19 @@ namespace BLL
get;
set;
}
- public static List GetInterFaceTaskByModle(Model.InterFaceTask table)
- {
- var q= from x in Funs.DB.InterFaceTask
- where
- ( string.IsNullOrEmpty(table.InterFaceTaskId)||x.InterFaceTaskId.Contains(table.InterFaceTaskId)) &&
- ( string.IsNullOrEmpty(table.InterFaceName)||x.InterFaceName.Contains(table.InterFaceName)) &&
- ( string.IsNullOrEmpty(table.InterFaceSetLists)||x.InterFaceSetLists.Contains(table.InterFaceSetLists)) &&
- ( string.IsNullOrEmpty(table.Frequency)||x.Frequency.Contains(table.Frequency)) &&
- (table.Enable ==null|| x.Enable==table.Enable)
- select x
- ;
-
- return q.ToList();
+ public static List GetInterFaceTaskByModle(Model.InterFaceTask table)
+ {
+ var q = from x in Funs.DB.InterFaceTask
+ where
+ (string.IsNullOrEmpty(table.InterFaceTaskId) || x.InterFaceTaskId.Contains(table.InterFaceTaskId)) &&
+ (string.IsNullOrEmpty(table.InterFaceName) || x.InterFaceName.Contains(table.InterFaceName)) &&
+ (string.IsNullOrEmpty(table.InterFaceSetLists) || x.InterFaceSetLists.Contains(table.InterFaceSetLists)) &&
+ (string.IsNullOrEmpty(table.Frequency) || x.Frequency.Contains(table.Frequency)) &&
+ (table.Enable == null || x.Enable == table.Enable)
+ select x
+ ;
+
+ return q.ToList();
}
/// 获取分页列表
@@ -46,80 +43,81 @@ namespace BLL
///
public static IEnumerable getListData(Model.InterFaceTask table, Grid Grid1)
{
- var q= GetInterFaceTaskByModle(table);
+ var q = GetInterFaceTaskByModle(table);
count = q.Count();
if (count == 0)
{
return null;
}
// q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
- // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
{
- x.InterFaceTaskId,
- x.InterFaceName,
- x.InterFaceSetLists,
- x.Frequency,
- x.CreateTime,
- x.Enable,
-
+ x.InterFaceTaskId,
+ x.InterFaceName,
+ x.InterFaceSetLists,
+ x.Frequency,
+ x.CreateTime,
+ x.Enable,
+
};
}
#endregion
- public static Model.InterFaceTask GetInterFaceTaskById(string InterFaceTaskId)
- {
- return Funs.DB.InterFaceTask.FirstOrDefault(x=>x.InterFaceTaskId==InterFaceTaskId);
+ public static Model.InterFaceTask GetInterFaceTaskById(string InterFaceTaskId)
+ {
+ return Funs.DB.InterFaceTask.FirstOrDefault(x => x.InterFaceTaskId == InterFaceTaskId);
}
public static void AddInterFaceTask(Model.InterFaceTask newtable)
{
-
- Model.InterFaceTask table = new Model.InterFaceTask{
- InterFaceTaskId=newtable.InterFaceTaskId,
- InterFaceName=newtable.InterFaceName,
- InterFaceSetLists=newtable.InterFaceSetLists,
- Frequency=newtable.Frequency,
- CreateTime=newtable.CreateTime,
- Enable=newtable.Enable,
+
+ Model.InterFaceTask table = new Model.InterFaceTask
+ {
+ InterFaceTaskId = newtable.InterFaceTaskId,
+ InterFaceName = newtable.InterFaceName,
+ InterFaceSetLists = newtable.InterFaceSetLists,
+ Frequency = newtable.Frequency,
+ CreateTime = newtable.CreateTime,
+ Enable = newtable.Enable,
};
var db1 = Funs.DB;
db1.InterFaceTask.InsertOnSubmit(table);
db1.SubmitChanges();
}
-
+
public static void UpdateInterFaceTask(Model.InterFaceTask newtable)
{
var db1 = Funs.DB;
- Model.InterFaceTask table = db1.InterFaceTask.FirstOrDefault(x=>x.InterFaceTaskId==newtable.InterFaceTaskId);
- if (table != null)
+ Model.InterFaceTask table = db1.InterFaceTask.FirstOrDefault(x => x.InterFaceTaskId == newtable.InterFaceTaskId);
+ if (table != null)
{
- table.InterFaceTaskId=newtable.InterFaceTaskId;
- table.InterFaceName=newtable.InterFaceName;
- table.InterFaceSetLists=newtable.InterFaceSetLists;
- table.Frequency=newtable.Frequency;
- table.CreateTime=newtable.CreateTime;
- table.Enable=newtable.Enable;
+ table.InterFaceTaskId = newtable.InterFaceTaskId;
+ table.InterFaceName = newtable.InterFaceName;
+ table.InterFaceSetLists = newtable.InterFaceSetLists;
+ table.Frequency = newtable.Frequency;
+ table.CreateTime = newtable.CreateTime;
+ table.Enable = newtable.Enable;
db1.SubmitChanges();
}
-
+
}
- public static void DeleteInterFaceTaskById (string InterFaceTaskId)
+ public static void DeleteInterFaceTaskById(string InterFaceTaskId)
{
var db1 = Funs.DB;
- Model.InterFaceTask table =db1.InterFaceTask.FirstOrDefault(x=>x.InterFaceTaskId==InterFaceTaskId);
- if (table != null)
- {
+ Model.InterFaceTask table = db1.InterFaceTask.FirstOrDefault(x => x.InterFaceTaskId == InterFaceTaskId);
+ if (table != null)
+ {
db1.InterFaceTask.DeleteOnSubmit(table);
db1.SubmitChanges();
- }
-
+ }
+
}
#region 执行任务
public static void ExecuteTasks(string InterFaceTaskId)
{
-
+
var model = GetInterFaceTaskById(InterFaceTaskId);
var InterFaceSetlIds = model.InterFaceSetLists.Split(',');
foreach (var item in InterFaceSetlIds)
@@ -176,27 +174,27 @@ namespace BLL
InterFaceLogService.WriteInterFaceLog(InterFaceSetlId, JsonConvert.SerializeObject(sourseData.data), JsonConvert.SerializeObject(callbackData), InterFaceLogService.Type3, CallBackisSuccess);
}
- catch (Exception ex )
+ catch (Exception ex)
{
- Model.InterFaceLog interFaceLog=new InterFaceLog();
- interFaceLog.InterFaceLogId=Guid.NewGuid().ToString();
+ Model.InterFaceLog interFaceLog = new InterFaceLog();
+ interFaceLog.InterFaceLogId = Guid.NewGuid().ToString();
interFaceLog.InterFaceType = "异常";
interFaceLog.LogSate = false;
- interFaceLog.InterFaceLogDate= DateTime.Now;
+ interFaceLog.InterFaceLogDate = DateTime.Now;
interFaceLog.InterFaceName = InterfaceSetModel.InterFaceName;
interFaceLog.InterFaceReturnData = ex.ToString();
InterFaceLogService.AddInterFaceLog(interFaceLog);
}
-
+
}
- public static Model.ReturnData GetSourseData(string baseurl,string ReqMethod)
+ public static Model.ReturnData GetSourseData(string baseurl, string ReqMethod)
{
Model.ReturnData returnData = new ReturnData();
string token = "C4A62EC0-E5D3-4EBF-A5FA-E56AA89633C0";
string Content = "";
switch (ReqMethod)
{
- case "Get":
+ case "Get":
Content = Funs.RequestGet(baseurl, token);
break;
case "Post":
@@ -276,7 +274,7 @@ namespace BLL
}
return responeData;
}
- public static ReturnData ExecuteCallBack(string baseurl, ReturnData DataInput,string ReqMethod)
+ public static ReturnData ExecuteCallBack(string baseurl, ReturnData DataInput, string ReqMethod)
{
Model.ReturnData returnData = new ReturnData();
if (DataInput.code == 1)
diff --git a/SGGL/BLL/TaskScheduling/TimerTask/CustomJobListener.cs b/SGGL/BLL/TaskScheduling/TimerTask/CustomJobListener.cs
index a7e571d5..5337151b 100644
--- a/SGGL/BLL/TaskScheduling/TimerTask/CustomJobListener.cs
+++ b/SGGL/BLL/TaskScheduling/TimerTask/CustomJobListener.cs
@@ -1,15 +1,7 @@
-using Quartz;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace BLL
+namespace BLL
{
- public class CustomJobListener
+ public class CustomJobListener
{
-
+
}
}
diff --git a/SGGL/BLL/TaskScheduling/TimerTask/TaskJob.cs b/SGGL/BLL/TaskScheduling/TimerTask/TaskJob.cs
index 2b519454..545b607f 100644
--- a/SGGL/BLL/TaskScheduling/TimerTask/TaskJob.cs
+++ b/SGGL/BLL/TaskScheduling/TimerTask/TaskJob.cs
@@ -1,6 +1,4 @@
using Quartz;
-using System.Threading;
-using System;
using System.Threading.Tasks;
namespace BLL
@@ -14,13 +12,13 @@ namespace BLL
// note: use context.MergedJobDataMap in production code
JobDataMap dataMap = context.JobDetail.JobDataMap;
string InterFaceTaskId = dataMap.GetString("InterFaceTaskId");
-
+
//使用异步任务来实现
await Task.Run(() =>
{
-
- InterFaceTaskService.ExecuteTasks(InterFaceTaskId);
-
+
+ InterFaceTaskService.ExecuteTasks(InterFaceTaskId);
+
//Console.WriteLine($"{DateTime.Now}【{Thread.CurrentThread.ManagedThreadId}】:自定义的工作正在执行... ...");
});
diff --git a/SGGL/BLL/TaskScheduling/TimerTask/TimerTaskBase.cs b/SGGL/BLL/TaskScheduling/TimerTask/TimerTaskBase.cs
index b15c4519..c45e51b9 100644
--- a/SGGL/BLL/TaskScheduling/TimerTask/TimerTaskBase.cs
+++ b/SGGL/BLL/TaskScheduling/TimerTask/TimerTaskBase.cs
@@ -1,30 +1,24 @@
- using System;
- using System.Collections.Generic;
+using Quartz;
+using Quartz.Impl;
+using System;
+using System.Collections.Generic;
using System.Collections.ObjectModel;
-using System.Collections.Specialized;
-using System.Drawing.Printing;
-using System.Linq;
-using System.Security.Cryptography.X509Certificates;
-using System.Text;
-using System.Threading;
using System.Threading.Tasks;
- using Quartz;
- using Quartz.Impl;
- namespace BLL
- {
+namespace BLL
+{
public class QuartzServices
{
public static async Task Init()
{
-
+
//初始化计划者
StdSchedulerFactory factory = new StdSchedulerFactory();
IScheduler scheduler = await factory.GetScheduler();
- var jobAndTriggerMapping = new Dictionary>();
+ var jobAndTriggerMapping = new Dictionary>();
// 将映射关系包装成制度字典集合
var model = new Model.InterFaceTask();
model.Enable = true;
@@ -45,7 +39,7 @@ using System.Threading.Tasks;
Funs.ScheduledTasks = scheduler;
}
-
+
public static void ISchedulerShupDown(IScheduler scheduler)
{
scheduler.Shutdown();
@@ -73,15 +67,15 @@ using System.Threading.Tasks;
{
var jobDetail1 = GetJobDetailByInterFaceTaskId(model.InterFaceTaskId);
var trigger1 = GetTriggerByTime(model.InterFaceTaskId, model.Frequency);
- await scheduler.ScheduleJob(jobDetail1, trigger1,true);
+ await scheduler.ScheduleJob(jobDetail1, trigger1, true);
}
else
{
-
+
var jobDetail1 = GetJobDetailByInterFaceTaskId(model.InterFaceTaskId);
var trigger1 = GetTriggerByTime(model.InterFaceTaskId, model.Frequency);
- await scheduler.ScheduleJob(jobDetail1, trigger1,true);
+ await scheduler.ScheduleJob(jobDetail1, trigger1, true);
}
}
@@ -90,9 +84,9 @@ using System.Threading.Tasks;
if (scheduler.GetJobDetail(jk, default) != null)
{
await scheduler.DeleteJob(jk, default);
-
- // SyncScheduledTasks(model.InterFaceTaskId, scheduler, 2);
+
+ // SyncScheduledTasks(model.InterFaceTaskId, scheduler, 2);
}
}
@@ -118,16 +112,16 @@ using System.Threading.Tasks;
{
if (type == 0)
{
- // Funs.ScheduledTasks.Add(InterFaceTaskId, scheduler);
+ // Funs.ScheduledTasks.Add(InterFaceTaskId, scheduler);
}
else if (type == 1)
{
- // Funs.ScheduledTasks.Remove(InterFaceTaskId);
- // Funs.ScheduledTasks.Add(InterFaceTaskId, scheduler);
+ // Funs.ScheduledTasks.Remove(InterFaceTaskId);
+ // Funs.ScheduledTasks.Add(InterFaceTaskId, scheduler);
}
else if (type == 2)
{
- // Funs.ScheduledTasks.Remove(InterFaceTaskId);
+ // Funs.ScheduledTasks.Remove(InterFaceTaskId);
}
}
public static IJobDetail GetJobDetailByInterFaceTaskId(string InterFaceTaskId)
@@ -143,7 +137,7 @@ using System.Threading.Tasks;
{
string cron = "0 0 0/& * * ? ";
cron = cron.Replace("&", time);
- // cron = "0 0/1 * * * ? ";
+ // cron = "0 0/1 * * * ? ";
//创建触发器
var trigger1 = new ReadOnlyCollection(
new List()
@@ -159,6 +153,5 @@ using System.Threading.Tasks;
}
}
- }
+}
-
\ No newline at end of file
diff --git a/SGGL/BLL/WebService/CNCECHSSEWebService.cs b/SGGL/BLL/WebService/CNCECHSSEWebService.cs
index 5078ac75..029645b7 100644
--- a/SGGL/BLL/WebService/CNCECHSSEWebService.cs
+++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs
@@ -1,21 +1,16 @@
namespace BLL
{
- using Apache.NMS.ActiveMQ.Commands;
using Newtonsoft.Json;
- using NPOI.POIFS.Crypt.Dsig;
+ using Newtonsoft.Json.Linq;
+ //using System.Net.Http.Headers;
+ //using System.Net.Http;
+ using RestSharp;
using System;
+ using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
- //using System.Net.Http.Headers;
- //using System.Net.Http;
- using System.Web;
- using RestSharp;
- using System.Net;
- using Model;
- using System.Collections;
- using Newtonsoft.Json.Linq;
public static class CNCECHSSEWebService
{
@@ -569,7 +564,8 @@
////更新催报信息
UrgeReportService.SetComplete(report.UnitId, Const.ReportType_3, report.YearId.ToString(), report.Quarters.ToString());
}
- };
+ }
+ ;
LogService.AddSys_Log(CurrUser, "【安全生产数据季报上报】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
diff --git a/SGGL/BLL/WebService/FileStructService.cs b/SGGL/BLL/WebService/FileStructService.cs
index 43f84382..aa796a74 100644
--- a/SGGL/BLL/WebService/FileStructService.cs
+++ b/SGGL/BLL/WebService/FileStructService.cs
@@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Collections;
using System.IO;
-using System.Web;
namespace BLL
{
@@ -22,8 +18,8 @@ namespace BLL
{
string filePath = string.Empty;
string physicalpath = Funs.RootPath;
- //HttpContext.Current.Request.PhysicalApplicationPath;
- filePath = physicalpath + attachUrl;
+ //HttpContext.Current.Request.PhysicalApplicationPath;
+ filePath = physicalpath + attachUrl;
if (File.Exists(filePath))
{
FileInfo fileInfo = new FileInfo(filePath);
diff --git a/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportMainCostService.cs b/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportMainCostService.cs
index 6d65ee80..9f1f1c83 100644
--- a/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportMainCostService.cs
+++ b/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportMainCostService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public class ConstructionMonthReportMainCostService
{
-
+
///
/// 获取施工月报总包工程施工请款情况模板列表
diff --git a/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportService.cs b/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportService.cs
index 02b79688..df0725b7 100644
--- a/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportService.cs
+++ b/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportService.cs
@@ -1,14 +1,11 @@
using System;
-using System.Collections;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
public class ConstructionMonthReportService
{
-
+
///
/// 添加施工月报
diff --git a/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportSubCostService.cs b/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportSubCostService.cs
index ba4fe558..a9a5afdd 100644
--- a/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportSubCostService.cs
+++ b/SGGL/BLL/ZHGL/ConstructionMonthReport/ConstructionMonthReportSubCostService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public class ConstructionMonthReportSubCostService
{
-
+
///
/// 获取施工月报分包工程施工付款情况模板列表
diff --git a/SGGL/BLL/ZHGL/DataSync/BaseDataService.cs b/SGGL/BLL/ZHGL/DataSync/BaseDataService.cs
index 81f7efc6..bbdd7b8a 100644
--- a/SGGL/BLL/ZHGL/DataSync/BaseDataService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/BaseDataService.cs
@@ -2,12 +2,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
using System.Threading.Tasks;
namespace BLL
{
- public static class BaseDataService
+ public static class BaseDataService
{
public static List BeUnderConstructionList = GetBeUnderConstruction().Select(p => p.ProjectId).ToList();
diff --git a/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs b/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs
index 971a3370..edef4a12 100644
--- a/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs
@@ -1,15 +1,11 @@
-using BLL;
-using FineUIPro;
-using Model;
+using FineUIPro;
using Model;
using Newtonsoft.Json;
-using NPOI.POIFS.Crypt.Dsig;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-using System.Web.UI.WebControls;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/DataSync/HJGLData_DefectService.cs b/SGGL/BLL/ZHGL/DataSync/HJGLData_DefectService.cs
index a4c0ba33..f804d268 100644
--- a/SGGL/BLL/ZHGL/DataSync/HJGLData_DefectService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/HJGLData_DefectService.cs
@@ -3,8 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -29,7 +27,7 @@ namespace BLL
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName)) &&
- (string.IsNullOrEmpty(table.DefectName) || x.DefectName.Contains(table.DefectName))
+ (string.IsNullOrEmpty(table.DefectName) || x.DefectName.Contains(table.DefectName))
select x
;
@@ -49,7 +47,7 @@ namespace BLL
{
return null;
}
- // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
{
@@ -73,7 +71,7 @@ namespace BLL
{
var q = from x in Funs.DB.HJGLData_Defect
where x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0
- select x;
+ select x;
return q.ToList();
}
@@ -137,7 +135,7 @@ namespace BLL
db.HJGLData_Defect.DeleteAllOnSubmit(table);
db.SubmitChanges();
}
- }
+ }
}
}
diff --git a/SGGL/BLL/ZHGL/DataSync/HJGLData_HJGLService.cs b/SGGL/BLL/ZHGL/DataSync/HJGLData_HJGLService.cs
index fa18ff60..dbaa0afd 100644
--- a/SGGL/BLL/ZHGL/DataSync/HJGLData_HJGLService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/HJGLData_HJGLService.cs
@@ -1,13 +1,11 @@
using FineUIPro;
using Model;
using Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Newtonsoft.Json.Linq;
-using Model;
-using System.Net.PeerToPeer;
using System.Threading.Tasks;
namespace BLL
@@ -170,11 +168,11 @@ namespace BLL
return GetCNCEC_16TodayHJGLData_HJGL();
}
- /* var q = GetTodayData();
- if (q != null && q.State == Const.CNCEC_State_S)
- data = StatisticalData();
- else
- data = StatisticalData();*/
+ /* var q = GetTodayData();
+ if (q != null && q.State == Const.CNCEC_State_S)
+ data = StatisticalData();
+ else
+ data = StatisticalData();*/
var modelTask = StatisticalDataAsync();
var model = await modelTask;
@@ -335,8 +333,8 @@ namespace BLL
var welderNum = await welderNumTask;
var dineInfoList = await dineInfoListTask;
var chCheckItemList = await chCheckItemListTask;
-
-
+
+
var table = new HJGLData_HJGL
{
UnitId = thisUnitId,
@@ -380,7 +378,7 @@ namespace BLL
// 获取达因信息
var dineInfo = dineInfoDict.TryGetValue(projectid, out var dineData)
? dineData
- : new { TotalDineNum = (decimal ?)0, CompleteDineNum = (decimal?)0 };
+ : new { TotalDineNum = (decimal?)0, CompleteDineNum = (decimal?)0 };
// 获取拍片信息
var chCheckItem = chCheckItemDict.TryGetValue(projectid, out var checkData)
@@ -396,7 +394,7 @@ namespace BLL
UnitName = baseUnit.UnitName,
ReportDate = DateTime.Now.Date,
WelderNum = welderCount,
- TotalDineNum = Convert.ToInt32 (dineInfo.TotalDineNum),
+ TotalDineNum = Convert.ToInt32(dineInfo.TotalDineNum),
CompleteDineNum = Convert.ToInt32(dineInfo.CompleteDineNum),
TotalFilmNum = chCheckItem.TotalFilmNum,
OKFilmNum = chCheckItem.OKFilmNum,
@@ -464,7 +462,7 @@ namespace BLL
}
-
+
///
/// 获取焊工总数
///
@@ -508,7 +506,7 @@ namespace BLL
DoneDin = g.Sum(x => x.Dia)
});
return result;
- }
+ }
public static async Task> GetDineInfoAsync()
{
return await Task.Run(GetDineInfo);
diff --git a/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs b/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs
index e3785929..0b97b843 100644
--- a/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs
@@ -1,15 +1,11 @@
-using System;
+using FineUIPro;
+using Model;
+using Newtonsoft.Json;
+using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Runtime.InteropServices.ComTypes;
-using System.Runtime.Remoting.Contexts;
using System.Threading.Tasks;
-using System.Web.UI.WebControls;
-using Aspose.Words.Lists;
-using FineUIPro;
-using Model;
-using Newtonsoft.Json;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/DataSync/HSSEData_HiddenDangerDetailService.cs b/SGGL/BLL/ZHGL/DataSync/HSSEData_HiddenDangerDetailService.cs
index 6fbe9796..0e9aab51 100644
--- a/SGGL/BLL/ZHGL/DataSync/HSSEData_HiddenDangerDetailService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/HSSEData_HiddenDangerDetailService.cs
@@ -3,8 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -29,7 +27,7 @@ namespace BLL
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName)) &&
- (string.IsNullOrEmpty(table.TypeName) || x.TypeName.Contains(table.TypeName))
+ (string.IsNullOrEmpty(table.TypeName) || x.TypeName.Contains(table.TypeName))
select x
;
@@ -49,7 +47,7 @@ namespace BLL
{
return null;
}
- // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ // q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
{
diff --git a/SGGL/BLL/ZHGL/DataSync/Hazard_RealTimeDeviceService.cs b/SGGL/BLL/ZHGL/DataSync/Hazard_RealTimeDeviceService.cs
index d397e718..489ae494 100644
--- a/SGGL/BLL/ZHGL/DataSync/Hazard_RealTimeDeviceService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/Hazard_RealTimeDeviceService.cs
@@ -3,8 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -59,7 +57,7 @@ namespace BLL
(string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId)) &&
(string.IsNullOrEmpty(table.Value) || x.Value.Contains(table.Value)) &&
(string.IsNullOrEmpty(table.FactoryId) || x.FactoryId.Contains(table.FactoryId)) &&
- (string.IsNullOrEmpty(table.ReceiveDate) || x.ReceiveDate.Contains(table.ReceiveDate))
+ (string.IsNullOrEmpty(table.ReceiveDate) || x.ReceiveDate.Contains(table.ReceiveDate))
select x
;
diff --git a/SGGL/BLL/ZHGL/DataSync/LotAPIService.cs b/SGGL/BLL/ZHGL/DataSync/LotAPIService.cs
index d5ab1821..5fc56299 100644
--- a/SGGL/BLL/ZHGL/DataSync/LotAPIService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/LotAPIService.cs
@@ -1,13 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
public class LotAPIService
- {
+ {
///
/// 保存环境监测
///
diff --git a/SGGL/BLL/ZHGL/DataSync/MainSevice.cs b/SGGL/BLL/ZHGL/DataSync/MainSevice.cs
index 220e857b..1cc69144 100644
--- a/SGGL/BLL/ZHGL/DataSync/MainSevice.cs
+++ b/SGGL/BLL/ZHGL/DataSync/MainSevice.cs
@@ -4,320 +4,321 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-namespace BLL {
-
-public class MainSevice
+namespace BLL
{
- ///
- /// 在建项目集合
- ///
- private List _beUnderConstructionList;
- private HSSEData_HSSE _hsseData;
- private string _unitId;
- private int _unitType;
-
- public MainSevice(string userid)
+ public class MainSevice
{
- var userModel = Person_PersonsService.GetPerson_PersonsById(userid);
- int unitType = CommonService.GetUnitTypeByUserId(userid);
- var projectList = ProjectService.GetProjectWorkList().Select(x => new { x.ProjectId, x.UnitId }).ToList();
- _unitId = userModel.UnitId;
- _unitType = unitType;
- if (unitType == 0)
- {
- _beUnderConstructionList = projectList.Select(x => x.ProjectId).ToList();
- _unitId = BLL.Const.UnitId_SEDIN;
- }
- else if (unitType == 1)
- {
- _beUnderConstructionList = projectList.Where(x => x.UnitId == userModel.UnitId).Select(x => x.ProjectId).ToList();
- }
- else if (unitType == 2)
- {
- _beUnderConstructionList = new List() { "0" };
- }
- }
- public async Task GetHsseDataAsync()
- {
+ ///
+ /// 在建项目集合
+ ///
+ private List _beUnderConstructionList;
+ private HSSEData_HSSE _hsseData;
+ private string _unitId;
+ private int _unitType;
+
+ public MainSevice(string userid)
+ {
+ var userModel = Person_PersonsService.GetPerson_PersonsById(userid);
+ int unitType = CommonService.GetUnitTypeByUserId(userid);
+ var projectList = ProjectService.GetProjectWorkList().Select(x => new { x.ProjectId, x.UnitId }).ToList();
+ _unitId = userModel.UnitId;
+ _unitType = unitType;
+ if (unitType == 0)
+ {
+ _beUnderConstructionList = projectList.Select(x => x.ProjectId).ToList();
+ _unitId = BLL.Const.UnitId_SEDIN;
+ }
+ else if (unitType == 1)
+ {
+ _beUnderConstructionList = projectList.Where(x => x.UnitId == userModel.UnitId).Select(x => x.ProjectId).ToList();
+ }
+ else if (unitType == 2)
+ {
+ _beUnderConstructionList = new List() { "0" };
+ }
+
+ }
+ public async Task GetHsseDataAsync()
+ {
try
{
-
- // 并行执行异步方法
- var totalEnergyConsumptionTask = ChemicalReportItemService.GetLatstTimeTotalEnergyConsumption();
- var incomeComprehensiveEnergyConsumptionTask = ChemicalReportItemService.GetLatstTimeIncomeComprehensiveEnergyConsumption();
- var newWaterConsumptionTask = ChemicalReportItemService.GetLatstTimeNewWaterConsumption();
- var securityRiskOutputListTask = HSSEData_HSSEService.GetSecurityRiskOutputsAsync()
- .ContinueWith(t => t.Result.Where(x => _beUnderConstructionList.Contains(x.ProjectId)));
- var largeEngineeringOutputsTask = HSSEData_HSSEService.GetLargeEngineeringOutputsAsync()
- .ContinueWith(t => t.Result.Where(x => _beUnderConstructionList.Contains(x.ProjectId)));
- var safetyInjectionEngineerTask = HSSEData_HSSEService.GetSafetyInjectionEngineerAsync();
- var certificateATask = HSSEData_HSSEService.GetCertificateAAsync();
- var certificateBTask = HSSEData_HSSEService.GetCertificateBAsync();
- var certificateCTask = HSSEData_HSSEService.GetCertificateCAsync();
- var beUnderConstructionTask = HSSEData_HSSEService.GetBeUnderConstructionAsync();
- var shutdownTask = HSSEData_HSSEService.GetShutdownAsync();
- var joinConstructionPersonTask = HSSEData_HSSEService.GetJoinConstructionPersonAsync();
- var majorProjectsUnderConstructionTask = HSSEData_HSSEService.GetMajorProjectsUnderConstructionAsync();
- var totalWorkingHourTask = HSSEData_HSSEService.GetTotalWorkingHourAsync();
- var lostWorkingHourTask = HSSEData_HSSEService.GetLostWorkingHourAsync();
- var safeWorkingHourTask = HSSEData_HSSEService.GetSafeWorkingHourAsync();
- var safeTrainTask = HSSEData_HSSEService.GetSafeTrainAsync();
- var specialTrainTask = HSSEData_HSSEService.GetSpecialTrainAsync();
- var specialOperationTrainTask = HSSEData_HSSEService.GetSpecialOperationTrainAsync();
- var headOfficeInspectorGeneralTask = HSSEData_HSSEService.GetHeadOfficeInspectorGeneralAsync();
- var headOfficeFullTimeTask = HSSEData_HSSEService.GetHeadOfficeFullTimeAsync();
- var branchInspectorGeneralTask = HSSEData_HSSEService.GetBranchInspectorGeneralAsync();
- var branchFullTimeTask = HSSEData_HSSEService.GetBranchFullTimeAsync();
- var projectInspectorGeneralTask = HSSEData_HSSEService.GetProjectInspectorGeneralAsync();
- var projectFullTimeTask = HSSEData_HSSEService.GetProjectFullTimeAsync();
- var projectSafetyMonitorTask = HSSEData_HSSEService.GetProjectSafetyMonitorAsync();
- var safetyCommitteeMeetingTask = HSSEData_HSSEService.GetSafetyCommitteeMeetingAsync();
- var enterpriseTopicsMeetingTask = HSSEData_HSSEService.GetEnterpriseTopicsMeetingAsync();
- var projectSafetyLeadingGroupMeetingTask = HSSEData_HSSEService.GetProjectSafetyLeadingGroupMeetingAsync();
- var projectSafetyMeetingTask = HSSEData_HSSEService.GetProjectSafetyMeetingAsync();
- var companyLeadShiftCheckTask = HSSEData_HSSEService.GetCompanyLeadShiftCheckAsync();
- var companyComprehensiveCheckTask = HSSEData_HSSEService.GetCompanyComprehensiveCheckAsync();
- var companySpecialCheckTask = HSSEData_HSSEService.GetCompanySpecialCheckAsync();
- var projectLeadShiftCheckTask = HSSEData_HSSEService.GetProjectLeadShiftCheckAsync();
- var projectSpecialCheckTask = HSSEData_HSSEService.GetProjectSpecialCheckAsync();
- var projectMajorCheckTask = HSSEData_HSSEService.GetProjectMajorCheckAsync();
- var nearMissTask = HSSEData_HSSEService.GetNearMissAsync();
- var recordableEventTask = HSSEData_HSSEService.GetRecordableEventAsync();
- var generalAccidentTask = HSSEData_HSSEService.GetGeneralAccidentAsync();
- var majorAccidentTask = HSSEData_HSSEService.GetMajorAccidentAsync();
- var seriousAccidentTask = HSSEData_HSSEService.GetSeriousAccidentAsync();
- var specialSeriousAccidentTask = HSSEData_HSSEService.GetSpecialSeriousAccidentAsync();
- var companyComprehensivePlanTask = HSSEData_HSSEService.GetCompanyComprehensivePlanAsync();
- var companySpecialPlanTask = HSSEData_HSSEService.GetCompanySpecialPlanAsync();
- var companyOnSiteDisposalPlanTask = HSSEData_HSSEService.GetCompanyOnSiteDisposalPlanAsync();
- var companyDrillTask = HSSEData_HSSEService.GetCompanyDrillAsync();
- var projectComprehensivePlanTask = HSSEData_HSSEService.GetProjectComprehensivePlanAsync();
- var projectSpecialPlanTask = HSSEData_HSSEService.GetProjectSpecialPlanAsync();
- var projectOnSiteDisposalPlanTask = HSSEData_HSSEService.GetProjectOnSiteDisposalPlanAsync();
- var projectDrillTask = HSSEData_HSSEService.GetProjectDrillAsync();
- var costExtractTask = HSSEData_HSSEService.GetCostExtractAsync();
- var costUseTask = HSSEData_HSSEService.GetCostUseAsync();
- var useEquipmentTask = HSSEData_HSSEService.GetUseEquipmentAsync();
- var specialEquipmentTask = HSSEData_HSSEService.GetSpecialEquipmentAsync();
- var licensesTask = HSSEData_HSSEService.GetLicensesAsync();
- var licensesCloseTask = HSSEData_HSSEService.GetLicensesCloseAsync();
- var generalHiddenRectificationOutputsTask = HSSEData_HSSEService.GetGeneralHiddenRectificationOutputsAsync();
- var majorHiddenRectificationOutputsTask = HSSEData_HSSEService.GetMajorHiddenRectificationOutputsAsync();
- // 等待所有异步方法执行完成
- await Task.WhenAll(
- securityRiskOutputListTask,
- largeEngineeringOutputsTask,
- safetyInjectionEngineerTask,
- certificateATask,
- certificateBTask,
- certificateCTask,
- beUnderConstructionTask,
- shutdownTask,
- joinConstructionPersonTask,
- majorProjectsUnderConstructionTask,
- totalWorkingHourTask,
- lostWorkingHourTask,
- safeWorkingHourTask,
- safeTrainTask,
- specialTrainTask,
- specialOperationTrainTask,
- headOfficeInspectorGeneralTask,
- headOfficeFullTimeTask,
- branchInspectorGeneralTask,
- branchFullTimeTask,
- projectInspectorGeneralTask,
- projectFullTimeTask,
- projectSafetyMonitorTask,
- safetyCommitteeMeetingTask,
- enterpriseTopicsMeetingTask,
- projectSafetyLeadingGroupMeetingTask,
- projectSafetyMeetingTask,
- companyLeadShiftCheckTask,
- companyComprehensiveCheckTask,
- companySpecialCheckTask,
- projectLeadShiftCheckTask,
- projectSpecialCheckTask,
- projectMajorCheckTask,
- nearMissTask,
- recordableEventTask,
- generalAccidentTask,
- majorAccidentTask,
- seriousAccidentTask,
- specialSeriousAccidentTask,
- companyComprehensivePlanTask,
- companySpecialPlanTask,
- companyOnSiteDisposalPlanTask,
- companyDrillTask,
- projectComprehensivePlanTask,
- projectSpecialPlanTask,
- projectOnSiteDisposalPlanTask,
- projectDrillTask,
- costExtractTask,
- costUseTask,
- useEquipmentTask,
- specialEquipmentTask,
- licensesTask,
- licensesCloseTask,
- generalHiddenRectificationOutputsTask,
- majorHiddenRectificationOutputsTask
- );
+ // 并行执行异步方法
+ var totalEnergyConsumptionTask = ChemicalReportItemService.GetLatstTimeTotalEnergyConsumption();
+ var incomeComprehensiveEnergyConsumptionTask = ChemicalReportItemService.GetLatstTimeIncomeComprehensiveEnergyConsumption();
+ var newWaterConsumptionTask = ChemicalReportItemService.GetLatstTimeNewWaterConsumption();
+ var securityRiskOutputListTask = HSSEData_HSSEService.GetSecurityRiskOutputsAsync()
+ .ContinueWith(t => t.Result.Where(x => _beUnderConstructionList.Contains(x.ProjectId)));
+ var largeEngineeringOutputsTask = HSSEData_HSSEService.GetLargeEngineeringOutputsAsync()
+ .ContinueWith(t => t.Result.Where(x => _beUnderConstructionList.Contains(x.ProjectId)));
+ var safetyInjectionEngineerTask = HSSEData_HSSEService.GetSafetyInjectionEngineerAsync();
+ var certificateATask = HSSEData_HSSEService.GetCertificateAAsync();
+ var certificateBTask = HSSEData_HSSEService.GetCertificateBAsync();
+ var certificateCTask = HSSEData_HSSEService.GetCertificateCAsync();
+ var beUnderConstructionTask = HSSEData_HSSEService.GetBeUnderConstructionAsync();
+ var shutdownTask = HSSEData_HSSEService.GetShutdownAsync();
+ var joinConstructionPersonTask = HSSEData_HSSEService.GetJoinConstructionPersonAsync();
+ var majorProjectsUnderConstructionTask = HSSEData_HSSEService.GetMajorProjectsUnderConstructionAsync();
+ var totalWorkingHourTask = HSSEData_HSSEService.GetTotalWorkingHourAsync();
+ var lostWorkingHourTask = HSSEData_HSSEService.GetLostWorkingHourAsync();
+ var safeWorkingHourTask = HSSEData_HSSEService.GetSafeWorkingHourAsync();
+ var safeTrainTask = HSSEData_HSSEService.GetSafeTrainAsync();
+ var specialTrainTask = HSSEData_HSSEService.GetSpecialTrainAsync();
+ var specialOperationTrainTask = HSSEData_HSSEService.GetSpecialOperationTrainAsync();
+ var headOfficeInspectorGeneralTask = HSSEData_HSSEService.GetHeadOfficeInspectorGeneralAsync();
+ var headOfficeFullTimeTask = HSSEData_HSSEService.GetHeadOfficeFullTimeAsync();
+ var branchInspectorGeneralTask = HSSEData_HSSEService.GetBranchInspectorGeneralAsync();
+ var branchFullTimeTask = HSSEData_HSSEService.GetBranchFullTimeAsync();
+ var projectInspectorGeneralTask = HSSEData_HSSEService.GetProjectInspectorGeneralAsync();
+ var projectFullTimeTask = HSSEData_HSSEService.GetProjectFullTimeAsync();
+ var projectSafetyMonitorTask = HSSEData_HSSEService.GetProjectSafetyMonitorAsync();
+ var safetyCommitteeMeetingTask = HSSEData_HSSEService.GetSafetyCommitteeMeetingAsync();
+ var enterpriseTopicsMeetingTask = HSSEData_HSSEService.GetEnterpriseTopicsMeetingAsync();
+ var projectSafetyLeadingGroupMeetingTask = HSSEData_HSSEService.GetProjectSafetyLeadingGroupMeetingAsync();
+ var projectSafetyMeetingTask = HSSEData_HSSEService.GetProjectSafetyMeetingAsync();
+ var companyLeadShiftCheckTask = HSSEData_HSSEService.GetCompanyLeadShiftCheckAsync();
+ var companyComprehensiveCheckTask = HSSEData_HSSEService.GetCompanyComprehensiveCheckAsync();
+ var companySpecialCheckTask = HSSEData_HSSEService.GetCompanySpecialCheckAsync();
+ var projectLeadShiftCheckTask = HSSEData_HSSEService.GetProjectLeadShiftCheckAsync();
+ var projectSpecialCheckTask = HSSEData_HSSEService.GetProjectSpecialCheckAsync();
+ var projectMajorCheckTask = HSSEData_HSSEService.GetProjectMajorCheckAsync();
+ var nearMissTask = HSSEData_HSSEService.GetNearMissAsync();
+ var recordableEventTask = HSSEData_HSSEService.GetRecordableEventAsync();
+ var generalAccidentTask = HSSEData_HSSEService.GetGeneralAccidentAsync();
+ var majorAccidentTask = HSSEData_HSSEService.GetMajorAccidentAsync();
+ var seriousAccidentTask = HSSEData_HSSEService.GetSeriousAccidentAsync();
+ var specialSeriousAccidentTask = HSSEData_HSSEService.GetSpecialSeriousAccidentAsync();
+ var companyComprehensivePlanTask = HSSEData_HSSEService.GetCompanyComprehensivePlanAsync();
+ var companySpecialPlanTask = HSSEData_HSSEService.GetCompanySpecialPlanAsync();
+ var companyOnSiteDisposalPlanTask = HSSEData_HSSEService.GetCompanyOnSiteDisposalPlanAsync();
+ var companyDrillTask = HSSEData_HSSEService.GetCompanyDrillAsync();
+ var projectComprehensivePlanTask = HSSEData_HSSEService.GetProjectComprehensivePlanAsync();
+ var projectSpecialPlanTask = HSSEData_HSSEService.GetProjectSpecialPlanAsync();
+ var projectOnSiteDisposalPlanTask = HSSEData_HSSEService.GetProjectOnSiteDisposalPlanAsync();
+ var projectDrillTask = HSSEData_HSSEService.GetProjectDrillAsync();
+ var costExtractTask = HSSEData_HSSEService.GetCostExtractAsync();
+ var costUseTask = HSSEData_HSSEService.GetCostUseAsync();
+ var useEquipmentTask = HSSEData_HSSEService.GetUseEquipmentAsync();
+ var specialEquipmentTask = HSSEData_HSSEService.GetSpecialEquipmentAsync();
+ var licensesTask = HSSEData_HSSEService.GetLicensesAsync();
+ var licensesCloseTask = HSSEData_HSSEService.GetLicensesCloseAsync();
+ var generalHiddenRectificationOutputsTask = HSSEData_HSSEService.GetGeneralHiddenRectificationOutputsAsync();
+ var majorHiddenRectificationOutputsTask = HSSEData_HSSEService.GetMajorHiddenRectificationOutputsAsync();
+
+ // 等待所有异步方法执行完成
+ await Task.WhenAll(
+ securityRiskOutputListTask,
+ largeEngineeringOutputsTask,
+ safetyInjectionEngineerTask,
+ certificateATask,
+ certificateBTask,
+ certificateCTask,
+ beUnderConstructionTask,
+ shutdownTask,
+ joinConstructionPersonTask,
+ majorProjectsUnderConstructionTask,
+ totalWorkingHourTask,
+ lostWorkingHourTask,
+ safeWorkingHourTask,
+ safeTrainTask,
+ specialTrainTask,
+ specialOperationTrainTask,
+ headOfficeInspectorGeneralTask,
+ headOfficeFullTimeTask,
+ branchInspectorGeneralTask,
+ branchFullTimeTask,
+ projectInspectorGeneralTask,
+ projectFullTimeTask,
+ projectSafetyMonitorTask,
+ safetyCommitteeMeetingTask,
+ enterpriseTopicsMeetingTask,
+ projectSafetyLeadingGroupMeetingTask,
+ projectSafetyMeetingTask,
+ companyLeadShiftCheckTask,
+ companyComprehensiveCheckTask,
+ companySpecialCheckTask,
+ projectLeadShiftCheckTask,
+ projectSpecialCheckTask,
+ projectMajorCheckTask,
+ nearMissTask,
+ recordableEventTask,
+ generalAccidentTask,
+ majorAccidentTask,
+ seriousAccidentTask,
+ specialSeriousAccidentTask,
+ companyComprehensivePlanTask,
+ companySpecialPlanTask,
+ companyOnSiteDisposalPlanTask,
+ companyDrillTask,
+ projectComprehensivePlanTask,
+ projectSpecialPlanTask,
+ projectOnSiteDisposalPlanTask,
+ projectDrillTask,
+ costExtractTask,
+ costUseTask,
+ useEquipmentTask,
+ specialEquipmentTask,
+ licensesTask,
+ licensesCloseTask,
+ generalHiddenRectificationOutputsTask,
+ majorHiddenRectificationOutputsTask
+ );
- // 统一获取异步方法的返回值
- var totalEnergyConsumption = totalEnergyConsumptionTask;
- var incomeComprehensiveEnergyConsumption = incomeComprehensiveEnergyConsumptionTask;
- var newWaterConsumption = newWaterConsumptionTask;
- var safetyInjectionEngineerList = await safetyInjectionEngineerTask;
- var certificateAList = await certificateATask;
- var certificateBList = await certificateBTask;
- var certificateCList = await certificateCTask;
- var beUnderConstructionList = await beUnderConstructionTask;
- var shutdownList = await shutdownTask;
- var joinConstructionPersonList = await joinConstructionPersonTask;
- var majorProjectsUnderConstructionList = await majorProjectsUnderConstructionTask;
- var totalWorkingHour = await totalWorkingHourTask;
- var lostWorkingHour = await lostWorkingHourTask;
- var safeWorkingHour = await safeWorkingHourTask;
- var safeTrainList = await safeTrainTask;
- var specialTrainList = await specialTrainTask;
- var specialOperationTrainList = await specialOperationTrainTask;
- var headOfficeInspectorGeneralList = await headOfficeInspectorGeneralTask;
- var headOfficeFullTimeList = await headOfficeFullTimeTask;
- var branchInspectorGeneralList = await branchInspectorGeneralTask;
- var branchFullTimeList = await branchFullTimeTask;
- var projectInspectorGeneralList = await projectInspectorGeneralTask;
- var projectFullTimeList = await projectFullTimeTask;
- var projectSafetyMonitorList = await projectSafetyMonitorTask;
- var safetyCommitteeMeetingList = await safetyCommitteeMeetingTask;
- var enterpriseTopicsMeetingList = await enterpriseTopicsMeetingTask;
- var projectSafetyLeadingGroupMeetingList = await projectSafetyLeadingGroupMeetingTask;
- var projectSafetyMeetingList = await projectSafetyMeetingTask;
- var companyLeadShiftCheckList = await companyLeadShiftCheckTask;
- var companyComprehensiveCheckList = await companyComprehensiveCheckTask;
- var companySpecialCheckList = await companySpecialCheckTask;
- var projectLeadShiftCheckList = await projectLeadShiftCheckTask;
- var projectSpecialCheckList = await projectSpecialCheckTask;
- var projectMajorCheckList = await projectMajorCheckTask;
- var nearMissList = await nearMissTask;
- var recordableEventList = await recordableEventTask;
- var generalAccidentList = await generalAccidentTask;
- var majorAccidentList = await majorAccidentTask;
- var seriousAccidentList = await seriousAccidentTask;
- var specialSeriousAccidentList = await specialSeriousAccidentTask;
- var companyComprehensivePlanList = await companyComprehensivePlanTask;
- var companySpecialPlanList = await companySpecialPlanTask;
- var companyOnSiteDisposalPlanList = await companyOnSiteDisposalPlanTask;
- var companyDrillList = await companyDrillTask;
- var projectComprehensivePlanList = await projectComprehensivePlanTask;
- var projectSpecialPlanList = await projectSpecialPlanTask;
- var projectOnSiteDisposalPlanList = await projectOnSiteDisposalPlanTask;
- var projectDrillList = await projectDrillTask;
- var costExtractList = await costExtractTask;
- var costUseList = await costUseTask;
- var useEquipmentList = await useEquipmentTask;
- var specialEquipmentList = await specialEquipmentTask;
- var licensesList = await licensesTask;
- var licensesCloseList = await licensesCloseTask;
- var generalHiddenRectificationOutputsList = await generalHiddenRectificationOutputsTask;
- var majorHiddenRectificationOutputsList = await majorHiddenRectificationOutputsTask;
+ // 统一获取异步方法的返回值
+ var totalEnergyConsumption = totalEnergyConsumptionTask;
+ var incomeComprehensiveEnergyConsumption = incomeComprehensiveEnergyConsumptionTask;
+ var newWaterConsumption = newWaterConsumptionTask;
+ var safetyInjectionEngineerList = await safetyInjectionEngineerTask;
+ var certificateAList = await certificateATask;
+ var certificateBList = await certificateBTask;
+ var certificateCList = await certificateCTask;
+ var beUnderConstructionList = await beUnderConstructionTask;
+ var shutdownList = await shutdownTask;
+ var joinConstructionPersonList = await joinConstructionPersonTask;
+ var majorProjectsUnderConstructionList = await majorProjectsUnderConstructionTask;
+ var totalWorkingHour = await totalWorkingHourTask;
+ var lostWorkingHour = await lostWorkingHourTask;
+ var safeWorkingHour = await safeWorkingHourTask;
+ var safeTrainList = await safeTrainTask;
+ var specialTrainList = await specialTrainTask;
+ var specialOperationTrainList = await specialOperationTrainTask;
+ var headOfficeInspectorGeneralList = await headOfficeInspectorGeneralTask;
+ var headOfficeFullTimeList = await headOfficeFullTimeTask;
+ var branchInspectorGeneralList = await branchInspectorGeneralTask;
+ var branchFullTimeList = await branchFullTimeTask;
+ var projectInspectorGeneralList = await projectInspectorGeneralTask;
+ var projectFullTimeList = await projectFullTimeTask;
+ var projectSafetyMonitorList = await projectSafetyMonitorTask;
+ var safetyCommitteeMeetingList = await safetyCommitteeMeetingTask;
+ var enterpriseTopicsMeetingList = await enterpriseTopicsMeetingTask;
+ var projectSafetyLeadingGroupMeetingList = await projectSafetyLeadingGroupMeetingTask;
+ var projectSafetyMeetingList = await projectSafetyMeetingTask;
+ var companyLeadShiftCheckList = await companyLeadShiftCheckTask;
+ var companyComprehensiveCheckList = await companyComprehensiveCheckTask;
+ var companySpecialCheckList = await companySpecialCheckTask;
+ var projectLeadShiftCheckList = await projectLeadShiftCheckTask;
+ var projectSpecialCheckList = await projectSpecialCheckTask;
+ var projectMajorCheckList = await projectMajorCheckTask;
+ var nearMissList = await nearMissTask;
+ var recordableEventList = await recordableEventTask;
+ var generalAccidentList = await generalAccidentTask;
+ var majorAccidentList = await majorAccidentTask;
+ var seriousAccidentList = await seriousAccidentTask;
+ var specialSeriousAccidentList = await specialSeriousAccidentTask;
+ var companyComprehensivePlanList = await companyComprehensivePlanTask;
+ var companySpecialPlanList = await companySpecialPlanTask;
+ var companyOnSiteDisposalPlanList = await companyOnSiteDisposalPlanTask;
+ var companyDrillList = await companyDrillTask;
+ var projectComprehensivePlanList = await projectComprehensivePlanTask;
+ var projectSpecialPlanList = await projectSpecialPlanTask;
+ var projectOnSiteDisposalPlanList = await projectOnSiteDisposalPlanTask;
+ var projectDrillList = await projectDrillTask;
+ var costExtractList = await costExtractTask;
+ var costUseList = await costUseTask;
+ var useEquipmentList = await useEquipmentTask;
+ var specialEquipmentList = await specialEquipmentTask;
+ var licensesList = await licensesTask;
+ var licensesCloseList = await licensesCloseTask;
+ var generalHiddenRectificationOutputsList = await generalHiddenRectificationOutputsTask;
+ var majorHiddenRectificationOutputsList = await majorHiddenRectificationOutputsTask;
- // 构造结果对象
- var table = new HSSEData_HSSE
- {
- JoinConstructionPersonNum = joinConstructionPersonList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- MajorProjectsUnderConstructionNum = majorProjectsUnderConstructionList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- TotalWorkingHour = totalWorkingHour,
- LostWorkingHour = lostWorkingHour,
- SafeWorkingHour = safeWorkingHour,
- SafeTrainNum = safeTrainList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.TrainPersonNum),
- SpecialTrainNum = specialTrainList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.TrainPersonNum),
- SpecialOperationTrainNum = specialOperationTrainList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.TrainPersonNum),
- EnvironmentalTrainNum = 0,
- TotalEnergyConsumption = totalEnergyConsumption,
- IncomeComprehensiveEnergyConsumption = incomeComprehensiveEnergyConsumption,
- NewWaterConsumption = newWaterConsumption,
- HeadOfficeInspectorGeneralNum = headOfficeInspectorGeneralList.Count(),
- HeadOfficeFullTimeNum = headOfficeFullTimeList.Count,
- BranchInspectorGeneralNum = branchInspectorGeneralList.Count,
- BranchFullTimeNum = branchFullTimeList.Count,
- ProjectInspectorGeneralNum = projectInspectorGeneralList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- ProjectFullTimeNum = projectFullTimeList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- ProjectSafetyMonitorNum = projectSafetyMonitorList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- ProjectSafetyLeadingGroupMeetingNum = projectSafetyLeadingGroupMeetingList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- ProjectSafetyMeetingNum = projectSafetyMeetingList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- CompanyLeadShiftCheckNum = companyLeadShiftCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- CompanyComprehensiveCheckNum = companyComprehensiveCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- CompanySpecialCheckNum = companySpecialCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- ProjectLeadShiftCheckNum = projectLeadShiftCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- ProjectSpecialCheckNum = projectSpecialCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- ProjectMajorCheckNum = projectMajorCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- NearMissNum = nearMissList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- RecordableEventNum = recordableEventList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- GeneralAccidentNum = generalAccidentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- MajorAccidentNum = majorAccidentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- SeriousAccidentNum = seriousAccidentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- SpecialSeriousAccidentNum = specialSeriousAccidentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- CompanyComprehensivePlanNum = companyComprehensivePlanList.Count(x => x.UnitId == _unitId),
- CompanySpecialPlanNum = companySpecialPlanList.Count(x => x.UnitId == _unitId),
- CompanyOnSiteDisposalPlan = companyOnSiteDisposalPlanList.Count(x => x.UnitId == _unitId),
- CompanyDrillNum = companyDrillList.Count(x => x.UnitId.Contains(_unitId)),
- ProjectComprehensivePlanNum = projectComprehensivePlanList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- ProjectSpecialPlanNum = projectSpecialPlanList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- ProjectOnSiteDisposalPlan = projectOnSiteDisposalPlanList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- ProjectDrillNum = projectDrillList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- CostExtract = Convert.ToInt32(costExtractList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.SUMCost)),
- CostUse = Convert.ToInt32(costUseList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.SUMCost)),
- UseEquipmentNum = useEquipmentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- SpecialEquipmentNum = specialEquipmentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- LicensesNum = licensesList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- LicensesCloseNum = licensesCloseList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
- GeneralClosedNum = generalHiddenRectificationOutputsList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.RecNum),
- GeneralNotClosedNum = generalHiddenRectificationOutputsList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.NoRecNum),
- MajorClosedNum = majorHiddenRectificationOutputsList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.RecNum),
- MajorNotClosedNum = majorHiddenRectificationOutputsList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.NoRecNum),
- LowRiskNum = securityRiskOutputListTask.Result.Sum(x => x.LowRiskNum),
- GeneralRiskNum = securityRiskOutputListTask.Result.Sum(x => x.GeneralRiskNum),
- MediumRiskNum = securityRiskOutputListTask.Result.Sum(x => x.MediumRiskNum),
- HighRiskNum = securityRiskOutputListTask.Result.Sum(x => x.HighRiskNum),
- CompletedNum = largeEngineeringOutputsTask.Result.Sum(x => x.CompletedNum),
- TrainPersonNum = largeEngineeringOutputsTask.Result.Sum(x => x.TrainPersonNum),
- ConstructionNum = largeEngineeringOutputsTask.Result.Sum(x => x.ConstructionNum),
- FinishedNum = largeEngineeringOutputsTask.Result.Sum(x => x.FinishedNum),
- SuperCompletedNum = largeEngineeringOutputsTask.Result.Sum(x => x.SuperCompletedNum),
- SuperTrainPersonNum = largeEngineeringOutputsTask.Result.Sum(x => x.SuperTrainPersonNum),
- SuperConstructionNum = largeEngineeringOutputsTask.Result.Sum(x => x.SuperConstructionNum)
- };
+ // 构造结果对象
+ var table = new HSSEData_HSSE
+ {
+ JoinConstructionPersonNum = joinConstructionPersonList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ MajorProjectsUnderConstructionNum = majorProjectsUnderConstructionList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ TotalWorkingHour = totalWorkingHour,
+ LostWorkingHour = lostWorkingHour,
+ SafeWorkingHour = safeWorkingHour,
+ SafeTrainNum = safeTrainList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.TrainPersonNum),
+ SpecialTrainNum = specialTrainList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.TrainPersonNum),
+ SpecialOperationTrainNum = specialOperationTrainList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.TrainPersonNum),
+ EnvironmentalTrainNum = 0,
+ TotalEnergyConsumption = totalEnergyConsumption,
+ IncomeComprehensiveEnergyConsumption = incomeComprehensiveEnergyConsumption,
+ NewWaterConsumption = newWaterConsumption,
+ HeadOfficeInspectorGeneralNum = headOfficeInspectorGeneralList.Count(),
+ HeadOfficeFullTimeNum = headOfficeFullTimeList.Count,
+ BranchInspectorGeneralNum = branchInspectorGeneralList.Count,
+ BranchFullTimeNum = branchFullTimeList.Count,
+ ProjectInspectorGeneralNum = projectInspectorGeneralList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ ProjectFullTimeNum = projectFullTimeList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ ProjectSafetyMonitorNum = projectSafetyMonitorList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ ProjectSafetyLeadingGroupMeetingNum = projectSafetyLeadingGroupMeetingList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ ProjectSafetyMeetingNum = projectSafetyMeetingList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ CompanyLeadShiftCheckNum = companyLeadShiftCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ CompanyComprehensiveCheckNum = companyComprehensiveCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ CompanySpecialCheckNum = companySpecialCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ ProjectLeadShiftCheckNum = projectLeadShiftCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ ProjectSpecialCheckNum = projectSpecialCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ ProjectMajorCheckNum = projectMajorCheckList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ NearMissNum = nearMissList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ RecordableEventNum = recordableEventList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ GeneralAccidentNum = generalAccidentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ MajorAccidentNum = majorAccidentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ SeriousAccidentNum = seriousAccidentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ SpecialSeriousAccidentNum = specialSeriousAccidentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ CompanyComprehensivePlanNum = companyComprehensivePlanList.Count(x => x.UnitId == _unitId),
+ CompanySpecialPlanNum = companySpecialPlanList.Count(x => x.UnitId == _unitId),
+ CompanyOnSiteDisposalPlan = companyOnSiteDisposalPlanList.Count(x => x.UnitId == _unitId),
+ CompanyDrillNum = companyDrillList.Count(x => x.UnitId.Contains(_unitId)),
+ ProjectComprehensivePlanNum = projectComprehensivePlanList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ ProjectSpecialPlanNum = projectSpecialPlanList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ ProjectOnSiteDisposalPlan = projectOnSiteDisposalPlanList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ ProjectDrillNum = projectDrillList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ CostExtract = Convert.ToInt32(costExtractList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.SUMCost)),
+ CostUse = Convert.ToInt32(costUseList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.SUMCost)),
+ UseEquipmentNum = useEquipmentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ SpecialEquipmentNum = specialEquipmentList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ LicensesNum = licensesList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ LicensesCloseNum = licensesCloseList.Count(x => _beUnderConstructionList.Contains(x.ProjectId)),
+ GeneralClosedNum = generalHiddenRectificationOutputsList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.RecNum),
+ GeneralNotClosedNum = generalHiddenRectificationOutputsList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.NoRecNum),
+ MajorClosedNum = majorHiddenRectificationOutputsList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.RecNum),
+ MajorNotClosedNum = majorHiddenRectificationOutputsList.Where(x => _beUnderConstructionList.Contains(x.ProjectId)).Sum(x => x.NoRecNum),
+ LowRiskNum = securityRiskOutputListTask.Result.Sum(x => x.LowRiskNum),
+ GeneralRiskNum = securityRiskOutputListTask.Result.Sum(x => x.GeneralRiskNum),
+ MediumRiskNum = securityRiskOutputListTask.Result.Sum(x => x.MediumRiskNum),
+ HighRiskNum = securityRiskOutputListTask.Result.Sum(x => x.HighRiskNum),
+ CompletedNum = largeEngineeringOutputsTask.Result.Sum(x => x.CompletedNum),
+ TrainPersonNum = largeEngineeringOutputsTask.Result.Sum(x => x.TrainPersonNum),
+ ConstructionNum = largeEngineeringOutputsTask.Result.Sum(x => x.ConstructionNum),
+ FinishedNum = largeEngineeringOutputsTask.Result.Sum(x => x.FinishedNum),
+ SuperCompletedNum = largeEngineeringOutputsTask.Result.Sum(x => x.SuperCompletedNum),
+ SuperTrainPersonNum = largeEngineeringOutputsTask.Result.Sum(x => x.SuperTrainPersonNum),
+ SuperConstructionNum = largeEngineeringOutputsTask.Result.Sum(x => x.SuperConstructionNum)
+ };
- if (_unitType == 0)
- {
- table.BeUnderConstructionNum = beUnderConstructionList.Count();
- table.ShutdownNum = shutdownList.Count();
- table.SafetyInjectionEngineer = safetyInjectionEngineerList.Count();
- table.EnterpriseTopicsMeetingNum = enterpriseTopicsMeetingList.Count();
- table.CertificateANum = certificateAList.Count();
- table.CertificateBNum = certificateBList.Count();
- table.CertificateCNum = certificateCList.Count();
- table.SafetyCommitteeMeetingNum = safetyCommitteeMeetingList.Count();
+ if (_unitType == 0)
+ {
+ table.BeUnderConstructionNum = beUnderConstructionList.Count();
+ table.ShutdownNum = shutdownList.Count();
+ table.SafetyInjectionEngineer = safetyInjectionEngineerList.Count();
+ table.EnterpriseTopicsMeetingNum = enterpriseTopicsMeetingList.Count();
+ table.CertificateANum = certificateAList.Count();
+ table.CertificateBNum = certificateBList.Count();
+ table.CertificateCNum = certificateCList.Count();
+ table.SafetyCommitteeMeetingNum = safetyCommitteeMeetingList.Count();
- }
- else if (_unitType == 1)
- {
- table.BeUnderConstructionNum = beUnderConstructionList.Count(x => x.UnitId == _unitId);
- table.ShutdownNum = shutdownList.Count(x => x.UnitId == _unitId);
- table.SafetyCommitteeMeetingNum = safetyCommitteeMeetingList.Count(x => x.UnitId == _unitId);
- table.SafetyInjectionEngineer = safetyInjectionEngineerList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
- table.EnterpriseTopicsMeetingNum = safetyInjectionEngineerList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
- table.CertificateANum = certificateAList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
- table.CertificateBNum = certificateBList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
- table.CertificateCNum = certificateCList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
- }
+ }
+ else if (_unitType == 1)
+ {
+ table.BeUnderConstructionNum = beUnderConstructionList.Count(x => x.UnitId == _unitId);
+ table.ShutdownNum = shutdownList.Count(x => x.UnitId == _unitId);
+ table.SafetyCommitteeMeetingNum = safetyCommitteeMeetingList.Count(x => x.UnitId == _unitId);
+ table.SafetyInjectionEngineer = safetyInjectionEngineerList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
+ table.EnterpriseTopicsMeetingNum = safetyInjectionEngineerList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
+ table.CertificateANum = certificateAList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
+ table.CertificateBNum = certificateBList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
+ table.CertificateCNum = certificateCList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
+ }
- _hsseData = table;
- return _hsseData;
+ _hsseData = table;
+ return _hsseData;
}
catch (Exception ex)
{
@@ -326,35 +327,36 @@ public class MainSevice
}
}
- public List GetDataHiddenDangerDetailItems()
- {
- var db = Funs.DB;
- var list = from x in db.HSSE_Hazard_HazardRegister
- where _beUnderConstructionList.Contains(x.ProjectId)
- select x;
- var data = (from x in list
- join y in db.HSSE_Hazard_HazardRegisterTypes on x.RegisterTypesId equals y.RegisterTypesId
- group x by new
- { x.ProjectId, x.RegisterTypesId, y.RegisterTypesName }
- into g
- select new
- {
- UnitId = _unitId,
- ProjectId = g.Key.ProjectId,
- TypeName = g.Key.RegisterTypesName,
- TotalNum = g.Count(),
- NeedRectifyNum = g.Count(x => x.States == "1"),
- }).ToList();
+ public List GetDataHiddenDangerDetailItems()
+ {
+ var db = Funs.DB;
+ var list = from x in db.HSSE_Hazard_HazardRegister
+ where _beUnderConstructionList.Contains(x.ProjectId)
+ select x;
+ var data = (from x in list
+ join y in db.HSSE_Hazard_HazardRegisterTypes on x.RegisterTypesId equals y.RegisterTypesId
+ group x by new
+ { x.ProjectId, x.RegisterTypesId, y.RegisterTypesName }
+ into g
+ select new
+ {
+ UnitId = _unitId,
+ ProjectId = g.Key.ProjectId,
+ TypeName = g.Key.RegisterTypesName,
+ TotalNum = g.Count(),
+ NeedRectifyNum = g.Count(x => x.States == "1"),
+ }).ToList();
- var result = (from x in data
- group x by x.TypeName into g
- select new Model.HSSEDataHiddenDangerDetailItem
- {
- Id = SQLHelper.GetNewID(),
- TypeName = g.Key,
- NeedRectifyNum = g.Sum(p => p.NeedRectifyNum),
- TotalNum = g.Sum(p => p.TotalNum)
- }).ToList();
- return result;
+ var result = (from x in data
+ group x by x.TypeName into g
+ select new Model.HSSEDataHiddenDangerDetailItem
+ {
+ Id = SQLHelper.GetNewID(),
+ TypeName = g.Key,
+ NeedRectifyNum = g.Sum(p => p.NeedRectifyNum),
+ TotalNum = g.Sum(p => p.TotalNum)
+ }).ToList();
+ return result;
+ }
}
-} }
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_DefectService.cs b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_DefectService.cs
index 52844020..fa35ce2d 100644
--- a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_DefectService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_DefectService.cs
@@ -1,11 +1,9 @@
using FineUIPro;
-using NPOI.SS.Formula.Functions;
+using Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
{
@@ -49,17 +47,17 @@ namespace BLL
if (count == 0) return null;
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
- select new
- {
- x.Id,
- x.ProjectId,
- x.UnitId,
- x.CollCropCode,
- x.UnitName,
- x.ReportDate,
- x.DefectName,
- x.DefectNum
- };
+ select new
+ {
+ x.Id,
+ x.ProjectId,
+ x.UnitId,
+ x.CollCropCode,
+ x.UnitName,
+ x.ReportDate,
+ x.DefectName,
+ x.DefectNum
+ };
}
#endregion
@@ -79,8 +77,8 @@ namespace BLL
string projectid)
{
var q = from x in db.Project_HJGLData_Defect
- where x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0 && x.ProjectId == projectid
- select x;
+ where x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0 && x.ProjectId == projectid
+ select x;
return q.ToList();
}
@@ -183,9 +181,9 @@ namespace BLL
{
var result = false;
var q = (from x in Funs.DB.Project_HJGLData_Defect
- where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date &&
- x.ProjectId == projectid && x.DefectName == type
- select x).ToList();
+ where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date &&
+ x.ProjectId == projectid && x.DefectName == type
+ select x).ToList();
if (q != null && q.Count > 0) result = true;
return result;
}
@@ -198,24 +196,24 @@ namespace BLL
public static Project_HJGLData_Defect getTodayProject_HJGLData_Defect(string projectid, string type)
{
var q = (from x in Funs.DB.Project_HJGLData_Defect
- where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date &&
- x.ProjectId == projectid && x.DefectName == type
- select x).FirstOrDefault();
+ where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date &&
+ x.ProjectId == projectid && x.DefectName == type
+ select x).FirstOrDefault();
return q;
}
public static List getTodayProject_HJGLData_Defect()
{
var q = (from x in Funs.DB.Project_HJGLData_Defect
- where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date
- group x by x.DefectName
+ where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date
+ group x by x.DefectName
into g
- select new HJGLDataDefectItems
- {
- Id = SQLHelper.GetNewID(),
- DefectName = g.Key,
- DefectNum = g.Sum(p => p.DefectNum)
- }).ToList();
+ select new HJGLDataDefectItems
+ {
+ Id = SQLHelper.GetNewID(),
+ DefectName = g.Key,
+ DefectNum = g.Sum(p => p.DefectNum)
+ }).ToList();
return q;
}
public static List GetModelByUnitIdAndReportDate(string Unitid, DateTime? reportdate)
@@ -226,33 +224,33 @@ namespace BLL
}
var projectlist = BLL.ProjectService.GetProjectWorkList();
var q = (from x in Funs.DB.Project_HJGLData_Defect
- where x.ReportDate == reportdate && projectlist.Select(e => e.ProjectId).Contains(x.ProjectId)
+ where x.ReportDate == reportdate && projectlist.Select(e => e.ProjectId).Contains(x.ProjectId)
group x by x.DefectName
into g
- select new HJGLDataDefectItems
- {
- Id = SQLHelper.GetNewID(),
- DefectName = g.Key,
- DefectNum = g.Sum(p => p.DefectNum)
- }).ToList();
+ select new HJGLDataDefectItems
+ {
+ Id = SQLHelper.GetNewID(),
+ DefectName = g.Key,
+ DefectNum = g.Sum(p => p.DefectNum)
+ }).ToList();
return q;
}
- public static List GetModelByReportDate( DateTime? reportdate)
+ public static List GetModelByReportDate(DateTime? reportdate)
{
if (!reportdate.HasValue)
{
return new List();
}
var q = (from x in Funs.DB.Project_HJGLData_Defect
- where x.ReportDate == reportdate
- group x by x.DefectName
+ where x.ReportDate == reportdate
+ group x by x.DefectName
into g
- select new HJGLDataDefectItems
- {
- Id = SQLHelper.GetNewID(),
- DefectName = g.Key,
- DefectNum = g.Sum(p => p.DefectNum)
- }).ToList();
+ select new HJGLDataDefectItems
+ {
+ Id = SQLHelper.GetNewID(),
+ DefectName = g.Key,
+ DefectNum = g.Sum(p => p.DefectNum)
+ }).ToList();
return q;
}
///
diff --git a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGLService.cs b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGLService.cs
index f31d647f..2a9e2f39 100644
--- a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGLService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGLService.cs
@@ -1,13 +1,10 @@
using FineUIPro;
+using Model;
+using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
-using RestSharp;
-using Newtonsoft.Json;
-using static BLL.Project_CQMSDataService;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSEService.cs b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSEService.cs
index e8c23fbb..e5b69beb 100644
--- a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSEService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSEService.cs
@@ -1,10 +1,10 @@
-using System;
+using FineUIPro;
+using Model;
+using Newtonsoft.Json;
+using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using FineUIPro;
-using Model;
-using Newtonsoft.Json;
namespace BLL
{
@@ -1334,12 +1334,12 @@ namespace BLL
{
var result = (from x in Funs.DB.InApproveManager_EquipmentInItem
join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId
- where y.ProjectId == projectid
+ where y.ProjectId == projectid
select x).Count() +
(from x in Funs.DB.InApproveManager_GeneralEquipmentInItem
join y in Funs.DB.InApproveManager_GeneralEquipmentIn on x.GeneralEquipmentInId equals y
.GeneralEquipmentInId
- where y.ProjectId == projectid
+ where y.ProjectId == projectid
select x).Count();
return result;
}
@@ -1352,7 +1352,7 @@ namespace BLL
{
var result = (from x in Funs.DB.InApproveManager_EquipmentInItem
join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId
- where y.ProjectId == projectid
+ where y.ProjectId == projectid
select x).Count();
return result;
}
@@ -1442,7 +1442,7 @@ namespace BLL
{
var result = (from x in Funs.DB.Hazard_HazardSelectedItem
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
- where x.ProjectId == projectid && (y.RiskLevel == 2 || x.HazardLevel == "2") && x.IsStart == true
+ where x.ProjectId == projectid && (y.RiskLevel == 2 || x.HazardLevel == "2") && x.IsStart == true
select x).Count();
return result;
}
@@ -1455,7 +1455,7 @@ namespace BLL
{
var result = (from x in Funs.DB.Hazard_HazardSelectedItem
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
- where x.ProjectId == projectid && (y.RiskLevel == 1 || x.HazardLevel == "1") && x.IsStart == true
+ where x.ProjectId == projectid && (y.RiskLevel == 1 || x.HazardLevel == "1") && x.IsStart == true
select x).Count();
return result;
}
@@ -1468,7 +1468,7 @@ namespace BLL
{
var result = (from x in Funs.DB.Hazard_HazardSelectedItem
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
- where x.ProjectId == projectid && (y.RiskLevel == 3 || x.HazardLevel == "3") && x.IsStart == true
+ where x.ProjectId == projectid && (y.RiskLevel == 3 || x.HazardLevel == "3") && x.IsStart == true
select x).Count();
return result;
}
@@ -1481,7 +1481,7 @@ namespace BLL
{
var result = (from x in Funs.DB.Hazard_HazardSelectedItem
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
- where x.ProjectId == projectid && y.RiskLevel == 4 && x.IsStart == true
+ where x.ProjectId == projectid && y.RiskLevel == 4 && x.IsStart == true
select x).Count();
return result;
}
@@ -1752,7 +1752,7 @@ namespace BLL
where (x.IsUpdate == null || x.IsUpdate == false) && x.CheckTime > BLL.Const.DtmarkTime
&& x.ProblemTypes == "1"
&& x.ProjectState == "1"
- // && x.IsBranch.Value == true
+ // && x.IsBranch.Value == true
select new Model.Hazard_HazardRegisterItem
{
HazardRegisterId = x.HazardRegisterId,
diff --git a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HiddenDangerDetailService.cs b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HiddenDangerDetailService.cs
index d76ea2fc..ad5a777a 100644
--- a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HiddenDangerDetailService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HiddenDangerDetailService.cs
@@ -4,7 +4,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -112,10 +111,10 @@ namespace BLL
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
-
+
db.Project_HSSEData_HiddenDangerDetail.InsertAllOnSubmit(newtables);
db.SubmitChanges();
- }
+ }
}
public static void UpdateProject_HSSEData_HiddenDangerDetail(Model.Project_HSSEData_HiddenDangerDetail newtable)
{
@@ -172,7 +171,7 @@ namespace BLL
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
- var table = db.Project_HSSEData_HiddenDangerDetail.Where(x => x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0 );
+ var table = db.Project_HSSEData_HiddenDangerDetail.Where(x => x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0);
db.Project_HSSEData_HiddenDangerDetail.DeleteAllOnSubmit(table);
db.SubmitChanges();
}
@@ -213,14 +212,14 @@ namespace BLL
public static List GetTodayModel()
{
var q = (from x in Funs.DB.Project_HSSEData_HiddenDangerDetail
- where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date
+ where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date
group x by x.TypeName into g
select new Model.HSSEDataHiddenDangerDetailItem
{
Id = SQLHelper.GetNewID(),
- TypeName= g.Key,
- NeedRectifyNum= g.Sum(p => p.NeedRectifyNum),
- TotalNum= g.Sum(p => p.TotalNum)
+ TypeName = g.Key,
+ NeedRectifyNum = g.Sum(p => p.NeedRectifyNum),
+ TotalNum = g.Sum(p => p.TotalNum)
}).ToList();
return q;
}
@@ -234,15 +233,15 @@ namespace BLL
{
var projectlist = BLL.ProjectService.GetProjectWorkList();
var q = (from x in Funs.DB.Project_HSSEData_HiddenDangerDetail
- where x.ReportDate == reportdate && projectlist.Select(e => e.ProjectId).Contains(x.ProjectId)
+ where x.ReportDate == reportdate && projectlist.Select(e => e.ProjectId).Contains(x.ProjectId)
group x by x.TypeName into g
- select new Model.HSSEDataHiddenDangerDetailItem
- {
- Id = SQLHelper.GetNewID(),
- TypeName = g.Key,
- NeedRectifyNum = g.Sum(p => p.NeedRectifyNum),
- TotalNum = g.Sum(p => p.TotalNum)
- }).ToList();
+ select new Model.HSSEDataHiddenDangerDetailItem
+ {
+ Id = SQLHelper.GetNewID(),
+ TypeName = g.Key,
+ NeedRectifyNum = g.Sum(p => p.NeedRectifyNum),
+ TotalNum = g.Sum(p => p.TotalNum)
+ }).ToList();
return q;
}
///
@@ -250,24 +249,24 @@ namespace BLL
///
///
///
- public static List GetModelByReportDate( DateTime? reportdate)
+ public static List GetModelByReportDate(DateTime? reportdate)
{
var q = (from x in Funs.DB.Project_HSSEData_HiddenDangerDetail
- where x.ReportDate == reportdate
- group x by x.TypeName into g
- select new Model.HSSEDataHiddenDangerDetailItem
- {
- Id = SQLHelper.GetNewID(),
- TypeName = g.Key,
- NeedRectifyNum = g.Sum(p => p.NeedRectifyNum),
- TotalNum = g.Sum(p => p.TotalNum)
- }).ToList();
+ where x.ReportDate == reportdate
+ group x by x.TypeName into g
+ select new Model.HSSEDataHiddenDangerDetailItem
+ {
+ Id = SQLHelper.GetNewID(),
+ TypeName = g.Key,
+ NeedRectifyNum = g.Sum(p => p.NeedRectifyNum),
+ TotalNum = g.Sum(p => p.TotalNum)
+ }).ToList();
return q;
}
- public static List GetModelByReportDate(DateTime? reportdate,string projectid)
+ public static List GetModelByReportDate(DateTime? reportdate, string projectid)
{
var q = (from x in Funs.DB.Project_HSSEData_HiddenDangerDetail
- where x.ReportDate == reportdate && x.ProjectId==projectid
+ where x.ReportDate == reportdate && x.ProjectId == projectid
group x by x.TypeName into g
select new Model.HSSEDataHiddenDangerDetailItem
{
@@ -290,24 +289,25 @@ namespace BLL
thisUnitId = thisUnit.UnitId;
}
var baseUnit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
- var list = from x in db.HSSE_Hazard_HazardRegister where projectids.Contains(x.ProjectId)
- select x;
+ var list = from x in db.HSSE_Hazard_HazardRegister
+ where projectids.Contains(x.ProjectId)
+ select x;
var data = (from x in list
- join y in db.HSSE_Hazard_HazardRegisterTypes on x.RegisterTypesId equals y.RegisterTypesId
- group x by new
- { x.ProjectId, x.RegisterTypesId ,y.RegisterTypesName}
+ join y in db.HSSE_Hazard_HazardRegisterTypes on x.RegisterTypesId equals y.RegisterTypesId
+ group x by new
+ { x.ProjectId, x.RegisterTypesId, y.RegisterTypesName }
into g
- select new
- {
- UnitId = thisUnitId,
- CollCropCode = baseUnit.CollCropCode,
- UnitName = baseUnit.UnitName,
- ProjectId= g.Key.ProjectId,
- ReportDate = DateTime.Now.Date,
- TypeName=g.Key.RegisterTypesName,
- TotalNum = g.Count(),
- NeedRectifyNum = g.Count(x => x.States == "1"),
- }).ToList();
+ select new
+ {
+ UnitId = thisUnitId,
+ CollCropCode = baseUnit.CollCropCode,
+ UnitName = baseUnit.UnitName,
+ ProjectId = g.Key.ProjectId,
+ ReportDate = DateTime.Now.Date,
+ TypeName = g.Key.RegisterTypesName,
+ TotalNum = g.Count(),
+ NeedRectifyNum = g.Count(x => x.States == "1"),
+ }).ToList();
DeleteProject_HSSEData_HiddenDangerDetailByDate(DateTime.Now.Date);
var projectHsseDataHiddenDangerDetails = new List();
foreach (var item in data)
diff --git a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_SYHSEData_SYHSEService.cs b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_SYHSEData_SYHSEService.cs
index 83402270..9eb3d552 100644
--- a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_SYHSEData_SYHSEService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_SYHSEData_SYHSEService.cs
@@ -3,10 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
-using Newtonsoft.Json;
-using static BLL.Project_HJGLData_HJGLService;
namespace BLL
{
@@ -56,7 +52,7 @@ namespace BLL
public static int count
{
get;
- set;
+ set;
}
public static List GetProject_SYHSEData_SYHSEByModle(Model.Project_SYHSEData_SYHSE table)
{
@@ -66,7 +62,7 @@ namespace BLL
(string.IsNullOrEmpty(table.ProjectId) || x.Id.Contains(table.ProjectId)) &&
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
- (string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName))
+ (string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName))
select x
;
@@ -80,13 +76,13 @@ namespace BLL
///
public static IEnumerable getListData(Model.Project_SYHSEData_SYHSE table, Grid Grid1)
{
- var q = GetProject_SYHSEData_SYHSEByModle(table);
+ var q = GetProject_SYHSEData_SYHSEByModle(table);
count = q.Count();
if (count == 0)
{
return null;
}
- //q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ //q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
{
@@ -301,7 +297,7 @@ namespace BLL
///
///
///
- public static void StatisticalData(string projectid,SYHSESDateType sYHSESDateType)
+ public static void StatisticalData(string projectid, SYHSESDateType sYHSESDateType)
{
string thisUnitId = string.Empty;
var thisUnit = CommonService.GetIsThisUnit();
@@ -325,7 +321,7 @@ namespace BLL
table.ProjectId = projectid;
table.ReportDate = DateTime.Now.Date;
- if (sYHSESDateType== SYHSESDateType.RiskControl || sYHSESDateType == SYHSESDateType.All)
+ if (sYHSESDateType == SYHSESDateType.RiskControl || sYHSESDateType == SYHSESDateType.All)
{
table.GeneralRiskNum = GetGeneralRiskNum(projectid);
table.LowRiskNum = GetLowRiskNum(projectid);
diff --git a/SGGL/BLL/ZHGL/DataSync/SYHSEData_DataService.cs b/SGGL/BLL/ZHGL/DataSync/SYHSEData_DataService.cs
index e90facda..3174d431 100644
--- a/SGGL/BLL/ZHGL/DataSync/SYHSEData_DataService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/SYHSEData_DataService.cs
@@ -5,7 +5,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
@@ -27,7 +26,7 @@ namespace BLL
var q = from x in Funs.DB.SYHSEData_Data
where
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
- (string.IsNullOrEmpty(table.FactoryId) || x.FactoryId.Contains(table.FactoryId))
+ (string.IsNullOrEmpty(table.FactoryId) || x.FactoryId.Contains(table.FactoryId))
select x
;
@@ -86,31 +85,31 @@ namespace BLL
}
public static Model.NewSYHSEData GetItemById(string Id)
{
- var data=GetSYHSEData_DataById(Id);
+ var data = GetSYHSEData_DataById(Id);
var data_realtime = HazardRealtimedeviceService.GetHazard_RealTimeDeviceByDate(data.ReportDate);
- var data_hidden= SyhsedataHiddendangercheckService.GetSYHSEData_HiddenDangerCheckByDate(data.ReportDate);
- var data_risk= SyhsedataRiskcontrolService.GetSYHSEData_RiskControlByDate(data.ReportDate);
+ var data_hidden = SyhsedataHiddendangercheckService.GetSYHSEData_HiddenDangerCheckByDate(data.ReportDate);
+ var data_risk = SyhsedataRiskcontrolService.GetSYHSEData_RiskControlByDate(data.ReportDate);
NewSYHSEData APIData = new NewSYHSEData();
- var APIDataList_Item= new List();
- var APIDataList_Relatime= new List();
- var APIDataList_Hidden= new List();
- var APIDataList_Risk= new List();
+ var APIDataList_Item = new List();
+ var APIDataList_Relatime = new List();
+ var APIDataList_Hidden = new List();
+ var APIDataList_Risk = new List();
foreach (var tb in data_realtime)
{
var q = new NewSYHSEDataRealTimeDeviceItem()
{
- Id=tb.ID,
- HazardName=tb.HazardName,
- HazardLevel=tb.HazardLevel,
- DeviceName=tb.DeviceName,
- Medium=tb.Medium,
- MeasurementUnit=tb.MeasurementUnit,
- DateTime=tb.DateTime.ToString(),
- Value=tb.Value,
-
+ Id = tb.ID,
+ HazardName = tb.HazardName,
+ HazardLevel = tb.HazardLevel,
+ DeviceName = tb.DeviceName,
+ Medium = tb.Medium,
+ MeasurementUnit = tb.MeasurementUnit,
+ DateTime = tb.DateTime.ToString(),
+ Value = tb.Value,
+
};
APIDataList_Relatime.Add(q);
@@ -120,10 +119,10 @@ namespace BLL
{
var q = new NewSYHSEDataHiddenDangerCheckItem()
{
- Id=tb.Id,
- HiddenDangerName=tb.HiddenDangerName,
- TotalNum=tb.TotalNum.HasValue ? tb.TotalNum.Value:0,
- OKNum=tb.OKNum.HasValue ? tb.OKNum.Value : 0,
+ Id = tb.Id,
+ HiddenDangerName = tb.HiddenDangerName,
+ TotalNum = tb.TotalNum.HasValue ? tb.TotalNum.Value : 0,
+ OKNum = tb.OKNum.HasValue ? tb.OKNum.Value : 0,
};
APIDataList_Hidden.Add(q);
@@ -133,31 +132,31 @@ namespace BLL
{
var q = new NewSYHSEDataRiskControlItem()
- {
- Id=tb.Id,
- RiskControlName=tb.RiskControlName,
-
- };
+ {
+ Id = tb.Id,
+ RiskControlName = tb.RiskControlName,
+
+ };
APIDataList_Risk.Add(q);
}
var thisUnit = CommonService.GetIsThisUnit();
NewSYHSEDataItem Item = new NewSYHSEDataItem();
Item.Id = data.Id;
- Item.ReportDate=data.ReportDate.ToString();
+ Item.ReportDate = data.ReportDate.ToString();
Item.UnitId = thisUnit.UnitId;
Item.CollCropCode = thisUnit.CollCropCode;
- Item.UnitName= thisUnit.UnitName;
+ Item.UnitName = thisUnit.UnitName;
Item.FactoryId = data.FactoryId;
- Item.FactoryCode = ProjectService.GetProjectByProjectId(data.FactoryId).ProjectCode;
+ Item.FactoryCode = ProjectService.GetProjectByProjectId(data.FactoryId).ProjectCode;
Item.FactoryName = ProjectService.GetProjectByProjectId(data.FactoryId).ProjectName;
Item.Address = ProjectService.GetProjectByProjectId(data.FactoryId).ProjectAddress;
- Item.MapCoordinates= ProjectService.GetProjectByProjectId(data.FactoryId).MapCoordinates;
- Item.SafetyMnaHours = data.SafetyMnaHours.HasValue ? data.SafetyMnaHours.Value : 0;
- Item.GeneralRiskNum = data.GeneralRiskNum.HasValue ? data.GeneralRiskNum.Value : 0;
- Item.LowRiskNum = data.LowRiskNum.HasValue ? data.LowRiskNum.Value : 0;
- Item.MoreRiskNum = data.MoreRiskNum.HasValue ? data.MoreRiskNum.Value : 0;
- Item.GreatRiskNum = data.GreatRiskNum.HasValue ? data.GreatRiskNum.Value : 0;
+ Item.MapCoordinates = ProjectService.GetProjectByProjectId(data.FactoryId).MapCoordinates;
+ Item.SafetyMnaHours = data.SafetyMnaHours.HasValue ? data.SafetyMnaHours.Value : 0;
+ Item.GeneralRiskNum = data.GeneralRiskNum.HasValue ? data.GeneralRiskNum.Value : 0;
+ Item.LowRiskNum = data.LowRiskNum.HasValue ? data.LowRiskNum.Value : 0;
+ Item.MoreRiskNum = data.MoreRiskNum.HasValue ? data.MoreRiskNum.Value : 0;
+ Item.GreatRiskNum = data.GreatRiskNum.HasValue ? data.GreatRiskNum.Value : 0;
Item.NewSYHSEDataRiskControlItems = APIDataList_Risk;
Item.NewSYHSEDataRealTimeDeviceItems = APIDataList_Relatime;
Item.NewSYHSEDataHiddenDangerCheckItems = APIDataList_Hidden;
@@ -165,7 +164,7 @@ namespace BLL
APIDataList_Item.Add(Item);
APIData.NewSYHSEDataItems = APIDataList_Item;
-
+
return APIData;
}
diff --git a/SGGL/BLL/ZHGL/DataSync/SYHSEData_HiddenDangerCheckService.cs b/SGGL/BLL/ZHGL/DataSync/SYHSEData_HiddenDangerCheckService.cs
index c25d8c2d..7519ed98 100644
--- a/SGGL/BLL/ZHGL/DataSync/SYHSEData_HiddenDangerCheckService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/SYHSEData_HiddenDangerCheckService.cs
@@ -3,8 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -27,7 +25,7 @@ namespace BLL
where
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
(string.IsNullOrEmpty(table.FactoryId) || x.FactoryId.Contains(table.FactoryId)) &&
- (string.IsNullOrEmpty(table.HiddenDangerName) || x.HiddenDangerName.Contains(table.HiddenDangerName))
+ (string.IsNullOrEmpty(table.HiddenDangerName) || x.HiddenDangerName.Contains(table.HiddenDangerName))
select x
;
diff --git a/SGGL/BLL/ZHGL/DataSync/SYHSEData_RiskControlService.cs b/SGGL/BLL/ZHGL/DataSync/SYHSEData_RiskControlService.cs
index d13aab2c..356a4d38 100644
--- a/SGGL/BLL/ZHGL/DataSync/SYHSEData_RiskControlService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/SYHSEData_RiskControlService.cs
@@ -3,8 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -27,7 +25,7 @@ namespace BLL
where
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
(string.IsNullOrEmpty(table.FactoryId) || x.FactoryId.Contains(table.FactoryId)) &&
- (string.IsNullOrEmpty(table.RiskControlName) || x.RiskControlName.Contains(table.RiskControlName))
+ (string.IsNullOrEmpty(table.RiskControlName) || x.RiskControlName.Contains(table.RiskControlName))
select x
;
diff --git a/SGGL/BLL/ZHGL/DataSync/SYHSEData_SYHSEService.cs b/SGGL/BLL/ZHGL/DataSync/SYHSEData_SYHSEService.cs
index 19b0cc25..6a6eccba 100644
--- a/SGGL/BLL/ZHGL/DataSync/SYHSEData_SYHSEService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/SYHSEData_SYHSEService.cs
@@ -10,7 +10,7 @@ namespace BLL
{
public static class SYHSEData_SYHSEService
{
-
+
#region 获取列表
@@ -307,7 +307,7 @@ namespace BLL
q.State = Const.CNCEC_State_1;
UpdateSYHSEData_SYHSE(q);
}
-
+
}
public static bool IsReportByDate(DateTime dateTime)
{
diff --git a/SGGL/BLL/ZHGL/DataSync/ServerService.cs b/SGGL/BLL/ZHGL/DataSync/ServerService.cs
index 029ab842..ab3a943b 100644
--- a/SGGL/BLL/ZHGL/DataSync/ServerService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/ServerService.cs
@@ -4,13 +4,8 @@ using Newtonsoft.Json.Linq;
using RestSharp;
using System;
using System.Collections.Generic;
-using System.Linq;
using System.Net;
-using System.Net.Configuration;
-using System.Security.Policy;
-using System.Text;
using System.Threading.Tasks;
-using ResponeData = Model.ResponeData;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Emergency/UnitDrillRecordListService.cs b/SGGL/BLL/ZHGL/Emergency/UnitDrillRecordListService.cs
index 98387ba3..0c8152b4 100644
--- a/SGGL/BLL/ZHGL/Emergency/UnitDrillRecordListService.cs
+++ b/SGGL/BLL/ZHGL/Emergency/UnitDrillRecordListService.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
{
@@ -10,7 +9,7 @@ namespace BLL
///
public static class UnitDrillRecordListService
{
-
+
///
/// 根据主键获取应急演练
diff --git a/SGGL/BLL/ZHGL/Emergency/UnitEmergencyListService.cs b/SGGL/BLL/ZHGL/Emergency/UnitEmergencyListService.cs
index a18fe6a7..95c8578d 100644
--- a/SGGL/BLL/ZHGL/Emergency/UnitEmergencyListService.cs
+++ b/SGGL/BLL/ZHGL/Emergency/UnitEmergencyListService.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
namespace BLL
{
@@ -10,7 +9,7 @@ namespace BLL
///
public static class UnitEmergencyListService
{
-
+
///
/// 根据主键获取应急预案管理
diff --git a/SGGL/BLL/ZHGL/Environmental/ArchitectureReportItemService.cs b/SGGL/BLL/ZHGL/Environmental/ArchitectureReportItemService.cs
index 1055883f..02ce98e9 100644
--- a/SGGL/BLL/ZHGL/Environmental/ArchitectureReportItemService.cs
+++ b/SGGL/BLL/ZHGL/Environmental/ArchitectureReportItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Web.UI.WebControls;
namespace BLL
diff --git a/SGGL/BLL/ZHGL/Environmental/ArchitectureReportService.cs b/SGGL/BLL/ZHGL/Environmental/ArchitectureReportService.cs
index 9c66875b..ea454cb3 100644
--- a/SGGL/BLL/ZHGL/Environmental/ArchitectureReportService.cs
+++ b/SGGL/BLL/ZHGL/Environmental/ArchitectureReportService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Environmental/ChemicalReportItemService.cs b/SGGL/BLL/ZHGL/Environmental/ChemicalReportItemService.cs
index 74db3a56..cf651a4d 100644
--- a/SGGL/BLL/ZHGL/Environmental/ChemicalReportItemService.cs
+++ b/SGGL/BLL/ZHGL/Environmental/ChemicalReportItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Web.UI.WebControls;
namespace BLL
diff --git a/SGGL/BLL/ZHGL/Environmental/ChemicalReportService.cs b/SGGL/BLL/ZHGL/Environmental/ChemicalReportService.cs
index 595bbba2..b7a61d0e 100644
--- a/SGGL/BLL/ZHGL/Environmental/ChemicalReportService.cs
+++ b/SGGL/BLL/ZHGL/Environmental/ChemicalReportService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Environmental/EnergyReportService.cs b/SGGL/BLL/ZHGL/Environmental/EnergyReportService.cs
index 84ed5c08..28e0052e 100644
--- a/SGGL/BLL/ZHGL/Environmental/EnergyReportService.cs
+++ b/SGGL/BLL/ZHGL/Environmental/EnergyReportService.cs
@@ -1,10 +1,7 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -29,7 +26,7 @@ namespace BLL
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
(string.IsNullOrEmpty(table.FillingMan) || x.FillingMan.Contains(table.FillingMan)) &&
(string.IsNullOrEmpty(table.DutyPerson) || x.DutyPerson.Contains(table.DutyPerson)) &&
- (string.IsNullOrEmpty(table.UpState) || x.UpState.Contains(table.UpState))
+ (string.IsNullOrEmpty(table.UpState) || x.UpState.Contains(table.UpState))
select x
;
diff --git a/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs b/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs
index 3db7ab0d..497f34c8 100644
--- a/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs
+++ b/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs
@@ -1,10 +1,7 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -31,7 +28,7 @@ namespace BLL
(string.IsNullOrEmpty(table.BusinessCategory) || x.BusinessCategory.Contains(table.BusinessCategory)) &&
(string.IsNullOrEmpty(table.Throughput_UnitOfMeasurement) || x.Throughput_UnitOfMeasurement.Contains(table.Throughput_UnitOfMeasurement)) &&
(string.IsNullOrEmpty(table.Yield_UnitOfMeasurement) || x.Yield_UnitOfMeasurement.Contains(table.Yield_UnitOfMeasurement)) &&
- (string.IsNullOrEmpty(table.OperationScale_UnitOfMeasurement) || x.OperationScale_UnitOfMeasurement.Contains(table.OperationScale_UnitOfMeasurement))
+ (string.IsNullOrEmpty(table.OperationScale_UnitOfMeasurement) || x.OperationScale_UnitOfMeasurement.Contains(table.OperationScale_UnitOfMeasurement))
select x
;
@@ -97,7 +94,7 @@ namespace BLL
{
return (from x in Funs.DB.Environmental_EnergyReportItem
where x.EnergyReportId == EnergyReportId
- orderby x.SortIndex,x.SortUnit
+ orderby x.SortIndex, x.SortUnit
select x).ToList();
}
@@ -139,7 +136,7 @@ namespace BLL
{
var q = (from x in Funs.DB.Environmental_EnergyReportItem
where x.EnergyReportId == EnergyReportId
- orderby x.SortIndex,x.SortUnit
+ orderby x.SortIndex, x.SortUnit
select x).ToList();
//List newItems = new List();
//foreach (var item in q)
@@ -168,7 +165,7 @@ namespace BLL
// newItem.ServiceOperatingIncome_BasePeriod = item.ServiceOperatingIncome_BasePeriod;
// newItem.ServiceOperatingIncome_LastYear = item.ServiceOperatingIncome_LastYear;
// newItem.ServiceOperatingIncome_ThisYear = item.ServiceOperatingIncome_ThisYear;
-
+
// newItems.Add(newItem);
//}
return q;
@@ -213,7 +210,7 @@ namespace BLL
db1.SubmitChanges();
}
-
+
public static void UpdateEnvironmental_EnergyReportItem(Model.Environmental_EnergyReportItem newtable)
{
var db1 = Funs.DB;
@@ -277,7 +274,7 @@ namespace BLL
db.SubmitChanges();
}
}
-
+
}
}
\ No newline at end of file
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportItemService.cs b/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportItemService.cs
index 8d464322..a1af0d79 100644
--- a/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportItemService.cs
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Web.UI.WebControls;
namespace BLL
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportService.cs b/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportService.cs
index 4df36456..9fbbe69f 100644
--- a/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportService.cs
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectArchitectureReportService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportItemService.cs b/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportItemService.cs
index de3598ec..a84a5a4d 100644
--- a/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportItemService.cs
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Web.UI.WebControls;
namespace BLL
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportService.cs b/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportService.cs
index b70d6a7a..4530b8ac 100644
--- a/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportService.cs
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectChemicalReportService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectEnergyReportService.cs b/SGGL/BLL/ZHGL/Environmental/ProjectEnergyReportService.cs
index 264507da..6160f844 100644
--- a/SGGL/BLL/ZHGL/Environmental/ProjectEnergyReportService.cs
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectEnergyReportService.cs
@@ -1,11 +1,7 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Security.Cryptography;
-using System.Text;
-using Model;
namespace BLL
@@ -91,7 +87,7 @@ namespace BLL
FillingDate = newtable.FillingDate,
DutyPerson = newtable.DutyPerson,
UpState = newtable.UpState,
- ProjectId=newtable.ProjectId,
+ ProjectId = newtable.ProjectId,
};
var db1 = Funs.DB;
db1.Environmental_ProjectEnergyReport.InsertOnSubmit(table);
@@ -142,7 +138,7 @@ namespace BLL
table.FillingDate = newtable.FillingDate;
table.DutyPerson = newtable.DutyPerson;
table.UpState = newtable.UpState;
- table.ProjectId=newtable.ProjectId;
+ table.ProjectId = newtable.ProjectId;
db1.SubmitChanges();
}
diff --git a/SGGL/BLL/ZHGL/Environmental/ProjectEnergyreportItemService .cs b/SGGL/BLL/ZHGL/Environmental/ProjectEnergyreportItemService .cs
index 67676f15..64dd79f3 100644
--- a/SGGL/BLL/ZHGL/Environmental/ProjectEnergyreportItemService .cs
+++ b/SGGL/BLL/ZHGL/Environmental/ProjectEnergyreportItemService .cs
@@ -1,10 +1,7 @@
using FineUIPro;
-using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using Model;
namespace BLL
@@ -126,7 +123,7 @@ namespace BLL
return (from x in Funs.DB.Environmental_ProjectEnergyReportItem
join y in Funs.DB.Environmental_ProjectEnergyReport
on x.EnergyReportId equals y.EnergyReportId
- where y.Year == year && y.Quarters== Quarters
+ where y.Year == year && y.Quarters == Quarters
select x).Distinct().ToList();
}
public static List GetLastYearItems(int year)
@@ -134,7 +131,7 @@ namespace BLL
return (from x in Funs.DB.Environmental_ProjectEnergyReportItem
join y in Funs.DB.Environmental_ProjectEnergyReport
on x.EnergyReportId equals y.EnergyReportId
- where y.Year == year
+ where y.Year == year
select x).Distinct().ToList();
}
///
diff --git a/SGGL/BLL/ZHGL/Information/AccidentCauseReportService.cs b/SGGL/BLL/ZHGL/Information/AccidentCauseReportService.cs
index 98c58cbe..54c91720 100644
--- a/SGGL/BLL/ZHGL/Information/AccidentCauseReportService.cs
+++ b/SGGL/BLL/ZHGL/Information/AccidentCauseReportService.cs
@@ -1,12 +1,9 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
- public static class AccidentCauseReportService
+ public static class AccidentCauseReportService
{
///
/// 职工伤亡事故原因分析报表
diff --git a/SGGL/BLL/ZHGL/Information/ActionWorkLedgerItemService.cs b/SGGL/BLL/ZHGL/Information/ActionWorkLedgerItemService.cs
index b388fd5d..4102a9db 100644
--- a/SGGL/BLL/ZHGL/Information/ActionWorkLedgerItemService.cs
+++ b/SGGL/BLL/ZHGL/Information/ActionWorkLedgerItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs b/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs
index ed3eb2c9..26fe6245 100644
--- a/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs
+++ b/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/DrillConductedQuarterlyReportItemService.cs b/SGGL/BLL/ZHGL/Information/DrillConductedQuarterlyReportItemService.cs
index 5905c642..efea4200 100644
--- a/SGGL/BLL/ZHGL/Information/DrillConductedQuarterlyReportItemService.cs
+++ b/SGGL/BLL/ZHGL/Information/DrillConductedQuarterlyReportItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/DrillConductedQuarterlyReportService.cs b/SGGL/BLL/ZHGL/Information/DrillConductedQuarterlyReportService.cs
index 632d321a..7111ba36 100644
--- a/SGGL/BLL/ZHGL/Information/DrillConductedQuarterlyReportService.cs
+++ b/SGGL/BLL/ZHGL/Information/DrillConductedQuarterlyReportService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/DrillPlanHalfYearReportItemService.cs b/SGGL/BLL/ZHGL/Information/DrillPlanHalfYearReportItemService.cs
index abeefef0..80e25f29 100644
--- a/SGGL/BLL/ZHGL/Information/DrillPlanHalfYearReportItemService.cs
+++ b/SGGL/BLL/ZHGL/Information/DrillPlanHalfYearReportItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/DrillPlanHalfYearReportService.cs b/SGGL/BLL/ZHGL/Information/DrillPlanHalfYearReportService.cs
index 33a9a966..2e425f1c 100644
--- a/SGGL/BLL/ZHGL/Information/DrillPlanHalfYearReportService.cs
+++ b/SGGL/BLL/ZHGL/Information/DrillPlanHalfYearReportService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs b/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs
index 690e8fc2..260b0b62 100644
--- a/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs
+++ b/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/QualityWorkSummaryReportService.cs b/SGGL/BLL/ZHGL/Information/QualityWorkSummaryReportService.cs
index 25e1059c..e73b2eaf 100644
--- a/SGGL/BLL/ZHGL/Information/QualityWorkSummaryReportService.cs
+++ b/SGGL/BLL/ZHGL/Information/QualityWorkSummaryReportService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/QuarterlyProjectQualityService.cs b/SGGL/BLL/ZHGL/Information/QuarterlyProjectQualityService.cs
index b0b6a6af..627816f4 100644
--- a/SGGL/BLL/ZHGL/Information/QuarterlyProjectQualityService.cs
+++ b/SGGL/BLL/ZHGL/Information/QuarterlyProjectQualityService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
@@ -28,7 +24,7 @@ namespace BLL
/// 年度
/// 季度
/// 季度工程项目质量信息表
- public static Model.Information_QuarterlyProjectQuality GetQuarterlyProjectQualityByUnitIdAndYearAndQuarter(string unitId, int year,int quarter)
+ public static Model.Information_QuarterlyProjectQuality GetQuarterlyProjectQualityByUnitIdAndYearAndQuarter(string unitId, int year, int quarter)
{
return Funs.DB.Information_QuarterlyProjectQuality.FirstOrDefault(e => e.UnitId == unitId && e.Year == year && e.Quarter == quarter);
}
diff --git a/SGGL/BLL/ZHGL/Information/SafetyBriefingService.cs b/SGGL/BLL/ZHGL/Information/SafetyBriefingService.cs
index 78e56ee2..7cff35bb 100644
--- a/SGGL/BLL/ZHGL/Information/SafetyBriefingService.cs
+++ b/SGGL/BLL/ZHGL/Information/SafetyBriefingService.cs
@@ -1,15 +1,11 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
///
/// 实业安全简报
///
- public static class SafetyBriefingService
+ public static class SafetyBriefingService
{
///
/// 根据主键获取实业安全简报
@@ -28,7 +24,7 @@ namespace BLL
/// 年度
/// 月份
/// 实业安全简报
- public static Model.Information_SafetyBriefing GetSafetyBriefingByUnitIdAndYearAndMonth(string unitId, int year,int month)
+ public static Model.Information_SafetyBriefing GetSafetyBriefingByUnitIdAndYearAndMonth(string unitId, int year, int month)
{
return Funs.DB.Information_SafetyBriefing.FirstOrDefault(e => e.UnitId == unitId && e.YearId == year && e.Month == month);
}
@@ -49,19 +45,19 @@ namespace BLL
CompileDate = safetyBriefing.CompileDate,
Auditor = safetyBriefing.Auditor,
Approver = safetyBriefing.Approver,
- MainWork=safetyBriefing.MainWork,
- HazardRecording=safetyBriefing.HazardRecording,
- SafetyAccident=safetyBriefing.SafetyAccident,
- EPAccident=safetyBriefing.EPAccident,
- OHAccident=safetyBriefing.OHAccident,
- WorkPermitNum=safetyBriefing.WorkPermitNum,
- HiddenDangerDetection=safetyBriefing.HiddenDangerDetection,
- RectificationSituation=safetyBriefing.RectificationSituation,
- CheckProblemsRectification=safetyBriefing.CheckProblemsRectification,
- PendingProject=safetyBriefing.PendingProject,
- ContractorManagement=safetyBriefing.ContractorManagement,
- EnvironmentalEmissions=safetyBriefing.EnvironmentalEmissions,
- NextMonthWorkPlan=safetyBriefing.NextMonthWorkPlan,
+ MainWork = safetyBriefing.MainWork,
+ HazardRecording = safetyBriefing.HazardRecording,
+ SafetyAccident = safetyBriefing.SafetyAccident,
+ EPAccident = safetyBriefing.EPAccident,
+ OHAccident = safetyBriefing.OHAccident,
+ WorkPermitNum = safetyBriefing.WorkPermitNum,
+ HiddenDangerDetection = safetyBriefing.HiddenDangerDetection,
+ RectificationSituation = safetyBriefing.RectificationSituation,
+ CheckProblemsRectification = safetyBriefing.CheckProblemsRectification,
+ PendingProject = safetyBriefing.PendingProject,
+ ContractorManagement = safetyBriefing.ContractorManagement,
+ EnvironmentalEmissions = safetyBriefing.EnvironmentalEmissions,
+ NextMonthWorkPlan = safetyBriefing.NextMonthWorkPlan,
UpState = safetyBriefing.UpState
};
Funs.DB.Information_SafetyBriefing.InsertOnSubmit(newSafetyBriefing);
diff --git a/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationItemService.cs b/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationItemService.cs
index 0a0e72bb..f95f6f27 100644
--- a/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationItemService.cs
+++ b/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationService.cs b/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationService.cs
index ba36d562..284587ba 100644
--- a/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationService.cs
+++ b/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/SafetyQuarterlyReportService.cs b/SGGL/BLL/ZHGL/Information/SafetyQuarterlyReportService.cs
index 11136073..b3eef020 100644
--- a/SGGL/BLL/ZHGL/Information/SafetyQuarterlyReportService.cs
+++ b/SGGL/BLL/ZHGL/Information/SafetyQuarterlyReportService.cs
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Information/UrgeReportService.cs b/SGGL/BLL/ZHGL/Information/UrgeReportService.cs
index b33408f2..2e847b20 100644
--- a/SGGL/BLL/ZHGL/Information/UrgeReportService.cs
+++ b/SGGL/BLL/ZHGL/Information/UrgeReportService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Meeting/CompanySafetyMeetingService.cs b/SGGL/BLL/ZHGL/Meeting/CompanySafetyMeetingService.cs
index 503e46d4..eecceb13 100644
--- a/SGGL/BLL/ZHGL/Meeting/CompanySafetyMeetingService.cs
+++ b/SGGL/BLL/ZHGL/Meeting/CompanySafetyMeetingService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class CompanySafetyMeetingService
{
-
+
///
/// 根据主键获取企业安委会
diff --git a/SGGL/BLL/ZHGL/Meeting/CompanySpecialMeetingService.cs b/SGGL/BLL/ZHGL/Meeting/CompanySpecialMeetingService.cs
index 00d4515e..8b05a68d 100644
--- a/SGGL/BLL/ZHGL/Meeting/CompanySpecialMeetingService.cs
+++ b/SGGL/BLL/ZHGL/Meeting/CompanySpecialMeetingService.cs
@@ -9,7 +9,7 @@ namespace BLL
///
public static class CompanySpecialMeetingService
{
-
+
///
/// 根据主键获取企业专题会
diff --git a/SGGL/BLL/ZHGL/Plan/MainContractOpinionService.cs b/SGGL/BLL/ZHGL/Plan/MainContractOpinionService.cs
index be983c72..8115d843 100644
--- a/SGGL/BLL/ZHGL/Plan/MainContractOpinionService.cs
+++ b/SGGL/BLL/ZHGL/Plan/MainContractOpinionService.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
namespace BLL
diff --git a/SGGL/BLL/ZHGL/Plan/ProjectPlanOpinionService.cs b/SGGL/BLL/ZHGL/Plan/ProjectPlanOpinionService.cs
index b972b82e..8a55dcb6 100644
--- a/SGGL/BLL/ZHGL/Plan/ProjectPlanOpinionService.cs
+++ b/SGGL/BLL/ZHGL/Plan/ProjectPlanOpinionService.cs
@@ -1,5 +1,4 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
namespace BLL
@@ -12,7 +11,7 @@ namespace BLL
///
///
///
- public static IList getListData(string ProjectPlanId,string personId)
+ public static IList getListData(string ProjectPlanId, string personId)
{
Model.SGGLDB db = Funs.DB;
if (!string.IsNullOrEmpty(personId))
diff --git a/SGGL/BLL/ZHGL/RealName/BasicDataService.cs b/SGGL/BLL/ZHGL/RealName/BasicDataService.cs
index db320a11..43013ef9 100644
--- a/SGGL/BLL/ZHGL/RealName/BasicDataService.cs
+++ b/SGGL/BLL/ZHGL/RealName/BasicDataService.cs
@@ -6,7 +6,7 @@ namespace BLL
{
public static class BasicDataService
{
-
+
///
/// 根据主键获取字典信息
diff --git a/SGGL/BLL/ZHGL/RealName/CityService.cs b/SGGL/BLL/ZHGL/RealName/CityService.cs
index 6fb87689..fb4c66cf 100644
--- a/SGGL/BLL/ZHGL/RealName/CityService.cs
+++ b/SGGL/BLL/ZHGL/RealName/CityService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class CityService
{
-
+
///
/// 根据主键获取国家信息
diff --git a/SGGL/BLL/ZHGL/RealName/CountryService.cs b/SGGL/BLL/ZHGL/RealName/CountryService.cs
index d0c7877d..97f18333 100644
--- a/SGGL/BLL/ZHGL/RealName/CountryService.cs
+++ b/SGGL/BLL/ZHGL/RealName/CountryService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class CountryService
{
-
+
///
/// 根据主键获取国家信息
diff --git a/SGGL/BLL/ZHGL/RealName/OnPostService.cs b/SGGL/BLL/ZHGL/RealName/OnPostService.cs
index 0cd1cdfb..82546f4f 100644
--- a/SGGL/BLL/ZHGL/RealName/OnPostService.cs
+++ b/SGGL/BLL/ZHGL/RealName/OnPostService.cs
@@ -1,7 +1,6 @@
using FineUIPro;
using System.Collections;
using System.Linq;
-using Model;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/RealName/RealName_ProjectService.cs b/SGGL/BLL/ZHGL/RealName/RealName_ProjectService.cs
index 3808a1c0..04a39174 100644
--- a/SGGL/BLL/ZHGL/RealName/RealName_ProjectService.cs
+++ b/SGGL/BLL/ZHGL/RealName/RealName_ProjectService.cs
@@ -5,7 +5,7 @@ namespace BLL
{
public static class RealName_ProjectService
{
-
+
///
///
diff --git a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs
index 5ae369f5..75cb1d88 100644
--- a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs
+++ b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs
@@ -256,7 +256,7 @@ namespace BLL
Success = Success,
Code = Code,
Message = Message,
- PushTime = DateTime.Now,
+ PushTime = DateTime.Now,
};
if (Code != "200")
{
@@ -762,7 +762,7 @@ namespace BLL
&& x.UnitType != null
&& (proCode == null || y.ContractNo == proCode)
&& u.CollCropCode != null && u.CollCropCode != ""
- && z.JTproCode != null && x.IsSynchro == true
+ && z.JTproCode != null && x.IsSynchro == true
select new
{
unitId = x.UnitId,
@@ -1289,16 +1289,16 @@ namespace BLL
join z in Funs.DB.RealName_Project on y.ContractNo equals z.ProCode
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
join w in Funs.DB.Base_WorkPost on x.WorkPostId equals w.WorkPostId
- where x.IdentityCard == identityCard && y.ContractNo == proCode
+ where x.IdentityCard == identityCard && y.ContractNo == proCode
&& v.TeamId.HasValue
&& z.JTproCode != null
select new
{
name = x.PersonName,
idcardType = "SHENFEN_ZHENGJIAN",
- idcardNumber = x.IdentityCard,
+ idcardNumber = x.IdentityCard,
proCode = z.JTproCode,
- teamId = v.TeamId,
+ teamId = v.TeamId,
userType = ((w.PostType == "1" || w.PostType == "4") ? "LAB_USER_MANAGE" : "LAB_USER_BULIDER"),
workType = w.WorkPostCode,
isLeave = x.OutTime.HasValue ? "Y" : "N",
@@ -1318,7 +1318,7 @@ namespace BLL
};
var updatelistObject = new
{
- list = getData.Select(x => new { x.name, x.idcardType, x.idcardNumber, x.proCode, x.teamId, x.userType, x.workType, x.isLeave, x.entryTime, x.exitTime })
+ list = getData.Select(x => new { x.name, x.idcardType, x.idcardNumber, x.proCode, x.teamId, x.userType, x.workType, x.isLeave, x.entryTime, x.exitTime })
};
pushContent = JsonConvert.SerializeObject(updatelistObject);
returndata = BLL.APIGetHttpService.OutsideHttp(Funs.RealNameApiUrl + "/foreignApi/accept/updatePersons", "POST", contenttype, newToken, JsonConvert.SerializeObject(updatelistObject));
@@ -1523,7 +1523,7 @@ namespace BLL
&& v.TeamId.HasValue && r.TeamId.HasValue
&& p.States == Const.State_1
&& !x.RealNamePushTime.HasValue
- && z.JTproCode.Length> 0
+ && z.JTproCode.Length > 0
&& pu.IsSynchro == true
orderby x.ChangeTime descending
select new
diff --git a/SGGL/BLL/ZHGL/Supervise/SubUnitCheckRectifyItemService.cs b/SGGL/BLL/ZHGL/Supervise/SubUnitCheckRectifyItemService.cs
index 11bde67b..f718cdac 100644
--- a/SGGL/BLL/ZHGL/Supervise/SubUnitCheckRectifyItemService.cs
+++ b/SGGL/BLL/ZHGL/Supervise/SubUnitCheckRectifyItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Supervise/SubUnitCheckRectifyService.cs b/SGGL/BLL/ZHGL/Supervise/SubUnitCheckRectifyService.cs
index b0ba9ed7..3c45c176 100644
--- a/SGGL/BLL/ZHGL/Supervise/SubUnitCheckRectifyService.cs
+++ b/SGGL/BLL/ZHGL/Supervise/SubUnitCheckRectifyService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Supervise/SuperviseCheckRectifyItemService.cs b/SGGL/BLL/ZHGL/Supervise/SuperviseCheckRectifyItemService.cs
index 9b3ba215..a6dc2c6c 100644
--- a/SGGL/BLL/ZHGL/Supervise/SuperviseCheckRectifyItemService.cs
+++ b/SGGL/BLL/ZHGL/Supervise/SuperviseCheckRectifyItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
@@ -48,8 +45,8 @@ namespace BLL
OrderEndPerson = superviseCheckRectifyItem.OrderEndPerson,
RealEndDate = superviseCheckRectifyItem.RealEndDate,
AttachUrl = superviseCheckRectifyItem.AttachUrl,
- VerifierName=superviseCheckRectifyItem.VerifierName,
- VerifierDate=superviseCheckRectifyItem.VerifierDate,
+ VerifierName = superviseCheckRectifyItem.VerifierName,
+ VerifierDate = superviseCheckRectifyItem.VerifierDate,
};
Funs.DB.Supervise_SuperviseCheckRectifyItem.InsertOnSubmit(newSuperviseCheckRectifyItem);
Funs.DB.SubmitChanges();
diff --git a/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportItemService.cs b/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportItemService.cs
index 75f09e57..b7f06b5b 100644
--- a/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportItemService.cs
+++ b/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportItemService.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
diff --git a/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportService.cs b/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportService.cs
index 8cf74d02..e5d5dc91 100644
--- a/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportService.cs
+++ b/SGGL/BLL/ZHGL/Supervise/SuperviseCheckReportService.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Linq;
namespace BLL
{
diff --git a/SGGL/FineUIPro.Mobile/AttachFile/Look.aspx b/SGGL/FineUIPro.Mobile/AttachFile/Look.aspx
index 92b04e2f..bc231e62 100644
--- a/SGGL/FineUIPro.Mobile/AttachFile/Look.aspx
+++ b/SGGL/FineUIPro.Mobile/AttachFile/Look.aspx
@@ -10,10 +10,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+