From fc30cb39eedf2b81889b6c6ad3561f1d9553452a Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Fri, 20 Sep 2024 10:19:08 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Global=20Using?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../BusinessFilter/UnifiedApiResultFilter.cs | 2 +-
IRC.Core.SCP/HostConfig/AutofacModuleSetup.cs | 2 +-
IRC.Core.SCP/Service/BaseService.cs | 2 +-
.../Controllers/ExtraController.cs | 2 +-
.../Controllers/FinancialChangeController.cs | 2 +-
IRaCIS.Core.API/Progranm.cs | 2 +-
.../_PipelineExtensions/HangfireConfig.cs | 2 +-
.../_ServiceExtensions/AutofacModuleSetup.cs | 2 +-
IRaCIS.Core.Application/Auth/IRaCISClaims.cs | 8 +-
IRaCIS.Core.Application/Auth/IRaCISPolicy.cs | 10 +-
IRaCIS.Core.Application/Auth/JwtSetting.cs | 3 +-
IRaCIS.Core.Application/Auth/TokenService.cs | 8 +-
.../BackGroundJob/IRaCISCHangfireJob.cs | 8 +-
.../BackGroundJob/ObtainTaskAutoCancelJob.cs | 9 +-
IRaCIS.Core.Application/BaseService.cs | 7 +-
.../Encryption/AesEncryption.cs | 10 +-
.../Encryption/EncreptApiResultFilter.cs | 4 -
.../Encryption/EncryptionRequestMiddleware.cs | 7 +-
.../Encryption/RSAEncryption.cs | 8 +-
.../BusinessFilter/GlobalExceptionHandler.cs | 6 -
.../LimitUserRequestAuthorization.cs | 10 +-
.../BusinessFilter/ModelActionFilter .cs | 19 +-
.../BusinessFilter/ModelBinding.cs | 1 -
.../BusinessFilter/ProjectExceptionFilter.cs | 1 -
.../BusinessFilter/UnifiedApiResultFilter.cs | 8 +-
IRaCIS.Core.Application/GlobalUsings.cs | 12 +
.../Attribute/DictionaryTranslateAttribute.cs | 13 +-
IRaCIS.Core.Application/Helper/CacheHelper.cs | 9 +-
.../Helper/ExcelExportHelper.cs | 12 +-
.../Helper/FileConvertHelper.cs | 7 +-
.../Helper/FileStoreHelper.cs | 41 +-
.../Helper/HangfireJobHelper.cs | 14 +-
.../Helper/HolidayHelper.cs | 5 -
.../Helper/IRCEmailPasswordHelper.cs | 9 +-
IRaCIS.Core.Application/Helper/ImageHelper.cs | 4 +-
.../Helper/InternationalizationHelper.cs | 12 +-
IRaCIS.Core.Application/Helper/OSSService.cs | 45 +-
.../Helper/SendEmailHelper.cs | 8 +-
.../Helper/WordTempleteHelper.cs | 5 -
.../IRaCIS.Core.Application.csproj | 15 -
.../IRaCIS.Core.Application.xml | 4350 ++++++++---------
.../Command/ConsistenCheckCommand.cs | 5 -
.../Consumer/ConsistencyCheckConsumer.cs | 7 +-
.../DTO/TaskAllocationRuleViewModel.cs | 23 +-
.../DTO/TaskConsistentRuleViewModel.cs | 22 +-
.../DTO/TaskMedicalReviewRuleViewModel.cs | 7 +-
.../DTO/TaskMedicalReviewViewModel.cs | 20 +-
.../Allocation/DTO/VisitTaskViewModel.cs | 36 +-
.../Interface/ITaskAllocationRuleService.cs | 24 +-
.../Interface/ITaskConsistentRuleService.cs | 24 +-
.../Interface/IVisitTaskHelpeService.cs | 2 +-
.../Allocation/TaskAllocationRuleService.cs | 7 +-
.../Allocation/TaskConsistentRuleService.cs | 23 +-
.../TaskMedicalReviewRuleService.cs | 17 +-
.../Allocation/TaskMedicalReviewService.cs | 76 +-
.../Allocation/VisitTaskHelpeService.cs | 39 +-
.../Service/Allocation/VisitTaskService.cs | 27 +-
.../Service/Allocation/_MapConfig.cs | 42 +-
.../Service/Common/CommonDocumentService.cs | 20 +-
.../Common/DTO/CommonDocumentViewModel.cs | 6 +-
.../Service/Common/DTO/DictionaryModel.cs | 13 +-
.../Common/DTO/EmailNoticeConfigViewModel.cs | 4 +-
.../Common/DTO/ExploreRecommendViewModel.cs | 11 +-
.../Common/DTO/FrontAuditConfigViewModel.cs | 25 +-
.../DTO/InternationalizationViewModel.cs | 5 +-
.../Service/Common/DTO/PublishLogViewModel.cs | 5 +-
.../Service/Common/DTO/SysMessageModel.cs | 4 +-
.../Common/DTO/SystemBasicDataViewModel.cs | 14 +-
.../Service/Common/DTO/SystemLogModel.cs | 10 +-
.../Service/Common/DevelopService.cs | 5 -
.../Service/Common/DictionaryService.cs | 168 +-
.../Common/EmailNoticeConfigService.cs | 11 +-
.../Service/Common/ExcelExportService.cs | 67 +-
.../Service/Common/ExploreRecommendService.cs | 11 +-
.../Service/Common/FileService.cs | 8 +-
.../Interface/ICommonDocumentService.cs | 22 +-
.../Common/Interface/IDictionaryService.cs | 9 +-
.../Interface/IExploreRecommendService.cs | 22 +-
.../Service/Common/Interface/IFileService.cs | 4 +-
.../Interface/IFrontAuditConfigService.cs | 24 +-
.../Service/Common/Interface/ILogService.cs | 5 +-
.../Common/Interface/IMessageService.cs | 4 +-
.../Common/Interface/IPublishLogService.cs | 22 +-
.../Interface/ISystemBasicDataService.cs | 24 +-
.../Common/InternationalizationService.cs | 14 +-
.../Service/Common/MailService.cs | 36 +-
.../Service/Common/PublishLogService.cs | 12 +-
.../Service/Common/SystemBasicDataService.cs | 10 +-
.../Service/Common/SystemMonitor.cs | 24 +-
.../Service/Common/_MapConfig.cs | 4 +-
.../Service/Doctor/AttachmentService.cs | 49 +-
.../Service/Doctor/DTO/AttachmentModel.cs | 4 +-
.../Doctor/DTO/DoctorAccountRegisterModel.cs | 4 +-
.../Service/Doctor/DTO/DoctorModel.cs | 35 +-
.../Service/Doctor/DTO/EducationModel.cs | 17 +-
.../Service/Doctor/DTO/HolidayModel.cs | 4 +-
.../Doctor/DTO/ResearchPublicationModel.cs | 4 +-
.../Doctor/DTO/TrialExperienceModel.cs | 6 +-
.../Service/Doctor/DoctorListService.cs | 29 +-
.../Service/Doctor/DoctorService.cs | 22 +-
.../Service/Doctor/EducationService.cs | 17 +-
.../Doctor/Interface/IAttachmentService.cs | 9 +-
.../Doctor/Interface/IDoctorAccountService.cs | 5 +-
.../Interface/IDoctorListQueryService.cs | 14 +-
.../Doctor/Interface/IDoctorService.cs | 7 +-
.../Doctor/Interface/IEducationService.cs | 4 +-
.../Interface/IResearchPublicationService.cs | 4 +-
.../Interface/ITrialExperienceService.cs | 4 +-
.../Doctor/Interface/IVacationService.cs | 9 +-
.../Doctor/ResearchPublicationService.cs | 10 +-
.../Service/Doctor/TrialExperienceService.cs | 26 +-
.../Service/Doctor/VacationService.cs | 21 +-
.../Service/Doctor/_MapConfig.cs | 9 +-
.../Document/DTO/SystemDocumentViewModel.cs | 38 +-
.../DTO/TrialDocumentUserConfirmViewModel.cs | 6 +-
.../Document/DTO/TrialDocumentViewModel.cs | 11 +-
.../DTO/TrialEmailNoticeConfigViewModel.cs | 3 -
.../Service/Document/EmailSendService.cs | 77 +-
.../Interface/ISystemDocumentService.cs | 3 +-
.../Interface/ITrialDocumentService.cs | 5 -
.../ITrialEmailNoticeConfigService.cs | 29 +-
.../Service/Document/SystemDocumentService.cs | 23 +-
.../Service/Document/TrialDocumentService.cs | 22 +-
.../Document/TrialEmailNoticeConfigService.cs | 32 +-
.../Service/Document/_MapConfig.cs | 25 +-
.../Service/Financial/CalculateService.cs | 99 +-
.../Service/Financial/DTO/AwardPriceModel.cs | 8 +-
.../Service/Financial/DTO/CalculateModel.cs | 4 +-
.../Financial/DTO/ExchangeRateModel.cs | 6 +-
.../Financial/DTO/PaymentAdjustmentModel.cs | 19 +-
.../Financial/DTO/PaymentDetailModel.cs | 8 +-
.../Service/Financial/DTO/PaymentModel.cs | 16 +-
.../Service/Financial/DTO/RankPriceModel.cs | 7 +-
.../Financial/DTO/ReviewerPayInfoModel.cs | 4 +-
.../Financial/DTO/TrialPaymentPriceModel.cs | 11 +-
.../Financial/DTO/TrialRevenuesPriceModel.cs | 13 +-
.../DTO/TrialRevenuesPriceVerificationDTO.cs | 5 +-
.../Service/Financial/ExchangeRateService.cs | 20 +-
.../Service/Financial/FinancialService.cs | 111 +-
.../Financial/Interface/ICalculateService.cs | 3 -
.../Interface/IDoctorPayInfoService.cs | 6 +-
.../Interface/IExchangeRateService.cs | 2 -
.../Interface/IPaymentAdjustmentService.cs | 5 +-
.../Financial/Interface/IPaymentService.cs | 5 +-
.../Financial/Interface/IRankPriceService.cs | 7 +-
.../Interface/ITrialPaymentPriceService.cs | 5 +-
.../Interface/ITrialRevenuesPriceService.cs | 2 -
.../ITrialRevenuesPriceVerificationService.cs | 1 -
.../Interface/IVolumeRewardService.cs | 5 +-
.../Financial/PaymentAdjustmentService.cs | 9 +-
.../Service/Financial/RankPriceService.cs | 21 +-
.../Financial/ReviewerPayInfoService.cs | 21 +-
.../Financial/TrialPaymentPriceService.cs | 8 +-
.../Financial/TrialRevenuesPriceService.cs | 9 +-
.../TrialRevenuesPriceVerificationService.cs | 45 +-
.../Service/Financial/VolumeRewardService.cs | 22 +-
.../Service/Financial/_MapConfig.cs | 5 +-
.../Fixed/CriterionAdditionalAssessment.cs | 9 +-
.../ImageAndDoc/DTO/DicomArchiveResult.cs | 5 +-
.../ImageAndDoc/DTO/DicomInstanceModel.cs | 6 +-
.../ImageAndDoc/DTO/DicomSeriesModel.cs | 12 +-
.../ImageAndDoc/DTO/DownloadAndUploadDTO.cs | 13 +-
.../ImageAndDoc/DTO/ImageLabelModel.cs | 6 +-
.../ImageAndDoc/DTO/ImageShareModel.cs | 4 +-
.../ImageAndDoc/DTO/StudyStatusDetailModel.cs | 6 +-
.../DTO/SystemAnonymizationViewModel.cs | 10 +-
.../ImageAndDoc/DTO/UnionStudyViewDodel.cs | 5 -
.../ImageAndDoc/DicomArchiveService.cs | 15 +-
.../ImageAndDoc/DownloadAndUploadService.cs | 23 +-
.../Service/ImageAndDoc/ImageShareService.cs | 11 +-
.../Service/ImageAndDoc/InstanceService.cs | 6 +-
.../Interface/IDicomArchiveService.cs | 2 +-
.../ImageAndDoc/Interface/IStudyService.cs | 3 +-
.../Interface/ISystemAnonymizationService.cs | 24 +-
.../ImageAndDoc/NoneDicomStudyService.cs | 6 +-
.../Service/ImageAndDoc/SeriesService.cs | 15 +-
.../Service/ImageAndDoc/StudyService.cs | 24 +-
.../ImageAndDoc/SystemAnonymizationService.cs | 1 -
.../Service/ImageAndDoc/_MapConfig.cs | 7 +-
.../Service/Inspection/DTO/InspectionModel.cs | 55 +-
.../Inspection/DTO/InspectionViewModel.cs | 1 -
.../Inspection/FrontAuditConfigService.cs | 15 +-
.../Service/Inspection/InspectionService.cs | 35 +-
.../Interface/IInspectionService.cs | 9 +-
.../Service/Inspection/_MapConfig.cs | 12 +-
.../Service/Institution/CROService.cs | 9 +-
.../Institution/DTO/CROCompanyModel.cs | 5 +-
.../Service/Institution/DTO/HospitalModel.cs | 5 +-
.../Service/Institution/DTO/SiteModel.cs | 15 +-
.../Service/Institution/DTO/SponsorModel.cs | 7 +-
.../Service/Institution/HospitalService.cs | 13 +-
.../Institution/Interface/ICROService.cs | 5 +-
.../Institution/Interface/IHospitalService.cs | 9 +-
.../Institution/Interface/ISiteService.cs | 7 +-
.../Institution/Interface/ISponsorService.cs | 11 +-
.../Service/Institution/SiteService.cs | 15 +-
.../Service/Institution/SponsorService.cs | 36 +-
.../Service/Institution/_MapConfig.cs | 7 +-
.../Service/Management/DTO/MenuModel.cs | 22 +-
.../Service/Management/DTO/RoleModel.cs | 6 +-
.../Management/DTO/SystemNoticeViewModel.cs | 17 +-
.../Service/Management/DTO/TreeNode.cs | 8 +-
.../Management/DTO/UserFeedBackViewModel.cs | 5 +-
.../Management/DTO/UserLogViewModel.cs | 2 -
.../Service/Management/DTO/UserModel.cs | 51 +-
.../Management/Interface/IMenuService.cs | 2 +-
.../Interface/ISystemNoticeService.cs | 24 +-
.../Management/Interface/IUserService.cs | 10 +-
.../Service/Management/MenuService.cs | 9 +-
.../Service/Management/SystemNoticeService.cs | 13 +-
.../Service/Management/UserFeedBackService.cs | 14 +-
.../Service/Management/UserService.cs | 29 +-
.../Service/Management/UserTypeService.cs | 28 +-
.../Service/Management/_MapConfig.cs | 3 +-
.../Service/QC/ClinicalDataService.cs | 13 +-
.../QC/DTO/NoneDicomStudyFileViewModel.cs | 3 -
.../Service/QC/DTO/NoneDicomStudyViewModel.cs | 14 +-
.../Service/QC/DTO/PreviousOtherViewModel.cs | 6 +-
.../QC/DTO/PreviousSurgeryViewModel.cs | 4 +-
.../Service/QC/DTO/QARecordViewModel.cs | 22 +-
.../Service/QC/DTO/QCListViewModel.cs | 4 -
.../QC/DTO/QCQuestionConfigureViewModel.cs | 48 +-
.../DTO/TrialQCQuestionConfigureViewModel.cs | 48 +-
.../QC/Interface/IClinicalDataService.cs | 5 -
.../QC/Interface/INoneDicomStudyService.cs | 7 +-
.../Service/QC/Interface/IQCListService.cs | 4 +-
.../QC/Interface/IQCOperationService.cs | 6 +-
.../QC/Interface/IQCQuestionService.cs | 4 +-
.../ITrialQCQuestionConfigureService.cs | 2 -
.../Service/QC/QCCommon.cs | 12 +-
.../Service/QC/QCListService.cs | 145 +-
.../Service/QC/QCOperationService.cs | 50 +-
.../Service/QC/QCQuestionService.cs | 49 +-
.../Service/QC/TrialQCQuestionService.cs | 22 +-
.../Service/QC/_MapConfig.cs | 13 +-
.../DTO/SubjectCriteriaEvaluationViewModel.cs | 2 -
...tCriteriaEvaluationVisitFilterViewModel.cs | 15 +-
...eriaEvaluationVisitStudyFilterViewModel.cs | 3 -
.../ISubjectCriteriaEvaluationService.cs | 13 +-
.../SubjectCriteriaEvaluationService.cs | 35 +-
.../ClinicalData/ClinicalAnswerService.cs | 708 +--
.../ClinicalData/ClinicalDataSetService.cs | 95 +-
.../ClinicalData/ClinicalQuestionService.cs | 8 +-
.../ReadingClinicalDataService.cs | 21 +-
.../Service/Reading/Dto/ClinicalAnswerDto.cs | 263 +-
.../Dto/ClinicalDataServiceViewModel.cs | 93 +-
.../Reading/Dto/ClinicalQuestionDto.cs | 211 +-
.../Dto/DefaultShortcutKeyViewModel.cs | 109 +-
.../Service/Reading/Dto/GetReadModuleDto.cs | 29 +-
.../Service/Reading/Dto/OrganInfoViewModel.cs | 32 +-
.../Reading/Dto/PreviousPDFViewModel.cs | 10 +-
.../Reading/Dto/ReadingCalculateViewModel.cs | 49 +-
.../Reading/Dto/ReadingClinicalDataDto.cs | 767 ++-
.../Reading/Dto/ReadingImageTaskViewModel.cs | 605 ++-
.../Reading/Dto/ReadingMedicalReviewDto.cs | 92 +-
.../Dto/ReadingMedicineQuestionViewModel.cs | 112 +-
.../Reading/Dto/ReadingPeriodSetViewModel.cs | 15 +-
.../Reading/Dto/ReadingQuestionViewModel.cs | 3369 +++++++------
.../Reading/Dto/UserWLTemplateViewModel.cs | 77 +-
.../Service/Reading/Dto/VisitTaskDto.cs | 11 +-
.../Interface/IClinicalAnswerService.cs | 17 +-
.../Interface/IClinicalQuestionService.cs | 5 +-
.../Reading/Interface/IOrganInfoService.cs | 22 +-
.../Reading/Interface/IReadModuleService.cs | 5 +-
.../Interface/IReadingClinicalDataService.cs | 7 +-
.../Interface/IReadingImageTaskService.cs | 4 +-
.../IReadingMedicineQuestionService.cs | 1 -
.../ReadingMedicalReviewService.cs | 363 +-
.../ReadingMedicineQuestionService.cs | 1062 ++--
.../ReadingCriterion/OrganInfoService.cs | 126 +-
.../ReadingCriterionService.cs | 71 +-
.../ReadingQuestionService.cs | 155 +-
.../TumorAssessmentService.cs | 12 +-
.../ReadingGlobalTaskService.cs | 221 +-
.../ReadingImageTaskService.cs | 127 +-
.../ReadingJudgeTaskService.cs | 196 +-
.../ReadingNoDicomTaskService.cs | 17 +-
.../ReadingOncologyTaskService.cs | 309 +-
.../ReadingTaskQuestionService.cs | 21 +-
.../ReadingPeriod/ReadModuleService.cs | 19 +-
.../ReadingPeriod/ReadingPeriodSetService.cs | 13 +-
.../Reading/ShortcutKey/ShortcutKeyService.cs | 6 +-
.../ShortcutKey/UserWLTemplateService.cs | 154 +-
.../Service/Reading/_MapConfig.cs | 22 +-
.../Dto/CriterionCalculateDto.cs | 43 +-
.../General/GeneralCalculateService.cs | 94 +-
.../General/ReadingCalculateService.cs | 90 +-
.../IRECIST1Point1CalculateService.cs | 773 ++-
.../ReadingCalculate/IVUSCalculateService.cs | 222 +-
.../Interface/ICriterionCalculateService.cs | 10 +-
.../Interface/IGeneralCalculateService.cs | 5 -
.../Interface/ILuganoCalculateService.cs | 35 +-
.../Interface/IReadingCalculateService.cs | 7 +-
.../LuganoCalculateService.cs | 755 ++-
.../LuganoWithoutPETCalculateService.cs | 755 ++-
.../ReadingCalculate/OCTCalculateService.cs | 138 +-
.../ReadingCalculate/PCWG3CalculateService.cs | 188 +-
.../RECIST1Point1CalculateService.cs | 175 +-
.../RECIST1Point1_BMCalculateService.cs | 147 +-
.../SelfDefineCalculateService.cs | 141 +-
.../DTO/TrialSiteSurveyViewModel.cs | 7 +-
.../Interface/ITrialSiteSurveyService.cs | 1 -
.../TrialSiteEquipmentSurveyService.cs | 8 +-
.../SiteSurvey/TrialSiteSurveyService.cs | 32 +-
.../SiteSurvey/TrialSiteUserSurveyService.cs | 11 +-
.../Service/SiteSurvey/_MapConfig.cs | 6 +-
.../Service/Stat/DTO/StatisticsViewModel.cs | 21 +-
.../Service/Stat/IStatisticsService.cs | 9 +-
.../Service/Stat/StatisticsService.cs | 12 +-
.../Service/Stat/_MapConfig.cs | 6 +-
.../DTO/UltrasonicDicomViewModel.cs | 15 +-
.../UltrasonicDicomService.cs | 14 +-
.../Service/Third-partyProject/_MapConfig.cs | 12 +-
.../TrialSiteUser/DTO/DicomAEViewModel.cs | 3 -
.../TrialSiteUser/DTO/InspectionViewModel.cs | 7 +-
.../DTO/PersonalWorkstationViewModel.cs | 18 +-
.../TrialSiteUser/DTO/TrialConfigDTO.cs | 33 +-
.../DTO/TrialExternalUserViewModel.cs | 13 +-
.../TrialSiteUser/DTO/TrialResearchCenter.cs | 5 +-
.../DTO/TrialSiteDicomAEViewModel.cs | 3 -
.../TrialSiteUser/DTO/TrialSiteViewModel.cs | 6 +-
.../DTO/TrialUserPreparationViewModel.cs | 11 +-
.../TrialSiteUser/DTO/TrialViewModel.cs | 30 +-
.../TrialSiteUser/DTO/UserTrialViewModel.cs | 8 +-
.../Interface/ITrialConfigService.cs | 6 +-
.../Interface/ITrialExternalUserService.cs | 26 +-
.../Interface/ITrialSiteDicomAEService.cs | 22 +-
.../TrialSiteUser/PersonalWorkstation.cs | 99 +-
.../TrialSiteUser/TrialConfigService.cs | 36 +-
.../TrialSiteUser/TrialDicomAEService.cs | 16 +-
.../TrialSiteUser/TrialExternalUserService.cs | 19 +-
.../TrialSiteUser/TrialMaintenanceService.cs | 33 +-
.../Service/TrialSiteUser/TrialService.cs | 26 +-
.../TrialSiteUser/TrialSiteDicomAEService.cs | 15 +-
.../Service/TrialSiteUser/TrialSiteService.cs | 45 +-
.../Service/TrialSiteUser/_MapConfig.cs | 6 +-
.../Service/TrialSiteUser/_MapConfig2.cs | 10 +-
.../Visit/DTO/ClinicalStudySubjects.cs | 32 +-
.../Service/Visit/DTO/PatientViewModel.cs | 5 +-
.../Service/Visit/DTO/VisitPlanViewModel.cs | 3 +-
.../Service/Visit/DTO/VisitPointViewModel.cs | 4 +-
.../Visit/Interface/IVisitPlanService.cs | 1 -
.../Service/Visit/PatientService.cs | 46 +-
.../Service/Visit/SubjectService.cs | 24 +-
.../Service/Visit/SubjectVisitService.cs | 24 +-
.../Service/Visit/VisitPlanService.cs | 40 +-
.../Service/Visit/_MapConfig.cs | 24 +-
.../WorkLoad/DTO/DoctorWorkLoadViewModel.cs | 13 +-
.../Service/WorkLoad/DTO/EnrollViewModel.cs | 17 +-
.../WorkLoad/DTO/WorkloadDistribution.cs | 8 +-
.../Service/WorkLoad/DoctorWorkloadService.cs | 28 +-
.../Service/WorkLoad/EnrollService.cs | 48 +-
.../Interface/IDoctorWorkloadService.cs | 2 +-
.../WorkLoad/Interface/IEnrollService.cs | 2 +-
.../Interface/ITrialEnrollmentService.cs | 14 +-
.../Interface/IWorkloadDistributionService.cs | 7 +-
.../Service/WorkLoad/_MapConfig.cs | 5 +-
IRaCIS.Core.Application/TestService.cs | 21 +-
.../Triggers/AddCRCCliniaclDataTrigger.cs | 33 +-
.../Triggers/AddSubjectTrigger.cs | 9 +-
.../Triggers/AddlTrialUserTrigger.cs | 13 +-
.../Triggers/ChallengeStateTrigger.cs | 4 +-
.../Triggers/SubjectStateTrigger.cs | 15 +-
.../SubjectVisitCheckPassedTrigger.cs | 8 +-
.../Triggers/SubjectVisitFinalVisitTrigger.cs | 8 +-
.../Triggers/SubjectVisitTrigger.cs | 46 +-
.../Triggers/TableQuestionRowTrigger.cs | 9 +-
.../Triggers/TrialCriterionSignTrigger.cs | 13 +-
.../Triggers/UserLogTrigger.cs | 11 +-
.../Triggers/VisitTaskIbeforeTrigger.cs | 10 +-
...askIsFrontTaskNeedSignButNotSignTrigger.cs | 15 +-
IRaCIS.Core.Domain.Share/GlobalUsings.cs | 4 +
IRaCIS.Core.Domain/GlobalUsings.cs | 1 +
IRaCIS.Core.Domain/IRaCIS.Core.Domain.csproj | 7 -
.../AuthUser/IUserInfo.cs | 14 +-
IRaCIS.Core.Infra.EFCore/AuthUser/UserInfo.cs | 7 +-
.../Common/AuditingData.cs | 474 +-
.../Common/AuditingDto.cs | 8 +-
.../Common/ReadingCommon.cs | 46 +-
.../Convention/DecimalPrecisionConvention.cs | 8 +-
.../DefaultStringLengthConvention .cs | 2 -
.../Context/DbContextExt.cs | 6 +-
.../Context/IRaCISDBContext.cs | 29 +-
.../Context/IRaCISDBContextFactory.cs | 6 -
.../MySequentialGuidValueGenerator.cs | 4 +-
.../EntityConfigration/SubjectConfigration.cs | 4 +-
.../TrialUserConfigration.cs | 1 -
.../VisitTaskConfigration.cs | 4 +-
IRaCIS.Core.Infra.EFCore/GlobalUsings.cs | 9 +
.../Interceptor/AuditEntityInterceptor.cs | 12 +-
.../DispatchDomainEventsInterceptor.cs | 16 +-
.../QueryWithNoLockDbCommandInterceptor.cs | 5 -
.../Interceptor/SoftDeleteQueryExtension.cs | 8 +-
.../Repository/DynamicRelationalExtensions.cs | 10 +-
.../Repository/ICommandRepository.cs | 10 +-
.../Repository/IQueryRepository.cs | 10 +-
.../Repository/IRaCISContextExtension.cs | 13 +-
.../Repository/IRepository.cs | 18 +-
.../Repository/Repository.cs | 26 +-
.../UnitOfWork/EFUnitOfWork.cs | 4 +-
.../UnitOfWork/EFUnitOfWorkFilter.cs | 9 +-
.../GenerateContextModelFolder/Dictionary.cs | 37 -
.../GenerateContextModelFolder/TempContext.cs | 46 -
.../LiquidTemplate/EntityViewModel.liquid | 32 +-
.../LiquidTemplate/IEntityService.liquid | 14 +-
.../LiquidTemplateOutPut/DictionaryService.cs | 60 -
.../DictionaryViewModel.cs | 76 -
.../IDictionaryService.cs | 23 -
408 files changed, 11031 insertions(+), 12556 deletions(-)
create mode 100644 IRaCIS.Core.Application/GlobalUsings.cs
create mode 100644 IRaCIS.Core.Domain.Share/GlobalUsings.cs
create mode 100644 IRaCIS.Core.Infra.EFCore/GlobalUsings.cs
delete mode 100644 IRaCIS.Core.Test/GenerateContextModelFolder/Dictionary.cs
delete mode 100644 IRaCIS.Core.Test/GenerateContextModelFolder/TempContext.cs
delete mode 100644 IRaCIS.Core.Test/LiquidTemplateOutPut/DictionaryService.cs
delete mode 100644 IRaCIS.Core.Test/LiquidTemplateOutPut/DictionaryViewModel.cs
delete mode 100644 IRaCIS.Core.Test/LiquidTemplateOutPut/IDictionaryService.cs
diff --git a/IRC.Core.SCP/BusinessFilter/UnifiedApiResultFilter.cs b/IRC.Core.SCP/BusinessFilter/UnifiedApiResultFilter.cs
index 7609ae4bc..4dffb183c 100644
--- a/IRC.Core.SCP/BusinessFilter/UnifiedApiResultFilter.cs
+++ b/IRC.Core.SCP/BusinessFilter/UnifiedApiResultFilter.cs
@@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Mvc;
using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Infrastructure.Extention;
-namespace IRaCIS.Application.Services.BusinessFilter
+namespace IRaCIS.Core.Application.Service.BusinessFilter
{
///
/// 统一返回前端数据包装,之前在控制器包装,现在修改为动态Api 在ResultFilter这里包装,减少重复冗余代码
diff --git a/IRC.Core.SCP/HostConfig/AutofacModuleSetup.cs b/IRC.Core.SCP/HostConfig/AutofacModuleSetup.cs
index 629cf9636..717d06fad 100644
--- a/IRC.Core.SCP/HostConfig/AutofacModuleSetup.cs
+++ b/IRC.Core.SCP/HostConfig/AutofacModuleSetup.cs
@@ -7,7 +7,7 @@ using System.Linq;
using System.Reflection;
using IRaCIS.Core.Domain.Models;
using IRaCIS.Core.Domain.Share;
-using IRaCIS.Application.Services;
+using IRaCIS.Core.Application.Service;
using AutoMapper;
using IRaCIS.Core.SCP.Service;
diff --git a/IRC.Core.SCP/Service/BaseService.cs b/IRC.Core.SCP/Service/BaseService.cs
index e1a97e0b9..f410074c3 100644
--- a/IRC.Core.SCP/Service/BaseService.cs
+++ b/IRC.Core.SCP/Service/BaseService.cs
@@ -1,5 +1,5 @@
using AutoMapper;
-using IRaCIS.Application.Services.BusinessFilter;
+using IRaCIS.Core.Application.Service.BusinessFilter;
using IRaCIS.Core.Infra.EFCore;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
diff --git a/IRaCIS.Core.API/Controllers/ExtraController.cs b/IRaCIS.Core.API/Controllers/ExtraController.cs
index 203a4fc97..a9ec63b2d 100644
--- a/IRaCIS.Core.API/Controllers/ExtraController.cs
+++ b/IRaCIS.Core.API/Controllers/ExtraController.cs
@@ -14,7 +14,7 @@ using System.Text;
using Microsoft.AspNetCore.Http;
using IRaCIS.Core.Application.Interfaces;
using System.Threading.Tasks;
-using IRaCIS.Application.Services;
+using IRaCIS.Core.Application.Service;
using IRaCIS.Core.Infra.EFCore;
using IRaCIS.Core.Domain.Models;
using IRaCIS.Core.Infrastructure;
diff --git a/IRaCIS.Core.API/Controllers/FinancialChangeController.cs b/IRaCIS.Core.API/Controllers/FinancialChangeController.cs
index 43f02d674..40ca6fc59 100644
--- a/IRaCIS.Core.API/Controllers/FinancialChangeController.cs
+++ b/IRaCIS.Core.API/Controllers/FinancialChangeController.cs
@@ -7,7 +7,7 @@ using IRaCIS.Core.Application.Filter;
using IRaCIS.Core.Infrastructure.Extention;
using Microsoft.AspNetCore.Authorization;
using System.Threading.Tasks;
-using IRaCIS.Application.Services;
+using IRaCIS.Core.Application.Service;
using IRaCIS.Core.Application.Service.Inspection.DTO;
using IRaCIS.Core.Infra.EFCore;
using IRaCIS.Core.Domain.Models;
diff --git a/IRaCIS.Core.API/Progranm.cs b/IRaCIS.Core.API/Progranm.cs
index 5d258c077..c06f45d52 100644
--- a/IRaCIS.Core.API/Progranm.cs
+++ b/IRaCIS.Core.API/Progranm.cs
@@ -20,7 +20,7 @@ using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.DependencyInjection;
using IRaCIS.Core.Application.Filter;
using Microsoft.AspNetCore.HttpOverrides;
-using IRaCIS.Application.Services.BackGroundJob;
+using IRaCIS.Core.Application.Service.BackGroundJob;
using LogDashboard;
using FellowOakDicom.Network;
using IRaCIS.Core.Application.Service.ImageAndDoc;
diff --git a/IRaCIS.Core.API/_PipelineExtensions/HangfireConfig.cs b/IRaCIS.Core.API/_PipelineExtensions/HangfireConfig.cs
index 3b9cb8b7a..873aac78f 100644
--- a/IRaCIS.Core.API/_PipelineExtensions/HangfireConfig.cs
+++ b/IRaCIS.Core.API/_PipelineExtensions/HangfireConfig.cs
@@ -1,7 +1,7 @@
using Hangfire;
using Hangfire.Dashboard;
using Hangfire.Dashboard.BasicAuthorization;
-using IRaCIS.Application.Services.BackGroundJob;
+using IRaCIS.Core.Application.Service.BackGroundJob;
using IRaCIS.Core.API.Filter;
using IRaCIS.Core.Application.Helper;
using Microsoft.AspNetCore.Builder;
diff --git a/IRaCIS.Core.API/_ServiceExtensions/AutofacModuleSetup.cs b/IRaCIS.Core.API/_ServiceExtensions/AutofacModuleSetup.cs
index 3bb3e37fc..d87a1cbed 100644
--- a/IRaCIS.Core.API/_ServiceExtensions/AutofacModuleSetup.cs
+++ b/IRaCIS.Core.API/_ServiceExtensions/AutofacModuleSetup.cs
@@ -9,7 +9,7 @@ using System.Linq;
using System.Reflection;
using IRaCIS.Core.Domain.Models;
using IRaCIS.Core.Domain.Share;
-using IRaCIS.Application.Services;
+using IRaCIS.Core.Application.Service;
using IRaCIS.Application.Interfaces;
using AutoMapper;
diff --git a/IRaCIS.Core.Application/Auth/IRaCISClaims.cs b/IRaCIS.Core.Application/Auth/IRaCISClaims.cs
index 446140787..60e18cf7d 100644
--- a/IRaCIS.Core.Application/Auth/IRaCISClaims.cs
+++ b/IRaCIS.Core.Application/Auth/IRaCISClaims.cs
@@ -31,9 +31,9 @@ namespace IRaCIS.Core.Application.Auth
Id = user.Id,
FullName = user.UserName,
RealName = user.RealName,
- UserTypeEnum=user.UserTypeEnum,
- UserTypeId=user.UserTypeId,
- IsTestUser=user.IsTestUser,
+ UserTypeEnum = user.UserTypeEnum,
+ UserTypeId = user.UserTypeId,
+ IsTestUser = user.IsTestUser,
Code = user.Code,
PermissionStr = user.PermissionStr,
@@ -46,7 +46,7 @@ namespace IRaCIS.Core.Application.Auth
{
Id = doctor.Id,
FullName = doctor.FirstName + doctor.LastName,
- Phone = doctor.Phone,
+ Phone = doctor.Phone,
};
}
}
diff --git a/IRaCIS.Core.Application/Auth/IRaCISPolicy.cs b/IRaCIS.Core.Application/Auth/IRaCISPolicy.cs
index 994cbbc9f..0988866b8 100644
--- a/IRaCIS.Core.Application/Auth/IRaCISPolicy.cs
+++ b/IRaCIS.Core.Application/Auth/IRaCISPolicy.cs
@@ -1,10 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace IRaCIS.Core.Application.Auth
+namespace IRaCIS.Core.Application.Auth
{
@@ -13,7 +7,7 @@ namespace IRaCIS.Core.Application.Auth
- public const string CRC = "CRC";
+ public const string CRC = "CRC";
public const string PM = "PM";
diff --git a/IRaCIS.Core.Application/Auth/JwtSetting.cs b/IRaCIS.Core.Application/Auth/JwtSetting.cs
index 1987c91bd..cc54eb4d0 100644
--- a/IRaCIS.Core.Application/Auth/JwtSetting.cs
+++ b/IRaCIS.Core.Application/Auth/JwtSetting.cs
@@ -1,6 +1,5 @@
-using System.Collections.Generic;
+using Microsoft.IdentityModel.Tokens;
using System.Text;
-using Microsoft.IdentityModel.Tokens;
namespace IRaCIS.Core.Application.Auth
{
diff --git a/IRaCIS.Core.Application/Auth/TokenService.cs b/IRaCIS.Core.Application/Auth/TokenService.cs
index 4890a0339..365c97e68 100644
--- a/IRaCIS.Core.Application/Auth/TokenService.cs
+++ b/IRaCIS.Core.Application/Auth/TokenService.cs
@@ -1,7 +1,7 @@
-using System.IdentityModel.Tokens.Jwt;
-using System.Security.Claims;
-using IRaCIS.Core.Domain.Share;
+using IRaCIS.Core.Domain.Share;
using Microsoft.Extensions.Options;
+using System.IdentityModel.Tokens.Jwt;
+using System.Security.Claims;
namespace IRaCIS.Core.Application.Auth
{
@@ -56,5 +56,5 @@ namespace IRaCIS.Core.Application.Auth
}
}
-
+
}
diff --git a/IRaCIS.Core.Application/BackGroundJob/IRaCISCHangfireJob.cs b/IRaCIS.Core.Application/BackGroundJob/IRaCISCHangfireJob.cs
index 7b90329e8..efd823af2 100644
--- a/IRaCIS.Core.Application/BackGroundJob/IRaCISCHangfireJob.cs
+++ b/IRaCIS.Core.Application/BackGroundJob/IRaCISCHangfireJob.cs
@@ -1,16 +1,10 @@
using Hangfire;
using Hangfire.Storage;
using IRaCIS.Core.Application.Helper;
-using IRaCIS.Core.Application.Service;
using IRaCIS.Core.Domain.Share;
-using IRaCIS.Core.Infrastructure;
-using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
-using Newtonsoft.Json;
-using SharpCompress.Common;
-using ZiggyCreatures.Caching.Fusion;
-namespace IRaCIS.Application.Services.BackGroundJob
+namespace IRaCIS.Core.Application.Service.BackGroundJob
{
public interface IIRaCISHangfireJob
diff --git a/IRaCIS.Core.Application/BackGroundJob/ObtainTaskAutoCancelJob.cs b/IRaCIS.Core.Application/BackGroundJob/ObtainTaskAutoCancelJob.cs
index ebd091615..41d320e6d 100644
--- a/IRaCIS.Core.Application/BackGroundJob/ObtainTaskAutoCancelJob.cs
+++ b/IRaCIS.Core.Application/BackGroundJob/ObtainTaskAutoCancelJob.cs
@@ -1,11 +1,10 @@
-using IRaCIS.Core.Infra.EFCore;
-using Microsoft.Extensions.Logging;
+using Microsoft.Extensions.Logging;
namespace IRaCIS.Core.Application.BackGroundJob
{
public interface IObtainTaskAutoCancelJob
{
- Task CancelQCObtaion(Guid subjectVisitId,DateTime startTime);
+ Task CancelQCObtaion(Guid subjectVisitId, DateTime startTime);
}
public class ObtainTaskAutoCancelJob : IObtainTaskAutoCancelJob
@@ -13,7 +12,7 @@ namespace IRaCIS.Core.Application.BackGroundJob
private readonly IRepository _subjectVisitRepository;
private readonly ILogger _logger;
- public ObtainTaskAutoCancelJob(IRepository subjectVisitRepository, ILogger logger)
+ public ObtainTaskAutoCancelJob(IRepository subjectVisitRepository, ILogger logger)
{
_subjectVisitRepository = subjectVisitRepository;
_logger = logger;
@@ -30,7 +29,7 @@ namespace IRaCIS.Core.Application.BackGroundJob
var success = await _subjectVisitRepository.SaveChangesAsync();
- _logger.LogWarning($"任务建立时间:{startTime} 取消时间:{DateTime.Now} 取消 受试者访视:{ subjectVisitId }success:{success}");
+ _logger.LogWarning($"任务建立时间:{startTime} 取消时间:{DateTime.Now} 取消 受试者访视:{subjectVisitId}success:{success}");
}
catch (Exception e)
{
diff --git a/IRaCIS.Core.Application/BaseService.cs b/IRaCIS.Core.Application/BaseService.cs
index a4fe57913..8adf71179 100644
--- a/IRaCIS.Core.Application/BaseService.cs
+++ b/IRaCIS.Core.Application/BaseService.cs
@@ -1,14 +1,13 @@
using AutoMapper;
-using IRaCIS.Application.Services.BusinessFilter;
-using IRaCIS.Core.Infra.EFCore;
+using IRaCIS.Core.Application.Service.BusinessFilter;
+using IRaCIS.Core.Domain.Share;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
+using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Localization;
using Panda.DynamicWebApi;
using Panda.DynamicWebApi.Attributes;
using System.Diagnostics.CodeAnalysis;
-using IRaCIS.Core.Domain.Share;
-using Microsoft.AspNetCore.Mvc;
using ZiggyCreatures.Caching.Fusion;
namespace IRaCIS.Core.Application
diff --git a/IRaCIS.Core.Application/BusinessFilter/Encryption/AesEncryption.cs b/IRaCIS.Core.Application/BusinessFilter/Encryption/AesEncryption.cs
index 8c17165c8..c19d82cf8 100644
--- a/IRaCIS.Core.Application/BusinessFilter/Encryption/AesEncryption.cs
+++ b/IRaCIS.Core.Application/BusinessFilter/Encryption/AesEncryption.cs
@@ -1,13 +1,9 @@
-using Org.BouncyCastle.Crypto.Engines;
+using Org.BouncyCastle.Crypto;
+using Org.BouncyCastle.Crypto.Engines;
+using Org.BouncyCastle.Crypto.Modes;
using Org.BouncyCastle.Crypto.Paddings;
using Org.BouncyCastle.Crypto.Parameters;
-using Org.BouncyCastle.Crypto;
-using System;
-using System.Collections.Generic;
-using System.Linq;
using System.Text;
-using System.Threading.Tasks;
-using Org.BouncyCastle.Crypto.Modes;
namespace IRaCIS.Core.Application.BusinessFilter;
diff --git a/IRaCIS.Core.Application/BusinessFilter/Encryption/EncreptApiResultFilter.cs b/IRaCIS.Core.Application/BusinessFilter/Encryption/EncreptApiResultFilter.cs
index 0ff58ed56..e537af43a 100644
--- a/IRaCIS.Core.Application/BusinessFilter/Encryption/EncreptApiResultFilter.cs
+++ b/IRaCIS.Core.Application/BusinessFilter/Encryption/EncreptApiResultFilter.cs
@@ -3,11 +3,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
-using System;
-using System.Collections.Generic;
-using System.Linq;
using System.Text;
-using System.Threading.Tasks;
namespace IRaCIS.Core.Application.BusinessFilter;
diff --git a/IRaCIS.Core.Application/BusinessFilter/Encryption/EncryptionRequestMiddleware.cs b/IRaCIS.Core.Application/BusinessFilter/Encryption/EncryptionRequestMiddleware.cs
index b23917a09..fdcb0222d 100644
--- a/IRaCIS.Core.Application/BusinessFilter/Encryption/EncryptionRequestMiddleware.cs
+++ b/IRaCIS.Core.Application/BusinessFilter/Encryption/EncryptionRequestMiddleware.cs
@@ -1,13 +1,8 @@
-using DocumentFormat.OpenXml.InkML;
-using IRaCIS.Core.Domain.Share;
+using IRaCIS.Core.Domain.Share;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Options;
using Newtonsoft.Json.Linq;
-using System;
-using System.Collections.Generic;
-using System.Linq;
using System.Text;
-using System.Threading.Tasks;
namespace IRaCIS.Core.Application.BusinessFilter;
diff --git a/IRaCIS.Core.Application/BusinessFilter/Encryption/RSAEncryption.cs b/IRaCIS.Core.Application/BusinessFilter/Encryption/RSAEncryption.cs
index c4bd92d6e..dcc610712 100644
--- a/IRaCIS.Core.Application/BusinessFilter/Encryption/RSAEncryption.cs
+++ b/IRaCIS.Core.Application/BusinessFilter/Encryption/RSAEncryption.cs
@@ -1,14 +1,10 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Org.BouncyCastle.Crypto;
+using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Encodings;
using Org.BouncyCastle.Crypto.Engines;
using Org.BouncyCastle.Crypto.Generators;
using Org.BouncyCastle.OpenSsl;
using Org.BouncyCastle.Security;
+using System.Text;
namespace IRaCIS.Core.Application.BusinessFilter;
diff --git a/IRaCIS.Core.Application/BusinessFilter/GlobalExceptionHandler.cs b/IRaCIS.Core.Application/BusinessFilter/GlobalExceptionHandler.cs
index bdd19c962..b8f82f8d5 100644
--- a/IRaCIS.Core.Application/BusinessFilter/GlobalExceptionHandler.cs
+++ b/IRaCIS.Core.Application/BusinessFilter/GlobalExceptionHandler.cs
@@ -1,12 +1,6 @@
using Microsoft.AspNetCore.Diagnostics;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
-using Newtonsoft.Json;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace IRaCIS.Core.Application.BusinessFilter
diff --git a/IRaCIS.Core.Application/BusinessFilter/LimitUserRequestAuthorization.cs b/IRaCIS.Core.Application/BusinessFilter/LimitUserRequestAuthorization.cs
index fada696d2..ec5ea0863 100644
--- a/IRaCIS.Core.Application/BusinessFilter/LimitUserRequestAuthorization.cs
+++ b/IRaCIS.Core.Application/BusinessFilter/LimitUserRequestAuthorization.cs
@@ -1,13 +1,11 @@
using IRaCIS.Core.Application.Helper;
using IRaCIS.Core.Domain.Share;
-using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Localization;
using Microsoft.Extensions.Options;
-using Newtonsoft.Json;
using ZiggyCreatures.Caching.Fusion;
namespace IRaCIS.Core.Application.Filter;
@@ -25,7 +23,7 @@ public class LimitUserRequestAuthorization : IAsyncAuthorizationFilter
private readonly IOptionsMonitor _verifyConfig;
- public LimitUserRequestAuthorization(IFusionCache fusionCache, IUserInfo userInfo, IStringLocalizer localizer ,IOptionsMonitor verifyConfig)
+ public LimitUserRequestAuthorization(IFusionCache fusionCache, IUserInfo userInfo, IStringLocalizer localizer, IOptionsMonitor verifyConfig)
{
_fusionCache = fusionCache;
_userInfo = userInfo;
@@ -55,7 +53,7 @@ public class LimitUserRequestAuthorization : IAsyncAuthorizationFilter
{
context.HttpContext.Response.ContentType = "application/json";
context.HttpContext.Response.StatusCode = StatusCodes.Status200OK;
- //---当前请求未从Header/Url取到用户Token,请联系开发者
+ //---当前请求未从Header/Url取到用户Token,请联系开发者
//await context.HttpContext.Response.WriteAsync(JsonConvert.SerializeObject(ResponseOutput.NotOk(_localizer["LimitUser_AuthTokenMissing"])));
context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["LimitUser_AuthTokenMissing"]));
@@ -92,7 +90,7 @@ public class LimitUserRequestAuthorization : IAsyncAuthorizationFilter
context.HttpContext.Response.ContentType = "application/json";
context.HttpContext.Response.StatusCode = StatusCodes.Status403Forbidden;
- context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["LimitUser_AccountAuto_LoginOut"], ApiResponseCodeEnum.AutoLoginOut));
+ context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["LimitUser_AccountAuto_LoginOut"], ApiResponseCodeEnum.AutoLoginOut));
}
else
{
@@ -106,7 +104,7 @@ public class LimitUserRequestAuthorization : IAsyncAuthorizationFilter
//---您的账户在其他地方已登陆,您被迫下线。
context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["LimitUser_AccountLoggedInElsewhere"], ApiResponseCodeEnum.LoginInOtherPlace));
-
+
}
}
diff --git a/IRaCIS.Core.Application/BusinessFilter/ModelActionFilter .cs b/IRaCIS.Core.Application/BusinessFilter/ModelActionFilter .cs
index 79c1788cb..c77dacdfa 100644
--- a/IRaCIS.Core.Application/BusinessFilter/ModelActionFilter .cs
+++ b/IRaCIS.Core.Application/BusinessFilter/ModelActionFilter .cs
@@ -1,5 +1,4 @@
-using IRaCIS.Core.Infrastructure.Extention;
-using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Localization;
using Newtonsoft.Json;
@@ -11,14 +10,14 @@ namespace IRaCIS.Core.Application.Filter
public class ModelActionFilter : ActionFilterAttribute, IActionFilter
{
- public IStringLocalizer _localizer;
- public ModelActionFilter(IStringLocalizer localizer)
+ public IStringLocalizer _localizer;
+ public ModelActionFilter(IStringLocalizer localizer)
{
- _localizer = localizer;
- }
+ _localizer = localizer;
+ }
- public override void OnActionExecuting(ActionExecutingContext context)
- {
+ public override void OnActionExecuting(ActionExecutingContext context)
+ {
if (!context.ModelState.IsValid)
{
@@ -27,9 +26,9 @@ namespace IRaCIS.Core.Application.Filter
.SelectMany(k => context.ModelState[k]!.Errors)
.Select(e => e.ErrorMessage)
.ToArray();
-
+
//---提供给接口的参数无效。
- context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["ModelAction_InvalidAPIParameter"] + JsonConvert.SerializeObject( validationErrors)));
+ context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["ModelAction_InvalidAPIParameter"] + JsonConvert.SerializeObject(validationErrors)));
}
}
}
diff --git a/IRaCIS.Core.Application/BusinessFilter/ModelBinding.cs b/IRaCIS.Core.Application/BusinessFilter/ModelBinding.cs
index c04d0ba5f..94187d5d8 100644
--- a/IRaCIS.Core.Application/BusinessFilter/ModelBinding.cs
+++ b/IRaCIS.Core.Application/BusinessFilter/ModelBinding.cs
@@ -1,4 +1,3 @@
-using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.AspNetCore.Mvc.ModelBinding;
diff --git a/IRaCIS.Core.Application/BusinessFilter/ProjectExceptionFilter.cs b/IRaCIS.Core.Application/BusinessFilter/ProjectExceptionFilter.cs
index 011e9ceae..ce2a978eb 100644
--- a/IRaCIS.Core.Application/BusinessFilter/ProjectExceptionFilter.cs
+++ b/IRaCIS.Core.Application/BusinessFilter/ProjectExceptionFilter.cs
@@ -1,6 +1,5 @@
using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Infrastructure;
-using IRaCIS.Core.Infrastructure.Extention;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Localization;
diff --git a/IRaCIS.Core.Application/BusinessFilter/UnifiedApiResultFilter.cs b/IRaCIS.Core.Application/BusinessFilter/UnifiedApiResultFilter.cs
index d335a9750..daf59c30f 100644
--- a/IRaCIS.Core.Application/BusinessFilter/UnifiedApiResultFilter.cs
+++ b/IRaCIS.Core.Application/BusinessFilter/UnifiedApiResultFilter.cs
@@ -1,9 +1,9 @@
-using Microsoft.AspNetCore.Mvc.Filters;
+using IRaCIS.Core.Domain.Share;
using Microsoft.AspNetCore.Mvc;
-using IRaCIS.Core.Domain.Share;
+using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Logging;
-namespace IRaCIS.Application.Services.BusinessFilter
+namespace IRaCIS.Core.Application.Service.BusinessFilter
{
///
/// 统一返回前端数据包装,之前在控制器包装,现在修改为动态Api 在ResultFilter这里包装,减少重复冗余代码
@@ -74,7 +74,7 @@ namespace IRaCIS.Application.Services.BusinessFilter
//统一在这里记录国际化的日志信息
_logger.LogWarning($"{result.LocalizedInfo}");
}
-
+
}
else if (statusCode != 200 && !(objectResult.Value is IResponseOutput))
diff --git a/IRaCIS.Core.Application/GlobalUsings.cs b/IRaCIS.Core.Application/GlobalUsings.cs
new file mode 100644
index 000000000..1183f17bd
--- /dev/null
+++ b/IRaCIS.Core.Application/GlobalUsings.cs
@@ -0,0 +1,12 @@
+global using AutoMapper.QueryableExtensions;
+global using IRaCIS.Core.Application;
+global using IRaCIS.Core.Application.Service;
+global using IRaCIS.Core.Domain.Models;
+global using IRaCIS.Core.Infra.EFCore;
+global using IRaCIS.Core.Infrastructure.Extention;
+global using Microsoft.EntityFrameworkCore;
+global using System.Linq.Expressions;
+
+
+
+
diff --git a/IRaCIS.Core.Application/Helper/Attribute/DictionaryTranslateAttribute.cs b/IRaCIS.Core.Application/Helper/Attribute/DictionaryTranslateAttribute.cs
index 459557f18..051b72909 100644
--- a/IRaCIS.Core.Application/Helper/Attribute/DictionaryTranslateAttribute.cs
+++ b/IRaCIS.Core.Application/Helper/Attribute/DictionaryTranslateAttribute.cs
@@ -1,9 +1,4 @@
using IRaCIS.Core.Domain.Share;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace IRaCIS.Core.Application.Helper
{
@@ -19,9 +14,9 @@ namespace IRaCIS.Core.Application.Helper
//是否翻译依赖其他属性
- public bool IsTranslateDenpendOtherProperty =>!string.IsNullOrWhiteSpace(DependPropertyName);
+ public bool IsTranslateDenpendOtherProperty => !string.IsNullOrWhiteSpace(DependPropertyName);
- public string DependPropertyName { get; set; }=string.Empty;
+ public string DependPropertyName { get; set; } = string.Empty;
public string DependPropertyValueStr { get; set; } = string.Empty;
@@ -33,7 +28,7 @@ namespace IRaCIS.Core.Application.Helper
}
//针对不同的标准 翻译的字典不一样
- public DictionaryTranslateAttribute(string dicParentCode, CriterionType criterionType )
+ public DictionaryTranslateAttribute(string dicParentCode, CriterionType criterionType)
{
DicParentCode = dicParentCode;
@@ -42,7 +37,7 @@ namespace IRaCIS.Core.Application.Helper
//针对业务某个属性的值 不一样 用的翻译字典不一样
- public DictionaryTranslateAttribute(string dicParentCode,string dependPropertyName, string dependPropertyValueStr)
+ public DictionaryTranslateAttribute(string dicParentCode, string dependPropertyName, string dependPropertyValueStr)
{
DicParentCode = dicParentCode;
diff --git a/IRaCIS.Core.Application/Helper/CacheHelper.cs b/IRaCIS.Core.Application/Helper/CacheHelper.cs
index 5fb158ed1..33d9cb9cd 100644
--- a/IRaCIS.Core.Application/Helper/CacheHelper.cs
+++ b/IRaCIS.Core.Application/Helper/CacheHelper.cs
@@ -1,11 +1,4 @@
-using IRaCIS.Core.Domain.Models;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace IRaCIS.Core.Application.Helper
+namespace IRaCIS.Core.Application.Helper
{
public static class CacheKeys
diff --git a/IRaCIS.Core.Application/Helper/ExcelExportHelper.cs b/IRaCIS.Core.Application/Helper/ExcelExportHelper.cs
index f4285471f..4229f1885 100644
--- a/IRaCIS.Core.Application/Helper/ExcelExportHelper.cs
+++ b/IRaCIS.Core.Application/Helper/ExcelExportHelper.cs
@@ -1,7 +1,4 @@
-using DocumentFormat.OpenXml.Drawing.Diagrams;
-using DocumentFormat.OpenXml.Spreadsheet;
-using DocumentFormat.OpenXml.Wordprocessing;
-using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Contracts;
using IRaCIS.Application.Interfaces;
using IRaCIS.Core.API._ServiceExtensions.NewtonsoftJson;
using IRaCIS.Core.Application.Helper;
@@ -10,14 +7,9 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using MiniExcelLibs;
using MiniExcelLibs.OpenXml;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
-using NPOI.HSSF.UserModel;
using NPOI.XSSF.UserModel;
using System.Collections;
-using System.ComponentModel;
using System.Globalization;
-using System.IO;
namespace IRaCIS.Core.Application.Service;
@@ -68,7 +60,7 @@ public static class ExcelExportHelper
{
if (DateTime.TryParse(itemValuePair.Value?.ToString(), out DateTime result))
{
- itemDic[itemValuePair.Key] = ExportExcelConverterDate.DateTimeInternationalToString(result );
+ itemDic[itemValuePair.Key] = ExportExcelConverterDate.DateTimeInternationalToString(result);
}
}
diff --git a/IRaCIS.Core.Application/Helper/FileConvertHelper.cs b/IRaCIS.Core.Application/Helper/FileConvertHelper.cs
index fa6aa2324..51c3a5f65 100644
--- a/IRaCIS.Core.Application/Helper/FileConvertHelper.cs
+++ b/IRaCIS.Core.Application/Helper/FileConvertHelper.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Diagnostics;
namespace IRaCIS.Core.Application.Helper
{
diff --git a/IRaCIS.Core.Application/Helper/FileStoreHelper.cs b/IRaCIS.Core.Application/Helper/FileStoreHelper.cs
index ed371698a..bfb4e39d3 100644
--- a/IRaCIS.Core.Application/Helper/FileStoreHelper.cs
+++ b/IRaCIS.Core.Application/Helper/FileStoreHelper.cs
@@ -1,12 +1,7 @@
-
-
-using Aliyun.OSS;
-using IRaCIS.Core.Domain.Share;
+using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Infrastructure;
using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
using Newtonsoft.Json.Linq;
-using System.Configuration;
using System.Globalization;
using System.Text.RegularExpressions;
@@ -16,7 +11,7 @@ public static class FileStoreHelper
{
//处理文件名 压缩包,或者目录类的 会带上相对路径
- public static (string TrustedFileNameForFileStorage, string RealName) GetStoreFileName(string fileName,bool isChangeToPdfFormat=false)
+ public static (string TrustedFileNameForFileStorage, string RealName) GetStoreFileName(string fileName, bool isChangeToPdfFormat = false)
{
//带目录层级,需要后端处理前端的路径
@@ -41,14 +36,14 @@ public static class FileStoreHelper
var trustedFileNameForFileStorage = string.Empty;
- if (isChangeToPdfFormat==false)
+ if (isChangeToPdfFormat == false)
{
- trustedFileNameForFileStorage= Guid.NewGuid().ToString() + fileName;
+ trustedFileNameForFileStorage = Guid.NewGuid().ToString() + fileName;
}
else
{
- trustedFileNameForFileStorage=Guid.NewGuid().ToString() + Path.GetFileNameWithoutExtension(fileName) + ".pdf";
+ trustedFileNameForFileStorage = Guid.NewGuid().ToString() + Path.GetFileNameWithoutExtension(fileName) + ".pdf";
}
return (trustedFileNameForFileStorage, fileName);
@@ -57,7 +52,7 @@ public static class FileStoreHelper
//API vue 部署目录
public static string GetIRaCISRootPath(IWebHostEnvironment _hostEnvironment)
{
- string parentDirectory = Path.GetFullPath(Path.Combine(_hostEnvironment.ContentRootPath, ".."));
+ string parentDirectory = Path.GetFullPath(Path.Combine(_hostEnvironment.ContentRootPath, ".."));
return parentDirectory;
@@ -136,10 +131,10 @@ public static class FileStoreHelper
{
var doc = await _commonDocumentRepository.FirstOrDefaultAsync(t => t.Code == code);
- var isEn_US = CultureInfo.CurrentCulture.Name!= StaticData.CultureInfo.zh_CN;
+ var isEn_US = CultureInfo.CurrentCulture.Name != StaticData.CultureInfo.zh_CN;
if (doc == null)
{
- //---数据库没有找到对应的数据模板文件,请联系系统运维人员。
+ //---数据库没有找到对应的数据模板文件,请联系系统运维人员。
throw new BusinessValidationFailedException(StaticData.International("FileStore_TemplateFileNotFound"));
}
@@ -147,11 +142,11 @@ public static class FileStoreHelper
if (!System.IO.File.Exists(filePath))
{
- //---数据模板文件存储路径上未找对应文件,请联系系统运维人员。
+ //---数据模板文件存储路径上未找对应文件,请联系系统运维人员。
throw new BusinessValidationFailedException(StaticData.International("FileStore_TemplateFileStoragePathInvalid"));
}
- return (filePath, isEn_US? doc.Name.Trim('/'): doc.NameCN.Trim('/'));
+ return (filePath, isEn_US ? doc.Name.Trim('/') : doc.NameCN.Trim('/'));
}
@@ -202,7 +197,7 @@ public static class FileStoreHelper
// 获取 入组确认 PD 进展发送邮件Word|PDF 存放路径
- public static (string PhysicalPath, string RelativePath, string FileRealName) GetSubjectEnrollConfirmOrPDEmailPath(IWebHostEnvironment _hostEnvironment, string fileName, Guid trialId, Guid trialSiteId, Guid subjectId,bool isChangeToPdfFormat=false)
+ public static (string PhysicalPath, string RelativePath, string FileRealName) GetSubjectEnrollConfirmOrPDEmailPath(IWebHostEnvironment _hostEnvironment, string fileName, Guid trialId, Guid trialSiteId, Guid subjectId, bool isChangeToPdfFormat = false)
{
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
@@ -221,19 +216,19 @@ public static class FileStoreHelper
}
- public static string GetSubjectVisitDicomFolderPhysicalPath(IWebHostEnvironment _hostEnvironment,Guid trialId, Guid siteId, Guid subjectId, Guid subjectVisitId)
+ public static string GetSubjectVisitDicomFolderPhysicalPath(IWebHostEnvironment _hostEnvironment, Guid trialId, Guid siteId, Guid subjectId, Guid subjectVisitId)
{
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
return Path.Combine(rootPath, StaticData.Folder.TrialDataFolder, trialId.ToString(), siteId.ToString(), subjectId.ToString(), subjectVisitId.ToString(), StaticData.Folder.DicomFolder);
}
- public static (string PhysicalPath, string RelativePath) GetDicomInstanceFilePath(IWebHostEnvironment _hostEnvironment, Guid trialId, Guid subjectId, Guid subjectVisitId, Guid studyId, Guid instanceId)
+ public static (string PhysicalPath, string RelativePath) GetDicomInstanceFilePath(IWebHostEnvironment _hostEnvironment, Guid trialId, Guid subjectId, Guid subjectVisitId, Guid studyId, Guid instanceId)
{
#region 切换存储前
//var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
#endregion
- var rootPath = Path.Combine(FileStoreHelper.GetBestStoreDisk(_hostEnvironment), StaticData.Folder.IRaCISDataFolder) ;
+ var rootPath = Path.Combine(FileStoreHelper.GetBestStoreDisk(_hostEnvironment), StaticData.Folder.IRaCISDataFolder);
@@ -246,7 +241,7 @@ public static class FileStoreHelper
Directory.CreateDirectory(path);
}
- var physicalPath = Path.Combine(path, instanceId.ToString() );
+ var physicalPath = Path.Combine(path, instanceId.ToString());
var relativePath = $"/{StaticData.Folder.IRaCISDataFolder}/{StaticData.Folder.TrialDataFolder}/{trialId}/{subjectId}/{subjectVisitId}/{StaticData.Folder.DicomFolder}/{studyId}/{instanceId}";
@@ -260,7 +255,7 @@ public static class FileStoreHelper
public static string GetBestStoreDisk(IWebHostEnvironment _hostEnvironment)
{
- var json = File.ReadAllText( Path.Combine(_hostEnvironment.ContentRootPath, "appsettings.json"));
+ var json = File.ReadAllText(Path.Combine(_hostEnvironment.ContentRootPath, "appsettings.json"));
JObject jsonObject = (JObject.Parse(json, new JsonLoadSettings() { CommentHandling = CommentHandling.Load })).IfNullThrowException();
@@ -274,7 +269,7 @@ public static class FileStoreHelper
{
//---解析Json文件配置出现问题
- throw new BusinessValidationFailedException(StaticData.International("SysMon_JsonConfig") + e.Message);
+ throw new BusinessValidationFailedException(StaticData.International("SysMon_JsonConfig") + e.Message);
}
//默认存储的路径
@@ -318,7 +313,7 @@ public static class FileStoreHelper
-
+
}
diff --git a/IRaCIS.Core.Application/Helper/HangfireJobHelper.cs b/IRaCIS.Core.Application/Helper/HangfireJobHelper.cs
index 69eaf410d..7b4d669c3 100644
--- a/IRaCIS.Core.Application/Helper/HangfireJobHelper.cs
+++ b/IRaCIS.Core.Application/Helper/HangfireJobHelper.cs
@@ -1,15 +1,5 @@
using Hangfire;
-using IRaCIS.Core.Application.Service;
using IRaCIS.Core.Domain.Share;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using NPOI.SS.Formula.Functions;
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Linq.Expressions;
-using System.Text;
-using System.Threading.Tasks;
namespace IRaCIS.Core.Application.Helper
{
@@ -65,7 +55,7 @@ namespace IRaCIS.Core.Application.Helper
}
- public static void AddOrUpdateTrialCronJob (string jobId, Guid trialId, EmailBusinessScenario businessScenario, string emailCron)
+ public static void AddOrUpdateTrialCronJob(string jobId, Guid trialId, EmailBusinessScenario businessScenario, string emailCron)
{
switch (businessScenario)
@@ -88,5 +78,5 @@ namespace IRaCIS.Core.Application.Helper
}
}
}
-
+
diff --git a/IRaCIS.Core.Application/Helper/HolidayHelper.cs b/IRaCIS.Core.Application/Helper/HolidayHelper.cs
index 0e6886d3f..cbd3be004 100644
--- a/IRaCIS.Core.Application/Helper/HolidayHelper.cs
+++ b/IRaCIS.Core.Application/Helper/HolidayHelper.cs
@@ -1,9 +1,4 @@
using RestSharp;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace IRaCIS.Core.Application.Helper
{
diff --git a/IRaCIS.Core.Application/Helper/IRCEmailPasswordHelper.cs b/IRaCIS.Core.Application/Helper/IRCEmailPasswordHelper.cs
index 64ec7309f..a2c23c1bd 100644
--- a/IRaCIS.Core.Application/Helper/IRCEmailPasswordHelper.cs
+++ b/IRaCIS.Core.Application/Helper/IRCEmailPasswordHelper.cs
@@ -1,11 +1,4 @@
-using NPOI.SS.Formula.Functions;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace IRaCIS.Core.Application.Helper
+namespace IRaCIS.Core.Application.Helper
{
public static class IRCEmailPasswordHelper
{
diff --git a/IRaCIS.Core.Application/Helper/ImageHelper.cs b/IRaCIS.Core.Application/Helper/ImageHelper.cs
index 50f0ab4f6..293511f2d 100644
--- a/IRaCIS.Core.Application/Helper/ImageHelper.cs
+++ b/IRaCIS.Core.Application/Helper/ImageHelper.cs
@@ -1,10 +1,8 @@
using FellowOakDicom.Imaging;
-using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp;
+using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.Processing;
-using System.Security.Cryptography;
-using System.Text;
namespace IRaCIS.Core.Application.Helper;
diff --git a/IRaCIS.Core.Application/Helper/InternationalizationHelper.cs b/IRaCIS.Core.Application/Helper/InternationalizationHelper.cs
index 910f35e14..390210a11 100644
--- a/IRaCIS.Core.Application/Helper/InternationalizationHelper.cs
+++ b/IRaCIS.Core.Application/Helper/InternationalizationHelper.cs
@@ -4,12 +4,6 @@ using IRaCIS.Core.Infrastructure;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using static IRaCIS.Core.Application.Service.Common.SystemMonitor;
namespace IRaCIS.Core.Application.Helper
{
@@ -56,7 +50,7 @@ namespace IRaCIS.Core.Application.Helper
//日志记录该信息方便自己人看, 返回给客户的是配置的
StaticData.Log_Locoalize_Dic[item.Code] = item.Description;
- }
+ }
}
else
{
@@ -65,7 +59,7 @@ namespace IRaCIS.Core.Application.Helper
jsonObject[item.Code] = item.Value;
StaticData.Zh_CN_Dic[item.Code] = item.Value;
- }
+ }
}
@@ -74,7 +68,7 @@ namespace IRaCIS.Core.Application.Helper
}
}
- public static async Task AddOrUpdateJsonKeyValueAsync(string key, string value, string valueCN,string description)
+ public static async Task AddOrUpdateJsonKeyValueAsync(string key, string value, string valueCN, string description)
{
VerifyFolder();
diff --git a/IRaCIS.Core.Application/Helper/OSSService.cs b/IRaCIS.Core.Application/Helper/OSSService.cs
index 76ed3c248..1239cded2 100644
--- a/IRaCIS.Core.Application/Helper/OSSService.cs
+++ b/IRaCIS.Core.Application/Helper/OSSService.cs
@@ -1,34 +1,19 @@
-using Aliyun.OSS;
-using IRaCIS.Core.Infrastructure;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Options;
-using Minio.DataModel.Args;
-using Minio;
-using SharpCompress.Common;
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.IO;
-using System.Linq;
-using System.Security.AccessControl;
-using System.Text;
-using System.Threading.Tasks;
-using System.Runtime.InteropServices;
-using System.Text.Json.Serialization;
-using Minio.ApiEndpoints;
-using System.Reactive.Linq;
-using IRaCIS.Core.Domain.Share;
-using static MassTransit.ValidationResultExtensions;
-using IRaCIS.Core.Infrastructure.NewtonsoftJson;
+using AlibabaCloud.SDK.Sts20150401;
+using Aliyun.OSS;
+using Amazon;
using Amazon.Runtime;
using Amazon.S3;
using Amazon.S3.Model;
-using MassTransit.Caching.Internals;
-using MassTransit;
-using AlibabaCloud.SDK.Sts20150401;
using Amazon.SecurityToken;
using Amazon.SecurityToken.Model;
-using Amazon;
+using IRaCIS.Core.Infrastructure;
+using IRaCIS.Core.Infrastructure.NewtonsoftJson;
+using MassTransit;
+using Microsoft.Extensions.Options;
+using Minio;
+using Minio.DataModel.Args;
+using System.Reactive.Linq;
+using System.Runtime.InteropServices;
namespace IRaCIS.Core.Application.Helper
{
@@ -160,7 +145,7 @@ namespace IRaCIS.Core.Application.Helper
public Task DeleteFromPrefix(string prefix);
- public Task GetObjectStoreTempToken();
+ public Task GetObjectStoreTempToken();
}
@@ -236,7 +221,7 @@ namespace IRaCIS.Core.Application.Helper
{
var awsConfig = ObjectStoreServiceOptions.AWS;
- var credentials = new SessionAWSCredentials( AWSTempToken.AccessKeyId, AWSTempToken.SecretAccessKey, AWSTempToken.SessionToken);
+ var credentials = new SessionAWSCredentials(AWSTempToken.AccessKeyId, AWSTempToken.SecretAccessKey, AWSTempToken.SessionToken);
@@ -244,7 +229,7 @@ namespace IRaCIS.Core.Application.Helper
var clientConfig = new AmazonS3Config
{
RegionEndpoint = RegionEndpoint.USEast1,
- UseHttp =true,
+ UseHttp = true,
};
var amazonS3Client = new AmazonS3Client(credentials, clientConfig);
@@ -722,7 +707,7 @@ namespace IRaCIS.Core.Application.Helper
};
- AliyunOSSTempToken=tempToken;
+ AliyunOSSTempToken = tempToken;
return new ObjectStoreDTO() { ObjectStoreUse = ObjectStoreServiceOptions.ObjectStoreUse, AliyunOSS = tempToken };
}
diff --git a/IRaCIS.Core.Application/Helper/SendEmailHelper.cs b/IRaCIS.Core.Application/Helper/SendEmailHelper.cs
index 7a223b275..c424a0814 100644
--- a/IRaCIS.Core.Application/Helper/SendEmailHelper.cs
+++ b/IRaCIS.Core.Application/Helper/SendEmailHelper.cs
@@ -1,9 +1,7 @@
-using DocumentFormat.OpenXml.Spreadsheet;
-using IRaCIS.Core.Domain.Share;
+using IRaCIS.Core.Domain.Share;
using MailKit;
using MailKit.Security;
using MimeKit;
-using NPOI.HPSF;
namespace IRaCIS.Core.Application.Helper;
@@ -44,7 +42,7 @@ public static class SendEmailHelper
{
//---邮件发送失败,您进行的操作未能成功,请检查邮箱或联系维护人员
- throw new Exception(StaticData.International("SendEmail_SendFail"),new Exception(ex.Message));
+ throw new Exception(StaticData.International("SendEmail_SendFail"), new Exception(ex.Message));
}
@@ -64,7 +62,7 @@ public static class SendEmailHelper
await client.DisconnectAsync(true);
}
}
-
+
return true;
}
diff --git a/IRaCIS.Core.Application/Helper/WordTempleteHelper.cs b/IRaCIS.Core.Application/Helper/WordTempleteHelper.cs
index 9f605be81..7fc34987b 100644
--- a/IRaCIS.Core.Application/Helper/WordTempleteHelper.cs
+++ b/IRaCIS.Core.Application/Helper/WordTempleteHelper.cs
@@ -1,11 +1,6 @@
using IRaCIS.Core.Domain.Share;
using NPOI.XWPF.UserModel;
-using System;
-using System.Collections.Generic;
using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using Xceed.Document.NET;
using Xceed.Words.NET;
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
index 9faf0ffec..bf0e815b4 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj
@@ -19,21 +19,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index a645900c5..217a59fc9 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -29,103 +29,20 @@
签名
-
+
- 测试加密API 返回的结果
+ 统一返回前端数据包装,之前在控制器包装,现在修改为动态Api 在ResultFilter这里包装,减少重复冗余代码
+ by zhouhang 2021.09.12 周末
-
+
- https://www.cnblogs.com/NBDWDYS2214143926/p/13329231.html
+ 异步版本
-
-
-
- RSA解密
-
- 私钥
- 待解密的字符串(Base64)
- 解密后的字符串
-
-
-
-
- 不生效,不知道为啥
-
-
-
-
- 主要为了 处理项目结束 锁库,不允许操作
-
-
-
-
- 跳过阅片
-
-
+
+
-
-
- 开始阅片时间
-
-
-
-
-
-
- 开始休息时间
-
-
-
-
-
-
- 写文件导到磁盘
-
- 流
- 文件保存路径
-
-
-
-
- github 链接:https://github.com/lanceliao/china-holiday-calender?tab=readme-ov-file
- 接口请求参考文档:https://www.koudingke.cn/docs/zh-Hans/net-lib-docs/latest/RestSharp/Usage/Usage
-
-
-
-
-
- oosFolderPath 不要 "/ "开头 应该: TempFolder/ChildFolder
-
-
-
-
-
-
-
-
-
- oosFolderPath 不要 "/ "开头 应该: TempFolder/ChildFolder
-
-
-
-
-
-
-
-
-
- 删除某个目录的文件
-
-
-
-
-
-
- 利用DocX 库 处理word国际化模板
-
-
分配规则
@@ -818,6 +735,122 @@
+
+
+ 数据字典-基础数据维护
+
+
+
+
+ 数据字典-基础数据维护
+
+
+
+
+ 添加bool
+
+
+
+
+
+
+ 获取所有字典的Key
+
+
+
+
+
+ 添加字典 的同时 一起添加子项 --New
+
+
+
+
+
+
+ New 查询条件
+
+
+
+
+
+
+ 添加和编辑
+
+
+
+
+
+
+ 获取子项数组
+
+
+
+
+
+ 删除字典数据
+
+
+
+ 传递父亲 code 字符串 数组 返回多个下拉框数据
+
+
+
+
+
+
+ 根据父亲Code 获取单个下拉框数据
+
+
+
+
+
+
+ 根据父亲字典分组 获取子项
+
+
+
+
+
+
+ 获取标准字典
+
+
+
+
+
+ 获取标准字典
+
+
+
+
+
+ 获取标准指定字典
+
+
+
+
+
+
+ 获取所有下拉框 枚举 bool 数据
+
+
+
+
+
+ 获取是和否
+
+
+
+
+
+
+ 获取审核状态
+
+
+
+
+
+
ExploreRecommendService
@@ -828,6 +861,21 @@
ExploreRecommendService
+
+
+ 打包医生官方简历
+
+
+
+
+
+
+
+ 打包医生的所有附件
+
+
+
+
InternationalizationService
@@ -871,6 +919,14 @@
+
+
+ Reviewer简历录入 发送验证码
+
+
+
+
+
PublishLogService
@@ -881,6 +937,221 @@
PublishLogService
+
+
+ 医生文档关联关系维护
+
+
+
+
+ 医生文档关联关系维护
+
+
+
+
+ 删除附件
+
+
+
+
+
+
+ 根据医生Id 和 附件类型,获取记录
+
+ 医生Id
+ 附件类型
+
+
+
+
+ 获取单个医生的多种证书附件
+
+ 医生Id
+ 类型数组
+
+
+
+
+ 根据医生Id获取医生附件
+
+ 医生Id
+
+
+
+
+ 保存多个附件
+
+
+
+
+
+
+ 将简历设置为官方简历
+
+
+
+
+
+
+
+
+ 设置简历的语言类型
+
+
+
+ 0-未设置,1-中文,2-英文
+
+
+
+
+ Reviewer列表分页查询
+
+
+
+
+ 获取可筛选筛选及已经筛选的医生列表
+
+
+
+
+ 获取提交CRO或者CRO审核的Reviewer列表
+
+
+ 根据状态获取医生列表,入组 相关接口 (提交CRO-1) CRO确认-4
+
+
+
+
+ 获取项目下医生入组状态列表[Confirmation]
+
+
+
+
+ 添加/更新 医生基本信息 BasicInfo
+
+
+
+
+ 详情、编辑-获取 医生基本信息 BasicInfo
+
+ ReviewerID
+
+
+
+
+ 详情、编辑-获取医生工作信息 Employment
+
+
+
+
+ 添加修改医生标准文件
+
+
+
+
+
+
+ 删除医生标准文件
+
+
+
+
+
+
+ 获取医生标准文件
+
+
+
+
+
+
+ 获取医生入组信息 正在提交的数量 已同意入组项目个数 正在读的
+
+
+
+
+ Get Statement of Work list.[New]
+
+
+
+
+ Get Ack Statement of Work[New]
+
+
+
+
+ 根据医生Id获取医生教育经历和继续学习经历列表
+
+
+
+
+ 新增医生教育经历
+
+
+
+
+
+ 添加/更新医生继续学习经历
+
+
+
+ 删除医生继续学习经历
+
+ 医生Id
+
+
+
+
+ 查询-医生科学研究信息
+
+ 医生Id
+
+
+
+
+ 根据医生Id,获取临床试验经历 界面所有数据
+
+
+
+ 添加或更新医生临床经验列表项
+
+
+
+ 删除临床经验
+
+
+
+
+ 更新-GCP和其他临床经验
+
+
+
+
+
+
+ 更新其他技能经验
+
+
+
+
+ 添加休假时间段
+
+ Status不传
+
+
+
+
+ 删除休假时间段
+
+ 记录Id
+
+
+
+
+ 获取休假时间段列表
+
+
+
影像质控
@@ -991,6 +1262,162 @@
+
+
+ 获取某个月下的某些医生最终确认的工作量,用于计算月度费用
+
+
+
+
+ 计算月度费用,并调用AddOrUpdateMonthlyPayment和AddOrUpdateMonthlyPaymentDetail方法,
+ 将费用计算的月度数据及详情保存
+
+
+
+
+ 保存费用计算的月度数据
+
+
+
+
+ 保存费用计算的月度详情
+
+
+
+
+ 获取待计算费用的Reviewer对应的月份列表
+
+
+
+
+ 查询Reviewer某个月的费用是否被锁定
+
+
+
+
+ 根据记录Id,删除汇率记录
+
+ 汇率记录Id
+
+
+
+ Financials /MonthlyPayment 列表查询接口
+
+
+
+
+ Financials /MonthlyPaymentDetail 详情查询接口
+
+
+
+
+ NEW 导出Excel压缩包 数据获取
+
+
+
+
+ Financials / Payment History 列表查询接口(已经支付锁定的数据,包含调整的)[New]
+
+
+
+
+ Financials / Payment History 详情接口[New]
+
+
+
+
+ Revenues列表接口,收入统计[New] 0是Detail 1是按照项目 2是按照人 3按照月份
+
+
+
+
+ 收入支出分析接口,按照项目维度分析统计
+
+
+
+
+ 收入支出分析接口,按照医生维度分析统计
+
+
+
+
+ 获取劳务费用列表
+
+
+
+
+ 锁定医生费用,锁定后,无法变更该医生对应月份的费用和工作量[New]
+
+
+
+
+ 添加或更新费用调整[AUTH]
+
+
+
+
+ 删除费用调整记录
+
+
+
+
+ 获取费用调整列表
+
+
+
+
+ 获取职称单价列表
+
+
+
+
+ 获取医生支付信息列表
+
+
+
+
+ 根据医生Id获取支付信息
+
+ 医生Id
+
+
+
+
+ 根据rankId 获取ReviewerId,用于当Rank的单价信息改变时,触发费用计算
+
+
+
+
+
+
+ 添加或更新项目支付价格信息
+
+
+
+
+ 获取项目支付价格信息列表
+
+
+
+
+ 获取项目收入费用信息列表[New]
+
+
+
+
+ 批量添加或更新奖励费用单价
+
+
+
+
+ 获取所有奖励单价列表-用于计算时,一次性获取所有
+
+
+
+
+ 分页获取奖励单价列表
+
+
受试者随机阅片,任务进行随机编号
@@ -1515,6 +1942,85 @@
+
+ 分页获取CRO列表
+
+
+ 根据CRO 名称查询所有CRO 列表
+
+
+ 添加CRO信息
+
+
+ 删除CRO信息
+
+
+ 获取所有医院列表
+
+
+ 添加医院
+
+
+ 删除医院信息
+
+
+ 分页获取医院列表
+
+
+ 分页获取研究中心列表
+
+
+ 添加研究中心
+
+
+ 删除研究中心
+
+
+ 分页获取申办方列表
+
+
+ 分页获取申办方列表
+
+
+ 添加申办方
+
+
+ 删除申办方
+
+
+
+ 添加菜单 New
+
+
+
+
+
+
+ 删除菜单 已验证 父节点不允许删除 New
+
+
+
+
+
+
+ 所有的菜单树 包括禁用的 New
+
+
+
+
+
+ 菜单列表 参数都是可传的 根据需要传递 New
+
+
+
+
+
+
+ 获取某用户类型(角色) 菜单树 勾选情况 New
+
+
+
+
SystemNoticeService
@@ -1548,6 +2054,114 @@
+
+ 发送验证码 修改邮箱(已经登陆修改) New
+
+
+
+ 重置密码为 默认密码
+
+
+
+
+
+
+ 重置密码发邮件 (未登陆修改)
+
+
+
+
+
+
+ 验证验证码,没问题就返回用户所有的账户
+
+
+
+
+
+
+
+
+ (未登陆) 设置新密码
+
+
+
+
+
+
+
+ 修改密码,当前支持旧密码修改密码
+
+
+
+
+
+ 获取用户列表
+
+
+
+
+
+
+ 根据用户Id获取用户详细信息[New]
+
+
+ xiuga
+
+
+
+ 添加用户
+
+
+
+
+
+
+ 更新用户
+
+
+
+
+
+
+ 删除用户
+
+
+
+
+
+
+ 禁用或者启用账户
+
+
+
+
+
+
+
+ 发送MFA 验证邮件
+
+
+
+
+
+
+
+ 验证MFA 邮件
+
+
+
+
+
+
+
+
+ 用户登陆
+
+
+
+
+
验证CRC 是否已提交 已提交 就不允许进行任何操作,如果是IQC 那么还验证是否是当前任务领取人
@@ -4394,6 +5008,80 @@
+
+
+ 临床数据配置
+
+
+
+
+ 临床数据配置
+
+
+
+
+ 应用系统临床数据
+
+
+
+
+
+
+
+ 应用项目临床数据
+
+
+
+
+
+
+
+ 新增或者修改(系统)
+
+
+
+
+
+
+ 获取系统临床数据(系统)
+
+
+
+
+
+ 删除(系统)
+
+
+
+
+
+
+ 新增或者修改(项目)
+
+
+
+
+
+
+ 获取项目的临床数据
+
+
+
+
+
+
+ 删除(项目)
+
+
+
+
+
+
+ 将系统配置添加到项目配置
+
+
+
+
临床数据问题
@@ -4575,6 +5263,118 @@
+
+
+ 阅片临床数据
+
+
+
+
+ 阅片临床数据
+
+
+
+
+ 新增或者修改
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+ 获取检查类型临床数据
+
+
+
+
+
+
+ 获取CRC上传的文件
+
+
+
+
+
+
+ 添加CRC数据类型
+
+
+
+
+
+ 影像阅片临床数据签名
+
+
+
+
+ 获取下拉菜单
+
+
+
+
+
+
+ 获取访视 阅片或任务临床数据
+
+
+
+
+
+
+ 获取阅片临床数据列表
+
+
+
+
+
+
+ 获取阅片临床数据列表 (在任务列表)
+
+
+
+
+
+
+ 新增或修改一致性分析临床数据
+
+
+
+
+
+
+ 一致性分析临床数据签名
+
+
+
+
+
+
+ 一致性分析临床数据签名完设置任务为有效
+
+
+
+
+
+
+ 获取单个阅片临床数据的所有文件
+
+
+
+
+
+
+ 删除PDF单个文件
+
+
+
+
上传角色
@@ -10237,12 +11037,892 @@
+
+
+ 阅片问题.标准
+
+
+
+
+ 阅片问题.标准
+
+
+
+
+ 获取自定义表格问题预览
+
+
+
+
+
+ 获取问题
+
+
+
+
+
+
+ 获取表格问题
+
+
+
+
+
+
+ 获取系统问题分组
+
+
+
+
+
+
+ 获取系统问题
+
+
+
+
+
+ 获取系统标准的其他问题
+
+
+
+
+
+
+ 新增修改系统问题
+
+
+
+
+
+
+ 删除系统问题
+
+
+
+
+
+
+ 获取系统的表格问题
+
+
+
+
+
+
+ 获取系统表格其他问题
+
+
+
+
+
+
+ 新增修改系统表格问题
+
+
+
+
+
+ 删除系统表格问题
+
+
+
+
+
+
+ 新增修改项目问题(项目)
+
+
+
+
+
+
+ 获取项目问题(项目)
+
+
+
+
+
+ 验证计算关系
+
+
+
+
+
+
+
+
+
+ 获取问题计算关系
+
+
+
+
+
+
+ 获取项目标准的其他问题(项目)
+
+
+
+
+
+
+ 删除项目问题(项目)
+
+
+
+
+
+
+ 获取项目问题分组
+
+
+
+
+
+
+ 获取项目的表格问题
+
+
+
+
+
+
+ 获取项目表格其他问题
+
+
+
+
+
+
+ 新增修改想想项目表格问题
+
+
+
+
+
+
+ 删除项目表格问题
+
+
+
+
+
+
+ 复制一个系统标准到另一系统标准
+
+
+
+
+
+
+
+ 同步系统标准
+
+
+
+
+
+
+ 同步标准到项目新(2022-08-10)
+
+
+
+
+
+
+ 验证是否要同步标准
+
+
+
+
+
+
+ 添加系统数据到项目里面
+
+
+
获取疗效对照
+
+
+ 全局阅片
+
+
+ IR影像阅片
+
+
+ 裁判
+
+
+ 非Dicom
+
+
+ 肿瘤学
+
+
+ 问题
+
+
+
+
+ 提交全局阅片结果
+
+
+
+
+
+
+ 批量提交全局阅片信息
+
+
+
+
+
+
+ 保存全局阅片结果
+
+
+
+
+
+
+ 获取全局阅片信息
+
+
+
+
+
+
+ IR影像阅片
+
+
+
+
+ 获取阅片的计算数据
+
+
+
+
+
+
+ 获取既往病灶的OtherPicture
+
+
+
+
+
+
+ 提交自定义标记
+
+
+
+
+
+
+ 删除自定义标记
+
+
+
+
+
+
+ 获取自定义标记
+
+
+
+
+
+
+ 获取手册
+
+
+
+
+
+
+ 获取任务附加问题
+
+
+
+
+
+
+ 提交附加问题
+
+
+
+
+
+
+ 维护任务关系
+
+
+
+
+
+ 修改计算问题
+
+
+
+
+
+
+ 阅读临床数据
+
+
+
+
+
+
+ 添加默认值到任务里面
+
+
+
+
+
+ 根据任务ID获取ReadingTool
+
+
+
+
+
+
+ 获取关联的阅片任务
+
+
+
+
+
+
+ 获取既往任务名称和编号
+
+
+
+
+
+ 获取阅片的受试者信息
+
+
+
+
+
+
+ 验证是否为基线访视任务
+
+
+
+
+
+
+
+ 验证任务是否签名
+
+
+
+
+
+
+
+ 获取DIcom阅片问题答案
+
+
+
+
+
+
+ 获取阅片外层问题
+
+
+
+
+
+
+
+
+
+ 获取阅片报告
+
+
+
+
+
+
+ 获取表格答案行信息
+
+
+
+ (QuestionId) 可为空
+
+
+
+
+
+ 获取表格问题及答案(2022-08-26)
+
+
+
+
+
+
+ 获取自定义问题以及答案
+
+
+
+
+
+
+ 获取表格问题及答案 只返回表格问题(任务和标准)
+
+
+
+
+
+
+ 获取子元素
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 拆分病灶 分裂病灶
+
+
+
+
+
+ 合并病灶 融合
+
+
+
+
+
+ 获取可合并的病灶
+
+
+
+
+
+
+ 保存影像质量
+
+
+
+
+
+
+ 保存任务问题 带动态稽查参数
+
+
+ 请求类型
+
+
+
+
+ 修改肿瘤学评估结果
+
+
+
+
+
+
+ 删除表格行数据
+
+
+
+
+
+
+ 提交表格问题答案 提交病灶 保存病灶
+
+
+
+
+
+
+ 提交Dicom阅片信息
+
+
+
+
+
+
+ 验证默认问题是否回答
+
+
+
+
+
+
+
+ 验证访视提交
+
+
+
+
+
+
+ 清除跳过阅片的缓存
+
+
+
+
+
+ 设置跳过阅片的缓存
+
+
+
+
+
+
+ 获取下一个阅片任务
+
+
+
+
+
+
+ 重置阅片任务
+
+
+
+
+
+
+ 验证阅片休息时间
+
+
+
+
+
+ 重置阅片时间 登录和解锁调用
+
+
+
+
+
+ 签名提交任务修改状态
+
+
+
+
+
+
+ 签名时创建任务关联
+
+
+
+
+
+ 阅片期 -全局和肿瘤学任务的生成
+
+
+
+
+
+ 获取项目标准的裁判问题
+
+
+
+
+
+
+ 设置裁判问题的答案分组
+
+
+
+
+
+
+ 获取裁判阅片任务信息
+
+
+
+
+
+ 保存裁判问题
+
+
+
+
+
+
+ 提交裁判问题
+
+
+
+
+
+
+ 判断任务是否是全局访视任务
+
+
+
+
+
+ 触发裁判任务(新)
+
+
+
+
+
+
+ 计算返回的结果 为True表示不相等
+
+
+
+
+
+
+ 添加裁判任务
+
+
+
+
+
+ 提交访视阅片问题
+
+
+
+
+
+
+ 保存任务问题
+
+
+
+
+
+
+ 获取阅片非Dicom文件
+
+
+
+
+
+
+ 获取肿瘤学任务信息
+
+
+
+
+
+
+
+ 修改肿瘤学阅片信息
+
+
+
+
+
+
+ 添加肿瘤学阅片任务 其实这里无非是要判断临床数据是否签名 但是对于添加新的阅片期 其实没有临床数据 可以走之前的逻辑
+
+
+
+
+
+ 提交肿瘤阅片结果
+
+
+
+
+
+
+ 获取项目已确认的标准
+
+
+
+
+
+
+ 获取项目的阅片问题ECRF预览
+
+
+ SinglePage 单页
+
+ MultiPage 多页
+
+ PublicPage 公共
+
+
+
+
+
+
+ 项目配置的阅片问题(不包含表格问题) 以及配置的分页 和任务对应的答案 一维表 -- 非dicom 阅片
+
+
+
+
+
+
+
+ 找子问题
+
+
+
+
+
+
+
+ 获取系统的阅片问题
+
+
+
+
+
+
+ 获取系统
+
+
+
+
+
+
+
+ 阅片期配置
+
+
+
+
+ 阅片期配置
+
+
+
+
+ 新增或者修改 (增加标准搜索,已修改)
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+ 设置阅片期配置是否生效 (增加标准搜索,已修改)
+
+
+
+
+
+
+ 获取选中的计划 (增加标准不影响 因为阅片期设置关联了标准)
+
+
+
+
+
+
+ 添加对应的阅片计划 (后续生效将计划变为模块) (增加标准不影响 因为阅片期设置关联了标准)
+
+
+
+
+
+
+ 分页获取 (增加标准搜索,已修改)
+
+
+
+
+
+
+ 获取单条
+
+
+
+
+
+
+ 获取阅片期配置的截至访视的下拉框 (增加标准搜索,已修改)
+
+
+
+
+
+
+ 获取影像阅片的预览 // 需要清除之前已经选中的 (增加标准搜索,已修改)
+
+
+
+
+
+ 生成的阅片模块(在大列表上展示的) 阅片期
+
+
+
+
+ 生成的阅片模块(在大列表上展示的) 阅片期
+
+
+
+
+ 获取修改截止访视下拉
+
+
+
+
+
+
+ 修改全局阅片截止访视
+
+
+
+
+
+
+ 用ef 实现之前视图的功能
+
+
+
+
+
+
+ 获取单条详情信息
+
+
+
+
+
+
+ 添加阅片的时候 获取访视 //标准参数必传
+
+
+
+
+
+
+ 添加阅片期
+
+
+
+
+
+
+ 删除
+
+
+
+
快捷键服务
@@ -10323,6 +12003,49 @@
+
+
+ Dashboard统计、全局工作量统计、入组两个维度统计(按照项目、按照人)
+
+
+
+
+ Dashboard统计、全局工作量统计、入组两个维度统计(按照项目、按照人)
+
+
+
+ 根据项目和医生,分页获取工作量统计[New]
+
+
+ 项目入组 医生维度统计[New]
+
+
+ 用户参与项目 统计[New]
+
+
+ 用户参与项目 列表[New]
+
+
+ 读片数分类统计[New]
+
+
+ 获取最近几个月份的数据[New]
+
+
+ 读片数量排行前几的数据[New]
+
+
+ 按Rank统计Reviewer 数量[New]
+
+
+ 最近几个季度入组人次[New] type==0 按照月份
+
+
+ 参与项目数排行 [New]
+
+
+ 最新工作量 (已确定的)[New]
+
项目列表
@@ -10404,7 +12127,7 @@
项目外部人员 录入流程相关
-
+
项目外部人员 录入流程相关
@@ -10416,6 +12139,71 @@
+
+
+ Setting页面 获取项目参与人员列表
+
+
+
+
+
+ Setting页面 为 site 勾选CRC用户列表
+
+
+ Setting页面 项目参与人员勾选列表
+
+
+
+ Setting页面 批量添加项目参与人员
+
+
+
+
+
+ 项目参与人员退出 其中IQC退出 回去释放工作量
+
+
+
+ 分页获取临床项目列表 默认后台加急状态为3 查所有的
+
+
+
+
+
+
+ 获取项目基本信息
+
+
+
+
+
+
+ 添加项目
+
+
+
+
+
+ 真删除项目 方便清理测试数据
+ 临床试验项目Id
+
+
+
+ 根据项目Id 获取医生Id,用于触发计算费用
+
+
+
+ 分页获取医生参与的临床实验项目列表(查询条件)
+
+
+
+
+ 医生确认入组或拒绝入组
+
+ 项目Id
+ 9-拒绝入组,10-确认入组
+
+
TrialSiteDicomAEService
@@ -10426,6 +12214,300 @@
TrialSiteDicomAEService
+
+
+ scp 影像推送记录表
+
+
+
+
+
+
+ 影像检查列表-患者为维度组织
+
+
+
+
+
+
+ 影像检查列表-> 获取患者的检查列表
+
+
+
+
+
+
+ 影像访视上传 检查列表
+
+
+
+
+
+
+ 提交 患者检查和访视的绑定
+
+
+
+
+
+
+
+
+
+ 添加或更新受试者信息[New]
+
+ state:1-访视中,2-出组。0-全部
+
+
+
+ 分页获取受试者列表[New]
+ /// state:1-访视中,2-出组。0-全部
+
+
+
+ 计划外访视 获取受试者选择下拉框列表
+
+
+
+ 暂时不用
+ 获取项目访视计划
+
+
+ 根据项目Id,获取项目访视计划(不分页)[New]
+
+
+
+ 获取访视计划下拉框列表
+
+
+
+
+
+ 添加或更新访视计划某项
+
+
+ 删除项目计划某一项 废弃
+
+
+
+ 修改项目医生的阅片类型
+
+
+
+
+
+
+ 修改项目医生启用禁用状态
+
+
+
+
+
+
+ 0代表裁判和Tp 都可以 1、代表Tp 2 代表裁判
+
+
+
+
+
+ 获取某个项目入组的医生工作量统计列表
+
+
+
+
+ 获取入组某个项目的医生的最近几个月的工作量详情(带有填充数据)
+
+
+
+
+ 获取来自Reviewer自己的数据,某个月添加的多条
+
+
+
+
+ 工作量是否存在,用于判断只能添加一条的工作量记录
+
+
+ 查询某个医生是否在某天有某个项目的工作量数据,处理添加来自医生自己的工作量数据
+
+
+
+
+ 添加或更新工作量
+
+
+
+
+ 删除工作量
+
+
+
+
+ 获取工作量详情(用于判断工作量锁定时,调用)
+
+
+
+
+ 添加或更新项目医生项目价格
+
+
+
+
+ 获取医生项目列表
+
+
+
+
+
+ 为项目筛选医生 提交 【select】
+ 项目Id
+ 医生Id数组
+
+
+
+
+ 入组流程-向CRO提交医生[Submit]
+
+
+
+
+ 入组流程-CRO确定医生名单 [ Approve]
+
+
+
+
+ 入组流程-后台确认医生入组[Confirm]
+
+
+
+
+ optType 0表示入组,列表没这条数据了, 1表示出组,需要填写出组时间 废弃
+
+
+
+
+
+
+
+
+
+ 清理一致性分析任务
+
+
+
+
+
+
+
+
+
+ 维护临床数据 --一定要在同步表前同步数据才行
+
+
+
+
+
+ 维护OSS 影像数据
+
+
+
+
+
+ 测试加密API 返回的结果
+
+
+
+
+ https://www.cnblogs.com/NBDWDYS2214143926/p/13329231.html
+
+
+
+
+ RSA解密
+
+ 私钥
+ 待解密的字符串(Base64)
+ 解密后的字符串
+
+
+
+
+ 不生效,不知道为啥
+
+
+
+
+ 主要为了 处理项目结束 锁库,不允许操作
+
+
+
+
+ 跳过阅片
+
+
+
+
+
+
+ 开始阅片时间
+
+
+
+
+
+
+ 开始休息时间
+
+
+
+
+
+
+ 写文件导到磁盘
+
+ 流
+ 文件保存路径
+
+
+
+
+ github 链接:https://github.com/lanceliao/china-holiday-calender?tab=readme-ov-file
+ 接口请求参考文档:https://www.koudingke.cn/docs/zh-Hans/net-lib-docs/latest/RestSharp/Usage/Usage
+
+
+
+
+
+ oosFolderPath 不要 "/ "开头 应该: TempFolder/ChildFolder
+
+
+
+
+
+
+
+
+
+ oosFolderPath 不要 "/ "开头 应该: TempFolder/ChildFolder
+
+
+
+
+
+
+
+
+
+ 删除某个目录的文件
+
+
+
+
+
+
+ 利用DocX 库 处理word国际化模板
+
+
构造函数注入
@@ -12292,7 +14374,7 @@
TrialSiteSurveyService
-
+
TrialSiteSurveyService
@@ -12366,7 +14448,7 @@
-
+
驳回 New
@@ -13966,2088 +16048,6 @@
维护 IsFrontTaskNeedSignButNotSign 字段 另外附加评估结果
-
-
- 统一返回前端数据包装,之前在控制器包装,现在修改为动态Api 在ResultFilter这里包装,减少重复冗余代码
- by zhouhang 2021.09.12 周末
-
-
-
-
- 异步版本
-
-
-
-
-
-
-
- 数据字典-基础数据维护
-
-
-
-
- 数据字典-基础数据维护
-
-
-
-
- 添加bool
-
-
-
-
-
-
- 获取所有字典的Key
-
-
-
-
-
- 添加字典 的同时 一起添加子项 --New
-
-
-
-
-
-
- New 查询条件
-
-
-
-
-
-
- 添加和编辑
-
-
-
-
-
-
- 获取子项数组
-
-
-
-
-
- 删除字典数据
-
-
-
- 传递父亲 code 字符串 数组 返回多个下拉框数据
-
-
-
-
-
-
- 根据父亲Code 获取单个下拉框数据
-
-
-
-
-
-
- 根据父亲字典分组 获取子项
-
-
-
-
-
-
- 获取标准字典
-
-
-
-
-
- 获取标准字典
-
-
-
-
-
- 获取标准指定字典
-
-
-
-
-
-
- 获取所有下拉框 枚举 bool 数据
-
-
-
-
-
- 获取是和否
-
-
-
-
-
-
- 获取审核状态
-
-
-
-
-
-
-
-
- 打包医生官方简历
-
-
-
-
-
-
-
- 打包医生的所有附件
-
-
-
-
-
-
- Reviewer简历录入 发送验证码
-
-
-
-
-
-
-
- 医生文档关联关系维护
-
-
-
-
- 医生文档关联关系维护
-
-
-
-
- 删除附件
-
-
-
-
-
-
- 根据医生Id 和 附件类型,获取记录
-
- 医生Id
- 附件类型
-
-
-
-
- 获取单个医生的多种证书附件
-
- 医生Id
- 类型数组
-
-
-
-
- 根据医生Id获取医生附件
-
- 医生Id
-
-
-
-
- 保存多个附件
-
-
-
-
-
-
- 将简历设置为官方简历
-
-
-
-
-
-
-
-
- 设置简历的语言类型
-
-
-
- 0-未设置,1-中文,2-英文
-
-
-
-
- Reviewer列表分页查询
-
-
-
-
- 获取可筛选筛选及已经筛选的医生列表
-
-
-
-
- 获取提交CRO或者CRO审核的Reviewer列表
-
-
- 根据状态获取医生列表,入组 相关接口 (提交CRO-1) CRO确认-4
-
-
-
-
- 获取项目下医生入组状态列表[Confirmation]
-
-
-
-
- 添加/更新 医生基本信息 BasicInfo
-
-
-
-
- 详情、编辑-获取 医生基本信息 BasicInfo
-
- ReviewerID
-
-
-
-
- 详情、编辑-获取医生工作信息 Employment
-
-
-
-
- 添加修改医生标准文件
-
-
-
-
-
-
- 删除医生标准文件
-
-
-
-
-
-
- 获取医生标准文件
-
-
-
-
-
-
- 获取医生入组信息 正在提交的数量 已同意入组项目个数 正在读的
-
-
-
-
- Get Statement of Work list.[New]
-
-
-
-
- Get Ack Statement of Work[New]
-
-
-
-
- 根据医生Id获取医生教育经历和继续学习经历列表
-
-
-
-
- 新增医生教育经历
-
-
-
-
-
- 添加/更新医生继续学习经历
-
-
-
- 删除医生继续学习经历
-
- 医生Id
-
-
-
-
- 查询-医生科学研究信息
-
- 医生Id
-
-
-
-
- 根据医生Id,获取临床试验经历 界面所有数据
-
-
-
- 添加或更新医生临床经验列表项
-
-
-
- 删除临床经验
-
-
-
-
- 更新-GCP和其他临床经验
-
-
-
-
-
-
- 更新其他技能经验
-
-
-
-
- 添加休假时间段
-
- Status不传
-
-
-
-
- 删除休假时间段
-
- 记录Id
-
-
-
-
- 获取休假时间段列表
-
-
-
-
-
- 获取某个月下的某些医生最终确认的工作量,用于计算月度费用
-
-
-
-
- 计算月度费用,并调用AddOrUpdateMonthlyPayment和AddOrUpdateMonthlyPaymentDetail方法,
- 将费用计算的月度数据及详情保存
-
-
-
-
- 保存费用计算的月度数据
-
-
-
-
- 保存费用计算的月度详情
-
-
-
-
- 获取待计算费用的Reviewer对应的月份列表
-
-
-
-
- 查询Reviewer某个月的费用是否被锁定
-
-
-
-
- 根据记录Id,删除汇率记录
-
- 汇率记录Id
-
-
-
- Financials /MonthlyPayment 列表查询接口
-
-
-
-
- Financials /MonthlyPaymentDetail 详情查询接口
-
-
-
-
- NEW 导出Excel压缩包 数据获取
-
-
-
-
- Financials / Payment History 列表查询接口(已经支付锁定的数据,包含调整的)[New]
-
-
-
-
- Financials / Payment History 详情接口[New]
-
-
-
-
- Revenues列表接口,收入统计[New] 0是Detail 1是按照项目 2是按照人 3按照月份
-
-
-
-
- 收入支出分析接口,按照项目维度分析统计
-
-
-
-
- 收入支出分析接口,按照医生维度分析统计
-
-
-
-
- 获取劳务费用列表
-
-
-
-
- 锁定医生费用,锁定后,无法变更该医生对应月份的费用和工作量[New]
-
-
-
-
- 添加或更新费用调整[AUTH]
-
-
-
-
- 删除费用调整记录
-
-
-
-
- 获取费用调整列表
-
-
-
-
- 获取职称单价列表
-
-
-
-
- 获取医生支付信息列表
-
-
-
-
- 根据医生Id获取支付信息
-
- 医生Id
-
-
-
-
- 根据rankId 获取ReviewerId,用于当Rank的单价信息改变时,触发费用计算
-
-
-
-
-
-
- 添加或更新项目支付价格信息
-
-
-
-
- 获取项目支付价格信息列表
-
-
-
-
- 获取项目收入费用信息列表[New]
-
-
-
-
- 批量添加或更新奖励费用单价
-
-
-
-
- 获取所有奖励单价列表-用于计算时,一次性获取所有
-
-
-
-
- 分页获取奖励单价列表
-
-
-
- 分页获取CRO列表
-
-
- 根据CRO 名称查询所有CRO 列表
-
-
- 添加CRO信息
-
-
- 删除CRO信息
-
-
- 获取所有医院列表
-
-
- 添加医院
-
-
- 删除医院信息
-
-
- 分页获取医院列表
-
-
- 分页获取研究中心列表
-
-
- 添加研究中心
-
-
- 删除研究中心
-
-
- 分页获取申办方列表
-
-
- 分页获取申办方列表
-
-
- 添加申办方
-
-
- 删除申办方
-
-
-
- 添加菜单 New
-
-
-
-
-
-
- 删除菜单 已验证 父节点不允许删除 New
-
-
-
-
-
-
- 所有的菜单树 包括禁用的 New
-
-
-
-
-
- 菜单列表 参数都是可传的 根据需要传递 New
-
-
-
-
-
-
- 获取某用户类型(角色) 菜单树 勾选情况 New
-
-
-
-
-
- 发送验证码 修改邮箱(已经登陆修改) New
-
-
-
- 重置密码为 默认密码
-
-
-
-
-
-
- 重置密码发邮件 (未登陆修改)
-
-
-
-
-
-
- 验证验证码,没问题就返回用户所有的账户
-
-
-
-
-
-
-
-
- (未登陆) 设置新密码
-
-
-
-
-
-
-
- 修改密码,当前支持旧密码修改密码
-
-
-
-
-
- 获取用户列表
-
-
-
-
-
-
- 根据用户Id获取用户详细信息[New]
-
-
- xiuga
-
-
-
- 添加用户
-
-
-
-
-
-
- 更新用户
-
-
-
-
-
-
- 删除用户
-
-
-
-
-
-
- 禁用或者启用账户
-
-
-
-
-
-
-
- 发送MFA 验证邮件
-
-
-
-
-
-
-
- 验证MFA 邮件
-
-
-
-
-
-
-
-
- 用户登陆
-
-
-
-
-
-
-
- 临床数据配置
-
-
-
-
- 临床数据配置
-
-
-
-
- 应用系统临床数据
-
-
-
-
-
-
-
- 应用项目临床数据
-
-
-
-
-
-
-
- 新增或者修改(系统)
-
-
-
-
-
-
- 获取系统临床数据(系统)
-
-
-
-
-
- 删除(系统)
-
-
-
-
-
-
- 新增或者修改(项目)
-
-
-
-
-
-
- 获取项目的临床数据
-
-
-
-
-
-
- 删除(项目)
-
-
-
-
-
-
- 将系统配置添加到项目配置
-
-
-
-
-
-
- 阅片临床数据
-
-
-
-
- 阅片临床数据
-
-
-
-
- 新增或者修改
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
- 获取检查类型临床数据
-
-
-
-
-
-
- 获取CRC上传的文件
-
-
-
-
-
-
- 添加CRC数据类型
-
-
-
-
-
- 影像阅片临床数据签名
-
-
-
-
- 获取下拉菜单
-
-
-
-
-
-
- 获取访视 阅片或任务临床数据
-
-
-
-
-
-
- 获取阅片临床数据列表
-
-
-
-
-
-
- 获取阅片临床数据列表 (在任务列表)
-
-
-
-
-
-
- 新增或修改一致性分析临床数据
-
-
-
-
-
-
- 一致性分析临床数据签名
-
-
-
-
-
-
- 一致性分析临床数据签名完设置任务为有效
-
-
-
-
-
-
- 获取单个阅片临床数据的所有文件
-
-
-
-
-
-
- 删除PDF单个文件
-
-
-
-
-
-
- 阅片问题.标准
-
-
-
-
- 阅片问题.标准
-
-
-
-
- 获取自定义表格问题预览
-
-
-
-
-
- 获取问题
-
-
-
-
-
-
- 获取表格问题
-
-
-
-
-
-
- 获取系统问题分组
-
-
-
-
-
-
- 获取系统问题
-
-
-
-
-
- 获取系统标准的其他问题
-
-
-
-
-
-
- 新增修改系统问题
-
-
-
-
-
-
- 删除系统问题
-
-
-
-
-
-
- 获取系统的表格问题
-
-
-
-
-
-
- 获取系统表格其他问题
-
-
-
-
-
-
- 新增修改系统表格问题
-
-
-
-
-
- 删除系统表格问题
-
-
-
-
-
-
- 新增修改项目问题(项目)
-
-
-
-
-
-
- 获取项目问题(项目)
-
-
-
-
-
- 验证计算关系
-
-
-
-
-
-
-
-
-
- 获取问题计算关系
-
-
-
-
-
-
- 获取项目标准的其他问题(项目)
-
-
-
-
-
-
- 删除项目问题(项目)
-
-
-
-
-
-
- 获取项目问题分组
-
-
-
-
-
-
- 获取项目的表格问题
-
-
-
-
-
-
- 获取项目表格其他问题
-
-
-
-
-
-
- 新增修改想想项目表格问题
-
-
-
-
-
-
- 删除项目表格问题
-
-
-
-
-
-
- 复制一个系统标准到另一系统标准
-
-
-
-
-
-
-
- 同步系统标准
-
-
-
-
-
-
- 同步标准到项目新(2022-08-10)
-
-
-
-
-
-
- 验证是否要同步标准
-
-
-
-
-
-
- 添加系统数据到项目里面
-
-
-
-
-
- 全局阅片
-
-
- IR影像阅片
-
-
- 裁判
-
-
- 非Dicom
-
-
- 肿瘤学
-
-
- 问题
-
-
-
-
- 提交全局阅片结果
-
-
-
-
-
-
- 批量提交全局阅片信息
-
-
-
-
-
-
- 保存全局阅片结果
-
-
-
-
-
-
- 获取全局阅片信息
-
-
-
-
-
-
- IR影像阅片
-
-
-
-
- 获取阅片的计算数据
-
-
-
-
-
-
- 获取既往病灶的OtherPicture
-
-
-
-
-
-
- 提交自定义标记
-
-
-
-
-
-
- 删除自定义标记
-
-
-
-
-
-
- 获取自定义标记
-
-
-
-
-
-
- 获取手册
-
-
-
-
-
-
- 获取任务附加问题
-
-
-
-
-
-
- 提交附加问题
-
-
-
-
-
-
- 维护任务关系
-
-
-
-
-
- 修改计算问题
-
-
-
-
-
-
- 阅读临床数据
-
-
-
-
-
-
- 添加默认值到任务里面
-
-
-
-
-
- 根据任务ID获取ReadingTool
-
-
-
-
-
-
- 获取关联的阅片任务
-
-
-
-
-
-
- 获取既往任务名称和编号
-
-
-
-
-
- 获取阅片的受试者信息
-
-
-
-
-
-
- 验证是否为基线访视任务
-
-
-
-
-
-
-
- 验证任务是否签名
-
-
-
-
-
-
-
- 获取DIcom阅片问题答案
-
-
-
-
-
-
- 获取阅片外层问题
-
-
-
-
-
-
-
-
-
- 获取阅片报告
-
-
-
-
-
-
- 获取表格答案行信息
-
-
-
- (QuestionId) 可为空
-
-
-
-
-
- 获取表格问题及答案(2022-08-26)
-
-
-
-
-
-
- 获取自定义问题以及答案
-
-
-
-
-
-
- 获取表格问题及答案 只返回表格问题(任务和标准)
-
-
-
-
-
-
- 获取子元素
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 拆分病灶 分裂病灶
-
-
-
-
-
- 合并病灶 融合
-
-
-
-
-
- 获取可合并的病灶
-
-
-
-
-
-
- 保存影像质量
-
-
-
-
-
-
- 保存任务问题 带动态稽查参数
-
-
- 请求类型
-
-
-
-
- 修改肿瘤学评估结果
-
-
-
-
-
-
- 删除表格行数据
-
-
-
-
-
-
- 提交表格问题答案 提交病灶 保存病灶
-
-
-
-
-
-
- 提交Dicom阅片信息
-
-
-
-
-
-
- 验证默认问题是否回答
-
-
-
-
-
-
-
- 验证访视提交
-
-
-
-
-
-
- 清除跳过阅片的缓存
-
-
-
-
-
- 设置跳过阅片的缓存
-
-
-
-
-
-
- 获取下一个阅片任务
-
-
-
-
-
-
- 重置阅片任务
-
-
-
-
-
-
- 验证阅片休息时间
-
-
-
-
-
- 重置阅片时间 登录和解锁调用
-
-
-
-
-
- 签名提交任务修改状态
-
-
-
-
-
-
- 签名时创建任务关联
-
-
-
-
-
- 阅片期 -全局和肿瘤学任务的生成
-
-
-
-
-
- 获取项目标准的裁判问题
-
-
-
-
-
-
- 设置裁判问题的答案分组
-
-
-
-
-
-
- 获取裁判阅片任务信息
-
-
-
-
-
- 保存裁判问题
-
-
-
-
-
-
- 提交裁判问题
-
-
-
-
-
-
- 判断任务是否是全局访视任务
-
-
-
-
-
- 触发裁判任务(新)
-
-
-
-
-
-
- 计算返回的结果 为True表示不相等
-
-
-
-
-
-
- 添加裁判任务
-
-
-
-
-
- 提交访视阅片问题
-
-
-
-
-
-
- 保存任务问题
-
-
-
-
-
-
- 获取阅片非Dicom文件
-
-
-
-
-
-
- 获取肿瘤学任务信息
-
-
-
-
-
-
-
- 修改肿瘤学阅片信息
-
-
-
-
-
-
- 添加肿瘤学阅片任务 其实这里无非是要判断临床数据是否签名 但是对于添加新的阅片期 其实没有临床数据 可以走之前的逻辑
-
-
-
-
-
- 提交肿瘤阅片结果
-
-
-
-
-
-
- 获取项目已确认的标准
-
-
-
-
-
-
- 获取项目的阅片问题ECRF预览
-
-
- SinglePage 单页
-
- MultiPage 多页
-
- PublicPage 公共
-
-
-
-
-
-
- 项目配置的阅片问题(不包含表格问题) 以及配置的分页 和任务对应的答案 一维表 -- 非dicom 阅片
-
-
-
-
-
-
-
- 找子问题
-
-
-
-
-
-
-
- 获取系统的阅片问题
-
-
-
-
-
-
- 获取系统
-
-
-
-
-
-
-
- 阅片期配置
-
-
-
-
- 阅片期配置
-
-
-
-
- 新增或者修改 (增加标准搜索,已修改)
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
- 设置阅片期配置是否生效 (增加标准搜索,已修改)
-
-
-
-
-
-
- 获取选中的计划 (增加标准不影响 因为阅片期设置关联了标准)
-
-
-
-
-
-
- 添加对应的阅片计划 (后续生效将计划变为模块) (增加标准不影响 因为阅片期设置关联了标准)
-
-
-
-
-
-
- 分页获取 (增加标准搜索,已修改)
-
-
-
-
-
-
- 获取单条
-
-
-
-
-
-
- 获取阅片期配置的截至访视的下拉框 (增加标准搜索,已修改)
-
-
-
-
-
-
- 获取影像阅片的预览 // 需要清除之前已经选中的 (增加标准搜索,已修改)
-
-
-
-
-
- 生成的阅片模块(在大列表上展示的) 阅片期
-
-
-
-
- 生成的阅片模块(在大列表上展示的) 阅片期
-
-
-
-
- 获取修改截止访视下拉
-
-
-
-
-
-
- 修改全局阅片截止访视
-
-
-
-
-
-
- 用ef 实现之前视图的功能
-
-
-
-
-
-
- 获取单条详情信息
-
-
-
-
-
-
- 添加阅片的时候 获取访视 //标准参数必传
-
-
-
-
-
-
- 添加阅片期
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
- Dashboard统计、全局工作量统计、入组两个维度统计(按照项目、按照人)
-
-
-
-
- Dashboard统计、全局工作量统计、入组两个维度统计(按照项目、按照人)
-
-
-
- 根据项目和医生,分页获取工作量统计[New]
-
-
- 项目入组 医生维度统计[New]
-
-
- 用户参与项目 统计[New]
-
-
- 用户参与项目 列表[New]
-
-
- 读片数分类统计[New]
-
-
- 获取最近几个月份的数据[New]
-
-
- 读片数量排行前几的数据[New]
-
-
- 按Rank统计Reviewer 数量[New]
-
-
- 最近几个季度入组人次[New] type==0 按照月份
-
-
- 参与项目数排行 [New]
-
-
- 最新工作量 (已确定的)[New]
-
-
-
- Setting页面 获取项目参与人员列表
-
-
-
-
-
- Setting页面 为 site 勾选CRC用户列表
-
-
- Setting页面 项目参与人员勾选列表
-
-
-
- Setting页面 批量添加项目参与人员
-
-
-
-
-
- 项目参与人员退出 其中IQC退出 回去释放工作量
-
-
-
- 分页获取临床项目列表 默认后台加急状态为3 查所有的
-
-
-
-
-
-
- 获取项目基本信息
-
-
-
-
-
-
- 添加项目
-
-
-
-
-
- 真删除项目 方便清理测试数据
- 临床试验项目Id
-
-
-
- 根据项目Id 获取医生Id,用于触发计算费用
-
-
-
- 分页获取医生参与的临床实验项目列表(查询条件)
-
-
-
-
- 医生确认入组或拒绝入组
-
- 项目Id
- 9-拒绝入组,10-确认入组
-
-
-
-
- scp 影像推送记录表
-
-
-
-
-
-
- 影像检查列表-患者为维度组织
-
-
-
-
-
-
- 影像检查列表-> 获取患者的检查列表
-
-
-
-
-
-
- 影像访视上传 检查列表
-
-
-
-
-
-
- 提交 患者检查和访视的绑定
-
-
-
-
-
-
-
-
-
- 添加或更新受试者信息[New]
-
- state:1-访视中,2-出组。0-全部
-
-
-
- 分页获取受试者列表[New]
- /// state:1-访视中,2-出组。0-全部
-
-
-
- 计划外访视 获取受试者选择下拉框列表
-
-
-
- 暂时不用
- 获取项目访视计划
-
-
- 根据项目Id,获取项目访视计划(不分页)[New]
-
-
-
- 获取访视计划下拉框列表
-
-
-
-
-
- 添加或更新访视计划某项
-
-
- 删除项目计划某一项 废弃
-
-
-
- 修改项目医生的阅片类型
-
-
-
-
-
-
- 修改项目医生启用禁用状态
-
-
-
-
-
-
- 0代表裁判和Tp 都可以 1、代表Tp 2 代表裁判
-
-
-
-
-
- 获取某个项目入组的医生工作量统计列表
-
-
-
-
- 获取入组某个项目的医生的最近几个月的工作量详情(带有填充数据)
-
-
-
-
- 获取来自Reviewer自己的数据,某个月添加的多条
-
-
-
-
- 工作量是否存在,用于判断只能添加一条的工作量记录
-
-
- 查询某个医生是否在某天有某个项目的工作量数据,处理添加来自医生自己的工作量数据
-
-
-
-
- 添加或更新工作量
-
-
-
-
- 删除工作量
-
-
-
-
- 获取工作量详情(用于判断工作量锁定时,调用)
-
-
-
-
- 添加或更新项目医生项目价格
-
-
-
-
- 获取医生项目列表
-
-
-
-
-
- 为项目筛选医生 提交 【select】
- 项目Id
- 医生Id数组
-
-
-
-
- 入组流程-向CRO提交医生[Submit]
-
-
-
-
- 入组流程-CRO确定医生名单 [ Approve]
-
-
-
-
- 入组流程-后台确认医生入组[Confirm]
-
-
-
-
- optType 0表示入组,列表没这条数据了, 1表示出组,需要填写出组时间 废弃
-
-
-
-
-
-
-
-
-
- 清理一致性分析任务
-
-
-
-
-
-
-
-
-
- 维护临床数据 --一定要在同步表前同步数据才行
-
-
-
-
-
- 维护OSS 影像数据
-
-
-
Reviewer 列表查询参数
diff --git a/IRaCIS.Core.Application/MassTransit/Command/ConsistenCheckCommand.cs b/IRaCIS.Core.Application/MassTransit/Command/ConsistenCheckCommand.cs
index 6b24a12c2..a0b10e57f 100644
--- a/IRaCIS.Core.Application/MassTransit/Command/ConsistenCheckCommand.cs
+++ b/IRaCIS.Core.Application/MassTransit/Command/ConsistenCheckCommand.cs
@@ -1,10 +1,5 @@
using MiniExcelLibs.Attributes;
-using System;
-using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace IRaCIS.Core.Application.MassTransit.Command
{
diff --git a/IRaCIS.Core.Application/MassTransit/Consumer/ConsistencyCheckConsumer.cs b/IRaCIS.Core.Application/MassTransit/Consumer/ConsistencyCheckConsumer.cs
index 5cf6ff049..30e8faaab 100644
--- a/IRaCIS.Core.Application/MassTransit/Consumer/ConsistencyCheckConsumer.cs
+++ b/IRaCIS.Core.Application/MassTransit/Consumer/ConsistencyCheckConsumer.cs
@@ -5,12 +5,7 @@ using IRaCIS.Core.Domain.Share;
using MassTransit;
using Microsoft.Extensions.Localization;
using Newtonsoft.Json;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Linq.Expressions;
using System.Text;
-using System.Threading.Tasks;
namespace IRaCIS.Core.Application.MassTransit.Consumer
{
@@ -286,7 +281,7 @@ namespace IRaCIS.Core.Application.MassTransit.Consumer
//await context.RespondAsync(new
//{
-
+
//});
}
diff --git a/IRaCIS.Core.Application/Service/Allocation/DTO/TaskAllocationRuleViewModel.cs b/IRaCIS.Core.Application/Service/Allocation/DTO/TaskAllocationRuleViewModel.cs
index 083015b8a..4c02520a6 100644
--- a/IRaCIS.Core.Application/Service/Allocation/DTO/TaskAllocationRuleViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/DTO/TaskAllocationRuleViewModel.cs
@@ -3,12 +3,10 @@
// 生成时间 2022-06-07 13:16:33
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
-using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations;
using IRaCIS.Application.Contracts;
+using IRaCIS.Core.Domain.Share;
using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
namespace IRaCIS.Core.Application.ViewModel
{
@@ -112,18 +110,19 @@ namespace IRaCIS.Core.Application.ViewModel
public List CriterionCategoryList =>
TrialReadingCriterionList.Select(t =>
- new CriterionReadingCategory() {
- EnrollId = EnrollId,
- TrialReadingCriterionId = t.TrialReadingCriterionId,
+ new CriterionReadingCategory()
+ {
+ EnrollId = EnrollId,
+ TrialReadingCriterionId = t.TrialReadingCriterionId,
ReadingCategorys = CriterionReadingCategoryList.Where(c => c.TrialReadingCriterionId == t.TrialReadingCriterionId).Select(t => t.ReadingCategory).OrderBy(c => c).ToList()
}).ToList();
- //CriterionReadingCategoryList.Count == 0 ? TrialReadingCriterionList.Select(t => new CriterionReadingCategory() { EnrollId = EnrollId, TrialReadingCriterionId = t.TrialReadingCriterionId }).ToList() :
- // CriterionReadingCategoryList
- //.GroupBy(t => new { t.TrialReadingCriterionId, t.EnrollId })
- //.Select(g => new CriterionReadingCategory() { EnrollId = g.Key.EnrollId, TrialReadingCriterionId = g.Key.TrialReadingCriterionId, ReadingCategorys = g.Select(t => t.ReadingCategory).OrderBy(t=>t).ToList() }).ToList();
+ //CriterionReadingCategoryList.Count == 0 ? TrialReadingCriterionList.Select(t => new CriterionReadingCategory() { EnrollId = EnrollId, TrialReadingCriterionId = t.TrialReadingCriterionId }).ToList() :
+ // CriterionReadingCategoryList
+ //.GroupBy(t => new { t.TrialReadingCriterionId, t.EnrollId })
+ //.Select(g => new CriterionReadingCategory() { EnrollId = g.Key.EnrollId, TrialReadingCriterionId = g.Key.TrialReadingCriterionId, ReadingCategorys = g.Select(t => t.ReadingCategory).OrderBy(t=>t).ToList() }).ToList();
}
@@ -212,7 +211,7 @@ namespace IRaCIS.Core.Application.ViewModel
public class GenerateTaskCommand
{
public Guid TrialId { get; set; }
-
+
//针对访视产生任务的 有用
public bool IsAssignSubjectToDoctor { get; set; }
diff --git a/IRaCIS.Core.Application/Service/Allocation/DTO/TaskConsistentRuleViewModel.cs b/IRaCIS.Core.Application/Service/Allocation/DTO/TaskConsistentRuleViewModel.cs
index 9f73b9a4a..4c7b768ae 100644
--- a/IRaCIS.Core.Application/Service/Allocation/DTO/TaskConsistentRuleViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/DTO/TaskConsistentRuleViewModel.cs
@@ -3,9 +3,7 @@
// 生成时间 2022-07-01 15:33:01
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
@@ -81,7 +79,7 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid DoctorUserId { get; set; }
}
- public class ConsistentConfirmGenerateCommand: SelfConsistentSimpleQuery
+ public class ConsistentConfirmGenerateCommand : SelfConsistentSimpleQuery
{
@@ -104,10 +102,10 @@ namespace IRaCIS.Core.Application.ViewModel
public bool IsAutoAllocateGenerateTask { get; set; }
}
- public class DoctorSelfConsistentSubjectView: ConsistentCommonView
+ public class DoctorSelfConsistentSubjectView : ConsistentCommonView
{
public string FirstGlobalVisitName { get; set; } = string.Empty;
- public string? BlindSubjectCode { get; set; }
+ public string? BlindSubjectCode { get; set; }
public List VisitTaskList { get; set; }
@@ -130,14 +128,14 @@ namespace IRaCIS.Core.Application.ViewModel
public int? ValidVisitCount { get; set; }
}
- public class DoctorGroupConsistentSubjectView: ConsistentCommonView
+ public class DoctorGroupConsistentSubjectView : ConsistentCommonView
{
- public List SubjectTaskVisitList => VisitTaskList.GroupBy(t => new { t.SubjectId, t.VisitTaskNum }).Where(g => g.Count() == 2).Select(g => g.First()).OrderBy(t=>t.VisitTaskNum).ToList();
+ public List SubjectTaskVisitList => VisitTaskList.GroupBy(t => new { t.SubjectId, t.VisitTaskNum }).Where(g => g.Count() == 2).Select(g => g.First()).OrderBy(t => t.VisitTaskNum).ToList();
public List VisitTaskList { get; set; } = new List();
- public List DoctorUserList { get; set; }=new List();
+ public List DoctorUserList { get; set; } = new List();
}
public class VisitTaskGroupSimpleDTO
@@ -175,10 +173,10 @@ namespace IRaCIS.Core.Application.ViewModel
public bool IsClinicalDataSign { get; set; }
}
- public class VisitTaskSimpleDTO :VisitTaskGroupSimpleDTO
+ public class VisitTaskSimpleDTO : VisitTaskGroupSimpleDTO
{
public Guid? Id { get; set; }
-
+
public string TaskCode { get; set; }
@@ -289,7 +287,7 @@ namespace IRaCIS.Core.Application.ViewModel
public class GetConsistentRuleOut
{
- public TaskConsistentRuleBasic? ConsistentRuleBasic { get; set; }
+ public TaskConsistentRuleBasic? ConsistentRuleBasic { get; set; }
///
/// 任务展示访视 读片任务显示是否顺序
///
@@ -316,7 +314,7 @@ namespace IRaCIS.Core.Application.ViewModel
public string VirtualSiteCode { get; set; }
}
- public class UpdateTrialSiteCodeCommandView: UpdateTrialSiteCodeCommand
+ public class UpdateTrialSiteCodeCommandView : UpdateTrialSiteCodeCommand
{
public DateTime Creatime { get; set; }
}
diff --git a/IRaCIS.Core.Application/Service/Allocation/DTO/TaskMedicalReviewRuleViewModel.cs b/IRaCIS.Core.Application/Service/Allocation/DTO/TaskMedicalReviewRuleViewModel.cs
index ed3a95de7..3824f7ae2 100644
--- a/IRaCIS.Core.Application/Service/Allocation/DTO/TaskMedicalReviewRuleViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/DTO/TaskMedicalReviewRuleViewModel.cs
@@ -3,11 +3,8 @@
// 生成时间 2022-06-29 13:36:46
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
-using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
namespace IRaCIS.Core.Application.ViewModel
{
@@ -33,7 +30,7 @@ namespace IRaCIS.Core.Application.ViewModel
public List ActualTumorTaskList { get; set; }
-
+
[JsonIgnore]
public List GeneratedVisitTaskList { get; set; }
diff --git a/IRaCIS.Core.Application/Service/Allocation/DTO/TaskMedicalReviewViewModel.cs b/IRaCIS.Core.Application/Service/Allocation/DTO/TaskMedicalReviewViewModel.cs
index 223664dc6..5a0f5ae97 100644
--- a/IRaCIS.Core.Application/Service/Allocation/DTO/TaskMedicalReviewViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/DTO/TaskMedicalReviewViewModel.cs
@@ -3,9 +3,7 @@
// 生成时间 2022-06-29 10:59:50
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace IRaCIS.Core.Application.ViewModel
@@ -69,7 +67,7 @@ namespace IRaCIS.Core.Application.ViewModel
{
if (!ReadingDurationTimeSpan.HasValue)
return "";
- else return string.Format("{0}h:{1}m:{2}s", (SignTime - FirstReadingTime)?.Hours, (SignTime - FirstReadingTime)?.Minutes, (SignTime - FirstReadingTime)?.Seconds)
+ else return string.Format("{0}h:{1}m:{2}s", (SignTime - FirstReadingTime)?.Hours, (SignTime - FirstReadingTime)?.Minutes, (SignTime - FirstReadingTime)?.Seconds)
/*string.Format("{0}分钟", (ReadingDurationTimeSpan)?.TotalMinutes)*/;
}
}
@@ -102,18 +100,18 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid? SubjectId { get; set; }
- public Guid? MedicalManagerUserId { get; set; }
+ public Guid? MedicalManagerUserId { get; set; }
- public DateTime? BeginSignTime { get; set; }
- public AuditAdvice? AuditAdviceEnum { get; set; }
+ public DateTime? BeginSignTime { get; set; }
+ public AuditAdvice? AuditAdviceEnum { get; set; }
- public DateTime? EndSignTime { get; set; }
+ public DateTime? EndSignTime { get; set; }
- public bool IsGetBeRead { get; set; } = false;
+ public bool IsGetBeRead { get; set; } = false;
- public bool IsGetNextMedicalReviewTask { get; set; } = false;
+ public bool IsGetNextMedicalReviewTask { get; set; } = false;
- public string SubjectCode { get; set; } = String.Empty;
+ public string SubjectCode { get; set; } = String.Empty;
public string TrialSiteCode { get; set; } = String.Empty;
public string TaskName { get; set; } = String.Empty;
@@ -133,7 +131,7 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid? TrialReadingCriterionId { get; set; }
- public MedicalReviewDoctorUserIdea? DoctorUserIdeaEnum { get; set; }
+ public MedicalReviewDoctorUserIdea? DoctorUserIdeaEnum { get; set; }
public Arm? ArmEnum { get; set; }
diff --git a/IRaCIS.Core.Application/Service/Allocation/DTO/VisitTaskViewModel.cs b/IRaCIS.Core.Application/Service/Allocation/DTO/VisitTaskViewModel.cs
index 9f5dbfc37..78604427f 100644
--- a/IRaCIS.Core.Application/Service/Allocation/DTO/VisitTaskViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/DTO/VisitTaskViewModel.cs
@@ -3,11 +3,9 @@
// 生成时间 2022-06-07 14:10:54
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
namespace IRaCIS.Core.Application.ViewModel
{
@@ -86,9 +84,9 @@ namespace IRaCIS.Core.Application.ViewModel
public bool IsClinicalDataSign { get; set; }
- public CompleteClinicalDataEnum CompleteClinicalDataEnum =>
+ public CompleteClinicalDataEnum CompleteClinicalDataEnum =>
(IsNeedClinicalDataSign && IsClinicalDataSign) ? CompleteClinicalDataEnum.Complete : (IsNeedClinicalDataSign && IsClinicalDataSign == false) ? CompleteClinicalDataEnum.NotComplete : CompleteClinicalDataEnum.NA;
-
+
///
@@ -99,7 +97,7 @@ namespace IRaCIS.Core.Application.ViewModel
///
/// 任务展示访视 读片任务显示是否顺序
///
- public ReadingOrder IsReadingTaskViewInOrder { get; set; }
+ public ReadingOrder IsReadingTaskViewInOrder { get; set; }
///
@@ -163,7 +161,7 @@ namespace IRaCIS.Core.Application.ViewModel
public bool IsCanEditUrgentState { get; set; }
- public DateTime? FirstReadingTime { get;set; }
+ public DateTime? FirstReadingTime { get; set; }
public string ReadingDuration
{
@@ -224,7 +222,7 @@ namespace IRaCIS.Core.Application.ViewModel
public int ConsistentClinicalDataCount { get; set; } = 0;
- public bool IsReReadingOrBackInfluenceAnalysis { get; set; }
+ public bool IsReReadingOrBackInfluenceAnalysis { get; set; }
}
@@ -318,7 +316,7 @@ namespace IRaCIS.Core.Application.ViewModel
if (this.SuggesteFinishedTime != null)
{
var date = DateTime.Now;
- var timeSpan = SuggesteFinishedTime.Value- date;
+ var timeSpan = SuggesteFinishedTime.Value - date;
if (timeSpan.TotalDays <= 2)
{
return 1;
@@ -339,12 +337,12 @@ namespace IRaCIS.Core.Application.ViewModel
}
}
- public int UrgentCount { get; set; }
+ public int UrgentCount { get; set; }
- public List UnReadCanReadTaskList { get; set; } = new List();
+ public List UnReadCanReadTaskList { get; set; } = new List();
- public List UnReadTaskList { get; set; } = new List();
+ public List UnReadTaskList { get; set; } = new List();
}
public class IRUnreadTaskView
@@ -391,13 +389,13 @@ namespace IRaCIS.Core.Application.ViewModel
}
- public class GetReadingIQueryableInDto:PageInput
+ public class GetReadingIQueryableInDto : PageInput
{
- public Guid TrialId { get; set; }
+ public Guid TrialId { get; set; }
- public Guid? SubjectId { get; set; }
+ public Guid? SubjectId { get; set; }
- public Guid TrialReadingCriterionId { get; set; }
+ public Guid TrialReadingCriterionId { get; set; }
public string? SubjectCode { get; set; } = null;
@@ -409,7 +407,7 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid TrialId { get; set; }
- public Guid? TrialSiteId { get; set; }
+ public Guid? TrialSiteId { get; set; }
public Guid? SubjectId { get; set; }
@@ -435,7 +433,7 @@ namespace IRaCIS.Core.Application.ViewModel
public DateTime? BeginSignTime { get; set; }
- public DateTime? EndSignTime { get; set; }
+ public DateTime? EndSignTime { get; set; }
public DateTime? BeginRequestReReadingTime { get; set; }
public DateTime? EndRequestReReadingTime { get; set; }
@@ -553,7 +551,7 @@ namespace IRaCIS.Core.Application.ViewModel
public int? SubjectAllocateState { get; set; }
- public List ArmList { get; set; }=new List() { };
+ public List ArmList { get; set; } = new List() { };
[NotDefault]
public Guid TrialReadingCriterionId { get; set; }
diff --git a/IRaCIS.Core.Application/Service/Allocation/Interface/ITaskAllocationRuleService.cs b/IRaCIS.Core.Application/Service/Allocation/Interface/ITaskAllocationRuleService.cs
index 1395a4779..e2ff8c31e 100644
--- a/IRaCIS.Core.Application/Service/Allocation/Interface/ITaskAllocationRuleService.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/Interface/ITaskAllocationRuleService.cs
@@ -6,20 +6,20 @@
using IRaCIS.Core.Application.ViewModel;
namespace IRaCIS.Core.Application.Interfaces
-{
- ///
- /// ITaskAllocationRuleService
- ///
- public interface ITaskAllocationRuleService
+{
+ ///
+ /// ITaskAllocationRuleService
+ ///
+ public interface ITaskAllocationRuleService
{
-
- //Task> GetTaskAllocationRuleList(TaskAllocationRuleQuery queryTaskAllocationRule);
-
- Task AddOrUpdateTaskAllocationRule(TaskAllocationRuleAddOrEdit addOrEditTaskAllocationRule);
- Task DeleteTaskAllocationRule(Guid taskAllocationRuleId);
+ //Task> GetTaskAllocationRuleList(TaskAllocationRuleQuery queryTaskAllocationRule);
+
+ Task AddOrUpdateTaskAllocationRule(TaskAllocationRuleAddOrEdit addOrEditTaskAllocationRule);
+
+ Task DeleteTaskAllocationRule(Guid taskAllocationRuleId);
+
-
}
-}
+}
diff --git a/IRaCIS.Core.Application/Service/Allocation/Interface/ITaskConsistentRuleService.cs b/IRaCIS.Core.Application/Service/Allocation/Interface/ITaskConsistentRuleService.cs
index 8e2cc36fc..46ad1a6b2 100644
--- a/IRaCIS.Core.Application/Service/Allocation/Interface/ITaskConsistentRuleService.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/Interface/ITaskConsistentRuleService.cs
@@ -6,20 +6,20 @@
using IRaCIS.Core.Application.ViewModel;
namespace IRaCIS.Core.Application.Interfaces
-{
- ///
- /// ITaskConsistentRuleService
- ///
- public interface ITaskConsistentRuleService
+{
+ ///
+ /// ITaskConsistentRuleService
+ ///
+ public interface ITaskConsistentRuleService
{
-
- //Task> GetTaskConsistentRuleList(TaskConsistentRuleQuery inQuery);
-
- Task AddOrUpdateTaskConsistentRule(TaskConsistentRuleAddOrEdit addOrEditTaskConsistentRule);
- Task DeleteTaskConsistentRule(Guid taskConsistentRuleId);
+ //Task> GetTaskConsistentRuleList(TaskConsistentRuleQuery inQuery);
+
+ Task AddOrUpdateTaskConsistentRule(TaskConsistentRuleAddOrEdit addOrEditTaskConsistentRule);
+
+ Task DeleteTaskConsistentRule(Guid taskConsistentRuleId);
+
-
}
-}
+}
diff --git a/IRaCIS.Core.Application/Service/Allocation/Interface/IVisitTaskHelpeService.cs b/IRaCIS.Core.Application/Service/Allocation/Interface/IVisitTaskHelpeService.cs
index f8380bb8f..ce7de3877 100644
--- a/IRaCIS.Core.Application/Service/Allocation/Interface/IVisitTaskHelpeService.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/Interface/IVisitTaskHelpeService.cs
@@ -18,6 +18,6 @@ namespace IRaCIS.Core.Application.Service
Task AddConvertedTask(Guid taskId);
- Task BaseCritrionGenerateVisitTask(Guid trialId, Guid confirmedTrialReadingCriterionId,bool? isManualSelectVisit=null,List? subjectVisitIdList=null);
+ Task BaseCritrionGenerateVisitTask(Guid trialId, Guid confirmedTrialReadingCriterionId, bool? isManualSelectVisit = null, List? subjectVisitIdList = null);
}
}
\ No newline at end of file
diff --git a/IRaCIS.Core.Application/Service/Allocation/TaskAllocationRuleService.cs b/IRaCIS.Core.Application/Service/Allocation/TaskAllocationRuleService.cs
index 226e8ac94..098d56b99 100644
--- a/IRaCIS.Core.Application/Service/Allocation/TaskAllocationRuleService.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/TaskAllocationRuleService.cs
@@ -4,13 +4,12 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using Microsoft.AspNetCore.Mvc;
+using IRaCIS.Core.Application.Contracts;
+using IRaCIS.Core.Application.Filter;
using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.ViewModel;
-using IRaCIS.Core.Application.Contracts;
using IRaCIS.Core.Domain.Share;
-using IRaCIS.Core.Application.Filter;
+using Microsoft.AspNetCore.Mvc;
namespace IRaCIS.Core.Application.Service
{
diff --git a/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs b/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs
index 23fdf23b1..d0d45ccea 100644
--- a/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs
@@ -4,23 +4,16 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using Microsoft.AspNetCore.Mvc;
-using IRaCIS.Core.Application.Interfaces;
-using IRaCIS.Core.Application.ViewModel;
-using IRaCIS.Core.Infrastructure;
-using IRaCIS.Core.Domain.Share;
-using System.Linq.Expressions;
-using IRaCIS.Core.Infra.EFCore.Common;
-using System.Linq;
using IRaCIS.Core.Application.Contracts;
using IRaCIS.Core.Application.Filter;
-using Medallion.Threading;
-using IRaCIS.Core.Infrastructure.Extention;
-using System;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using NPOI.SS.Formula.Functions;
+using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.Service.Reading.Dto;
+using IRaCIS.Core.Application.ViewModel;
+using IRaCIS.Core.Domain.Share;
+using IRaCIS.Core.Infra.EFCore.Common;
+using IRaCIS.Core.Infrastructure;
+using Medallion.Threading;
+using Microsoft.AspNetCore.Mvc;
namespace IRaCIS.Core.Application.Service
{
@@ -114,7 +107,7 @@ namespace IRaCIS.Core.Application.Service
}
#endregion
- var trialTaskConfig = _trialRepository.Where(t => t.Id == inQuery.TrialId).Select(t => new { IsHaveDoubleReadCriterion = t.TrialReadingCriterionList.Any(t => t.IsSigned && t.IsConfirm && t.ReadingType == ReadingMethod.Double), t.VitrualSiteCode }).FirstOrDefault();
+ var trialTaskConfig = _trialRepository.Where(t => t.Id == inQuery.TrialId).Select(t => new { IsHaveDoubleReadCriterion = t.TrialReadingCriterionList.Any(t => t.IsSigned && t.IsConfirm && t.ReadingType == ReadingMethod.Double), t.VitrualSiteCode }).FirstOrDefault();
return ResponseOutput.Ok(pageList, trialTaskConfig);
}
diff --git a/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewRuleService.cs b/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewRuleService.cs
index e76863049..b0ae36046 100644
--- a/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewRuleService.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewRuleService.cs
@@ -4,11 +4,10 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using Microsoft.AspNetCore.Mvc;
+using IRaCIS.Core.Application.Filter;
using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.ViewModel;
-using IRaCIS.Core.Application.Filter;
+using Microsoft.AspNetCore.Mvc;
namespace IRaCIS.Core.Application.Service
{
@@ -21,19 +20,19 @@ namespace IRaCIS.Core.Application.Service
IRepository _trialUserRepository) : BaseService, ITaskMedicalReviewRuleService
{
-
+
[HttpPost]
- public async Task<(List,object)> GetTaskMedicalReviewRuleList(TaskMedicalReviewRuleQuery inQuery)
+ public async Task<(List, object)> GetTaskMedicalReviewRuleList(TaskMedicalReviewRuleQuery inQuery)
{
var taskTaskMedicalReviewRuleQueryable = _taskMedicalReviewRuleRepository.Where(t => t.TrialId == inQuery.TrialId)
.ProjectTo(_mapper.ConfigurationProvider);
- var isHaveMIM = await _trialUserRepository.AnyAsync(t => t.User.UserTypeEnum == Domain.Share.UserTypeEnum.MIM && t.TrialId==inQuery.TrialId);
+ var isHaveMIM = await _trialUserRepository.AnyAsync(t => t.User.UserTypeEnum == Domain.Share.UserTypeEnum.MIM && t.TrialId == inQuery.TrialId);
- return (await taskTaskMedicalReviewRuleQueryable.ToListAsync(),new {IsHaveMIM=isHaveMIM});
+ return (await taskTaskMedicalReviewRuleQueryable.ToListAsync(), new { IsHaveMIM = isHaveMIM });
}
[HttpPost]
@@ -43,7 +42,7 @@ namespace IRaCIS.Core.Application.Service
{
var verifyExp1 = new EntityVerifyExp()
{
-
+
VerifyExp = t => t.DoctorUserId == addOrEditTaskTaskMedicalReviewRule.DoctorUserId && t.TrialId == addOrEditTaskTaskMedicalReviewRule.TrialId,
//"已有该医生配置,不允许继续增加"
VerifyMsg = _localizer["TaskMedicalRule_TaskAlreadyAssigned"]
@@ -68,7 +67,7 @@ namespace IRaCIS.Core.Application.Service
// return ResponseOutput.NotOk(_localizer["TaskMedicalRule_TaskStarted"]);
//}
- var success = await _taskMedicalReviewRuleRepository.DeleteFromQueryAsync(t => t.Id == taskMedicalReviewRuleId,true);
+ var success = await _taskMedicalReviewRuleRepository.DeleteFromQueryAsync(t => t.Id == taskMedicalReviewRuleId, true);
return ResponseOutput.Ok();
}
diff --git a/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs b/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs
index 393edc9a0..fa37eccdc 100644
--- a/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs
@@ -4,14 +4,12 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using Microsoft.AspNetCore.Mvc;
+using IRaCIS.Core.Application.Filter;
using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.ViewModel;
-using IRaCIS.Core.Infrastructure;
using IRaCIS.Core.Domain.Share;
-using IRaCIS.Core.Application.Filter;
-using Microsoft.Extensions.Logging;
+using IRaCIS.Core.Infrastructure;
+using Microsoft.AspNetCore.Mvc;
namespace IRaCIS.Core.Application.Service
{
@@ -26,7 +24,7 @@ namespace IRaCIS.Core.Application.Service
IRepository _visitTaskRepository) : BaseService, ITaskMedicalReviewService
{
-
+
///
/// PM 医学审核(挑选任务生成后的列表)
@@ -41,7 +39,7 @@ namespace IRaCIS.Core.Application.Service
.WhereIf(inQuery.TrialSiteId != null, t => t.VisitTask.Subject.TrialSiteId == inQuery.TrialSiteId)
.WhereIf(inQuery.SubjectId != null, t => t.VisitTask.SubjectId == inQuery.SubjectId)
- .WhereIf(!string.IsNullOrEmpty(inQuery.SubjectCode), t => t.VisitTask.Subject.Code.Contains(inQuery.SubjectCode) || t.VisitTask.Subject.MedicalNo.Contains(inQuery.SubjectCode))
+ .WhereIf(!string.IsNullOrEmpty(inQuery.SubjectCode), t => t.VisitTask.Subject.Code.Contains(inQuery.SubjectCode) || t.VisitTask.Subject.MedicalNo.Contains(inQuery.SubjectCode))
.WhereIf(!string.IsNullOrEmpty(inQuery.TaskName), t => t.VisitTask.TaskName.Contains(inQuery.TaskName) || t.VisitTask.TaskBlindName.Contains(inQuery.TaskName))
.WhereIf(inQuery.IsUrgent != null, t => t.VisitTask.IsUrgent == inQuery.IsUrgent)
.WhereIf(inQuery.DoctorUserId != null, t => t.VisitTask.DoctorUserId == inQuery.DoctorUserId)
@@ -50,23 +48,23 @@ namespace IRaCIS.Core.Application.Service
.WhereIf(inQuery.TaskState != null, t => t.VisitTask.TaskState == inQuery.TaskState)
.WhereIf(inQuery.ArmEnum != null, t => t.VisitTask.ArmEnum == inQuery.ArmEnum)
.WhereIf(inQuery.AuditState != null, t => t.AuditState == inQuery.AuditState)
- .WhereIf(inQuery.MedicalManagerUserId != null, t => t.MedicalManagerUserId == inQuery.MedicalManagerUserId)
+ .WhereIf(inQuery.MedicalManagerUserId != null, t => t.MedicalManagerUserId == inQuery.MedicalManagerUserId)
.WhereIf(inQuery.BeginSignTime != null, t => t.VisitTask.SignTime > inQuery.BeginSignTime)
.WhereIf(inQuery.EndSignTime != null, t => t.VisitTask.SignTime < inQuery.EndSignTime)
- .WhereIf(inQuery.AuditAdviceEnum != null, t => t.AuditAdviceEnum == inQuery.AuditAdviceEnum)
+ .WhereIf(inQuery.AuditAdviceEnum != null, t => t.AuditAdviceEnum == inQuery.AuditAdviceEnum)
- .WhereIf(inQuery.DoctorUserIdeaEnum != null, t => t.DoctorUserIdeaEnum == inQuery.DoctorUserIdeaEnum)
- .WhereIf(inQuery.TrialReadingCriterionId != null, t => t.VisitTask.TrialReadingCriterionId == inQuery.TrialReadingCriterionId)
+ .WhereIf(inQuery.DoctorUserIdeaEnum != null, t => t.DoctorUserIdeaEnum == inQuery.DoctorUserIdeaEnum)
+ .WhereIf(inQuery.TrialReadingCriterionId != null, t => t.VisitTask.TrialReadingCriterionId == inQuery.TrialReadingCriterionId)
.WhereIf(inQuery.IsInvalid != null, t => t.IsInvalid == inQuery.IsInvalid)
.WhereIf(inQuery.IsHaveQuestion != null, t => t.IsHaveQuestion == inQuery.IsHaveQuestion)
-
+
.WhereIf(inQuery.BeginAllocateDate != null, t => t.AllocateTime >= inQuery.BeginAllocateDate)
.WhereIf(inQuery.EndAllocateDate != null, t => t.AllocateTime <= inQuery.EndAllocateDate)
.WhereIf(inQuery.BeginAuditSignTime != null, t => t.AuditSignTime >= inQuery.BeginAuditSignTime)
.WhereIf(inQuery.EndAuditSignTime != null, t => t.AuditSignTime <= inQuery.EndAuditSignTime)
- .ProjectTo(_mapper.ConfigurationProvider);
+ .ProjectTo(_mapper.ConfigurationProvider);
- var defalutSortArray = new string[] { nameof(TaskMedicalReviewView.AuditState), nameof(TaskMedicalReviewView.SubjectCode), nameof(TaskMedicalReviewView.ArmEnum) , nameof(TaskMedicalReviewView.VisitTaskNum) };
+ var defalutSortArray = new string[] { nameof(TaskMedicalReviewView.AuditState), nameof(TaskMedicalReviewView.SubjectCode), nameof(TaskMedicalReviewView.ArmEnum), nameof(TaskMedicalReviewView.VisitTaskNum) };
var pageList = await taskMedicalReviewQueryable.ToPagedListAsync(inQuery, defalutSortArray);
return pageList;
@@ -82,7 +80,7 @@ namespace IRaCIS.Core.Application.Service
public async Task> GetGenerateMedicalReviewTaskList(GenerateMedicalReviewTaskQuery inQuery)
{
var visitTaskQueryable = _visitTaskRepository.Where(t => t.TrialId == inQuery.TrialId)
- .Where(t => t.IsAnalysisCreate == false && (t.TaskState == TaskState.Effect||t.TaskState==TaskState.Freeze) && t.ReadingTaskState == ReadingTaskState.HaveSigned)
+ .Where(t => t.IsAnalysisCreate == false && (t.TaskState == TaskState.Effect || t.TaskState == TaskState.Freeze) && t.ReadingTaskState == ReadingTaskState.HaveSigned)
.WhereIf(inQuery.TrialSiteId != null, t => t.Subject.TrialSiteId == inQuery.TrialSiteId)
.WhereIf(inQuery.SubjectId != null, t => t.SubjectId == inQuery.SubjectId)
@@ -161,16 +159,16 @@ namespace IRaCIS.Core.Application.Service
var result = new TaskMedicalReviewView() { };
- if (index+1 == data.CurrentPageData.Count()) // 最后一个
+ if (index + 1 == data.CurrentPageData.Count()) // 最后一个
{
- throw new BusinessValidationFailedException(_localizer["MedicalReview_Finish"]);
- }
+ throw new BusinessValidationFailedException(_localizer["MedicalReview_Finish"]);
+ }
else if (index == -1 || data.CurrentPageData.Count == 1) // 第一个或者只有一个
{
if (data.CurrentPageData[0].Id == inDto.MedicalReviewId)
{
- throw new BusinessValidationFailedException(_localizer["MedicalReview_Finish"]);
- }
+ throw new BusinessValidationFailedException(_localizer["MedicalReview_Finish"]);
+ }
result = data.CurrentPageData[0];
}
else
@@ -183,8 +181,8 @@ namespace IRaCIS.Core.Application.Service
}
else
{
- throw new BusinessValidationFailedException(_localizer["MedicalReview_Finish"]);
- }
+ throw new BusinessValidationFailedException(_localizer["MedicalReview_Finish"]);
+ }
}
@@ -196,34 +194,34 @@ namespace IRaCIS.Core.Application.Service
///
///
[HttpPost]
- public async Task>> GetMIMMedicalReviewTaskList(TaskMedicalReviewQuery inQuery)
+ public async Task>> GetMIMMedicalReviewTaskList(TaskMedicalReviewQuery inQuery)
{
- var taskMedicalReviewQueryable = _taskMedicalReviewRepository.Where(t => t.VisitTask.TrialId == inQuery.TrialId && t.MedicalManagerUserId == _userInfo.Id&&t.VisitTask.TrialReadingCriterionId==inQuery.TrialReadingCriterionId)
-
+ var taskMedicalReviewQueryable = _taskMedicalReviewRepository.Where(t => t.VisitTask.TrialId == inQuery.TrialId && t.MedicalManagerUserId == _userInfo.Id && t.VisitTask.TrialReadingCriterionId == inQuery.TrialReadingCriterionId)
+
.WhereIf(inQuery.IsGetNextMedicalReviewTask,
- x=>(
- !x.IsInvalid&& x.AuditState== MedicalReviewAuditState.Auditing &
- ( x.ReadingMedicalReviewDialogList.Count()!=0&&
- x.ReadingMedicalReviewDialogList.Count()>0&&
- x.ReadingMedicalReviewDialogList.OrderByDescending(x=>x.CreateTime).FirstOrDefault().UserTypeEnumInt==(int)UserTypeEnum.IndependentReviewer)
+ x => (
+ !x.IsInvalid && x.AuditState == MedicalReviewAuditState.Auditing &
+ (x.ReadingMedicalReviewDialogList.Count() != 0 &&
+ x.ReadingMedicalReviewDialogList.Count() > 0 &&
+ x.ReadingMedicalReviewDialogList.OrderByDescending(x => x.CreateTime).FirstOrDefault().UserTypeEnumInt == (int)UserTypeEnum.IndependentReviewer)
) // 审核中最新回复为IR的
- || (!x.IsInvalid&& x.AuditState==MedicalReviewAuditState.WaitAudit)
- ||x.Id == inQuery.Id // 这里必须找传入id 因为要找到这条的索引 获取下一条
- )
+ || (!x.IsInvalid && x.AuditState == MedicalReviewAuditState.WaitAudit)
+ || x.Id == inQuery.Id // 这里必须找传入id 因为要找到这条的索引 获取下一条
+ )
.WhereIf(inQuery.SubjectId != null, t => t.VisitTask.SubjectId == inQuery.SubjectId)
.WhereIf(inQuery.TrialSiteId != null, t => t.VisitTask.Subject.TrialSiteId == inQuery.TrialSiteId)
.WhereIf(inQuery.IsUrgent != null, t => t.VisitTask.IsUrgent == inQuery.IsUrgent)
.WhereIf(inQuery.AuditState != null, t => t.AuditState == inQuery.AuditState)
- .WhereIf(inQuery.DoctorUserIdeaEnum != null, t => t.DoctorUserIdeaEnum == inQuery.DoctorUserIdeaEnum)
- .WhereIf(inQuery.TaskState != null, t => t.VisitTask.TaskState == inQuery.TaskState)
+ .WhereIf(inQuery.DoctorUserIdeaEnum != null, t => t.DoctorUserIdeaEnum == inQuery.DoctorUserIdeaEnum)
+ .WhereIf(inQuery.TaskState != null, t => t.VisitTask.TaskState == inQuery.TaskState)
.WhereIf(!string.IsNullOrEmpty(inQuery.SubjectCode), t => t.VisitTask.Subject.Code.Contains(inQuery.SubjectCode) || t.VisitTask.Subject.MedicalNo.Contains(inQuery.SubjectCode))
.WhereIf(!string.IsNullOrEmpty(inQuery.TaskName), t => t.VisitTask.TaskName.Contains(inQuery.TaskName) || t.VisitTask.TaskBlindName.Contains(inQuery.TaskName))
.WhereIf(inQuery.DoctorUserId != null, t => t.VisitTask.DoctorUserId == inQuery.DoctorUserId)
.WhereIf(inQuery.ReadingCategory != null, t => t.VisitTask.ReadingCategory == inQuery.ReadingCategory)
.WhereIf(inQuery.ReadingTaskState != null, t => t.VisitTask.ReadingTaskState == inQuery.ReadingTaskState)
.WhereIf(inQuery.IsInvalid != null, t => t.IsInvalid == inQuery.IsInvalid)
- .WhereIf(inQuery.IsGetBeRead,x=>!x.IsInvalid&&x.AuditState!= MedicalReviewAuditState.HaveSigned)
+ .WhereIf(inQuery.IsGetBeRead, x => !x.IsInvalid && x.AuditState != MedicalReviewAuditState.HaveSigned)
.WhereIf(inQuery.TrialReadingCriterionId != null, t => t.VisitTask.TrialReadingCriterionId == inQuery.TrialReadingCriterionId)
.WhereIf(inQuery.BeginAuditSignTime != null, t => t.AuditSignTime >= inQuery.BeginAuditSignTime)
.WhereIf(inQuery.EndAuditSignTime != null, t => t.AuditSignTime <= inQuery.EndAuditSignTime)
@@ -239,10 +237,10 @@ namespace IRaCIS.Core.Application.Service
.ProjectTo(_mapper.ConfigurationProvider);
- var defalutSortArray = new string[] { nameof(TaskMedicalReviewView.SubjectCode), nameof(TaskMedicalReviewView.ArmEnum), nameof(TaskMedicalReviewView.VisitTaskNum) };
+ var defalutSortArray = new string[] { nameof(TaskMedicalReviewView.SubjectCode), nameof(TaskMedicalReviewView.ArmEnum), nameof(TaskMedicalReviewView.VisitTaskNum) };
var pageList = await taskMedicalReviewQueryable.ToPagedListAsync(inQuery, defalutSortArray);
- return ResponseOutput.Ok(pageList, new
+ return ResponseOutput.Ok(pageList, new
{
IsConfirmMedicineQuestion = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inQuery.TrialReadingCriterionId).Select(x => x.IsConfirmMedicineQuestion).FirstOrDefaultAsync()
@@ -265,7 +263,7 @@ namespace IRaCIS.Core.Application.Service
return ResponseOutput.NotOk(_localizer["TaskMedical_DirtyData"]);
}
- await _taskMedicalReviewRepository.UpdatePartialFromQueryAsync(t => command.MedicalReviewIdList.Contains(t.Id), c => new TaskMedicalReview() { IsInvalid = true },true);
+ await _taskMedicalReviewRepository.UpdatePartialFromQueryAsync(t => command.MedicalReviewIdList.Contains(t.Id), c => new TaskMedicalReview() { IsInvalid = true }, true);
return ResponseOutput.Ok();
diff --git a/IRaCIS.Core.Application/Service/Allocation/VisitTaskHelpeService.cs b/IRaCIS.Core.Application/Service/Allocation/VisitTaskHelpeService.cs
index 7d83da129..9e817c927 100644
--- a/IRaCIS.Core.Application/Service/Allocation/VisitTaskHelpeService.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/VisitTaskHelpeService.cs
@@ -4,20 +4,13 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using Microsoft.AspNetCore.Mvc;
-using IRaCIS.Core.Application.Interfaces;
+using IRaCIS.Core.Application.Helper;
using IRaCIS.Core.Application.ViewModel;
using IRaCIS.Core.Domain.Share;
-using IRaCIS.Core.Infrastructure;
-using AutoMapper;
-using MassTransit;
-using IRaCIS.Core.Infra.EFCore.Common;
-using System.Linq.Expressions;
using IRaCIS.Core.Domain.Share.Reading;
-using IRaCIS.Core.Application.Service.Reading.Dto;
-using System.Runtime.InteropServices;
-using IRaCIS.Core.Application.Helper;
+using IRaCIS.Core.Infra.EFCore.Common;
+using MassTransit;
+using Microsoft.AspNetCore.Mvc;
using ZiggyCreatures.Caching.Fusion;
namespace IRaCIS.Core.Application.Service
@@ -35,7 +28,7 @@ namespace IRaCIS.Core.Application.Service
IRepository _readingJudgeInfoRepository,
IRepository _subjectUserRepository,
IRepository _readModuleRepository,
-
+
IRepository _readingOncologyTaskInfoRepository,
IRepository _trialReadingCriterionRepository,
@@ -44,7 +37,7 @@ namespace IRaCIS.Core.Application.Service
IRepository _readingConsistentClinicalDataRepository) : BaseService, IVisitTaskHelpeService
{
-
+
//查询列表的时候,一致性核查通过未产生任务的 自动产生任务 如果是一致性核查,那么还会自动分配
public async Task GenerateVisitTaskAsync(Guid trialId, List subjectVisitIdList, bool isAssignSubjectToDoctor = false)
@@ -136,7 +129,7 @@ namespace IRaCIS.Core.Application.Service
var dbMaxCode = _visitTaskRepository.Where(t => t.TrialId == trialId).Select(t => t.Code).DefaultIfEmpty().Max();
- var cacheMaxCodeInt =_fusionCache.GetOrDefault(CacheKeys.TrialStudyMaxCode(trialId));
+ var cacheMaxCodeInt = _fusionCache.GetOrDefault(CacheKeys.TrialStudyMaxCode(trialId));
int currentMaxCodeInt = cacheMaxCodeInt > dbMaxCode ? cacheMaxCodeInt : dbMaxCode;
@@ -432,8 +425,8 @@ namespace IRaCIS.Core.Application.Service
//CRC 的自动签名 不用管 只用处理PM的就好
var haveSignedCount = _readingClinicalDataRepository
- .Where(t => t.TrialId == trialId && t.IsSign
- && t.ClinicalDataTrialSet.TrialClinicalDataSetCriteriaList.Any(x=>x.TrialReadingCriterionId== trialReadingCriterionId)
+ .Where(t => t.TrialId == trialId && t.IsSign
+ && t.ClinicalDataTrialSet.TrialClinicalDataSetCriteriaList.Any(x => x.TrialReadingCriterionId == trialReadingCriterionId)
&& t.ReadingClinicalDataState == ReadingClinicalDataStatus.HaveSigned && t.ReadingId == readingId && t.ClinicalDataTrialSet.UploadRole == UploadRole.PM).Count();
@@ -575,7 +568,7 @@ namespace IRaCIS.Core.Application.Service
var dbMaxCode = _visitTaskRepository.Where(t => t.TrialId == trialId).Select(t => t.Code).DefaultIfEmpty().Max();
- var cacheMaxCodeInt =_fusionCache.GetOrDefault(CacheKeys.TrialStudyMaxCode(trialId));
+ var cacheMaxCodeInt = _fusionCache.GetOrDefault(CacheKeys.TrialStudyMaxCode(trialId));
int currentMaxCodeInt = cacheMaxCodeInt > dbMaxCode ? cacheMaxCodeInt : dbMaxCode;
@@ -1390,13 +1383,13 @@ namespace IRaCIS.Core.Application.Service
var firsttask = generateTaskCommand.GenerataConsistentTaskList[0];
var clinicalDataList = _readingClinicalDataRepository.Where(t => t.SubjectId == subjectId
&& t.ClinicalDataTrialSet.TrialClinicalDataSetCriteriaList.Any(y => y.TrialReadingCriterionId == firsttask.TrialReadingCriterionId)
- && t.ClinicalDataTrialSet.ClinicalDataLevel!= ClinicalLevel.Study
+ && t.ClinicalDataTrialSet.ClinicalDataLevel != ClinicalLevel.Study
&& t.ClinicalDataTrialSet.ClinicalUploadType == ClinicalUploadType.PDF)
// crc受试者和访视的临床数据没上传 一致性分析的时候也不用显示
- .Where(x=>x.ClinicalDataTrialSet.UploadRole == UploadRole.PM||x.FileCount>0)
+ .Where(x => x.ClinicalDataTrialSet.UploadRole == UploadRole.PM || x.FileCount > 0)
.Include(t => t.ReadingClinicalDataPDFList).Include(t => t.ClinicalDataTrialSet).ToList();
-
+
foreach (var clinicalData in clinicalDataList)
{
var consistnentClinicalData = _mapper.Map(clinicalData);
@@ -1424,12 +1417,12 @@ namespace IRaCIS.Core.Application.Service
foreach (var task in generateTaskCommand.GenerataConsistentTaskList)
{
-
+
var exsitPDF = await _readingClinicalDataRepository
- .WhereIf(isReadingTaskViewInOrder== ReadingOrder.Random,t=>t.ReadingId== task.SouceReadModuleId|| t.ReadingId == task.SourceSubjectVisitId)
+ .WhereIf(isReadingTaskViewInOrder == ReadingOrder.Random, t => t.ReadingId == task.SouceReadModuleId || t.ReadingId == task.SourceSubjectVisitId)
.AnyAsync(t => t.TrialId == trialId &&
- t.SubjectId== task.SubjectId&&
+ t.SubjectId == task.SubjectId &&
t.ClinicalDataTrialSet.TrialClinicalDataSetCriteriaList.Any(c => c.TrialReadingCriterionId == readingCriterionId)
&& t.ClinicalDataTrialSet.ClinicalDataLevel != ClinicalLevel.Study
diff --git a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs
index d8345c225..07521fc83 100644
--- a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs
@@ -4,24 +4,17 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using Microsoft.AspNetCore.Mvc;
-using IRaCIS.Core.Application.Interfaces;
+using IRaCIS.Application.Contracts;
+using IRaCIS.Core.Application.Contracts;
+using IRaCIS.Core.Application.Filter;
using IRaCIS.Core.Application.ViewModel;
using IRaCIS.Core.Domain.Share;
-using IRaCIS.Core.Infrastructure;
-using IRaCIS.Core.Application.Contracts;
-using IRaCIS.Core.Infra.EFCore.Common;
-using System.Linq.Expressions;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Application.Filter;
-using DocumentFormat.OpenXml.Office2010.Word;
-using System.Linq.Dynamic.Core;
-using System.Linq;
-using DocumentFormat.OpenXml.Bibliography;
using IRaCIS.Core.Domain.Share.Reading;
+using IRaCIS.Core.Infra.EFCore.Common;
+using IRaCIS.Core.Infrastructure;
using MassTransit;
-using System.Reactive.Subjects;
+using Microsoft.AspNetCore.Mvc;
+using System.Linq.Dynamic.Core;
using Subject = IRaCIS.Core.Domain.Models.Subject;
namespace IRaCIS.Core.Application.Service.Allocation;
@@ -73,7 +66,7 @@ public class VisitTaskService(IRepository _visitTaskRepository,
TaskUrgentRemake = inDto.TaskUrgentRemake,
});
-
+
return await _visitTaskRepository.SaveChangesAsync();
}
@@ -145,7 +138,7 @@ public class VisitTaskService(IRepository _visitTaskRepository,
.ProjectTo(_mapper.ConfigurationProvider, new { trialReadingCriterionId = inQuery.TrialReadingCriterionId });
- var pageList = await subjectQuery.ToPagedListAsync(inQuery,nameof(SubjectAssignStat.SubjectId));
+ var pageList = await subjectQuery.ToPagedListAsync(inQuery, nameof(SubjectAssignStat.SubjectId));
@@ -1205,7 +1198,7 @@ public class VisitTaskService(IRepository _visitTaskRepository,
.ToList()
}).Where(x => x.UnReadCanReadTaskCount > 0);
- var pageList = await visitTaskQuery.ToPagedListAsync(inQuery, nameof(IRUnReadSubjectView.UnReadCanReadTaskCount) );
+ var pageList = await visitTaskQuery.ToPagedListAsync(inQuery, nameof(IRUnReadSubjectView.UnReadCanReadTaskCount));
return pageList;
}
diff --git a/IRaCIS.Core.Application/Service/Allocation/_MapConfig.cs b/IRaCIS.Core.Application/Service/Allocation/_MapConfig.cs
index 4b1424c80..4beb54f0d 100644
--- a/IRaCIS.Core.Application/Service/Allocation/_MapConfig.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/_MapConfig.cs
@@ -1,8 +1,6 @@
using AutoMapper;
using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Application.Contracts;
using IRaCIS.Core.Application.ViewModel;
-using IRaCIS.Core.Domain.Models;
using IRaCIS.Core.Domain.Share;
namespace IRaCIS.Core.Application.Service
@@ -59,10 +57,10 @@ namespace IRaCIS.Core.Application.Service
: u.Trial.SubjectList.Where(t => subjectIdList.Contains(t.Id) && t.SubjectVisitTaskList.Where(t => isJudgeDoctor ? t.ArmEnum == Arm.JudgeArm : t.ArmEnum != Arm.JudgeArm).Any(c => c.DoctorUserId == null)).Count()
))
- //.ForMember(o => o.WaitApplySelfTaskCount, t => t.MapFrom(u =>
- //subjectIdList.Count == 0 ? u.Trial.SubjectDoctorUserList.Where(d => d.DoctorUserId == u.DoctorUserId).SelectMany(t => t.SubjectArmVisitTaskList.Where(t => isJudgeDoctor ? t.ArmEnum == Arm.JudgeArm : t.ArmEnum != Arm.JudgeArm).Where(t => t.DoctorUserId == null)).Count()
- //: u.Trial.SubjectDoctorUserList.Where(d => d.DoctorUserId == u.DoctorUserId && subjectIdList.Contains(d.SubjectId)).SelectMany(t => t.SubjectArmVisitTaskList.Where(t => isJudgeDoctor ? t.ArmEnum == Arm.JudgeArm : t.ArmEnum != Arm.JudgeArm).Where(t => t.DoctorUserId == null)).Count()
- // ))
+ //.ForMember(o => o.WaitApplySelfTaskCount, t => t.MapFrom(u =>
+ //subjectIdList.Count == 0 ? u.Trial.SubjectDoctorUserList.Where(d => d.DoctorUserId == u.DoctorUserId).SelectMany(t => t.SubjectArmVisitTaskList.Where(t => isJudgeDoctor ? t.ArmEnum == Arm.JudgeArm : t.ArmEnum != Arm.JudgeArm).Where(t => t.DoctorUserId == null)).Count()
+ //: u.Trial.SubjectDoctorUserList.Where(d => d.DoctorUserId == u.DoctorUserId && subjectIdList.Contains(d.SubjectId)).SelectMany(t => t.SubjectArmVisitTaskList.Where(t => isJudgeDoctor ? t.ArmEnum == Arm.JudgeArm : t.ArmEnum != Arm.JudgeArm).Where(t => t.DoctorUserId == null)).Count()
+ // ))
.ForMember(o => o.WaitApplyTotalTaskCount, t => t.MapFrom(u =>
subjectIdList.Count == 0 ? u.Trial.VisitTaskList.Where(t => isJudgeDoctor ? t.ArmEnum == Arm.JudgeArm : t.ArmEnum != Arm.JudgeArm).Where(t => t.DoctorUserId == null).Count()
@@ -75,7 +73,7 @@ namespace IRaCIS.Core.Application.Service
.ForMember(o => o.DoctorUser, t => t.MapFrom(u => u.Enroll.DoctorUser))
.ForMember(o => o.CriterionReadingCategoryList, t => t.MapFrom(u => u.Enroll.EnrollReadingCategoryList.Select(t => new TrialCriterionReadingCategory() { EnrollId = t.EnrollId, ReadingCategory = t.ReadingCategory, TrialReadingCriterionId = t.TrialReadingCriterionId })))
.ForMember(o => o.TrialReadingCriterionList, t => t.MapFrom(u => u.Trial.TrialReadingCriterionList.Where(t => t.IsConfirm)))
- .ForMember(o => o.ReadingCategoryList, t => t.MapFrom(u => u.Enroll.EnrollReadingCategoryList.Where(t=>t.TrialReadingCriterionId== trialReadingCriterionId).OrderBy(t => t.ReadingCategory).Select(t => t.ReadingCategory).ToList()))
+ .ForMember(o => o.ReadingCategoryList, t => t.MapFrom(u => u.Enroll.EnrollReadingCategoryList.Where(t => t.TrialReadingCriterionId == trialReadingCriterionId).OrderBy(t => t.ReadingCategory).Select(t => t.ReadingCategory).ToList()))
;
CreateMap()
@@ -86,25 +84,25 @@ namespace IRaCIS.Core.Application.Service
.ForMember(o => o.AssignedSubjectCount, t => t.MapFrom(u => u.DoctorUser.VisitTaskList.Where(t => t.TrialId == u.TrialId).Select(t => t.SubjectId).Distinct().Count()))
.ForMember(o => o.WaitDealTrialTaskCount, t => t.MapFrom(u => u.DoctorUser.VisitTaskList.Where(t => t.TrialId == u.TrialId).Where(t => t.ReadingTaskState != ReadingTaskState.HaveSigned && t.TaskState == TaskState.Effect).Count()))
.ForMember(o => o.WaitDealAllTaskCount, t => t.MapFrom(u => u.DoctorUser.VisitTaskList.Where(t => t.ReadingTaskState != ReadingTaskState.HaveSigned && t.TaskState == TaskState.Effect).Count()));
-
-
+
+
CreateMap()
.ForMember(o => o.SubjectId, t => t.MapFrom(u => u.Id))
.ForMember(o => o.TrialSiteCode, t => t.MapFrom(u => u.TrialSite.TrialSiteCode))
.ForMember(o => o.SubjectCode, t => t.MapFrom(u => u.Code))
- .ForMember(o => o.VisitTaskTypeCount, t => t.MapFrom(u => u.SubjectVisitTaskList.Where(t => t.ReadingCategory == ReadingCategory.Visit && t.TrialReadingCriterionId==trialReadingCriterionId && t.TaskState==TaskState.Effect).Select(t => t.VisitTaskNum).Distinct().Count()))
+ .ForMember(o => o.VisitTaskTypeCount, t => t.MapFrom(u => u.SubjectVisitTaskList.Where(t => t.ReadingCategory == ReadingCategory.Visit && t.TrialReadingCriterionId == trialReadingCriterionId && t.TaskState == TaskState.Effect).Select(t => t.VisitTaskNum).Distinct().Count()))
.ForMember(o => o.GlobalTaskTypeCount, t => t.MapFrom(u => u.SubjectVisitTaskList.Where(t => t.ReadingCategory == ReadingCategory.Global && t.TrialReadingCriterionId == trialReadingCriterionId && t.TaskState == TaskState.Effect).Select(t => t.VisitTaskNum).Distinct().Count()))
.ForMember(o => o.OncologyTaskTypeCount, t => t.MapFrom(u => u.SubjectVisitTaskList.Where(t => t.ReadingCategory == ReadingCategory.Oncology && t.TrialReadingCriterionId == trialReadingCriterionId && t.TaskState == TaskState.Effect).Select(t => t.VisitTaskNum).Distinct().Count()))
.ForMember(o => o.JudgeTaskTypeCount, t => t.MapFrom(u => u.SubjectVisitTaskList.Where(t => t.ReadingCategory == ReadingCategory.Judge && t.TrialReadingCriterionId == trialReadingCriterionId && t.TaskState == TaskState.Effect).Select(t => t.VisitTaskNum).Distinct().Count()))
- .ForMember(o => o.DoctorUserList, t => t.MapFrom(u => u.SubjectDoctorList.Where(t=>t.TrialReadingCriterionId== trialReadingCriterionId)));
+ .ForMember(o => o.DoctorUserList, t => t.MapFrom(u => u.SubjectDoctorList.Where(t => t.TrialReadingCriterionId == trialReadingCriterionId)));
CreateMap()
.ForMember(o => o.DoctorUser, t => t.MapFrom(u => u.DoctorUser));
CreateMap().IncludeBase()
- .ForMember(o => o.IsHaveReading, t => t.MapFrom(u => u.Subject.SubjectVisitTaskList.Any(t => t.ReadingTaskState != ReadingTaskState.WaitReading && t.TrialReadingCriterionId==u.TrialReadingCriterionId && t.DoctorUserId==u.DoctorUserId && t.TaskState == TaskState.Effect)));
+ .ForMember(o => o.IsHaveReading, t => t.MapFrom(u => u.Subject.SubjectVisitTaskList.Any(t => t.ReadingTaskState != ReadingTaskState.WaitReading && t.TrialReadingCriterionId == u.TrialReadingCriterionId && t.DoctorUserId == u.DoctorUserId && t.TaskState == TaskState.Effect)));
CreateMap();
@@ -127,13 +125,13 @@ namespace IRaCIS.Core.Application.Service
.ForMember(o => o.TrialSiteId, t => t.MapFrom(u => u.Subject.TrialSiteId))
.ForMember(o => o.TrialSiteCode, t => t.MapFrom(u => /*u.IsAnalysisCreate == true ? u.BlindTrialSiteCode :*/ u.Subject.TrialSite.TrialSiteCode))
.ForMember(o => o.SubjectCode, t => t.MapFrom(u => /*u.IsAnalysisCreate == true ? u.BlindSubjectCode :*/ u.Subject.Code))
- .ForMember(o => o.MedicalNo, t => t.MapFrom(u => u.Subject.MedicalNo))
-
+ .ForMember(o => o.MedicalNo, t => t.MapFrom(u => u.Subject.MedicalNo))
+
.ForMember(o => o.UserCode, t => t.MapFrom(u => u.DoctorUser.UserCode))
.ForMember(o => o.UserName, t => t.MapFrom(u => u.DoctorUser.UserName))
.ForMember(o => o.FullName, t => t.MapFrom(u => u.DoctorUser.FullName))
.ForMember(o => o.UserTypeShortName, t => t.MapFrom(u => u.DoctorUser.UserTypeRole.UserTypeShortName))
- //.ForMember(o => o.IsClinicalDataSigned, t => t.MapFrom(u => u.Subject.ClinicalDataList.Any(c => c.IsSign && (c.ReadingId == u.SouceReadModuleId || c.ReadingId == u.SourceSubjectVisitId))))
+ //.ForMember(o => o.IsClinicalDataSigned, t => t.MapFrom(u => u.Subject.ClinicalDataList.Any(c => c.IsSign && (c.ReadingId == u.SouceReadModuleId || c.ReadingId == u.SourceSubjectVisitId))))
;
@@ -145,21 +143,21 @@ namespace IRaCIS.Core.Application.Service
.ForMember(o => o.HistoryReadingDoctorUserList, t => t.MapFrom(u => u.JudgeVisitList));
CreateMap().IncludeBase()
- .ForMember(o=>o.IsManualGeneration,t=> t.MapFrom(u => !u.TrialReadingCriterion.IsAutoCreate))
- .ForMember(o => o.IsHaveFeedBack, t => t.MapFrom(u => u.UserFeedBackList.Any(t=>t.State==0)))
+ .ForMember(o => o.IsManualGeneration, t => t.MapFrom(u => !u.TrialReadingCriterion.IsAutoCreate))
+ .ForMember(o => o.IsHaveFeedBack, t => t.MapFrom(u => u.UserFeedBackList.Any(t => t.State == 0)))
;
CreateMap().IncludeBase()
.ForMember(o => o.IsReReadingOrBackInfluenceAnalysis, t => t.MapFrom(u => u.Subject.IsReReadingOrBackInfluenceAnalysis));
-
- CreateMap();
+
+ CreateMap();
CreateMap();
-
+
CreateMap()
.ForMember(o => o.ReReadingNewTaskCode, t => t.MapFrom(u => u.NewReReadingTask.TaskCode))
@@ -239,12 +237,12 @@ namespace IRaCIS.Core.Application.Service
.ForMember(o => o.TrialReadingCriterionName, t => t.MapFrom(u => u.TrialReadingCriterion.CriterionName))
.ForMember(o => o.TrialSiteCode, t => t.MapFrom(u => /*u.IsAnalysisCreate == true ? u.BlindTrialSiteCode :*/ u.Subject.TrialSite.TrialSiteCode))
.ForMember(o => o.SubjectCode, t => t.MapFrom(u => /*u.IsAnalysisCreate == true ? u.BlindSubjectCode :*/ u.Subject.Code))
- .ForMember(o => o.GeneratedMedicalReviewCount, t => t.MapFrom(u => u.TaskMedicalReviewList.Count(t=>t.MedicalManagerUserId!=null)))
+ .ForMember(o => o.GeneratedMedicalReviewCount, t => t.MapFrom(u => u.TaskMedicalReviewList.Count(t => t.MedicalManagerUserId != null)))
.ForMember(o => o.MedicalNo, t => t.MapFrom(u => u.Subject.MedicalNo))
.ForMember(o => o.IsGeneratedJudge, t => t.MapFrom(u => u.JudgeVisitTaskId != null))
.ForMember(o => o.ReadingDurationTimeSpan, t => t.MapFrom(u => u.SignTime - u.FirstReadingTime))
-
+
;
CreateMap();
diff --git a/IRaCIS.Core.Application/Service/Common/CommonDocumentService.cs b/IRaCIS.Core.Application/Service/Common/CommonDocumentService.cs
index 478c42c8e..3b4e24f7f 100644
--- a/IRaCIS.Core.Application/Service/Common/CommonDocumentService.cs
+++ b/IRaCIS.Core.Application/Service/Common/CommonDocumentService.cs
@@ -4,12 +4,10 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using Microsoft.AspNetCore.Mvc;
+using IRaCIS.Core.Application.Helper;
using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.ViewModel;
-using IRaCIS.Core.Application.Helper;
-using IRaCIS.Application.Contracts;
+using Microsoft.AspNetCore.Mvc;
namespace IRaCIS.Core.Application.Service
{
@@ -33,7 +31,7 @@ namespace IRaCIS.Core.Application.Service
.WhereIf(!string.IsNullOrEmpty(queryCommonDocument.Name), t => t.Name.Contains(queryCommonDocument.Name))
.ProjectTo(_mapper.ConfigurationProvider, new { token = _userInfo.UserToken, userId = _userInfo.Id });
- return await commonDocumentQueryable.ToPagedListAsync(queryCommonDocument);
+ return await commonDocumentQueryable.ToPagedListAsync(queryCommonDocument);
}
@@ -95,7 +93,7 @@ namespace IRaCIS.Core.Application.Service
}
}
-
+
if (addOrEditCommonDocument.Id == null) //insert
{
@@ -111,7 +109,7 @@ namespace IRaCIS.Core.Application.Service
var filePath = FileStoreHelper.GetPhysicalFilePath(_hostEnvironment, dbbeforeEntity.Path);
- if (File.Exists(filePath) && dbbeforeEntity.Path!=addOrEditCommonDocument.Path)
+ if (File.Exists(filePath) && dbbeforeEntity.Path != addOrEditCommonDocument.Path)
{
File.Delete(filePath);
}
@@ -121,7 +119,7 @@ namespace IRaCIS.Core.Application.Service
}
-
+
}
@@ -129,9 +127,9 @@ namespace IRaCIS.Core.Application.Service
[HttpDelete("{commonDocumentId:guid}")]
public async Task DeleteCommonDocument(Guid commonDocumentId)
{
- var find= await _commonDocumentRepository.FirstOrDefaultNoTrackingAsync(t=>t.Id== commonDocumentId);
-
- var success = await _commonDocumentRepository.DeleteFromQueryAsync(t => t.Id == commonDocumentId, true,true);
+ var find = await _commonDocumentRepository.FirstOrDefaultNoTrackingAsync(t => t.Id == commonDocumentId);
+
+ var success = await _commonDocumentRepository.DeleteFromQueryAsync(t => t.Id == commonDocumentId, true, true);
if (find != null)
{
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/CommonDocumentViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/CommonDocumentViewModel.cs
index 41891c999..0c1e7eb9b 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/CommonDocumentViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/CommonDocumentViewModel.cs
@@ -3,9 +3,7 @@
// 生成时间 2022-03-31 13:18:48
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
namespace IRaCIS.Core.Application.ViewModel
{
@@ -23,7 +21,7 @@ namespace IRaCIS.Core.Application.ViewModel
public class CommonDocumentView : CommonDocumentAddOrEdit
{
- public string FullFilePath { get; set; } = String.Empty;
+ public string FullFilePath { get; set; } = String.Empty;
public DateTime? DeletedTime { get; set; }
public DateTime CreateTime { get; set; }
public DateTime UpdateTime { get; set; }
@@ -33,7 +31,7 @@ namespace IRaCIS.Core.Application.ViewModel
///CommonDocumentQuery 列表查询参数模型
public class CommonDocumentQuery : PageInput
{
- public CriterionType? CriterionTypeEnum { get; set; }
+ public CriterionType? CriterionTypeEnum { get; set; }
public CommonDocumentFileType? FileTypeEnum { get; set; }
public EmailBusinessScenario? BusinessScenarioEnum { get; set; }
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/DictionaryModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/DictionaryModel.cs
index 08267c180..ff0c44c9c 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/DictionaryModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/DictionaryModel.cs
@@ -1,5 +1,4 @@
using IRaCIS.Core.Domain.Share;
-using IRaCIS.Core.Infrastructure.Extention;
using System.ComponentModel.DataAnnotations;
namespace IRaCIS.Application.Contracts
@@ -92,8 +91,8 @@ namespace IRaCIS.Application.Contracts
{
public Guid? TrialReadingCriterionId { get; set; }
- public Guid? SystemReadingCriterionId { get; set; }
- }
+ public Guid? SystemReadingCriterionId { get; set; }
+ }
public class GetTrialCriterionDictionaryListInDto
@@ -118,7 +117,7 @@ namespace IRaCIS.Application.Contracts
}
- public class BasicDicSelectCopy:BasicDicSelect
+ public class BasicDicSelectCopy : BasicDicSelect
{
}
@@ -144,12 +143,12 @@ namespace IRaCIS.Application.Contracts
public CrterionDictionaryGroup CrterionDictionaryGroup { get; set; } = IRaCIS.Core.Domain.Share.CrterionDictionaryGroup.General;
- public bool IsEnumInt => System.Text.RegularExpressions.Regex.IsMatch(Code, @"^[-+]?\d*$") && DataTypeEnum== DicDataTypeEnum.Enum;
+ public bool IsEnumInt => System.Text.RegularExpressions.Regex.IsMatch(Code, @"^[-+]?\d*$") && DataTypeEnum == DicDataTypeEnum.Enum;
}
- public class BasicDicQuery:PageInput
+ public class BasicDicQuery : PageInput
{
public string? keyInfo { get; set; }
@@ -220,7 +219,7 @@ namespace IRaCIS.Application.Contracts
public class DicViewModelDTO : AddOrUpdateDicDTO
{
-
+
}
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/EmailNoticeConfigViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/EmailNoticeConfigViewModel.cs
index 52258fa1d..a68164179 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/EmailNoticeConfigViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/EmailNoticeConfigViewModel.cs
@@ -3,9 +3,7 @@
// 生成时间 2022-02-15 11:55:57
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Application.ViewModel;
using IRaCIS.Core.Domain.Share;
-using Newtonsoft.Json;
namespace IRaCIS.Core.Application.Contracts
{
public class TrialSelectEmailNoticeConfigView : EmailNoticeConfigView
@@ -127,7 +125,7 @@ namespace IRaCIS.Core.Application.Contracts
public List CopyUserTypeList { get; set; }
- public SysEmailLevel SystemLevel { get; set; }
+ public SysEmailLevel SystemLevel { get; set; }
}
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/ExploreRecommendViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/ExploreRecommendViewModel.cs
index c61cb31a8..6bdce82e3 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/ExploreRecommendViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/ExploreRecommendViewModel.cs
@@ -3,15 +3,12 @@
// 生成时间 2024-07-02 09:29:36
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
-using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
namespace IRaCIS.Core.Application.ViewModel
{
/// ExploreRecommendView 列表视图模型
- public class ExploreRecommendView: ExploreRecommendAddOrEdit
+ public class ExploreRecommendView : ExploreRecommendAddOrEdit
{
-
+
public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; }
public Guid UpdateUserId { get; set; }
@@ -22,7 +19,7 @@ namespace IRaCIS.Core.Application.ViewModel
}
///ExploreRecommendQuery 列表查询参数模型
- public class ExploreRecommendQuery:PageInput
+ public class ExploreRecommendQuery : PageInput
{
public string? Version { get; set; }
@@ -48,7 +45,7 @@ namespace IRaCIS.Core.Application.ViewModel
public string Version { get; set; }
public string Title { get; set; }
-
+
public bool IsDeleted { get; set; }
public string DownloadUrl { get; set; }
public string Path { get; set; }
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs
index b2d76c285..b80616b31 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs
@@ -3,16 +3,13 @@
// 生成时间 2022-03-28 16:43:52
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
-using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations;
using IRaCIS.Core.Infra.EFCore.Common;
+using System.ComponentModel.DataAnnotations;
namespace IRaCIS.Core.Application.ViewModel
{
/// FrontAuditConfigView 列表视图模型
- public class FrontAuditConfigView:FrontAuditConfig
+ public class FrontAuditConfigView : FrontAuditConfig
{
public string ChildrenTypeValue { get; set; } = string.Empty;
public string ChildrenTypeValueCN { get; set; } = string.Empty;
@@ -43,7 +40,7 @@ namespace IRaCIS.Core.Application.ViewModel
public class GetChildrenItem
{
-
+
public Guid Id { get; set; }
}
@@ -74,7 +71,7 @@ namespace IRaCIS.Core.Application.ViewModel
///
/// 数据源Guids
///
- public List DataSourceGuids { get; set; }=new List(){ };
+ public List DataSourceGuids { get; set; } = new List() { };
///
/// 添加对象的Guid
@@ -106,7 +103,7 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid? OptTypeId { get; set; }
/// ChildrenTypeId
- public Guid? ChildrenTypeId { get; set; }
+ public Guid? ChildrenTypeId { get; set; }
public Guid? ModuleTypeId { get; set; }
@@ -131,7 +128,7 @@ namespace IRaCIS.Core.Application.ViewModel
- public class FrontAuditConfigDTO: FrontAuditConfigAddOrEdit
+ public class FrontAuditConfigDTO : FrontAuditConfigAddOrEdit
{
}
@@ -158,8 +155,8 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid? ParentId { get; set; }
public bool IsEnable { get; set; }
public Guid? ModuleTypeId { get; set; }
- public Guid? OptTypeId { get; set; }
- public Guid? ChildrenTypeId { get; set; }
+ public Guid? OptTypeId { get; set; }
+ public Guid? ChildrenTypeId { get; set; }
public string ConfigType { get; set; } = string.Empty;
@@ -172,7 +169,7 @@ namespace IRaCIS.Core.Application.ViewModel
public string EnumType { get; set; } = string.Empty;
- public Guid? ObjectTypeId { get; set; }
+ public Guid? ObjectTypeId { get; set; }
public bool? IsShowByTrialConfig { get; set; }
@@ -244,7 +241,7 @@ namespace IRaCIS.Core.Application.ViewModel
/// 日期类型
///
- public string DateType { get; set; }=string.Empty;
+ public string DateType { get; set; } = string.Empty;
///
@@ -285,7 +282,7 @@ namespace IRaCIS.Core.Application.ViewModel
///
public string ForeignKeyEnText { get; set; } = string.Empty;
-
+
///
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs
index 53b162923..77d83493e 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/InternationalizationViewModel.cs
@@ -3,9 +3,6 @@
// 生成时间 2023-06-01 13:38:20
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
-using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
namespace IRaCIS.Core.Application.ViewModel
{
/// InternationalizationView 列表视图模型
@@ -33,7 +30,7 @@ namespace IRaCIS.Core.Application.ViewModel
public string? ValueCN { get; set; }
- public string? Module { get; set; }
+ public string? Module { get; set; }
//关联版本历史记录表Id
public Guid? PublishLogId { get; set; }
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/PublishLogViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/PublishLogViewModel.cs
index 5cd098251..6d96ccf9a 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/PublishLogViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/PublishLogViewModel.cs
@@ -3,9 +3,6 @@
// 生成时间 2023-06-27 15:47:02
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
-using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
namespace IRaCIS.Core.Application.ViewModel
{
/// PublishLogView 列表视图模型
@@ -19,7 +16,7 @@ namespace IRaCIS.Core.Application.ViewModel
}
///PublishLogQuery 列表查询参数模型
- public class PublishLogQuery:PageInput
+ public class PublishLogQuery : PageInput
{
public string? Version { get; set; }
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/SysMessageModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/SysMessageModel.cs
index 24f7f5604..44b29f5f4 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/SysMessageModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/SysMessageModel.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace IRaCIS.Application.Contracts
+namespace IRaCIS.Application.Contracts
{
public class SysMessageDTO
{
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/SystemBasicDataViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/SystemBasicDataViewModel.cs
index 7758d3f5d..172632c61 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/SystemBasicDataViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/SystemBasicDataViewModel.cs
@@ -3,21 +3,17 @@
// 生成时间 2022-02-15 15:46:00
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Share;
-using Newtonsoft.Json;
-using System;
-using System.Collections.Generic;
namespace IRaCIS.Core.Application.Contracts
{
/// SystemBasicDataView 列表视图模型
- public class SystemBasicDataView: SystemBasicDataAddOrEdit
+ public class SystemBasicDataView : SystemBasicDataAddOrEdit
{
-
+
public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; }
public DateTime UpdateTime { get; set; }
public Guid UpdateUserId { get; set; }
-
+
}
@@ -34,7 +30,7 @@ namespace IRaCIS.Core.Application.Contracts
///SystemBasicDataQuery 列表查询参数模型
- public class SystemBasicDataQuery:PageInput
+ public class SystemBasicDataQuery : PageInput
{
/// Name
public string? Name { get; set; }
@@ -57,7 +53,7 @@ namespace IRaCIS.Core.Application.Contracts
public string ValueCN { get; set; } = string.Empty;
- public bool IsEnable { get; set; }=true;
+ public bool IsEnable { get; set; } = true;
}
diff --git a/IRaCIS.Core.Application/Service/Common/DTO/SystemLogModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/SystemLogModel.cs
index 32819a63b..98e1cc543 100644
--- a/IRaCIS.Core.Application/Service/Common/DTO/SystemLogModel.cs
+++ b/IRaCIS.Core.Application/Service/Common/DTO/SystemLogModel.cs
@@ -1,6 +1,4 @@
-using IRaCIS.Core.Infrastructure.Extention;
-
-namespace IRaCIS.Application.Contracts
+namespace IRaCIS.Application.Contracts
{
public class SystemLogDTO
{
@@ -22,7 +20,7 @@ namespace IRaCIS.Application.Contracts
{
public string Keyword { get; set; } = string.Empty;
public string LogCategory { get; set; } = string.Empty;
- public DateTime? BeginTime { get; set; }
+ public DateTime? BeginTime { get; set; }
public DateTime? EndTime { get; set; }
}
@@ -42,7 +40,7 @@ namespace IRaCIS.Application.Contracts
public Guid? OptUserId { get; set; }
- public DateTime? StartDate { get; set; }
+ public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
}
@@ -82,7 +80,7 @@ namespace IRaCIS.Application.Contracts
public class OptUserDto
{
- public Guid OptUserId { get; set; }
+ public Guid OptUserId { get; set; }
public string OptUser { get; set; } = string.Empty;
}
diff --git a/IRaCIS.Core.Application/Service/Common/DevelopService.cs b/IRaCIS.Core.Application/Service/Common/DevelopService.cs
index c70b19425..d441ee56d 100644
--- a/IRaCIS.Core.Application/Service/Common/DevelopService.cs
+++ b/IRaCIS.Core.Application/Service/Common/DevelopService.cs
@@ -1,9 +1,4 @@
using Microsoft.AspNetCore.Mvc;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace IRaCIS.Core.Application.Service.Common
{
diff --git a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs
index 5ad938f17..17abed632 100644
--- a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs
+++ b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs
@@ -1,22 +1,18 @@
-using IRaCIS.Application.Interfaces;
-using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Interfaces;
+using IRaCIS.Core.Domain.Share;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
-using IRaCIS.Core.Domain.Share;
-using IRaCIS.Core.Application.Contracts;
-using IRaCIS.Core.Infra.EFCore.Common;
-using IP2Region.Net.XDB;
-using System.Collections;
using System.Text;
-namespace IRaCIS.Application.Services
+namespace IRaCIS.Core.Application.Service
{
///
/// 数据字典-基础数据维护
///
[ApiExplorerSettings(GroupName = "Common")]
- public class DictionaryService (IRepository _dicRepository,
+ public class DictionaryService(IRepository _dicRepository,
IRepository _doctorDictionaryRepository,
IRepository _trialDictionaryRepository,
IRepository _doctorRepository,
@@ -52,7 +48,7 @@ namespace IRaCIS.Application.Services
enumCode.AppendLine("}");
// 返回生成的枚举代码
- var enumStr= enumCode.ToString();
+ var enumStr = enumCode.ToString();
return ResponseOutput.Ok(enumStr);
@@ -96,11 +92,11 @@ namespace IRaCIS.Application.Services
[HttpPost]
public async Task> GetAllDictionaryKey()
{
- var result =await _dicRepository.Where(t => t.ParentId == null).OrderBy(x=>x.Code).Select(x => x.Code).ToListAsync();
+ var result = await _dicRepository.Where(t => t.ParentId == null).OrderBy(x => x.Code).Select(x => x.Code).ToListAsync();
return result;
- }
+ }
///
/// 添加字典 的同时 一起添加子项 --New
@@ -117,10 +113,10 @@ namespace IRaCIS.Application.Services
IsVerify = true
};
-
- if((addBasicDicAndChild.DataTypeEnum == DicDataTypeEnum.Enum || addBasicDicAndChild.DataTypeEnum == DicDataTypeEnum.Bool))
+
+ if ((addBasicDicAndChild.DataTypeEnum == DicDataTypeEnum.Enum || addBasicDicAndChild.DataTypeEnum == DicDataTypeEnum.Bool))
{
- if(addBasicDicAndChild.ChildList.GroupBy(t => t.Code).Where(g => g.Count() > 1).Any())
+ if (addBasicDicAndChild.ChildList.GroupBy(t => t.Code).Where(g => g.Count() > 1).Any())
{
return ResponseOutput.NotOk(_localizer["Dictionary_RepeateCode"]);
}
@@ -187,11 +183,11 @@ namespace IRaCIS.Application.Services
var verifyExp2 = new EntityVerifyExp()
{
- VerifyExp = t => t.Code == addOrEditBasic.Code && t.ParentId == addOrEditBasic.ParentId && t.Code==addOrEditBasic.Code,
+ VerifyExp = t => t.Code == addOrEditBasic.Code && t.ParentId == addOrEditBasic.ParentId && t.Code == addOrEditBasic.Code,
VerifyMsg = _localizer["Dictionary_RepeateCode"],
- IsVerify = addOrEditBasic.ParentId != null && (addOrEditBasic.DataTypeEnum == DicDataTypeEnum.Enum || addOrEditBasic.DataTypeEnum == DicDataTypeEnum.Bool)
+ IsVerify = addOrEditBasic.ParentId != null && (addOrEditBasic.DataTypeEnum == DicDataTypeEnum.Enum || addOrEditBasic.DataTypeEnum == DicDataTypeEnum.Bool)
};
@@ -236,14 +232,14 @@ namespace IRaCIS.Application.Services
//return ResponseOutput.NotOk(_localizer["Dictionary_DictionaryDeletion"]);
}
- if (await _readingTrialCriterionDictionaryRepository.AnyAsync(x => x.DictionaryId == id))
- {
- await _readingTrialCriterionDictionaryRepository.BatchDeleteNoTrackingAsync(t => t.DictionaryId == id);
- //---当前字典在标准中被引用,不允许删除!
- //return ResponseOutput.NotOk(_localizer["Dictionary_DictionaryDeletion"]);
- }
+ if (await _readingTrialCriterionDictionaryRepository.AnyAsync(x => x.DictionaryId == id))
+ {
+ await _readingTrialCriterionDictionaryRepository.BatchDeleteNoTrackingAsync(t => t.DictionaryId == id);
+ //---当前字典在标准中被引用,不允许删除!
+ //return ResponseOutput.NotOk(_localizer["Dictionary_DictionaryDeletion"]);
+ }
- if (await _dicRepository.AnyAsync(t => t.ParentId == id))
+ if (await _dicRepository.AnyAsync(t => t.ParentId == id))
{
//---有子项数据,不允许直接删除!
return ResponseOutput.NotOk(_localizer["Dictionary_SubitemDeletion"]);
@@ -279,7 +275,7 @@ namespace IRaCIS.Application.Services
public async Task>> GetBasicDataSelect(string[] searchArray)
{
- var searchList = await _dicRepository.Where(t => searchArray.Contains(t.Parent.Code) && t.ParentId != null && t.IsEnable).ProjectTo(_mapper.ConfigurationProvider,new { isEn_Us = _userInfo.IsEn_Us}).ToListAsync();
+ var searchList = await _dicRepository.Where(t => searchArray.Contains(t.Parent.Code) && t.ParentId != null && t.IsEnable).ProjectTo(_mapper.ConfigurationProvider, new { isEn_Us = _userInfo.IsEn_Us }).ToListAsync();
return searchList.GroupBy(t => t.ParentCode).ToDictionary(g => g.Key, g => g.OrderBy(t => t.ShowOrder).ToList());
@@ -397,45 +393,45 @@ namespace IRaCIS.Application.Services
List selectCode = new List();
List criterionDictionList = new List();
- var isSystemCriterion = await _readingQuestionCriterionSystem.AnyAsync(x => x.Id == inDto.ReadingCriterionId);
+ var isSystemCriterion = await _readingQuestionCriterionSystem.AnyAsync(x => x.Id == inDto.ReadingCriterionId);
if (isSystemCriterion)
{
selectCode = await _systemCriterionDictionaryCodeRepository.Where(x => x.SystemCriterionId == inDto.ReadingCriterionId).Select(x => x.Code).ToListAsync();
- criterionDictionList = await _readingCriterionDictionaryRepository.Where(x => x.CriterionId == inDto.ReadingCriterionId).Select(x => new BasicDicSelect()
- {
- ChildGroup = x.Dictionary.ChildGroup,
- Code = x.Dictionary.Code,
- DataTypeEnum = x.Dictionary.DataTypeEnum,
- ShowOrder = x.Dictionary.ShowOrder,
- ParentCode = x.ParentCode,
- CrterionDictionaryGroup = x.CrterionDictionaryGroup,
- Id = x.DictionaryId,
- ParentId = x.Dictionary.ParentId,
- Value = x.Dictionary.Value,
- ValueCN = x.Dictionary.ValueCN
+ criterionDictionList = await _readingCriterionDictionaryRepository.Where(x => x.CriterionId == inDto.ReadingCriterionId).Select(x => new BasicDicSelect()
+ {
+ ChildGroup = x.Dictionary.ChildGroup,
+ Code = x.Dictionary.Code,
+ DataTypeEnum = x.Dictionary.DataTypeEnum,
+ ShowOrder = x.Dictionary.ShowOrder,
+ ParentCode = x.ParentCode,
+ CrterionDictionaryGroup = x.CrterionDictionaryGroup,
+ Id = x.DictionaryId,
+ ParentId = x.Dictionary.ParentId,
+ Value = x.Dictionary.Value,
+ ValueCN = x.Dictionary.ValueCN
- }).ToListAsync();
- }
+ }).ToListAsync();
+ }
else
{
selectCode = await _trialCriterionDictionaryCodeRepository.Where(x => x.TrialCriterionId == inDto.ReadingCriterionId).Select(x => x.Code).ToListAsync();
- criterionDictionList = await _readingTrialCriterionDictionaryRepository.Where(x => x.CriterionId == inDto.ReadingCriterionId).Select(x => new BasicDicSelect()
- {
- ChildGroup = x.Dictionary.ChildGroup,
- Code = x.Dictionary.Code,
- DataTypeEnum = x.Dictionary.DataTypeEnum,
- ShowOrder = x.Dictionary.ShowOrder,
- ParentCode = x.ParentCode,
- CrterionDictionaryGroup = x.CrterionDictionaryGroup,
- Id = x.DictionaryId,
- ParentId = x.Dictionary.ParentId,
- Value = x.Dictionary.Value,
- ValueCN = x.Dictionary.ValueCN
+ criterionDictionList = await _readingTrialCriterionDictionaryRepository.Where(x => x.CriterionId == inDto.ReadingCriterionId).Select(x => new BasicDicSelect()
+ {
+ ChildGroup = x.Dictionary.ChildGroup,
+ Code = x.Dictionary.Code,
+ DataTypeEnum = x.Dictionary.DataTypeEnum,
+ ShowOrder = x.Dictionary.ShowOrder,
+ ParentCode = x.ParentCode,
+ CrterionDictionaryGroup = x.CrterionDictionaryGroup,
+ Id = x.DictionaryId,
+ ParentId = x.Dictionary.ParentId,
+ Value = x.Dictionary.Value,
+ ValueCN = x.Dictionary.ValueCN
- }).ToListAsync();
- }
+ }).ToListAsync();
+ }
var criterionCode = await _dicRepository.Where(x => x.ConfigDictionary.Code == "Reading_eCRF_Criterion").Select(x => x.Code).ToListAsync();
@@ -450,7 +446,7 @@ namespace IRaCIS.Application.Services
}
-
+
criterionDictionList = criterionDictionList.Where(x => selectCode.Contains(x.ParentCode)).ToList();
@@ -542,48 +538,48 @@ namespace IRaCIS.Application.Services
}
else
{
- List selectCode = await _systemCriterionDictionaryCodeRepository.Where(x => x.SystemCriterionId == inDto.SystemReadingCriterionId).Select(x => x.Code).ToListAsync();
+ List selectCode = await _systemCriterionDictionaryCodeRepository.Where(x => x.SystemCriterionId == inDto.SystemReadingCriterionId).Select(x => x.Code).ToListAsync();
- var criterionCode = await _dicRepository.Where(x => x.ConfigDictionary.Code == "Reading_eCRF_Criterion").Select(x => x.Code).ToListAsync();
+ var criterionCode = await _dicRepository.Where(x => x.ConfigDictionary.Code == "Reading_eCRF_Criterion").Select(x => x.Code).ToListAsync();
- foreach (var item in criterionCode)
- {
- if (result.ContainsKey(item))
- {
- result[item] = new List();
- }
- }
+ foreach (var item in criterionCode)
+ {
+ if (result.ContainsKey(item))
+ {
+ result[item] = new List();
+ }
+ }
- var criterionDictionList = await _readingSystemCriterionDictionaryRepository.Where(x => x.CriterionId == inDto.SystemReadingCriterionId).Select(x => new BasicDicSelect()
- {
- ChildGroup = x.Dictionary.ChildGroup,
- Code = x.Dictionary.Code,
- Description = x.Dictionary.Description,
- DataTypeEnum = x.Dictionary.DataTypeEnum,
- ShowOrder = x.Dictionary.ShowOrder,
- ParentCode = x.ParentCode,
- Id = x.DictionaryId,
- CrterionDictionaryGroup = x.CrterionDictionaryGroup,
- ParentId = x.Dictionary.ParentId,
- Value = x.Dictionary.Value,
- ValueCN = x.Dictionary.ValueCN
+ var criterionDictionList = await _readingSystemCriterionDictionaryRepository.Where(x => x.CriterionId == inDto.SystemReadingCriterionId).Select(x => new BasicDicSelect()
+ {
+ ChildGroup = x.Dictionary.ChildGroup,
+ Code = x.Dictionary.Code,
+ Description = x.Dictionary.Description,
+ DataTypeEnum = x.Dictionary.DataTypeEnum,
+ ShowOrder = x.Dictionary.ShowOrder,
+ ParentCode = x.ParentCode,
+ Id = x.DictionaryId,
+ CrterionDictionaryGroup = x.CrterionDictionaryGroup,
+ ParentId = x.Dictionary.ParentId,
+ Value = x.Dictionary.Value,
+ ValueCN = x.Dictionary.ValueCN
- }).ToListAsync();
+ }).ToListAsync();
- criterionDictionList = criterionDictionList.Where(x => selectCode.Contains(x.ParentCode)).ToList();
+ criterionDictionList = criterionDictionList.Where(x => selectCode.Contains(x.ParentCode)).ToList();
- var criterionDic = criterionDictionList.GroupBy(x => x.ParentCode).ToDictionary(g => g.Key, g => g.OrderBy(t => t.ShowOrder).ToList());
+ var criterionDic = criterionDictionList.GroupBy(x => x.ParentCode).ToDictionary(g => g.Key, g => g.OrderBy(t => t.ShowOrder).ToList());
- foreach (var item in criterionDic)
- {
- result[item.Key] = item.Value;
- }
+ foreach (var item in criterionDic)
+ {
+ result[item.Key] = item.Value;
+ }
- return result;
+ return result;
- }
+ }
}
diff --git a/IRaCIS.Core.Application/Service/Common/EmailNoticeConfigService.cs b/IRaCIS.Core.Application/Service/Common/EmailNoticeConfigService.cs
index 3a18b40e9..b77f5bdbe 100644
--- a/IRaCIS.Core.Application/Service/Common/EmailNoticeConfigService.cs
+++ b/IRaCIS.Core.Application/Service/Common/EmailNoticeConfigService.cs
@@ -5,7 +5,6 @@
//--------------------------------------------------------------------
using IRaCIS.Core.Domain.Share;
-using IRaCIS.Core.Infra.EFCore;
using Microsoft.AspNetCore.Mvc;
using System.Text.RegularExpressions;
@@ -18,13 +17,13 @@ namespace IRaCIS.Core.Application.Contracts
public class EmailNoticeConfigService(IRepository _emailNoticeConfigrepository,
IRepository _emailNoticeUserTypeRepository) : BaseService, IEmailNoticeConfigService
{
-
+
[HttpPost]
public async Task> GetEmailNoticeConfigList(EmailNoticeConfigQuery inQuery)
{
var emailNoticeConfigQueryable = _emailNoticeConfigrepository
.WhereIf(inQuery.SystemLevel == null, t => t.SystemLevel == SysEmailLevel.not_sys)
- .WhereIf(inQuery.SystemLevel!=null, t =>t.SystemLevel == inQuery.SystemLevel)
+ .WhereIf(inQuery.SystemLevel != null, t => t.SystemLevel == inQuery.SystemLevel)
.WhereIf(inQuery.IsDistinguishCriteria != null, t => t.IsDistinguishCriteria == inQuery.IsDistinguishCriteria)
.WhereIf(inQuery.CriterionTypeEnum != null, t => t.CriterionTypeEnum == inQuery.CriterionTypeEnum)
.WhereIf(inQuery.BusinessScenarioEnum != null, t => t.BusinessScenarioEnum == inQuery.BusinessScenarioEnum)
@@ -48,8 +47,8 @@ namespace IRaCIS.Core.Application.Contracts
// 匹配所有占位符的正则表达式,允许包含空格的占位符
var regex = new Regex(@"\{\s*\d+\s*\}");
- if (regex.Matches($"{addOrEditEmailNoticeConfig.EmailTopic}{addOrEditEmailNoticeConfig.EmailTopicCN}{addOrEditEmailNoticeConfig.EmailHtmlContent}{addOrEditEmailNoticeConfig.EmailHtmlContentCN}" )
- .Any(t=>t.Value.Contains(" ")))
+ if (regex.Matches($"{addOrEditEmailNoticeConfig.EmailTopic}{addOrEditEmailNoticeConfig.EmailTopicCN}{addOrEditEmailNoticeConfig.EmailHtmlContent}{addOrEditEmailNoticeConfig.EmailHtmlContentCN}")
+ .Any(t => t.Value.Contains(" ")))
{
//邮件模板占位符不允许有空格,请核查占位符的地方
return ResponseOutput.NotOk("EmailNoticeConfig_ContainEmpty");
@@ -98,7 +97,7 @@ namespace IRaCIS.Core.Application.Contracts
}
- var entity = await _emailNoticeConfigrepository.UpdateFromDTOAsync(addOrEditEmailNoticeConfig, true, false,verifyExp1);
+ var entity = await _emailNoticeConfigrepository.UpdateFromDTOAsync(addOrEditEmailNoticeConfig, true, false, verifyExp1);
return ResponseOutput.Ok(entity.Id.ToString());
diff --git a/IRaCIS.Core.Application/Service/Common/ExcelExportService.cs b/IRaCIS.Core.Application/Service/Common/ExcelExportService.cs
index fcb0823f4..91e2206a8 100644
--- a/IRaCIS.Core.Application/Service/Common/ExcelExportService.cs
+++ b/IRaCIS.Core.Application/Service/Common/ExcelExportService.cs
@@ -1,29 +1,14 @@
-using DocumentFormat.OpenXml.Office2010.ExcelAc;
-using DocumentFormat.OpenXml.Presentation;
-using DocumentFormat.OpenXml.Spreadsheet;
-using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Contracts;
using IRaCIS.Application.Interfaces;
using IRaCIS.Core.API._ServiceExtensions.NewtonsoftJson;
using IRaCIS.Core.Application.Contracts;
using IRaCIS.Core.Application.Contracts.DTO;
-using IRaCIS.Core.Application.Service.Reading.Dto;
using IRaCIS.Core.Application.ViewModel;
using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Infra.EFCore.Common;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
-using MiniExcelLibs;
-using MiniExcelLibs.OpenXml;
-using NPOI.HPSF;
-using NPOI.HSSF.UserModel;
-using NPOI.SS.Formula.Functions;
using NPOI.XSSF.UserModel;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace IRaCIS.Core.Application.Service.Common
{
@@ -87,7 +72,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialUserList_Export, exportInfo, exportInfo.TrialCode, _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(TrialMaintenanceDTO));
@@ -133,7 +118,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
@@ -188,7 +173,7 @@ namespace IRaCIS.Core.Application.Service.Common
var exportInfo = data;
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialSiteUserSummary_Export, exportInfo, exportInfo.TrialCode, _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(TrialSiteUserSummaryDto));
@@ -220,7 +205,7 @@ namespace IRaCIS.Core.Application.Service.Common
var query = _trialRepository.AsQueryable()
- .WhereIf(inQuery.TrialIdList.Count()>0, o => inQuery.TrialIdList.Contains(o.Id))
+ .WhereIf(inQuery.TrialIdList.Count() > 0, o => inQuery.TrialIdList.Contains(o.Id))
.WhereIf(inQuery.SponsorId != null, o => o.SponsorId == inQuery.SponsorId)
.WhereIf(!string.IsNullOrEmpty(inQuery.Code), o => o.TrialCode.Contains(inQuery.Code))
@@ -314,7 +299,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialList_Export, exportInfo, exportInfo.TrialCode, _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(TrialToBeDoneDto));
@@ -348,7 +333,7 @@ namespace IRaCIS.Core.Application.Service.Common
[FromServices] IRepository _trialRepository
)
{
- var trialInfo = (await _trialRepository.Where(t => t.Id == inQuery.TrialId).Select(t => new { t.TrialFinishedTime, t.TrialStatusStr }).FirstNotNullAsync());
+ var trialInfo = (await _trialRepository.Where(t => t.Id == inQuery.TrialId).Select(t => new { t.TrialFinishedTime, t.TrialStatusStr }).FirstNotNullAsync());
var trialDocQuery = from trialDocumentNeedConfirmedUserType in _trialDocNeedConfirmedUserTypeRepository.Where(t => t.TrialDocument.TrialId == inQuery.TrialId)
join trialUser in _trialUserRepository.Where(t => t.TrialId == inQuery.TrialId)
@@ -433,7 +418,7 @@ namespace IRaCIS.Core.Application.Service.Common
var exportInfo = (await _trialRepository.Where(t => t.Id == inQuery.TrialId).IgnoreQueryFilters().ProjectTo(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
- exportInfo.List=list;
+ exportInfo.List = list;
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
@@ -491,7 +476,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialCRCUploadImageList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(CRCVisitExportDTO));
@@ -550,7 +535,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialQCVisitImageList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(CRCVisitExportDTO));
@@ -600,7 +585,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialQCImageChanllengeList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(QCChanllengeExportDto));
}
@@ -644,7 +629,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialSubjectList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(SubjectExportDTO));
@@ -720,7 +705,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
var (memoryStream, fileName) = await ExcelExportHelper.DataExport_NpoiTestAsync(StaticData.Export.TrialSubjectProgressList_Export, exportInfo, /*"", */_commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(SubjectProgressDto));
@@ -866,7 +851,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialStudyUploadMonitor_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(UnionStudyMonitorExportDto));
@@ -903,7 +888,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialSubjectReadingPeriodList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(ReadPeriodExportDto));
@@ -993,7 +978,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialStudyList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(UnionStudyExportDTO));
}
@@ -1034,7 +1019,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialSubjectVisitCheckList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(PMKCheckEXportDTO));
}
@@ -1087,7 +1072,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialReadingTaskList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(ReadingTaskExportDto));
}
@@ -1153,7 +1138,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialReReadingTaskList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(ReReadingTaskExportDto));
}
@@ -1213,7 +1198,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialMedicalReviewList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(TaskMedicalReviewExportDto));
}
@@ -1298,7 +1283,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.CriterionName = await _readingQuestionCriterionTrialRepository.Where(u => u.TrialId == queryVisitTask.TrialId && u.IsConfirm && u.Id == queryVisitTask.TrialReadingCriterionId).Select(t => t.CriterionName).FirstOrDefaultAsync();
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialSelfAnalysisList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}_{exportInfo.CriterionName}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(SelftAnalysisExport));
}
@@ -1402,7 +1387,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.CriterionName = await _readingQuestionCriterionTrialRepository.Where(u => u.TrialId == queryVisitTask.TrialId && u.IsConfirm && u.Id == queryVisitTask.TrialReadingCriterionId).Select(t => t.CriterionName).FirstOrDefaultAsync();
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(newList, _userInfo.TimeZoneId); ;
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialGroupAnalysisList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}_{exportInfo.CriterionName}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(GroupAnalysisExport));
}
@@ -1680,7 +1665,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list.Where(t => t.ReadingCategory != ReadingCategory.Global).ToList(), _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.OverallTumorEvaluation_Export, exportInfo, $"{exportInfo.ResearchProgramNo}_{exportInfo.CriterionName}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(OverallTumorEvaluationExport), criterion.CriterionType);
@@ -1740,7 +1725,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(list.Where(t => t.ReadingCategory != ReadingCategory.Global).ToList(), _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.RECIST1Point1EvaluationOfTumorEfficacy_Export, exportInfo, $"{exportInfo.ResearchProgramNo}_{exportInfo.CriterionName}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(RECIST1Point1EvaluationOfTumorEfficacyExport), criterion.CriterionType);
@@ -1829,7 +1814,7 @@ namespace IRaCIS.Core.Application.Service.Common
list = DealJudgeMark(criterion.ArbitrationRule, list);
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(exportList, _userInfo.TimeZoneId);
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.RECIST1Point1DetailedOfEvaluatedLesion_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(RECIST1Point1DetailedOfEvaluatedLesionExport), criterion.CriterionType);
@@ -1864,7 +1849,7 @@ namespace IRaCIS.Core.Application.Service.Common
exportInfo.List = ExportExcelConverterDate.ConvertToClientTimeInObject(exportList, _userInfo.TimeZoneId); ;
exportInfo.CurrentTime = ExportExcelConverterDate.DateTimeInternationalToString(DateTime.Now, _userInfo.TimeZoneId);
-
+
return await ExcelExportHelper.DataExportAsync(StaticData.Export.PCWG3Point1DetailedOfEvaluatedLesion_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(PCWG3DetailedOfEvaluatedLesionExport), criterion.CriterionType);
diff --git a/IRaCIS.Core.Application/Service/Common/ExploreRecommendService.cs b/IRaCIS.Core.Application/Service/Common/ExploreRecommendService.cs
index bccf65ff2..8040f8a90 100644
--- a/IRaCIS.Core.Application/Service/Common/ExploreRecommendService.cs
+++ b/IRaCIS.Core.Application/Service/Common/ExploreRecommendService.cs
@@ -4,11 +4,10 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using Microsoft.AspNetCore.Mvc;
using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.ViewModel;
using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Mvc;
namespace IRaCIS.Core.Application.Service
{
///
@@ -47,7 +46,7 @@ namespace IRaCIS.Core.Application.Service
VerifyExp = u => u.IsDeleted == addOrEditExploreRecommend.IsDeleted && u.ExploreType == addOrEditExploreRecommend.ExploreType,
// "当前类型浏览器启用版本只允许有一个"
- VerifyMsg = _localizer["ExploreRecommend_OnlyOneTypePerType"] ,
+ VerifyMsg = _localizer["ExploreRecommend_OnlyOneTypePerType"],
IsVerify = addOrEditExploreRecommend.IsDeleted == false
};
@@ -62,18 +61,18 @@ namespace IRaCIS.Core.Application.Service
[HttpDelete("{exploreRecommendId:guid}")]
public async Task DeleteExploreRecommend(Guid exploreRecommendId)
{
- var success = await _exploreRecommendRepository.DeleteFromQueryAsync(t => t.Id == exploreRecommendId, true,true);
+ var success = await _exploreRecommendRepository.DeleteFromQueryAsync(t => t.Id == exploreRecommendId, true, true);
return ResponseOutput.Ok();
}
[AllowAnonymous]
- public async Task > GetExploreRecommentInfo()
+ public async Task> GetExploreRecommentInfo()
{
var result = await _exploreRecommendRepository.Where(t => t.IsDeleted == false).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
- if (result .Count==0)
+ if (result.Count == 0)
{ //"系统浏览器版本推荐未维护,请联系维护人员"
throw new QueryBusinessObjectNotExistException(_localizer["ExploreRecommend_NoExporeRecord"]);
}
diff --git a/IRaCIS.Core.Application/Service/Common/FileService.cs b/IRaCIS.Core.Application/Service/Common/FileService.cs
index 912a8c41d..90f0b29d2 100644
--- a/IRaCIS.Core.Application/Service/Common/FileService.cs
+++ b/IRaCIS.Core.Application/Service/Common/FileService.cs
@@ -1,12 +1,10 @@
using IRaCIS.Application.Interfaces;
-using System.Text;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-using IRaCIS.Core.Infrastructure;
using IRaCIS.Core.Application.Helper;
+using IRaCIS.Core.Infrastructure;
using Microsoft.AspNetCore.Hosting;
+using System.Text;
-namespace IRaCIS.Application.Services
+namespace IRaCIS.Core.Application.Service
{
public class FileService(
IDoctorService _doctorService,
diff --git a/IRaCIS.Core.Application/Service/Common/Interface/ICommonDocumentService.cs b/IRaCIS.Core.Application/Service/Common/Interface/ICommonDocumentService.cs
index ef38e62c5..798474c74 100644
--- a/IRaCIS.Core.Application/Service/Common/Interface/ICommonDocumentService.cs
+++ b/IRaCIS.Core.Application/Service/Common/Interface/ICommonDocumentService.cs
@@ -6,19 +6,19 @@
using IRaCIS.Core.Application.ViewModel;
namespace IRaCIS.Core.Application.Interfaces
-{
- ///
- /// ICommonDocumentService
- ///
- public interface ICommonDocumentService
+{
+ ///
+ /// ICommonDocumentService
+ ///
+ public interface ICommonDocumentService
{
-
- Task> GetCommonDocumentList(CommonDocumentQuery queryCommonDocument);
-
- Task AddOrUpdateCommonDocument(CommonDocumentAddOrEdit addOrEditCommonDocument);
+
+ Task> GetCommonDocumentList(CommonDocumentQuery queryCommonDocument);
+
+ Task AddOrUpdateCommonDocument(CommonDocumentAddOrEdit addOrEditCommonDocument);
+
-
}
-}
+}
diff --git a/IRaCIS.Core.Application/Service/Common/Interface/IDictionaryService.cs b/IRaCIS.Core.Application/Service/Common/Interface/IDictionaryService.cs
index 0a2b34f91..7054cfc80 100644
--- a/IRaCIS.Core.Application/Service/Common/Interface/IDictionaryService.cs
+++ b/IRaCIS.Core.Application/Service/Common/Interface/IDictionaryService.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
namespace IRaCIS.Application.Interfaces
{
@@ -12,7 +9,7 @@ namespace IRaCIS.Application.Interfaces
///
///
///
- Task GetBoolValueState(bool value);
+ Task GetBoolValueState(bool value);
///
/// 获取审核状态
@@ -21,7 +18,7 @@ namespace IRaCIS.Application.Interfaces
///
///
///
- Task GetAuditState(Guid trial, T childCode);
+ Task GetAuditState(Guid trial, T childCode);
///
/// 获取枚举翻译
diff --git a/IRaCIS.Core.Application/Service/Common/Interface/IExploreRecommendService.cs b/IRaCIS.Core.Application/Service/Common/Interface/IExploreRecommendService.cs
index 2dc5556b2..47e940895 100644
--- a/IRaCIS.Core.Application/Service/Common/Interface/IExploreRecommendService.cs
+++ b/IRaCIS.Core.Application/Service/Common/Interface/IExploreRecommendService.cs
@@ -6,19 +6,19 @@
using IRaCIS.Core.Application.ViewModel;
namespace IRaCIS.Core.Application.Interfaces
-{
- ///
- /// IExploreRecommendService
- ///
- public interface IExploreRecommendService
+{
+ ///
+ /// IExploreRecommendService
+ ///
+ public interface IExploreRecommendService
{
- Task> GetExploreRecommendList(ExploreRecommendQuery inQuery);
-
- Task AddOrUpdateExploreRecommend(ExploreRecommendAddOrEdit addOrEditExploreRecommend);
+ Task> GetExploreRecommendList(ExploreRecommendQuery inQuery);
+
+ Task AddOrUpdateExploreRecommend(ExploreRecommendAddOrEdit addOrEditExploreRecommend);
+
+ Task DeleteExploreRecommend(Guid exploreRecommendId);
- Task DeleteExploreRecommend(Guid exploreRecommendId);
-
}
-}
+}
diff --git a/IRaCIS.Core.Application/Service/Common/Interface/IFileService.cs b/IRaCIS.Core.Application/Service/Common/Interface/IFileService.cs
index 10c6c072a..abc9c6bb8 100644
--- a/IRaCIS.Core.Application/Service/Common/Interface/IFileService.cs
+++ b/IRaCIS.Core.Application/Service/Common/Interface/IFileService.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace IRaCIS.Application.Interfaces
+namespace IRaCIS.Application.Interfaces
{
public interface IFileService
{
diff --git a/IRaCIS.Core.Application/Service/Common/Interface/IFrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Common/Interface/IFrontAuditConfigService.cs
index b8c0cabab..dc7a0ad11 100644
--- a/IRaCIS.Core.Application/Service/Common/Interface/IFrontAuditConfigService.cs
+++ b/IRaCIS.Core.Application/Service/Common/Interface/IFrontAuditConfigService.cs
@@ -6,20 +6,20 @@
using IRaCIS.Core.Application.ViewModel;
namespace IRaCIS.Core.Application.Interfaces
-{
- ///
- /// IFrontAuditConfigService
- ///
- public interface IFrontAuditConfigService
+{
+ ///
+ /// IFrontAuditConfigService
+ ///
+ public interface IFrontAuditConfigService
{
-
- Task> GetFrontAuditConfigList(FrontAuditConfigQuery queryFrontAuditConfig);
-
- Task AddOrUpdateFrontAuditConfig(FrontAuditConfigAddOrEdit addOrEditFrontAuditConfig);
- Task DeleteFrontAuditConfig(Guid frontAuditConfigId);
+ Task> GetFrontAuditConfigList(FrontAuditConfigQuery queryFrontAuditConfig);
+
+ Task AddOrUpdateFrontAuditConfig(FrontAuditConfigAddOrEdit addOrEditFrontAuditConfig);
+
+ Task DeleteFrontAuditConfig(Guid frontAuditConfigId);
+
-
}
-}
+}
diff --git a/IRaCIS.Core.Application/Service/Common/Interface/ILogService.cs b/IRaCIS.Core.Application/Service/Common/Interface/ILogService.cs
index 706b3a0f8..16f8a24f1 100644
--- a/IRaCIS.Core.Application/Service/Common/Interface/ILogService.cs
+++ b/IRaCIS.Core.Application/Service/Common/Interface/ILogService.cs
@@ -1,7 +1,4 @@
-using System;
-using IRaCIS.Application.Contracts;
-using System.Collections.Generic;
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
namespace IRaCIS.Application.Interfaces
{
diff --git a/IRaCIS.Core.Application/Service/Common/Interface/IMessageService.cs b/IRaCIS.Core.Application/Service/Common/Interface/IMessageService.cs
index ddaf0c27e..cf27da4ba 100644
--- a/IRaCIS.Core.Application/Service/Common/Interface/IMessageService.cs
+++ b/IRaCIS.Core.Application/Service/Common/Interface/IMessageService.cs
@@ -1,6 +1,4 @@
-using System;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
namespace IRaCIS.Application.Interfaces
{
diff --git a/IRaCIS.Core.Application/Service/Common/Interface/IPublishLogService.cs b/IRaCIS.Core.Application/Service/Common/Interface/IPublishLogService.cs
index 600cff5a7..78b1bc5a1 100644
--- a/IRaCIS.Core.Application/Service/Common/Interface/IPublishLogService.cs
+++ b/IRaCIS.Core.Application/Service/Common/Interface/IPublishLogService.cs
@@ -6,19 +6,19 @@
using IRaCIS.Core.Application.ViewModel;
namespace IRaCIS.Core.Application.Interfaces
-{
- ///
- /// IPublishLogService
- ///
- public interface IPublishLogService
+{
+ ///
+ /// IPublishLogService
+ ///
+ public interface IPublishLogService
{
- Task> GetPublishLogList(PublishLogQuery inQuery);
-
- Task AddOrUpdatePublishLog(PublishLogAddOrEdit addOrEditPublishLog);
+ Task> GetPublishLogList(PublishLogQuery inQuery);
+
+ Task AddOrUpdatePublishLog(PublishLogAddOrEdit addOrEditPublishLog);
+
+ Task DeletePublishLog(Guid publishLogId);
- Task DeletePublishLog(Guid publishLogId);
-
}
-}
+}
diff --git a/IRaCIS.Core.Application/Service/Common/Interface/ISystemBasicDataService.cs b/IRaCIS.Core.Application/Service/Common/Interface/ISystemBasicDataService.cs
index c0b884446..a36f159bc 100644
--- a/IRaCIS.Core.Application/Service/Common/Interface/ISystemBasicDataService.cs
+++ b/IRaCIS.Core.Application/Service/Common/Interface/ISystemBasicDataService.cs
@@ -6,20 +6,20 @@
namespace IRaCIS.Core.Application.Contracts
-{
- ///
- /// ISystemBasicDataService
- ///
- public interface ISystemBasicDataService
+{
+ ///
+ /// ISystemBasicDataService
+ ///
+ public interface ISystemBasicDataService
{
-
- Task> GetSystemBasicDataList(SystemBasicDataQuery querySystemBasicData);
-
- Task AddOrUpdateSystemBasicData(SystemBasicDataAddOrEdit addOrEditSystemBasicData);
- Task DeleteSystemBasicData(Guid systemBasicDataId);
+ Task> GetSystemBasicDataList(SystemBasicDataQuery querySystemBasicData);
+
+ Task AddOrUpdateSystemBasicData(SystemBasicDataAddOrEdit addOrEditSystemBasicData);
+
+ Task DeleteSystemBasicData(Guid systemBasicDataId);
+
-
}
-}
+}
diff --git a/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs b/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs
index ae9823627..0a4663b0d 100644
--- a/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs
+++ b/IRaCIS.Core.Application/Service/Common/InternationalizationService.cs
@@ -4,13 +4,11 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using Microsoft.AspNetCore.Mvc;
+using IRaCIS.Core.Application.Helper;
using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.ViewModel;
using Microsoft.AspNetCore.Authorization;
-using IRaCIS.Core.Application.Helper;
-using IRaCIS.Core.Domain.Share;
+using Microsoft.AspNetCore.Mvc;
using ZiggyCreatures.Caching.Fusion;
namespace IRaCIS.Core.Application.Service
@@ -19,9 +17,9 @@ namespace IRaCIS.Core.Application.Service
/// InternationalizationService
///
[ApiExplorerSettings(GroupName = "Common")]
- public class InternationalizationService (IRepository _internationalizationRepository) : BaseService, IInternationalizationService
+ public class InternationalizationService(IRepository _internationalizationRepository) : BaseService, IInternationalizationService
{
-
+
///
/// 前端国际化内容接口
@@ -140,7 +138,7 @@ namespace IRaCIS.Core.Application.Service
await _internationalizationRepository.SaveChangesAsync();
//清理缓存
- await _fusionCache.SetAsync>(CacheKeys.FrontInternational, new List(), TimeSpan.FromDays(1));
+ await _fusionCache.SetAsync>(CacheKeys.FrontInternational, new List(), TimeSpan.FromDays(1));
return ResponseOutput.Ok();
}
@@ -181,7 +179,7 @@ namespace IRaCIS.Core.Application.Service
else
{
//清理缓存
- await _fusionCache.SetAsync>(CacheKeys.FrontInternational, new List(), TimeSpan.FromDays(1));
+ await _fusionCache.SetAsync>(CacheKeys.FrontInternational, new List(), TimeSpan.FromDays(1));
}
return ResponseOutput.Ok(entity.Id.ToString());
diff --git a/IRaCIS.Core.Application/Service/Common/MailService.cs b/IRaCIS.Core.Application/Service/Common/MailService.cs
index c9b05b161..a0f71c036 100644
--- a/IRaCIS.Core.Application/Service/Common/MailService.cs
+++ b/IRaCIS.Core.Application/Service/Common/MailService.cs
@@ -1,29 +1,15 @@
-using IRaCIS.Core.Domain.Share;
-using MimeKit;
-using IRaCIS.Core.Application.Helper;
-using MailKit;
-using Microsoft.AspNetCore.Hosting;
+using IRaCIS.Application.Contracts;
using IRaCIS.Core.Application.Auth;
-using AutoMapper;
-using IRaCIS.Application.Contracts;
-using Microsoft.Extensions.Options;
-using Medallion.Threading;
-using System.Text.RegularExpressions;
+using IRaCIS.Core.Application.Helper;
+using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Infrastructure;
-using DocumentFormat.OpenXml.Spreadsheet;
-using IRaCIS.Core.Application.Service.Reading.Dto;
-using NPOI.SS.Formula.Functions;
-using Microsoft.AspNetCore.Mvc.ViewFeatures;
-using IRaCIS.Core.Domain.Models;
-using DocumentFormat.OpenXml.Office2013.Excel;
-using IRaCIS.Core.Application.Contracts;
-using DocumentFormat.OpenXml.Vml;
-using System.Net.Mail;
-using IP2Region.Net.XDB;
-using NPOI.SS.Formula.Eval;
-using System.Linq;
+using MailKit;
+using Medallion.Threading;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Options;
+using MimeKit;
-namespace IRaCIS.Application.Services
+namespace IRaCIS.Core.Application.Service
{
public interface IMailVerificationService
{
@@ -72,7 +58,7 @@ namespace IRaCIS.Application.Services
{
private readonly SystemEmailSendConfig _systemEmailConfig = systemEmailConfig.CurrentValue;
-
+
private async Task GetEmailSubejctAndHtmlInfoAndBuildAsync(EmailBusinessScenario scenario, MimeMessage messageToSend,
Func<(string topicStr, string htmlBodyStr), (string topicStr, string htmlBodyStr)> emailFunc)
{
@@ -818,7 +804,7 @@ namespace IRaCIS.Application.Services
var emailType = await _dictionaryRepository.Where(t => t.Parent.Code == "Email_BusinessScenario" && t.ParentId != null && t.Code == ((int)EmailBusinessScenario.TrialFeedBack).ToString()).Select(t => _userInfo.IsEn_Us ? t.Value : t.ValueCN).FirstOrDefaultAsync();
- var info = await _trialRepository.Where(t => t.Id == feedBack.TrialId).Select(t => new { t.ResearchProgramNo, t.TrialCode }).FirstNotNullAsync();
+ var info = await _trialRepository.Where(t => t.Id == feedBack.TrialId).Select(t => new { t.ResearchProgramNo, t.TrialCode }).FirstNotNullAsync();
Func<(string topicStr, string htmlBodyStr), (string topicStr, string htmlBodyStr)> emailConfigFunc = input =>
{
diff --git a/IRaCIS.Core.Application/Service/Common/PublishLogService.cs b/IRaCIS.Core.Application/Service/Common/PublishLogService.cs
index 7619bb4a1..86b35a4c0 100644
--- a/IRaCIS.Core.Application/Service/Common/PublishLogService.cs
+++ b/IRaCIS.Core.Application/Service/Common/PublishLogService.cs
@@ -4,12 +4,10 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using Microsoft.AspNetCore.Mvc;
using IRaCIS.Core.Application.Interfaces;
using IRaCIS.Core.Application.ViewModel;
-using IRaCIS.Application.Contracts;
using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Mvc;
namespace IRaCIS.Core.Application.Service
{
@@ -45,7 +43,7 @@ namespace IRaCIS.Core.Application.Service
if (!Version.TryParse(addOrEditPublishLog.Version, out version))
{
//"版本号不符合要求"
- return ResponseOutput.NotOk(_localizer["PublishLog_NotValidVersion"] );
+ return ResponseOutput.NotOk(_localizer["PublishLog_NotValidVersion"]);
}
var verifyExp1 = new EntityVerifyExp()
@@ -61,9 +59,9 @@ namespace IRaCIS.Core.Application.Service
VerifyExp = u => u.IsCurrentVersion == addOrEditPublishLog.IsCurrentVersion,
//"当前发布版本只允许有一个"
- VerifyMsg = _localizer["PublishLog_OnlyOneCurrentVersion"] ,
+ VerifyMsg = _localizer["PublishLog_OnlyOneCurrentVersion"],
- IsVerify=addOrEditPublishLog.IsCurrentVersion==true
+ IsVerify = addOrEditPublishLog.IsCurrentVersion == true
};
var entity = await _publishLogRepository.InsertOrUpdateAsync(addOrEditPublishLog, true, verifyExp1, verifyExp2);
@@ -88,7 +86,7 @@ namespace IRaCIS.Core.Application.Service
if (result == null)
{
//"系统当前版本未标记,请联系维护人员"
- throw new QueryBusinessObjectNotExistException(_localizer["PublishLog_NoCurrentVersion"] );
+ throw new QueryBusinessObjectNotExistException(_localizer["PublishLog_NoCurrentVersion"]);
}
return result;
diff --git a/IRaCIS.Core.Application/Service/Common/SystemBasicDataService.cs b/IRaCIS.Core.Application/Service/Common/SystemBasicDataService.cs
index 108f6f5ab..0885a6c04 100644
--- a/IRaCIS.Core.Application/Service/Common/SystemBasicDataService.cs
+++ b/IRaCIS.Core.Application/Service/Common/SystemBasicDataService.cs
@@ -28,7 +28,7 @@ namespace IRaCIS.Core.Application.Services
var systemBasicDataQueryable = _systemBasicDataRepository.Where(t => t.ParentId == null)
.ProjectTo(_mapper.ConfigurationProvider);
- return await systemBasicDataQueryable.ToPagedListAsync(inQuery,nameof(SystemBasicDataView.Code));
+ return await systemBasicDataQueryable.ToPagedListAsync(inQuery, nameof(SystemBasicDataView.Code));
}
@@ -47,7 +47,7 @@ namespace IRaCIS.Core.Application.Services
[HttpGet("{parentId:guid}")]
public async Task> GetChildList(Guid parentId)
{
- return await _systemBasicDataRepository.Where(t => t.ParentId == parentId&&t.IsEnable).OrderBy(t => t.Code).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
+ return await _systemBasicDataRepository.Where(t => t.ParentId == parentId && t.IsEnable).OrderBy(t => t.Code).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
}
@@ -63,7 +63,7 @@ namespace IRaCIS.Core.Application.Services
else
{
- var entity =await _systemBasicDataRepository.Where(t => t.Id == addOrEditSystemBasicData.Id,true).FirstOrDefaultAsync();
+ var entity = await _systemBasicDataRepository.Where(t => t.Id == addOrEditSystemBasicData.Id, true).FirstOrDefaultAsync();
_mapper.Map(addOrEditSystemBasicData, entity);
await _systemBasicDataRepository.SaveChangesAsync();
@@ -80,7 +80,7 @@ namespace IRaCIS.Core.Application.Services
[HttpDelete("{systemBasicDataId:guid}")]
public async Task DeleteSystemBasicData(Guid systemBasicDataId)
{
- var success = await _systemBasicDataRepository.DeleteFromQueryAsync(x=>x.Id== systemBasicDataId);
+ var success = await _systemBasicDataRepository.DeleteFromQueryAsync(x => x.Id == systemBasicDataId);
await _systemBasicDataRepository.SaveChangesAsync();
return ResponseOutput.Result(true);
}
@@ -95,7 +95,7 @@ namespace IRaCIS.Core.Application.Services
public async Task>> GetBasicDataSelect(string[] searchArray)
{
- var searchList = await _systemBasicDataRepository.Where(t => searchArray.Contains(t.Parent.Code) && t.ParentId != null).ProjectTo(_mapper.ConfigurationProvider,new { _userInfo.IsEn_Us}).ToListAsync();
+ var searchList = await _systemBasicDataRepository.Where(t => searchArray.Contains(t.Parent.Code) && t.ParentId != null).ProjectTo(_mapper.ConfigurationProvider, new { _userInfo.IsEn_Us }).ToListAsync();
return searchList.GroupBy(t => t.ParentCode).ToDictionary(g => g.Key, g => g.ToList());
diff --git a/IRaCIS.Core.Application/Service/Common/SystemMonitor.cs b/IRaCIS.Core.Application/Service/Common/SystemMonitor.cs
index 1a24df5fc..138dd1875 100644
--- a/IRaCIS.Core.Application/Service/Common/SystemMonitor.cs
+++ b/IRaCIS.Core.Application/Service/Common/SystemMonitor.cs
@@ -1,23 +1,7 @@
-using IRaCIS.Core.Domain.Share;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.Hosting;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration.Json;
-using IRaCIS.Core.Infrastructure.Extention;
-using SharpCompress.Common;
-using System.Text.Json;
-using System.Text.Json.Nodes;
-using System.Text.Encodings.Web;
-using Newtonsoft.Json.Linq;
-using Newtonsoft.Json;
+using IRaCIS.Core.Application.Helper;
using IRaCIS.Core.Infrastructure;
-using IRaCIS.Core.Application.Helper;
+using Microsoft.AspNetCore.Mvc;
+using Newtonsoft.Json.Linq;
namespace IRaCIS.Core.Application.Service.Common
{
@@ -63,7 +47,7 @@ namespace IRaCIS.Core.Application.Service.Common
{
//---解析Json文件配置出现问题
- throw new BusinessValidationFailedException(_localizer["SysMon_JsonConfig"]+e.Message);
+ throw new BusinessValidationFailedException(_localizer["SysMon_JsonConfig"] + e.Message);
}
//默认存储的路径
diff --git a/IRaCIS.Core.Application/Service/Common/_MapConfig.cs b/IRaCIS.Core.Application/Service/Common/_MapConfig.cs
index 8cd80d6a8..932be43f8 100644
--- a/IRaCIS.Core.Application/Service/Common/_MapConfig.cs
+++ b/IRaCIS.Core.Application/Service/Common/_MapConfig.cs
@@ -2,8 +2,6 @@
using IRaCIS.Application.Contracts;
using IRaCIS.Core.Application.Contracts;
using IRaCIS.Core.Application.ViewModel;
-using IRaCIS.Core.Domain.Models;
-using IRaCIS.Core.Domain.Share;
namespace IRaCIS.Core.Application.Service
{
@@ -71,7 +69,7 @@ namespace IRaCIS.Core.Application.Service
CreateMap().ReverseMap();
CreateMap().ReverseMap();
-
+
CreateMap();
diff --git a/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs b/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs
index 598a16889..d93db3b63 100644
--- a/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs
@@ -1,12 +1,9 @@
-using IRaCIS.Application.Interfaces;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infra.EFCore;
-using IRaCIS.Core.Domain.Models;
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Interfaces;
using Microsoft.AspNetCore.Mvc;
using Panda.DynamicWebApi.Attributes;
-namespace IRaCIS.Application.Services
+namespace IRaCIS.Core.Application.Service
{
///
/// 医生文档关联关系维护
@@ -14,7 +11,7 @@ namespace IRaCIS.Application.Services
[ApiExplorerSettings(GroupName = "Reviewer")]
public class AttachmentService(IRepository _attachmentrepository) : BaseService, IAttachmentService
{
-
+
///
/// 删除附件
@@ -22,7 +19,7 @@ namespace IRaCIS.Application.Services
///
///
- public async Task DeleteAttachment([FromBody]AttachementCommand param)
+ public async Task DeleteAttachment([FromBody] AttachementCommand param)
{
//var attachment = _doctorAttachmentApp.GetDetailById(id);
//string file = HostingEnvironment.MapPath(attachment.Path);
@@ -37,7 +34,7 @@ namespace IRaCIS.Application.Services
// File.Delete(temp);
//}
- var success =await _attachmentrepository.BatchDeleteNoTrackingAsync(a => a.Id == param.Id);
+ var success = await _attachmentrepository.BatchDeleteNoTrackingAsync(a => a.Id == param.Id);
return ResponseOutput.Result(success);
}
@@ -52,7 +49,7 @@ namespace IRaCIS.Application.Services
public async Task> GetAttachmentByType(Guid doctorId, string type)
{
var attachmentList = await _attachmentrepository.Where(a => a.DoctorId == doctorId && a.Type.Equals(type)).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
- attachmentList.ForEach(t => t.FullPath = t.Path + "?access_token=" + _userInfo.UserToken);
+ attachmentList.ForEach(t => t.FullPath = t.Path + "?access_token=" + _userInfo.UserToken);
return attachmentList;
}
@@ -64,11 +61,11 @@ namespace IRaCIS.Application.Services
/// 类型数组
///
[HttpPost("{doctorId:guid}")]
- public async Task> GetAttachmentByTypes(Guid doctorId, string[] types)
+ public async Task> GetAttachmentByTypes(Guid doctorId, string[] types)
{
- var attachmentList =await _attachmentrepository.Where(a => a.DoctorId == doctorId && types.Contains(a.Type)).OrderBy(s => s.Type).ThenBy(m => m.CreateTime).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
- attachmentList.ForEach(t => t.FullPath = t.Path + "?access_token=" + _userInfo.UserToken);
+ var attachmentList = await _attachmentrepository.Where(a => a.DoctorId == doctorId && types.Contains(a.Type)).OrderBy(s => s.Type).ThenBy(m => m.CreateTime).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
+ attachmentList.ForEach(t => t.FullPath = t.Path + "?access_token=" + _userInfo.UserToken);
return attachmentList;
}
@@ -81,8 +78,8 @@ namespace IRaCIS.Application.Services
[HttpGet("{doctorId:guid}")]
public async Task> GetAttachments(Guid doctorId)
{
- var attachmentList =await _attachmentrepository.Where(a => a.DoctorId == doctorId).OrderBy(s => s.Type).ThenBy(m => m.CreateTime).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
- attachmentList.ForEach(t => t.FullPath = t.Path + "?access_token=" + _userInfo.UserToken);
+ var attachmentList = await _attachmentrepository.Where(a => a.DoctorId == doctorId).OrderBy(s => s.Type).ThenBy(m => m.CreateTime).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
+ attachmentList.ForEach(t => t.FullPath = t.Path + "?access_token=" + _userInfo.UserToken);
return attachmentList;
}
@@ -91,8 +88,8 @@ namespace IRaCIS.Application.Services
public async Task GetDetailById(Guid attachmentId)
{
var attachment = await _attachmentrepository.FirstOrDefaultAsync(a => a.Id == attachmentId).IfNullThrowException();
- var temp= _mapper.Map(attachment);
- temp.FullPath = temp.Path + "?access_token=" + _userInfo.UserToken;
+ var temp = _mapper.Map(attachment);
+ temp.FullPath = temp.Path + "?access_token=" + _userInfo.UserToken;
return temp;
}
@@ -129,12 +126,12 @@ namespace IRaCIS.Application.Services
//因为界面现实的列表用了 接口返回的列表,所以要把返回的模型对应的字段也要更改
var attach = attachments.First(t => t.Id == reUpload.Id);
attach.CreateTime = DateTime.Now;
-
+
//重传的时候,发现 相同语言的官方简历数量为2 那么将重传的简历设置为非官方
if (attachments.Count(t => t.Language == reUpload.Language && t.IsOfficial) == 2)
{
- await _attachmentrepository.BatchUpdateNoTrackingAsync(t => t.Id == reUpload.Id, u => new Attachment()
+ await _attachmentrepository.BatchUpdateNoTrackingAsync(t => t.Id == reUpload.Id, u => new Attachment()
{
Path = reUpload.Path,
CreateTime = DateTime.Now,
@@ -167,7 +164,7 @@ namespace IRaCIS.Application.Services
var list = _mapper.Map>(attachments).ToList();
- list.ForEach(t => t.FullPath = t.Path + "?access_token=" + _userInfo.UserToken);
+ list.ForEach(t => t.FullPath = t.Path + "?access_token=" + _userInfo.UserToken);
return list;
}
@@ -177,7 +174,7 @@ namespace IRaCIS.Application.Services
var newAttachment = _mapper.Map(attachment);
//如果这个医生不存在 这个语言的官方简历 就设置为官方简历
- if (! await _attachmentrepository.AnyAsync(t => t.Type == "Resume" && t.DoctorId == attachment.DoctorId && t.Language == attachment.Language && t.IsOfficial))
+ if (!await _attachmentrepository.AnyAsync(t => t.Type == "Resume" && t.DoctorId == attachment.DoctorId && t.Language == attachment.Language && t.IsOfficial))
{
newAttachment.IsOfficial = true;
@@ -210,17 +207,17 @@ namespace IRaCIS.Application.Services
///
///
///
-
+
[HttpPost("{doctorId:guid}/{attachmentId:guid}/{language}")]
public async Task SetOfficial(Guid doctorId, Guid attachmentId, int language)
{
- var resumeList = await _attachmentrepository.Where(t => t.DoctorId == doctorId && t.Type == "Resume" && t.Language == language,true).ToListAsync();
+ var resumeList = await _attachmentrepository.Where(t => t.DoctorId == doctorId && t.Type == "Resume" && t.Language == language, true).ToListAsync();
foreach (var item in resumeList)
{
if (item.Id == attachmentId) item.IsOfficial = true;
else item.IsOfficial = false;
}
-
+
return ResponseOutput.Result(await _attachmentrepository.SaveChangesAsync());
}
@@ -231,11 +228,11 @@ namespace IRaCIS.Application.Services
///
/// 0-未设置,1-中文,2-英文
///
-
+
[HttpPost("{doctorId:guid}/{attachmentId:guid}/{language}")]
public async Task SetLanguage(Guid doctorId, Guid attachmentId, int language)
{
- bool result =await _attachmentrepository.BatchUpdateNoTrackingAsync(t => t.Id == attachmentId, a => new Attachment
+ bool result = await _attachmentrepository.BatchUpdateNoTrackingAsync(t => t.Id == attachmentId, a => new Attachment
{
Language = language,
IsOfficial = false
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs
index 1eb34fc03..d9e6caae0 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs
@@ -21,7 +21,7 @@
public Guid DoctorId { get; set; }
public string Type { get; set; } = string.Empty;
public string Path { get; set; } = string.Empty;
- public string FullPath => Path;
+ public string FullPath => Path;
public string FileName { get; set; } = string.Empty;
}
@@ -51,7 +51,7 @@
public Guid DoctorId { get; set; }
public string Type { get; set; } = string.Empty;
public string Path { get; set; } = string.Empty;
- public string FullPath => Path;
+ public string FullPath => Path;
public string FileName { get; set; } = string.Empty;
}
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorAccountRegisterModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorAccountRegisterModel.cs
index 456a61b78..50134c423 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorAccountRegisterModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorAccountRegisterModel.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace IRaCIS.Application.Contracts
+namespace IRaCIS.Application.Contracts
{
public class DoctorAccountRegisterModel : DoctorAccountLoginDTO
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs
index c9c49cfde..6a7d53d27 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs
@@ -1,10 +1,5 @@
-using System;
-using System.Collections.Generic;
-
-using IRaCIS.Core.Infrastructure.Extention;
-using IRaCIS.Core.Domain.Share;
+using IRaCIS.Core.Domain.Share;
using Newtonsoft.Json;
-using System.Linq;
namespace IRaCIS.Application.Contracts
{
@@ -141,9 +136,9 @@ namespace IRaCIS.Application.Contracts
public List TitleIdList { get; set; } = new List();
public Guid? DepartmentId { get; set; }
public Guid? SpecialityId { get; set; }
- public Guid? PositionId { get; set; }
+ public Guid? PositionId { get; set; }
public Guid? RankId { get; set; }
- public Guid? HospitalId { get; set; }
+ public Guid? HospitalId { get; set; }
//合作状态
public ContractorStatusEnum? ContractorStatus { get; set; }
@@ -203,7 +198,7 @@ namespace IRaCIS.Application.Contracts
public class ConfirmationReviewerDTO : DoctorOptDTO
{
- public int DoctorTrialState { get; set; }
+ public int DoctorTrialState { get; set; }
public string OptUserName { get; set; } = string.Empty;
public DateTime? OptTime { get; set; }
public string? OptTimeStr => OptTime?.ToString("yyyy-MM-dd HH:mm:ss");
@@ -308,7 +303,7 @@ namespace IRaCIS.Application.Contracts
public class DoctorBasicInfoCommand : DoctorBasicInfo
{
-
+
//职称
public List TitleIds { get; set; } = new List();
}
@@ -342,11 +337,11 @@ namespace IRaCIS.Application.Contracts
//职称
public List TitleIds => DoctorDicViewDtos.Select(t => t.Id).ToList();
-
- public List TitleList=> DoctorDicViewDtos.Select(t => t.Value).ToList();
-
- public List TitleCNList=> DoctorDicViewDtos.Select(t => t.ValueCN).ToList();
-
+
+ public List TitleList => DoctorDicViewDtos.Select(t => t.Value).ToList();
+
+ public List TitleCNList => DoctorDicViewDtos.Select(t => t.ValueCN).ToList();
+
#region ef select
//[JsonIgnore]
//public List TempObjList { get; set; }
@@ -403,7 +398,7 @@ namespace IRaCIS.Application.Contracts
public string FileName { get; set; } = string.Empty;
public string TrialCode { get; set; } = string.Empty;
public string FilePath { get; set; } = string.Empty;
- public string FullPath { get { return FilePath; } }
+ public string FullPath { get { return FilePath; } }
public DateTime CreateTime { get; set; }
}
@@ -784,12 +779,12 @@ namespace IRaCIS.Application.Contracts
public DateTime CreateTime { get; set; }
-
+
}
- public class GetDoctorCriterionFileInDto
+ public class GetDoctorCriterionFileInDto
{
- public Guid DoctorId { get; set; }
+ public Guid DoctorId { get; set; }
///
/// 文件类型
@@ -828,7 +823,7 @@ namespace IRaCIS.Application.Contracts
{
public string KeyWord { get; set; } = String.Empty;
- public Guid? CroId { get; set; }
+ public Guid? CroId { get; set; }
}
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs
index f9fdbdee8..470e389d9 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-
-namespace IRaCIS.Application.Contracts
+namespace IRaCIS.Application.Contracts
{
public class EducationCommand
{
@@ -28,7 +25,7 @@ namespace IRaCIS.Application.Contracts
public class EducationInfoViewModel : EducationCommand
{
public DateTime? CreateTime { get; set; }
- public string BeginDateStr => BeginDate.ToString("yyyy-MM");
+ public string BeginDateStr => BeginDate.ToString("yyyy-MM");
public string EndDateStr => EndDate.ToString("yyyy-MM");
}
@@ -36,9 +33,9 @@ namespace IRaCIS.Application.Contracts
{
public Guid? Id { get; set; }
public Guid DoctorId { get; set; }
-
+
public DateTime BeginDate { get; set; }
-
+
public DateTime EndDate { get; set; }
public string Training { get; set; } = String.Empty;
@@ -72,7 +69,7 @@ namespace IRaCIS.Application.Contracts
}
- public class PostgraduateViewModel: PostgraduateCommand
+ public class PostgraduateViewModel : PostgraduateCommand
{
public DateTime? CreateTime { get; set; }
public string BeginDateStr => BeginDate.ToString("yyyy-MM");
@@ -81,9 +78,9 @@ namespace IRaCIS.Application.Contracts
}
public class DoctorEducationExperienceDTO
{
- public IEnumerable EducationList=new List();
+ public IEnumerable EducationList = new List();
- public IEnumerable PostgraduateList = new List();
+ public IEnumerable PostgraduateList = new List();
}
}
\ No newline at end of file
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs
index 8635d431a..6c6a372ea 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace IRaCIS.Application.Contracts
+namespace IRaCIS.Application.Contracts
{
public class VacationCommand
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/ResearchPublicationModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/ResearchPublicationModel.cs
index d5a61a587..e34b22a11 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/ResearchPublicationModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/ResearchPublicationModel.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace IRaCIS.Application.Contracts
+namespace IRaCIS.Application.Contracts
{
public class ResearchPublicationDTO
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/TrialExperienceModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/TrialExperienceModel.cs
index 4ed924c61..d8bd3e174 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/TrialExperienceModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/TrialExperienceModel.cs
@@ -25,7 +25,7 @@
}
- public class TrialExperienceListDTO: TrialExperienceCommand
+ public class TrialExperienceListDTO : TrialExperienceCommand
{
public string Phase { get; set; } = String.Empty;
@@ -58,7 +58,7 @@
public Guid? GCPId { get; set; }
- public string OtherClinicalExperience { get; set; }=String.Empty;
+ public string OtherClinicalExperience { get; set; } = String.Empty;
public string OtherClinicalExperienceCN { get; set; } = String.Empty;
public string Type { get; set; } = string.Empty;
@@ -74,7 +74,7 @@
public Guid Id { get; set; }
public int GCP { get; set; }
- public Guid? GCPId { get; set; }
+ public Guid? GCPId { get; set; }
}
public class ClinicalExperienceCommand
diff --git a/IRaCIS.Core.Application/Service/Doctor/DoctorListService.cs b/IRaCIS.Core.Application/Service/Doctor/DoctorListService.cs
index 12d447cb8..be410634e 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DoctorListService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DoctorListService.cs
@@ -1,20 +1,19 @@
-using IRaCIS.Application.Interfaces;
-using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Interfaces;
using IRaCIS.Core.Domain.Share;
-using System.Linq.Dynamic.Core;
-using IRaCIS.Core.Infra.EFCore;
using Microsoft.AspNetCore.Mvc;
+using System.Linq.Dynamic.Core;
-namespace IRaCIS.Application.Services
+namespace IRaCIS.Core.Application.Service
{
[ApiExplorerSettings(GroupName = "Reviewer")]
- public class DoctorListService (
+ public class DoctorListService(
IRepository _doctorRepository,
IRepository _enrollRepository,
IRepository _enrollDetailRepository,
IRepository _trialRepository) : BaseService, IDoctorListQueryService
{
-
+
///
/// Reviewer列表分页查询
@@ -66,7 +65,7 @@ namespace IRaCIS.Application.Services
ReviewerSelectionQueryDTO inQuery)
{
//项目配置需要的医生过滤 2表示混合
- var trialConfig = await _trialRepository.Where(s => s.Id == inQuery.TrialId).Select(t=>new { t.AttendedReviewerTypeEnumList ,t.TrialType} ).FirstOrDefaultAsync().IfNullThrowException();
+ var trialConfig = await _trialRepository.Where(s => s.Id == inQuery.TrialId).Select(t => new { t.AttendedReviewerTypeEnumList, t.TrialType }).FirstOrDefaultAsync().IfNullThrowException();
//var nation = trialConfig.AttendedReviewerType;
// 临床项目经验 多选
@@ -78,15 +77,15 @@ namespace IRaCIS.Application.Services
var guidList = inQuery.ReadingTypeIdList.Concat(inQuery.SubspecialityIdList).Concat(inQuery.TitleIdList);
var query = _doctorRepository/*.WhereIf(nation != AttendedReviewerType.USAndCN, t => t.Nation ==(int) nation)*/
-
+
.WhereIf(inQuery.DepartmentId != null, t => t.DepartmentId == inQuery.DepartmentId)
.WhereIf(inQuery.SpecialityId != null, t => t.SpecialityId == inQuery.SpecialityId)
- .WhereIf(trialConfig.TrialType == TrialType.NoneOfficial, t => t.IsVirtual ==true)
+ .WhereIf(trialConfig.TrialType == TrialType.NoneOfficial, t => t.IsVirtual == true)
.WhereIf(trialConfig.TrialType != TrialType.NoneOfficial, t => t.IsVirtual == false)
.WhereIf(inQuery.HospitalId != null, t => t.HospitalId == inQuery.HospitalId)
.WhereIf(inQuery.PositionId != null, t => t.PositionId == inQuery.PositionId)
.WhereIf(inQuery.RankId != null, t => t.RankId == inQuery.RankId)
- .WhereIf(inQuery.ContractorStatus != null, t => t.CooperateStatus == inQuery.ContractorStatus )
+ .WhereIf(inQuery.ContractorStatus != null, t => t.CooperateStatus == inQuery.ContractorStatus)
.WhereIf(inQuery.InformationConfirmed != null, t => t.ResumeStatus == inQuery.InformationConfirmed)
.WhereIf(inQuery.AcceptingNewTrial != null, t => t.AcceptingNewTrial == inQuery.AcceptingNewTrial)
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.Name), t => t.ChineseName.Contains(inQuery.Name) || (t.LastName + t.FirstName).Contains(inQuery.Name))
@@ -101,7 +100,7 @@ namespace IRaCIS.Application.Services
var result = await query.ToPagedListAsync(inQuery);
//是否已申请 申请时间 申请人
- var doctorStateList = await _enrollDetailRepository.Where(x => x.TrialId == inQuery.TrialId && x.EnrollStatus == EnrollStatus.HasApplyDownloadResume)
+ var doctorStateList = await _enrollDetailRepository.Where(x => x.TrialId == inQuery.TrialId && x.EnrollStatus == EnrollStatus.HasApplyDownloadResume)
.ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
result.CurrentPageData.ToList().ForEach(doctor =>
@@ -150,7 +149,7 @@ namespace IRaCIS.Application.Services
.ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
-
+
doctorPageList.CurrentPageData.ToList().ForEach(u =>
{
@@ -181,7 +180,7 @@ namespace IRaCIS.Application.Services
var opt = enrollCommitList.FirstOrDefault(t => t.DoctorId == u.Id);
if (opt != null)
{
-
+
u.SubmmitTime = opt.OptTime;
u.SubmmitUserName = opt.OptUserName;
}
@@ -240,7 +239,7 @@ namespace IRaCIS.Application.Services
{
- var doctorQuery = _enrollRepository.Where(x => x.TrialId == inQuery.TrialId && x.EnrollStatus >= EnrollStatus.InviteIntoGroup)
+ var doctorQuery = _enrollRepository.Where(x => x.TrialId == inQuery.TrialId && x.EnrollStatus >= EnrollStatus.InviteIntoGroup)
.ProjectTo(_mapper.ConfigurationProvider);
var doctorPageList = await doctorQuery.ToPagedListAsync(inQuery);
diff --git a/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs b/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs
index 50cdd9746..2536fd9c4 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs
@@ -1,12 +1,10 @@
-using IRaCIS.Application.Interfaces;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infra.EFCore;
+using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Interfaces;
using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Infrastructure;
using Microsoft.AspNetCore.Mvc;
-using System.Linq.Expressions;
-namespace IRaCIS.Application.Services
+namespace IRaCIS.Core.Application.Service
{
[ApiExplorerSettings(GroupName = "Reviewer")]
public class DoctorService(
@@ -20,7 +18,7 @@ namespace IRaCIS.Application.Services
IRepository _trialExtRepository
) : BaseService, IDoctorService
{
-
+
@@ -36,7 +34,7 @@ namespace IRaCIS.Application.Services
{
Expression> verifyExp = t => t.Phone == basicInfoModel.Phone || t.EMail == basicInfoModel.EMail;
- //---current phone or email number already existed
+ //---current phone or email number already existed
var verifyPair = new KeyValuePair>, string>(verifyExp, _localizer["Doctor_DupPhoneOrEmail"]);
if (basicInfoModel.Id == Guid.Empty || basicInfoModel.Id == null)
@@ -47,13 +45,13 @@ namespace IRaCIS.Application.Services
//验证用户手机号
if (await _doctorRepository.AnyAsync(t => t.Phone == doctor.Phone))
{
- //---The current phone number already existed!
+ //---The current phone number already existed!
return ResponseOutput.NotOk(_localizer["Doctor_DupPhone"], new DoctorBasicInfoCommand());
}
if (await _doctorRepository.AnyAsync(t => t.EMail == doctor.EMail))
{
- //---The current email already existed!
+ //---The current email already existed!
return ResponseOutput.NotOk(_localizer["Doctor_DupEmail"], new DoctorBasicInfoCommand());
}
@@ -84,13 +82,13 @@ namespace IRaCIS.Application.Services
var phone = updateModel.Phone.Trim();
if ((await _doctorRepository.FirstOrDefaultAsync(t => t.Phone == phone && t.Id != updateModel.Id)) != null)
{
- //---The current phone number already existed!
+ //---The current phone number already existed!
return ResponseOutput.NotOk(_localizer["Doctor_DupPhone"], new DoctorBasicInfoCommand());
}
var email = updateModel.EMail.Trim();
if (await _doctorRepository.AnyAsync(t => t.EMail == email && t.Id != updateModel.Id))
{
- //---The current email already existed!
+ //---The current email already existed!
return ResponseOutput.NotOk(_localizer["Doctor_DupEmail"], new DoctorBasicInfoCommand());
}
@@ -461,7 +459,7 @@ namespace IRaCIS.Application.Services
public async Task AddDoctorCriterionFile(AddDoctorCriterionFileDto inDto)
{
- if (await _doctorCriterionFileRepository.AnyAsync(x => inDto.IsEnable && x.DoctorId == inDto.DoctorId && x.FileType == inDto.FileType && x.TrialId==inDto.TrialId &&x.TrialReadingCriterionId==inDto.TrialReadingCriterionId && x.IsEnable && x.CriterionType == inDto.CriterionType && x.Id != inDto.Id))
+ if (await _doctorCriterionFileRepository.AnyAsync(x => inDto.IsEnable && x.DoctorId == inDto.DoctorId && x.FileType == inDto.FileType && x.TrialId == inDto.TrialId && x.TrialReadingCriterionId == inDto.TrialReadingCriterionId && x.IsEnable && x.CriterionType == inDto.CriterionType && x.Id != inDto.Id))
{
//-----------当前标准已添加过此类型文件
throw new BusinessValidationFailedException(_localizer["Doctor_StandardDuplicateFileTypeError"]);
diff --git a/IRaCIS.Core.Application/Service/Doctor/EducationService.cs b/IRaCIS.Core.Application/Service/Doctor/EducationService.cs
index 5f12ce29d..db17face0 100644
--- a/IRaCIS.Core.Application/Service/Doctor/EducationService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/EducationService.cs
@@ -1,20 +1,17 @@
-using IRaCIS.Application.Interfaces;
using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infra.EFCore;
+using IRaCIS.Application.Interfaces;
using IRaCIS.Core.Domain.Share;
-using IRaCIS.Core.Application.Filter;
-using IRaCIS.Core.Infrastructure.Extention;
using Microsoft.AspNetCore.Mvc;
-namespace IRaCIS.Application.Services
+namespace IRaCIS.Core.Application.Service
{
[ApiExplorerSettings(GroupName = "Reviewer")]
public class EducationService(
IRepository _postgraduateRepository,
IRepository _educationRepository) : BaseService, IEducationService
{
-
+
///
/// 根据医生Id获取医生教育经历和继续学习经历列表
///
@@ -81,7 +78,7 @@ namespace IRaCIS.Application.Services
}
-
+
[HttpDelete, Route("{doctorId:guid}")]
public async Task DeleteEducationInfo(Guid id)
{
@@ -90,7 +87,7 @@ namespace IRaCIS.Application.Services
return ResponseOutput.Result(success);
}
/// 添加/更新医生继续学习经历
-
+
[HttpPost]
public async Task AddOrUpdatePostgraduateInfo(PostgraduateCommand postgraduateViewModel)
{
@@ -114,7 +111,7 @@ namespace IRaCIS.Application.Services
//}
#endregion
- var entity = await _postgraduateRepository.InsertOrUpdateAsync(postgraduateViewModel, true);
+ var entity = await _postgraduateRepository.InsertOrUpdateAsync(postgraduateViewModel, true);
return ResponseOutput.Ok(entity.Id);
}
///
@@ -122,7 +119,7 @@ namespace IRaCIS.Application.Services
///
/// 医生Id
///
-
+
[HttpDelete("{doctorId:guid}")]
public async Task DeletePostgraduateInfo(Guid doctorId)
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/Interface/IAttachmentService.cs b/IRaCIS.Core.Application/Service/Doctor/Interface/IAttachmentService.cs
index f93c4786e..03c7b9fcd 100644
--- a/IRaCIS.Core.Application/Service/Doctor/Interface/IAttachmentService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/Interface/IAttachmentService.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-
-using IRaCIS.Application.Contracts;
-
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
namespace IRaCIS.Application.Interfaces
{
@@ -12,7 +7,7 @@ namespace IRaCIS.Application.Interfaces
Task> SaveAttachments(IEnumerable attachmentList);
- Task> AddAttachment(AttachmentDTO attachment);
+ Task> AddAttachment(AttachmentDTO attachment);
Task DeleteAttachment(AttachementCommand param);
Task GetDetailById(Guid attachmentId);
Task> GetAttachmentByType(Guid doctorId, string type);
diff --git a/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorAccountService.cs b/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorAccountService.cs
index 44d21496f..7be0e8e6e 100644
--- a/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorAccountService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorAccountService.cs
@@ -1,7 +1,4 @@
-using System;
-
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
namespace IRaCIS.Application.Interfaces
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorListQueryService.cs b/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorListQueryService.cs
index 8c8faf99e..a187c3571 100644
--- a/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorListQueryService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorListQueryService.cs
@@ -7,7 +7,7 @@ namespace IRaCIS.Application.Interfaces
///
/// 医生多条件查询
///
- Task> GetDoctorSearchList(DoctorSearchDTO param);
+ Task> GetDoctorSearchList(DoctorSearchDTO param);
///
/// 筛选医生列表
@@ -15,18 +15,18 @@ namespace IRaCIS.Application.Interfaces
///
///
//
- Task> GetSelectionReviewerList(
- ReviewerSelectionQueryDTO doctorSearchModel);
+ Task> GetSelectionReviewerList(
+ ReviewerSelectionQueryDTO doctorSearchModel);
///
/// //入组 相关接口 (提交CRO-1) CRO确认-4
///
- Task> GetSubmissionOrApprovalReviewerList(
- ReviewerSubmissionQueryDTO doctorIntoGroupSearchModel);
+ Task> GetSubmissionOrApprovalReviewerList(
+ ReviewerSubmissionQueryDTO doctorIntoGroupSearchModel);
//医生确认状态列表
- Task> GetConfirmationReviewerList(
- ReviewerConfirmationQueryDTO trialIdPageModel);
+ Task> GetConfirmationReviewerList(
+ ReviewerConfirmationQueryDTO trialIdPageModel);
}
}
diff --git a/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorService.cs b/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorService.cs
index cffc2524c..6cd2c9d01 100644
--- a/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorService.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
namespace IRaCIS.Application.Interfaces
{
@@ -21,7 +18,7 @@ namespace IRaCIS.Application.Interfaces
///
///
///
- Task> AddOrUpdateDoctorBasicInfo(DoctorBasicInfoCommand addBasicInfoParam);
+ Task> AddOrUpdateDoctorBasicInfo(DoctorBasicInfoCommand addBasicInfoParam);
#endregion
diff --git a/IRaCIS.Core.Application/Service/Doctor/Interface/IEducationService.cs b/IRaCIS.Core.Application/Service/Doctor/Interface/IEducationService.cs
index 958fdaed3..5c1fbaa2c 100644
--- a/IRaCIS.Core.Application/Service/Doctor/Interface/IEducationService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/Interface/IEducationService.cs
@@ -1,6 +1,4 @@
-using System;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
namespace IRaCIS.Application.Interfaces
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/Interface/IResearchPublicationService.cs b/IRaCIS.Core.Application/Service/Doctor/Interface/IResearchPublicationService.cs
index ba983dede..dcc200590 100644
--- a/IRaCIS.Core.Application/Service/Doctor/Interface/IResearchPublicationService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/Interface/IResearchPublicationService.cs
@@ -1,6 +1,4 @@
-using System;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
namespace IRaCIS.Application.Interfaces
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/Interface/ITrialExperienceService.cs b/IRaCIS.Core.Application/Service/Doctor/Interface/ITrialExperienceService.cs
index bb803c376..68c679246 100644
--- a/IRaCIS.Core.Application/Service/Doctor/Interface/ITrialExperienceService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/Interface/ITrialExperienceService.cs
@@ -1,6 +1,4 @@
-using System;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
namespace IRaCIS.Application.Interfaces
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/Interface/IVacationService.cs b/IRaCIS.Core.Application/Service/Doctor/Interface/IVacationService.cs
index 834864a99..3f7b10dcf 100644
--- a/IRaCIS.Core.Application/Service/Doctor/Interface/IVacationService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/Interface/IVacationService.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-
-using IRaCIS.Application.Contracts;
-
-using IRaCIS.Core.Infrastructure.Extention;
+using IRaCIS.Application.Contracts;
namespace IRaCIS.Application.Interfaces
{
@@ -12,7 +7,7 @@ namespace IRaCIS.Application.Interfaces
Task AddOrUpdateVacation(VacationCommand vacationViewModel);
Task DeleteVacation(Guid id);
Task> GetVacationList(Guid doctorId, int pageIndex, int pageSize);
-
+
/// 判断当前时间是否在休假
Task OnVacation(Guid reviewerId);
}
diff --git a/IRaCIS.Core.Application/Service/Doctor/ResearchPublicationService.cs b/IRaCIS.Core.Application/Service/Doctor/ResearchPublicationService.cs
index 97a0f2ef4..a536251d0 100644
--- a/IRaCIS.Core.Application/Service/Doctor/ResearchPublicationService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/ResearchPublicationService.cs
@@ -1,13 +1,13 @@
-using IRaCIS.Application.Interfaces;
-using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Interfaces;
using Microsoft.AspNetCore.Mvc;
-namespace IRaCIS.Application.Services
+namespace IRaCIS.Core.Application.Service
{
[ApiExplorerSettings(GroupName = "Reviewer")]
public class ResearchPublicationService(IRepository _researchPublicationRepository) : BaseService, IResearchPublicationService
{
-
+
///
/// 查询-医生科学研究信息
@@ -23,7 +23,7 @@ namespace IRaCIS.Application.Services
return doctorScientificResearchInfo!;
}
-
+
[HttpPost]
public async Task AddOrUpdateResearchPublication(ResearchPublicationDTO param)
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/TrialExperienceService.cs b/IRaCIS.Core.Application/Service/Doctor/TrialExperienceService.cs
index 6fd328a0b..34416fc6f 100644
--- a/IRaCIS.Core.Application/Service/Doctor/TrialExperienceService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/TrialExperienceService.cs
@@ -1,8 +1,8 @@
-using IRaCIS.Application.Interfaces;
-using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Interfaces;
using Microsoft.AspNetCore.Mvc;
-namespace IRaCIS.Application.Services
+namespace IRaCIS.Core.Application.Service
{
[ApiExplorerSettings(GroupName = "Reviewer")]
public class TrialExperienceService(
@@ -12,7 +12,7 @@ namespace IRaCIS.Application.Services
IRepository _attachmentRepository
) : BaseService, ITrialExperienceService
{
-
+
///
@@ -40,7 +40,7 @@ namespace IRaCIS.Application.Services
trialExperience.ExpiryDateStr = attachment.ExpiryDate == null ? "" : attachment.ExpiryDate.Value.ToString("yyyy-MM-dd HH:mm");
trialExperience.Path = attachment.Path;
- trialExperience.GCPFullPath = attachment.Path + "?access_token=" + _userInfo.UserToken;
+ trialExperience.GCPFullPath = attachment.Path + "?access_token=" + _userInfo.UserToken;
trialExperience.Type = attachment.Type;
trialExperience.FileName = attachment.FileName;
trialExperience.GCPId = attachment.Id;
@@ -56,10 +56,10 @@ namespace IRaCIS.Application.Services
.ProjectTo(_mapper.ConfigurationProvider).ToListAsync();
return doctorClinicalTrialExperienceList;
-
+
}
/// 添加或更新医生临床经验列表项
-
+
[HttpPost]
public async Task AddOrUpdateTrialExperience(TrialExperienceCommand trialExperienceViewModel)
{
@@ -114,7 +114,7 @@ namespace IRaCIS.Application.Services
///
/// 删除临床经验
///
-
+
[HttpDelete, Route("{doctorId:guid}")]
public async Task DeleteTrialExperience(Guid doctorId)
{
@@ -126,7 +126,7 @@ namespace IRaCIS.Application.Services
///
///
///
-
+
[HttpPost]
public async Task UpdateGcpExperience(GCPExperienceCommand updateGCPExperienceParam)
{
@@ -135,12 +135,12 @@ namespace IRaCIS.Application.Services
var successs = await _doctorRepository.BatchUpdateNoTrackingAsync(o => o.Id == updateGCPExperienceParam.Id, u => new Doctor()
{
GCP = updateGCPExperienceParam.GCP,
- GCPId = (updateGCPExperienceParam.GCP==0||updateGCPExperienceParam.GCPId==null)?Guid.Empty: updateGCPExperienceParam.GCPId!.Value
+ GCPId = (updateGCPExperienceParam.GCP == 0 || updateGCPExperienceParam.GCPId == null) ? Guid.Empty : updateGCPExperienceParam.GCPId!.Value
});
- if (updateGCPExperienceParam.GCP == 0 )
+ if (updateGCPExperienceParam.GCP == 0)
{
- await _attachmentRepository.BatchDeleteNoTrackingAsync(a => a.DoctorId == updateGCPExperienceParam.Id && a.Type=="GCP");
+ await _attachmentRepository.BatchDeleteNoTrackingAsync(a => a.DoctorId == updateGCPExperienceParam.Id && a.Type == "GCP");
}
return ResponseOutput.Result(successs, updateGCPExperienceParam.GCPId.ToString());
@@ -150,7 +150,7 @@ namespace IRaCIS.Application.Services
///
/// 更新其他技能经验
///
-
+
[HttpPost]
public async Task UpdateOtherExperience(ClinicalExperienceCommand updateOtherClinicalExperience)
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/VacationService.cs b/IRaCIS.Core.Application/Service/Doctor/VacationService.cs
index dff6bd463..ea79cba2d 100644
--- a/IRaCIS.Core.Application/Service/Doctor/VacationService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/VacationService.cs
@@ -1,15 +1,14 @@
-using IRaCIS.Application.Interfaces;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Core.Infra.EFCore;
+using IRaCIS.Application.Contracts;
+using IRaCIS.Application.Interfaces;
using Microsoft.AspNetCore.Mvc;
using Panda.DynamicWebApi.Attributes;
-namespace IRaCIS.Application.Services
+namespace IRaCIS.Core.Application.Service
{
- [ ApiExplorerSettings(GroupName = "Reviewer")]
- public class VacationService (IRepository _vacationRepository) : BaseService, IVacationService
+ [ApiExplorerSettings(GroupName = "Reviewer")]
+ public class VacationService(IRepository _vacationRepository) : BaseService, IVacationService
{
-
+
///
/// 添加休假时间段
///
@@ -19,7 +18,7 @@ namespace IRaCIS.Application.Services
[HttpPost]
public async Task AddOrUpdateVacation(VacationCommand param)
{
- if (param.Id == Guid.Empty|| param.Id ==null)
+ if (param.Id == Guid.Empty || param.Id == null)
{
var result = await _vacationRepository.AddAsync(_mapper.Map(param));
@@ -47,7 +46,7 @@ namespace IRaCIS.Application.Services
///
/// 记录Id
///
-
+
[HttpDelete("{holidayId:guid}")]
public async Task DeleteVacation(Guid holidayId)
{
@@ -67,8 +66,8 @@ namespace IRaCIS.Application.Services
var query = _vacationRepository.Where(u => u.DoctorId == doctorId)
.ProjectTo(_mapper.ConfigurationProvider);
- return await query.ToPagedListAsync(new PageInput() { PageIndex = pageIndex,PageSize=pageSize },nameof(VacationCommand.StartDate));
-
+ return await query.ToPagedListAsync(new PageInput() { PageIndex = pageIndex, PageSize = pageSize }, nameof(VacationCommand.StartDate));
+
}
[NonDynamicMethod]
diff --git a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs
index 692e9c4f0..c841db91e 100644
--- a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs
@@ -2,7 +2,6 @@
using AutoMapper.EquivalencyExpression;
using IRaCIS.Application.Contracts;
using IRaCIS.Application.Contracts.Pay;
-using IRaCIS.Core.Domain.Models;
using IRaCIS.Core.Domain.Share;
namespace IRaCIS.Core.Application.Service
@@ -84,7 +83,7 @@ namespace IRaCIS.Core.Application.Service
CreateMap()
.ForMember(d => d.DoctorUserName, u => u.MapFrom(t => t.User.UserName));
CreateMap().IncludeMembers(t => t.Hospital).Include()
- .ForMember(d => d.AccountUserName, u => u.MapFrom(s => s.EnrollList.Where(t=>t.DoctorUserId!=null).Select(c=>c.DoctorUser.UserName).FirstOrDefault()))
+ .ForMember(d => d.AccountUserName, u => u.MapFrom(s => s.EnrollList.Where(t => t.DoctorUserId != null).Select(c => c.DoctorUser.UserName).FirstOrDefault()))
.ForMember(d => d.Department, u => u.MapFrom(s => s.Department.Value))
.ForMember(d => d.DepartmentCN, u => u.MapFrom(s => s.Department.ValueCN))
.ForMember(d => d.Position, u => u.MapFrom(s => s.Position.Value))
@@ -118,7 +117,7 @@ namespace IRaCIS.Core.Application.Service
CreateMap()
.ForMember(o => o.DoctorDicViewDtos, t => t.MapFrom(u => u.DoctorDicRelationList.Where(t => t.KeyName == StaticData.Title).Select(t => t.Dictionary).OrderBy(t => t.ShowOrder)));
CreateMap()
- .ForMember(t=>t.ParentCode,u=>u.MapFrom(c=>c.Parent.Code));
+ .ForMember(t => t.ParentCode, u => u.MapFrom(c => c.Parent.Code));
//CreateMap();
CreateMap()
@@ -155,8 +154,8 @@ namespace IRaCIS.Core.Application.Service
#endregion
-
+
}
}
-
+
}
diff --git a/IRaCIS.Core.Application/Service/Document/DTO/SystemDocumentViewModel.cs b/IRaCIS.Core.Application/Service/Document/DTO/SystemDocumentViewModel.cs
index 1082bfa7f..00f433f3d 100644
--- a/IRaCIS.Core.Application/Service/Document/DTO/SystemDocumentViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Document/DTO/SystemDocumentViewModel.cs
@@ -3,10 +3,6 @@
// 生成时间 2022-01-05 09:17:10
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Domain.Models;
-using IRaCIS.Core.Infrastructure.Extention;
-using System;
-using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace IRaCIS.Core.Application.Contracts
@@ -18,9 +14,9 @@ namespace IRaCIS.Core.Application.Contracts
public DateTime CreateTime { get; set; }
public DateTime UpdateTime { get; set; }
- public string FileType { get; set; } = string.Empty;
+ public string FileType { get; set; } = string.Empty;
- public List NeedConfirmedUserTypeList { get; set; }=new List();
+ public List NeedConfirmedUserTypeList { get; set; } = new List();
}
public class UnionDocumentView : SystemDocumentAddOrEdit
@@ -31,11 +27,11 @@ namespace IRaCIS.Core.Application.Contracts
public bool IsSystemDoc { get; set; }
- public string FileType { get; set; } = string.Empty;
+ public string FileType { get; set; } = string.Empty;
}
- public class TrialSignDocView:UnionDocumentWithConfirmInfoView
+ public class TrialSignDocView : UnionDocumentWithConfirmInfoView
{
public string TrialCode { get; set; }
public string ResearchProgramNo { get; set; }
@@ -45,9 +41,9 @@ namespace IRaCIS.Core.Application.Contracts
}
- public class UnionDocumentWithConfirmInfoView: UnionDocumentView
+ public class UnionDocumentWithConfirmInfoView : UnionDocumentView
{
-
+
public DateTime? ConfirmTime { get; set; }
@@ -60,7 +56,7 @@ namespace IRaCIS.Core.Application.Contracts
public string RealName { get; set; } = string.Empty;
- public Guid UserTypeId { get; set; }
+ public Guid UserTypeId { get; set; }
public string UserTypeShortName { get; set; } = string.Empty;
}
@@ -73,7 +69,7 @@ namespace IRaCIS.Core.Application.Contracts
public string RealName { get; set; } = string.Empty;
}
- public class DocumentUnionWithUserStatView: UnionDocumentView
+ public class DocumentUnionWithUserStatView : UnionDocumentView
{
public int? DocumentUserCount { get; set; }
public int? DocumentConfirmedUserCount { get; set; }
@@ -97,7 +93,7 @@ namespace IRaCIS.Core.Application.Contracts
}
-
+
@@ -131,7 +127,7 @@ namespace IRaCIS.Core.Application.Contracts
public Guid? FileTypeId { get; set; }
- public string TrialCode { get; set;} = string.Empty;
+ public string TrialCode { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
@@ -140,7 +136,7 @@ namespace IRaCIS.Core.Application.Contracts
}
- public class TrialUserDocUnionQuery: PageInput
+ public class TrialUserDocUnionQuery : PageInput
{
[NotDefault]
public Guid TrialId { get; set; }
@@ -156,7 +152,7 @@ namespace IRaCIS.Core.Application.Contracts
public class UserConfirmCommand
{
-
+
[NotDefault]
public Guid DocumentId { get; set; }
@@ -168,14 +164,14 @@ namespace IRaCIS.Core.Application.Contracts
public class DocumentTrialUnionQuery : TrialUserDocUnionQuery
{
-
+
public Guid? UserTypeId { get; set; }
public Guid? UserId { get; set; }
- public bool? IsConfirmed { get; set; }
+ public bool? IsConfirmed { get; set; }
- public bool? IsDeleted { get; set; }
- }
+ public bool? IsDeleted { get; set; }
+ }
/// SystemDocumentAddOrEdit 列表查询参数模型
public class SystemDocumentAddOrEdit
@@ -194,7 +190,7 @@ namespace IRaCIS.Core.Application.Contracts
public class AddOrEditSystemDocument : SystemDocumentAddOrEdit
{
- public List NeedConfirmedUserTypeIdList { get; set; }=new List();
+ public List NeedConfirmedUserTypeIdList { get; set; } = new List();
}
}
diff --git a/IRaCIS.Core.Application/Service/Document/DTO/TrialDocumentUserConfirmViewModel.cs b/IRaCIS.Core.Application/Service/Document/DTO/TrialDocumentUserConfirmViewModel.cs
index 8bd7c33a1..0875044eb 100644
--- a/IRaCIS.Core.Application/Service/Document/DTO/TrialDocumentUserConfirmViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Document/DTO/TrialDocumentUserConfirmViewModel.cs
@@ -3,8 +3,6 @@
// 生成时间 2022-01-05 09:17:10
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
namespace IRaCIS.Core.Application.Contracts
{
/// TrialDocumentUserConfirmView 列表视图模型
@@ -28,7 +26,7 @@ namespace IRaCIS.Core.Application.Contracts
-
+
public class NeedConfirmedUserTypeView
@@ -39,7 +37,7 @@ namespace IRaCIS.Core.Application.Contracts
}
-
+
}
diff --git a/IRaCIS.Core.Application/Service/Document/DTO/TrialDocumentViewModel.cs b/IRaCIS.Core.Application/Service/Document/DTO/TrialDocumentViewModel.cs
index 487809bb1..eae1fc362 100644
--- a/IRaCIS.Core.Application/Service/Document/DTO/TrialDocumentViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Document/DTO/TrialDocumentViewModel.cs
@@ -4,7 +4,6 @@
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using IRaCIS.Core.Infrastructure.Extention;
using System.ComponentModel.DataAnnotations;
namespace IRaCIS.Core.Application.Contracts
@@ -14,7 +13,7 @@ namespace IRaCIS.Core.Application.Contracts
{
public string FullFilePath { get; set; } = String.Empty;
- public bool IsSomeUserSigned{get;set;}
+ public bool IsSomeUserSigned { get; set; }
public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; }
@@ -33,8 +32,8 @@ namespace IRaCIS.Core.Application.Contracts
///TrialDocumentQuery 列表查询参数模型
public class TrialDocumentQuery : PageInput
{
- public bool? IsDeleted { get; set; }
- public Guid? FileTypeId { get; set; }
+ public bool? IsDeleted { get; set; }
+ public Guid? FileTypeId { get; set; }
public Guid? UserTypeId { get; set; }
@@ -63,7 +62,7 @@ namespace IRaCIS.Core.Application.Contracts
}
- public class AddOrEditTrialDocument: TrialDocumentAddOrEdit
+ public class AddOrEditTrialDocument : TrialDocumentAddOrEdit
{
public List NeedConfirmedUserTypeIdList { get; set; } = new List();
@@ -71,7 +70,7 @@ namespace IRaCIS.Core.Application.Contracts
-
+
}
diff --git a/IRaCIS.Core.Application/Service/Document/DTO/TrialEmailNoticeConfigViewModel.cs b/IRaCIS.Core.Application/Service/Document/DTO/TrialEmailNoticeConfigViewModel.cs
index 432e065bf..321c33568 100644
--- a/IRaCIS.Core.Application/Service/Document/DTO/TrialEmailNoticeConfigViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Document/DTO/TrialEmailNoticeConfigViewModel.cs
@@ -3,11 +3,8 @@
// 生成时间 2022-10-20 11:52:31
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
-using System;
using IRaCIS.Core.Domain.Share;
-using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
-using Newtonsoft.Json;
namespace IRaCIS.Core.Application.ViewModel
{
diff --git a/IRaCIS.Core.Application/Service/Document/EmailSendService.cs b/IRaCIS.Core.Application/Service/Document/EmailSendService.cs
index 134cf278a..fc6081944 100644
--- a/IRaCIS.Core.Application/Service/Document/EmailSendService.cs
+++ b/IRaCIS.Core.Application/Service/Document/EmailSendService.cs
@@ -1,24 +1,7 @@
-using DocumentFormat.OpenXml.EMMA;
-using DocumentFormat.OpenXml.Spreadsheet;
-using IRaCIS.Application.Contracts;
-using IRaCIS.Application.Interfaces;
-using IRaCIS.Core.Application.Contracts;
-using IRaCIS.Core.Application.Helper;
-using IRaCIS.Core.Application.Service.Reading.Dto;
-using IRaCIS.Core.Domain.Models;
+using IRaCIS.Core.Application.Helper;
using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Infrastructure;
-using MailKit;
using Microsoft.Extensions.Options;
-using Microsoft.VisualBasic;
-using MimeKit;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net.Mail;
-using System.Text;
-using System.Threading.Tasks;
-using static IRaCIS.Core.Domain.Share.StaticData;
namespace IRaCIS.Core.Application.Service
{
@@ -31,7 +14,7 @@ namespace IRaCIS.Core.Application.Service
Task SendTrialQCQuestionEmailAsync(Guid trialId);
Task SendTrialImageQuestionAsync(Guid trialId);
- Task<(TrialEmailNoticeConfig?, SMTPEmailConfig?)> BuildEmailConfig(Guid trialId, EmailBusinessScenario businessScenario, Func topicAndHtmlFunc, Guid? siteId = null, Guid? trialReadingCriterionId = null);
+ Task<(TrialEmailNoticeConfig?, SMTPEmailConfig?)> BuildEmailConfig(Guid trialId, EmailBusinessScenario businessScenario, Func topicAndHtmlFunc, Guid? siteId = null, Guid? trialReadingCriterionId = null);
}
public class EmailSendService(
@@ -42,9 +25,9 @@ namespace IRaCIS.Core.Application.Service
IRepository _trialSiteUserRepository,
IOptionsMonitor _SystemEmailSendConfig) : BaseService, IEmailSendService
{
-
- public static string EmailNamePlaceholder => StaticData. EmailSend.EmailNamePlaceholder;
+
+ public static string EmailNamePlaceholder => StaticData.EmailSend.EmailNamePlaceholder;
@@ -87,30 +70,30 @@ namespace IRaCIS.Core.Application.Service
if (isEnrollment == true)
{
- Func topicAndHtmlFunc = trialEmailConfig =>
+ Func topicAndHtmlFunc = trialEmailConfig =>
{
var topicStr = string.Format(isEn_us ? trialEmailConfig.EmailTopic : trialEmailConfig.EmailTopicCN, taskInfo.ResearchProgramNo, taskInfo.SubjectCode);
var htmlBodyStr = string.Format(isEn_us ? trialEmailConfig.EmailHtmlContent : trialEmailConfig.EmailHtmlContentCN,
EmailNamePlaceholder, taskInfo.ResearchProgramNo, taskInfo.SubjectCode, resultStr);
-
- return (topicStr, htmlBodyStr, isEn_us, null);
+
+ return (topicStr, htmlBodyStr, isEn_us, null);
};
await SendTrialEmailAsync(taskInfo.TrialId, businessScenarioEnum, topicAndHtmlFunc, taskInfo.TrialSiteId);
}
else
{
- Func topicAndHtmlFunc = trialEmailConfig =>
+ Func topicAndHtmlFunc = trialEmailConfig =>
{
var topicStr = string.Format(isEn_us ? trialEmailConfig.EmailTopic : trialEmailConfig.EmailTopicCN, taskInfo.ResearchProgramNo, taskInfo.SubjectCode, taskInfo.VisitName);
var htmlBodyStr = string.Format(isEn_us ? trialEmailConfig.EmailHtmlContent : trialEmailConfig.EmailHtmlContentCN,
EmailNamePlaceholder, taskInfo.ResearchProgramNo, taskInfo.SubjectCode, taskInfo.VisitName, resultStr);
-
- return (topicStr, htmlBodyStr, isEn_us, null);
+
+ return (topicStr, htmlBodyStr, isEn_us, null);
};
await SendTrialEmailAsync(taskInfo.TrialId, businessScenarioEnum, topicAndHtmlFunc, taskInfo.TrialSiteId);
@@ -127,7 +110,7 @@ namespace IRaCIS.Core.Application.Service
public async Task SendTrialImageQCTaskEmailAsync(Guid trialId)
{
var isEn_us = false;
- var trialInfo = await _trialRepository.Where(t => t.Id == trialId).Select(t => new { t.ResearchProgramNo, t.ExperimentName, t.TrialCode, t.TrialStatusStr }).FirstNotNullAsync();
+ var trialInfo = await _trialRepository.Where(t => t.Id == trialId).Select(t => new { t.ResearchProgramNo, t.ExperimentName, t.TrialCode, t.TrialStatusStr }).FirstNotNullAsync();
//找到 该项目的IQC 用户Id
var userList = await _trialUserRepository.Where(t => t.TrialId == trialId).Where(t => t.User.UserTypeEnum == UserTypeEnum.IQC).Select(t => new { t.UserId, t.User.FullName }).ToListAsync();
@@ -158,12 +141,12 @@ namespace IRaCIS.Core.Application.Service
if (sendStat != null && (sendStat.ToBeClaimedCount > 0 || sendStat.ToBeReviewedCount > 0))
{
- Func topicAndHtmlFunc = trialEmailConfig =>
+ Func topicAndHtmlFunc = trialEmailConfig =>
{
var topicStr = string.Format(isEn_us ? trialEmailConfig.EmailTopic : trialEmailConfig.EmailTopicCN, trialInfo.ResearchProgramNo);
var htmlBodyStr = string.Format(isEn_us ? trialEmailConfig.EmailHtmlContent : trialEmailConfig.EmailHtmlContentCN,
user.FullName, DateTime.Now, sendStat.ToBeClaimedCount, sendStat.ToBeReviewedCount, _SystemEmailSendConfig.CurrentValue.SiteUrl);
-
+
return (topicStr, htmlBodyStr, false, userId);
};
@@ -180,7 +163,7 @@ namespace IRaCIS.Core.Application.Service
public async Task SendTrialQCQuestionEmailAsync(Guid trialId)
{
var isEn_us = false;
- var trialInfo =await _trialRepository.Where(t => t.Id == trialId).Select(t => new { t.ResearchProgramNo, t.ExperimentName, t.TrialCode, t.TrialStatusStr, t.DeclarationTypeEnumList }).FirstNotNullAsync();
+ var trialInfo = await _trialRepository.Where(t => t.Id == trialId).Select(t => new { t.ResearchProgramNo, t.ExperimentName, t.TrialCode, t.TrialStatusStr, t.DeclarationTypeEnumList }).FirstNotNullAsync();
//找到 该项目的IQC 用户Id
var userList = await _trialUserRepository.Where(t => t.TrialId == trialId).Where(t => t.User.UserTypeEnum == UserTypeEnum.IQC).Select(t => new { t.UserId, t.User.FullName }).ToListAsync();
@@ -210,15 +193,15 @@ namespace IRaCIS.Core.Application.Service
if (sendStat != null && (sendStat.ToBeDealedCount > 0 || sendStat.ReUploadTobeDealedCount > 0))
{
- Func topicAndHtmlFunc = trialEmailConfig =>
+ Func topicAndHtmlFunc = trialEmailConfig =>
{
var topicStr = string.Format(isEn_us ? trialEmailConfig.EmailTopic : trialEmailConfig.EmailTopicCN, trialInfo.ResearchProgramNo);
var htmlBodyStr = string.Format(isEn_us ? trialEmailConfig.EmailHtmlContent : trialEmailConfig.EmailHtmlContentCN,
user.FullName, DateTime.Now, sendStat.ToBeDealedCount - sendStat.ReUploadTobeDealedCount, sendStat.ReUploadTobeDealedCount, _SystemEmailSendConfig.CurrentValue.SiteUrl);
-
-
- return (topicStr, htmlBodyStr, false, userId);
+
+
+ return (topicStr, htmlBodyStr, false, userId);
};
await SendTrialEmailAsync(trialId, EmailBusinessScenario.QCQuestion, topicAndHtmlFunc);
@@ -235,7 +218,7 @@ namespace IRaCIS.Core.Application.Service
{
var isEn_us = false;
- var trialInfo = await _trialRepository.Where(t => t.Id == trialId).Select(t => new { t.ResearchProgramNo, t.ExperimentName, t.TrialCode, t.TrialStatusStr }).FirstNotNullAsync();
+ var trialInfo = await _trialRepository.Where(t => t.Id == trialId).Select(t => new { t.ResearchProgramNo, t.ExperimentName, t.TrialCode, t.TrialStatusStr }).FirstNotNullAsync();
//找到 该项目的CRC 用户Id
var userList = await _trialUserRepository.Where(t => t.TrialId == trialId).Where(t => t.User.UserTypeEnum == UserTypeEnum.ClinicalResearchCoordinator).Select(t => new { t.UserId, t.User.FullName }).ToListAsync();
@@ -262,13 +245,13 @@ namespace IRaCIS.Core.Application.Service
if (sendStat != null && (sendStat.ToBeDealedCount > 0))
{
- Func