diff --git a/IRaCIS.Core.API/Program.cs b/IRaCIS.Core.API/Program.cs index e58662a7..10a98ac4 100644 --- a/IRaCIS.Core.API/Program.cs +++ b/IRaCIS.Core.API/Program.cs @@ -76,50 +76,50 @@ namespace IRaCIS.Core.API #region 认证程序 - if (!File.Exists($@"C:\ProgramData\.xingcang\config.json")) - { - Console.WriteLine("当前未注册"); - Log.Logger.Error("当前未注册"); - Console.ReadLine(); - return; - } - else - { - var json = File.ReadAllText($@"C:\ProgramData\.xingcang\config.json"); + //if (!File.Exists($@"C:\ProgramData\.xingcang\config.json")) + //{ + // Console.WriteLine("当前未注册"); + // Log.Logger.Error("当前未注册"); + // Console.ReadLine(); + // return; + //} + //else + //{ + // var json = File.ReadAllText($@"C:\ProgramData\.xingcang\config.json"); - JObject jsonObject = JObject.Parse(json); + // JObject jsonObject = JObject.Parse(json); - var key = jsonObject["key"].ToString(); + // var key = jsonObject["key"].ToString(); - var value = jsonObject["value"].ToString(); + // var value = jsonObject["value"].ToString(); - var physicalAddressList = NetworkInterface.GetAllNetworkInterfaces().Select(t => t.GetPhysicalAddress().ToString()); + // var physicalAddressList = NetworkInterface.GetAllNetworkInterfaces().Select(t => t.GetPhysicalAddress().ToString()); - // 判断文件里面的机器码是否是本机的 - if (!physicalAddressList.Contains(key)) - { - Console.WriteLine("机器码和本机不对应"); - Log.Logger.Error("机器码和本机不对应"); - Console.ReadLine(); + // // 判断文件里面的机器码是否是本机的 + // if (!physicalAddressList.Contains(key)) + // { + // Console.WriteLine("机器码和本机不对应"); + // Log.Logger.Error("机器码和本机不对应"); + // Console.ReadLine(); - return; - } + // return; + // } - var secrete = MD5Helper.Md5($"{key}_XINGCANG"); + // var secrete = MD5Helper.Md5($"{key}_XINGCANG"); - if (value != secrete) - { - Console.WriteLine("机器码和注册码不匹配"); - Log.Logger.Error("机器码和注册码不匹配"); - Console.ReadLine(); + // if (value != secrete) + // { + // Console.WriteLine("机器码和注册码不匹配"); + // Log.Logger.Error("机器码和注册码不匹配"); + // Console.ReadLine(); - return; + // return; - } + // } - } + //} #endregion diff --git a/IRaCIS.Core.Application/BusinessFilter/TrialResourceFilter.cs b/IRaCIS.Core.Application/BusinessFilter/TrialResourceFilter.cs index 14f0a78e..3eebd694 100644 --- a/IRaCIS.Core.Application/BusinessFilter/TrialResourceFilter.cs +++ b/IRaCIS.Core.Application/BusinessFilter/TrialResourceFilter.cs @@ -184,7 +184,7 @@ namespace IRaCIS.Core.Application.Filter // 椤圭洰鍋滄銆佹垨鑰呭畬鎴 涓嶅厑璁告搷浣 else { - context.Result = new JsonResult(ResponseOutput.NotOk("鏈璇锋眰琚厤缃鍒欐嫤鎴細椤圭洰鐘舵佸浜庤繘琛屼腑鏃,鎵嶅厑璁告搷浣,鑻ユ澶勯昏緫鏈夎锛岃鑱旂郴寮鍙戜汉鍛樹慨鏀")); + context.Result = new JsonResult(ResponseOutput.NotOk("鏈璇锋眰琚厤缃鍒欐嫤鎴細椤圭洰鐘舵佸浜庤繘琛屼腑鐘舵佹椂,鎵嶅厑璁告搷浣溿")); } diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs index 5cecb507..06c11fb0 100644 --- a/IRaCIS.Core.Application/Service/Management/UserService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserService.cs @@ -524,8 +524,6 @@ namespace IRaCIS.Application.Services - - return ResponseOutput.Result(success, new UserAddedReturnDTO { Id = saveItem.Id, UserCode = saveItem.UserCode }); } diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index 58b2410c..b2f05d4c 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -690,7 +690,7 @@ namespace IRaCIS.Core.Application.Image.QA study.BodyPartForEdit = updateModalityCommand.BodyPart; //study.Modalities = updateModalityCommand.Modality; study.ModalityForEdit = updateModalityCommand.Modality; - await _repository.BatchUpdateAsync(t => t.StudyId == studyId, r => new DicomSeries() { BodyPartForEdit = updateModalityCommand.BodyPart, Modality = updateModalityCommand.Modality }); + await _repository.BatchUpdateAsync(t => t.StudyId == studyId, r => new DicomSeries() { BodyPartForEdit = updateModalityCommand.BodyPart }); } else if (updateModalityCommand.Type == 2) { diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialService.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialService.cs index ddf3510d..61da52d3 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialService.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialService.cs @@ -194,7 +194,7 @@ namespace IRaCIS.Application.Services trial.IsHaveFirstGiveMedicineDate = false; - trial.TrialStatusStr = StaticData.TrialState.TrialOngoing; + trial.TrialStatusStr = StaticData.TrialState.TrialInitializing; trial.BlindBaseLineName = "Batch 1"; trial.BlindBaseLineName = "Batch "; @@ -262,7 +262,7 @@ namespace IRaCIS.Application.Services var success = await _repository.SaveChangesAsync(); - _provider.Set(trial.Id.ToString(), StaticData.TrialState.TrialOngoing, TimeSpan.FromDays(7)); + _provider.Set(trial.Id.ToString(), StaticData.TrialState.TrialInitializing, TimeSpan.FromDays(7)); await _ITrialConfigService.AsyncTrialCriterionDictionary(new Core.Application.Contracts.AsyncTrialCriterionDictionaryInDto() { TrialReadingCriterionId = cretrion.Id }); diff --git a/IRaCIS.Core.Application/Service/Visit/SubjectVisitService.cs b/IRaCIS.Core.Application/Service/Visit/SubjectVisitService.cs index c0114583..ce45ee87 100644 --- a/IRaCIS.Core.Application/Service/Visit/SubjectVisitService.cs +++ b/IRaCIS.Core.Application/Service/Visit/SubjectVisitService.cs @@ -81,7 +81,7 @@ namespace IRaCIS.Core.Application.Services var verifyExp3 = new EntityVerifyExp() { VerifyExp = t => t.SubjectId == svCommand.SubjectId && t.VisitName == svCommand.VisitName, - VerifyMsg = "璇ユ偅鑰呯殑妫鏌ユ壒娆¤鍒掍腑宸茬粡鍖呭惈涓涓叿鏈夌浉鍚屾鏌ユ壒娆″悕绉扮殑妫鏌ユ壒娆°" + VerifyMsg = "璇ユ偅鑰呯殑妫鏌ユ壒娆′腑宸茬粡鍖呭惈涓涓叿鏈夌浉鍚屽悕绉扮殑妫鏌ユ壒娆°" };