|
@@ -106,6 +106,10 @@ namespace ZLPlugin_MR
|
|
|
return true;
|
|
|
}
|
|
|
List<YZData> ss_list = LisPacs_MR_Bll.GetYZList(lngSendID);
|
|
|
+ string hisApplyId = Tools.Generate16CharUUID();
|
|
|
+
|
|
|
+ string patientSource = "1"; //病人来源
|
|
|
+
|
|
|
string code = "";
|
|
|
string billProjectNames = ""; //开单项目名称
|
|
|
List<Codes> listlis;
|
|
@@ -150,7 +154,7 @@ namespace ZLPlugin_MR
|
|
|
totalPrice += LisPacs_MR_Bll.GetTotalPriceForPacsByZLXM(listpacs[ii].zlxmid, listpacs[ii].zxksid, listpacs[ii].part, listpacs[ii].method, 2);
|
|
|
}
|
|
|
}
|
|
|
- Recordset rd = LisPacs_MR_Bll.GetMZPostJson(lngClinicID, code, hrType, totalPrice.ToString(), code);
|
|
|
+ Recordset rd = LisPacs_MR_Bll.GetMZPostJson(lngClinicID, code, hrType, totalPrice.ToString(), hisApplyId);
|
|
|
string json = Tools.RecordsetToJson(rd);
|
|
|
Log.Info(json);
|
|
|
SocketClient clientSend = new SocketClient("127.0.0.1", 6061);
|
|
@@ -195,7 +199,7 @@ namespace ZLPlugin_MR
|
|
|
// SocketClient.Message = null;
|
|
|
SaveData(waittingdate, lngPatientID, lngClinicID, listlis, listpacs, 1);
|
|
|
//保存开单项目
|
|
|
- int ii = LisPacs_MR_Bll.InsertHuRenBillProject(Dns.GetHostName(), lngPatientID, billProjectNames, 999, Tools.GetHostIp(), Infos.UserInfo.ID.ToString(), code, hrType.ToString(), Infos.UserInfo.用户名);
|
|
|
+ int ii = LisPacs_MR_Bll.InsertHuRenBillProject(Dns.GetHostName(), lngPatientID, billProjectNames, 999, Tools.GetHostIp(), Infos.UserInfo.ID.ToString(), hisApplyId, hrType.ToString(), Infos.UserInfo.姓名,patientSource);
|
|
|
Log.Info("开单状态=" + ii);
|
|
|
clientSend.Close();
|
|
|
return true;
|
|
@@ -209,7 +213,7 @@ namespace ZLPlugin_MR
|
|
|
else
|
|
|
{
|
|
|
MessageBox.Show(rex.ResultText.ToString(), "中联软件", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
|
|
- int ii = LisPacs_MR_Bll.InsertHuRenBillProject(Dns.GetHostName(), lngPatientID, billProjectNames, 999, Tools.GetHostIp(), Infos.UserInfo.ID.ToString(), code, hrType.ToString(), Infos.UserInfo.用户名);
|
|
|
+ int ii = LisPacs_MR_Bll.InsertHuRenBillProject(Dns.GetHostName(), lngPatientID, billProjectNames, 999, Tools.GetHostIp(), Infos.UserInfo.ID.ToString(), hisApplyId, hrType.ToString(), Infos.UserInfo.姓名, patientSource);
|
|
|
Log.Info("开单状态=" + ii);
|
|
|
clientSend.Close();
|
|
|
return true;//此病人不存在互认信息
|
|
@@ -242,6 +246,7 @@ namespace ZLPlugin_MR
|
|
|
Log.Info("AdviceSave lngModual==" + lngModual);
|
|
|
Log.Info("AdviceSave lngSys == " + lngSys);
|
|
|
rsAdvice.Filter = "";
|
|
|
+ SocketClient socketClient = new SocketClient("127.0.0.1", 6061);
|
|
|
try
|
|
|
{
|
|
|
int res = 1;
|
|
@@ -268,6 +273,9 @@ namespace ZLPlugin_MR
|
|
|
return true;
|
|
|
}
|
|
|
List<YZData> ss_list = JSON.JsonToObject<List<YZData>>(Tools.FormatStr(str), Encoding.UTF8);
|
|
|
+ string hisApplyId = Tools.Generate16CharUUID();
|
|
|
+ string patientSource = ""; //病人来源
|
|
|
+
|
|
|
string code = "";
|
|
|
string billProjectNames = ""; //开单项目名称
|
|
|
List<Codes> listlis;
|
|
@@ -316,7 +324,8 @@ namespace ZLPlugin_MR
|
|
|
}
|
|
|
}
|
|
|
//totalPrice = LisPacs_MR_Bll.GetZYTotalPrice(zlxmid);
|
|
|
- rd = LisPacs_MR_Bll.GetZYPostJson(lngPatientID, lngClinicID, code, hrType, totalPrice.ToString(), code);
|
|
|
+ patientSource = "2";
|
|
|
+ rd = LisPacs_MR_Bll.GetZYPostJson(lngPatientID, lngClinicID, code, hrType, totalPrice.ToString(), hisApplyId);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -343,9 +352,10 @@ namespace ZLPlugin_MR
|
|
|
totalPrice += LisPacs_MR_Bll.GetTotalPriceForPacsByZLXM(listpacs[ii].zlxmid, listpacs[ii].zxksid, listpacs[ii].part, listpacs[ii].method, 1);
|
|
|
}
|
|
|
}
|
|
|
- rd = LisPacs_MR_Bll.GetMZPostJson(lngClinicID, code, hrType, totalPrice.ToString(),code);
|
|
|
+ patientSource = "1";
|
|
|
+ rd = LisPacs_MR_Bll.GetMZPostJson(lngClinicID, code, hrType, totalPrice.ToString(), hisApplyId);
|
|
|
}
|
|
|
- SocketClient socketClient = new SocketClient("127.0.0.1", 6061);
|
|
|
+ // SocketClient socketClient = new SocketClient("127.0.0.1", 6061);
|
|
|
//Results result = new Results();
|
|
|
string json = Tools.RecordsetToJson(rd);
|
|
|
Log.Info(json);
|
|
@@ -389,7 +399,7 @@ namespace ZLPlugin_MR
|
|
|
//SocketClient.Message = null;
|
|
|
SaveData(waittingdate, lngPatientID, lngClinicID, listlis, listpacs, -1);
|
|
|
//保存开单项目
|
|
|
- int ii = LisPacs_MR_Bll.InsertHuRenBillProject(Dns.GetHostName(), lngPatientID, billProjectNames, 999, Tools.GetHostIp(), Infos.UserInfo.ID.ToString(), code, hrType.ToString(), Infos.UserInfo.用户名);
|
|
|
+ int ii = LisPacs_MR_Bll.InsertHuRenBillProject(Dns.GetHostName(), lngPatientID, billProjectNames, 999, Tools.GetHostIp(), Infos.UserInfo.ID.ToString(), hisApplyId, hrType.ToString(), Infos.UserInfo.姓名, patientSource);
|
|
|
Log.Info("开单状态=" + ii);
|
|
|
socketClient.Close();
|
|
|
return true;
|
|
@@ -403,7 +413,7 @@ namespace ZLPlugin_MR
|
|
|
else
|
|
|
{
|
|
|
MessageBox.Show(rex.ResultText.ToString(), "中联软件", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
|
|
- int ii = LisPacs_MR_Bll.InsertHuRenBillProject(Dns.GetHostName(), lngPatientID, billProjectNames, 999, Tools.GetHostIp(), Infos.UserInfo.ID.ToString(), code, hrType.ToString(), Infos.UserInfo.用户名);
|
|
|
+ int ii = LisPacs_MR_Bll.InsertHuRenBillProject(Dns.GetHostName(), lngPatientID, billProjectNames, 999, Tools.GetHostIp(), Infos.UserInfo.ID.ToString(), hisApplyId, hrType.ToString(), Infos.UserInfo.姓名, patientSource);
|
|
|
Log.Info("开单状态=" + ii);
|
|
|
socketClient.Close();
|
|
|
return true;//此病人不存在互认信息
|