|
@@ -278,7 +278,7 @@ namespace ZLPlugin_LisPacs_MR
|
|
|
string zlxmid = "";
|
|
|
string totalPrice = "0";
|
|
|
int hrType = 0;
|
|
|
-
|
|
|
+ string hisApplyCode = ""; // 开单唯一id
|
|
|
if (listlis.Count == 0 && listpacs.Count == 0)
|
|
|
{
|
|
|
return true;
|
|
@@ -289,6 +289,7 @@ namespace ZLPlugin_LisPacs_MR
|
|
|
yzid = listlis[0].yzid;
|
|
|
xgid = listlis[0].id;
|
|
|
zlxmid = listlis[0].zlxmid;
|
|
|
+ hisApplyCode = xgid;
|
|
|
}
|
|
|
else if (listpacs.Count > 0 && listlis.Count == 0)//只有检查
|
|
|
{
|
|
@@ -296,6 +297,7 @@ namespace ZLPlugin_LisPacs_MR
|
|
|
yzid = listpacs[0].yzid;
|
|
|
xgid = listpacs[0].id;
|
|
|
zlxmid = listpacs[0].zlxmid;
|
|
|
+ hisApplyCode = xgid;
|
|
|
}
|
|
|
Log.Info("listpacs.Count"+ listpacs.Count);
|
|
|
Log.Info("listlis.Count" + listlis.Count);
|
|
@@ -306,11 +308,17 @@ namespace ZLPlugin_LisPacs_MR
|
|
|
{
|
|
|
totalPrice = LisPacs_MR_Bll.GetTotalPriceForLisByZLXM(zlxmid);
|
|
|
}
|
|
|
- else
|
|
|
+ else if(hrType == 2)
|
|
|
{
|
|
|
|
|
|
totalPrice = LisPacs_MR_Bll.GetTotalPriceForPacsByZLXM(zlxmid, listpacs[0].zxksid, listpacs[0].part, listpacs[0].method,1);
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ //获取合单之后 同时有检查和检验 的开单项目唯一id 以及金额
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
rd = LisPacs_MR_Bll.GetZYPostJson(lngPatientID, lngClinicID, code, hrType, totalPrice, xgid);
|
|
|
}
|
|
@@ -320,9 +328,15 @@ namespace ZLPlugin_LisPacs_MR
|
|
|
{
|
|
|
totalPrice = LisPacs_MR_Bll.GetTotalPriceForLisByZLXM(zlxmid);
|
|
|
}
|
|
|
- else
|
|
|
+ else if (hrType == 2)
|
|
|
{
|
|
|
totalPrice = LisPacs_MR_Bll.GetTotalPriceForPacsByZLXM(zlxmid, listpacs[0].zxksid, listpacs[0].part, listpacs[0].method, 2);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ //获取合单之后 同时有检查和检验 的开单项目唯一id 以及金额
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
rd = LisPacs_MR_Bll.GetMZPostJson(lngClinicID, code, hrType, totalPrice, xgid);
|
|
|
}
|