Эх сурвалжийг харах

Merge branch 'master' of http://git.ius.plus:88/Project-Wing/fis

loki.wu 8 сар өмнө
parent
commit
985b510afa

+ 2 - 8
fis/Managers/USSimilarUploader.cs

@@ -1449,15 +1449,9 @@ namespace fis.Win.Dev.Managers
                     sd.Status = UploadStatus.Uploading;
                     //Pre check the record.
                     var patientCodeInServce = sd.PatientIdInServer;
-                    if (string.IsNullOrEmpty(patientCodeInServce))
-                    {
-                       patientCodeInServce = CreatePatient(_token, sd.ProjectCode, sd.PatientInfo!, sd.ExamId);
-                    }
+                    patientCodeInServce = CreatePatient(_token, sd.ProjectCode, sd.PatientInfo!, sd.ExamId);
                     var record = sd.ExamRecordId;
-                    if (string.IsNullOrEmpty(sd.ExamRecordId))
-                    {
-                        record = CreateExamRecord(sd.PatientId, sd.ExamId, sd.WorkOrderId, sd.PatientInfo, sd.IsScreenShotVersion, sd.ProjectCode, patientCodeInServce);
-                    }
+                    record = CreateExamRecord(sd.PatientId, sd.ExamId, sd.WorkOrderId, sd.PatientInfo, sd.IsScreenShotVersion, sd.ProjectCode, patientCodeInServce);
 
                     if (string.IsNullOrEmpty(record))
                     {