|
@@ -246,7 +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);
|
|
|
+ // SocketClient socketClient = new SocketClient("127.0.0.1", 6061);
|
|
|
try
|
|
|
{
|
|
|
int res = 1;
|
|
@@ -274,12 +274,14 @@ namespace ZLPlugin_MR
|
|
|
}
|
|
|
List<YZData> ss_list = JSON.JsonToObject<List<YZData>>(Tools.FormatStr(str), Encoding.UTF8);
|
|
|
string hisApplyId = Tools.Generate16CharUUID();
|
|
|
+ Log.Info("hisApplyId==" + hisApplyId);
|
|
|
string patientSource = ""; //病人来源
|
|
|
|
|
|
string code = "";
|
|
|
string billProjectNames = ""; //开单项目名称
|
|
|
List<Codes> listlis;
|
|
|
List<Codes> listpacs;
|
|
|
+ Log.Info("");
|
|
|
LisPacs_MR_Bll.GetTreatmentId(ss_list, out code, out listlis, out listpacs, out billProjectNames);
|
|
|
Log.Info("code==" + code);
|
|
|
Log.Info("billProjectNames==" + billProjectNames);
|
|
@@ -355,7 +357,7 @@ namespace ZLPlugin_MR
|
|
|
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);
|
|
@@ -387,15 +389,19 @@ namespace ZLPlugin_MR
|
|
|
|
|
|
}
|
|
|
Log.Info("22222" + SocketClient.Message);
|
|
|
+ Log.Info("退出循环!");
|
|
|
+ Log.Info("listlis count!" + listlis.Count);
|
|
|
+ Log.Info("listpacs count!" + listpacs.Count);
|
|
|
if (!string.IsNullOrWhiteSpace(SocketClient.Message))
|
|
|
{
|
|
|
- Log.Info(SocketClient.Message);
|
|
|
+ //Log.Info(SocketClient.Message);
|
|
|
ResultsEx rex = new ResultsEx();
|
|
|
rex = JSON.JsonToObject<ResultsEx>(Tools.FormatStr(SocketClient.Message), Encoding.UTF8);
|
|
|
if (rex.ResultCode == 2)//有互认
|
|
|
{
|
|
|
MessageBox.Show("回传数据至his!");
|
|
|
socketClient.Receive();
|
|
|
+
|
|
|
//SocketClient.Message = null;
|
|
|
SaveData(waittingdate, lngPatientID, lngClinicID, listlis, listpacs, -1);
|
|
|
//保存开单项目
|