Pārlūkot izejas kodu

fix: 修正自费比例

zhengjie 1 gadu atpakaļ
vecāks
revīzija
a88537f61e
1 mainītis faili ar 13 papildinājumiem un 2 dzēšanām
  1. 13 2
      Business/Local/LocalMedDirDownloadProcess.cs

+ 13 - 2
Business/Local/LocalMedDirDownloadProcess.cs

@@ -275,6 +275,7 @@ namespace PTMedicalInsurance.Business
                     joTmp.InterfaceDr = Global.inf.interfaceDr;
                     joTmp.updateUserID = Global.user.ID;
                     joTmp.Code = dir["ylxmbm"].Text();
+
                     joTmp.PersonnelType = dir["rqlb"].Text();  //人群类别
                     joTmp.LimitType = dir["yltclb"].Text();     //限价类型(统筹类别)
                     joTmp.BeginDate = Utils.ConvertShortDate(dir["qsrq"].Text());
@@ -321,8 +322,18 @@ namespace PTMedicalInsurance.Business
                     joTmp.InterfaceDr = Global.inf.interfaceDr;
                     joTmp.updateUserID = Global.user.ID;
                     joTmp.Code = dir["ylxmbm"].Text();
-                    joTmp.PersonnelType = "C";
-                    joTmp.ProportionType = "6";     //自费类型(统筹类别)
+                    string personType = dir["rqlb"].Text(); //人群类别
+                    if (string.IsNullOrEmpty(personType))
+                    {
+                        personType = "A"; //职工
+                    }
+                    joTmp.PersonnelType = personType;
+                    string proportionType = dir["yltclb"].Text(); //自费类型(统筹类别)
+                    if (string.IsNullOrEmpty(personType))
+                    {
+                        proportionType = "6"; //普通门诊
+                    }
+                    joTmp.ProportionType = proportionType;
                     joTmp.BeginDate = Utils.ConvertShortDate(dir["qsrq"].Text());
                     joTmp.EndDate = Utils.ConvertShortDate(dir["zzrq"].Text());
                     joTmp.Proportion = dir["sxzfbl"].Text();