|
@@ -869,6 +869,40 @@ namespace PTMedicalInsurance
|
|
|
*/
|
|
|
#endregion
|
|
|
|
|
|
+ #region【门诊预结算2206前调用1101人员信息获取】
|
|
|
+ /* patInfo = "";
|
|
|
+ //打开读卡窗口,操作员选择读卡类型后进行读卡器读卡,再进行1101获取参保信息
|
|
|
+ if (hBus.readCard(out outParam) != 0)
|
|
|
+ {
|
|
|
+ return JsonHelper.setExceptionJson(-100, "读卡失败!", outParam).ToString();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ patInfo = outParam;
|
|
|
+ //展示患者信息界面
|
|
|
+ if (hBus.showPatInfo(patInfo, out outParam) != 0)
|
|
|
+ {
|
|
|
+ return JsonHelper.setExceptionJson(-100, "操作员取消!", outParam).ToString();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ #region 展示患者信息
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ //患者信息赋值给全局变量
|
|
|
+ patInfo = outParam;
|
|
|
+
|
|
|
+ if (hBus.setGlobalPatAfaterShowPatInfo(patInfo, out errMsg) != 0)
|
|
|
+ {
|
|
|
+ return JsonHelper.setExceptionJson(-1, "setGlobalPatAfaterShowPatInfo", errMsg).ToString();
|
|
|
+ }
|
|
|
+ //校验HIS姓名与医保姓名是否一致
|
|
|
+ if (hBus.checkName(Global.pat.name, out errMsg) != 0)
|
|
|
+ {
|
|
|
+ return JsonHelper.setExceptionJson(-1, "校验HIS与医保姓名是否一致", errMsg).ToString();
|
|
|
+ }
|
|
|
+ #endregion */
|
|
|
+ #endregion
|
|
|
|
|
|
#region 门诊预结算[2206]
|
|
|
|
|
@@ -882,7 +916,8 @@ namespace PTMedicalInsurance
|
|
|
JObject joSettlement = JObject.Parse(JsonHelper.getDestValue(joReg, "settlement"));
|
|
|
//修改joSettlement的就诊ID ,总金额等
|
|
|
joSettlement["mdtrt_id"] = Global.pat.mdtrtID;
|
|
|
- joSettlement["medfee_sumamt"] = JsonHelper.getDestValue(joSumFee, "data.Sumamt");
|
|
|
+ joSettlement["medfee_sumamt"] = JsonHelper.getDestValue(joSumFee, "data.Sumamt");
|
|
|
+
|
|
|
|
|
|
//预结算2206
|
|
|
if (hBus.preSettlement_OutPat(joSettlement, out outParam) != 0)
|
|
@@ -1219,6 +1254,33 @@ namespace PTMedicalInsurance
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
+ #region 结算前读卡
|
|
|
+ //string patInfo = "";
|
|
|
+
|
|
|
+ //errMsg = showPatientInfo(out patInfo, out outParam);
|
|
|
+ //if (!errMsg.Equals("0"))
|
|
|
+ //{
|
|
|
+ // return errMsg;
|
|
|
+ //}
|
|
|
+ if (hBus.readCard(out outParam) != 0)
|
|
|
+ {
|
|
|
+ rtnResult = JsonHelper.setExceptionJson(-100, "读卡失败!", outParam).ToString();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ string patInfo = outParam;
|
|
|
+ //展示患者信息界面
|
|
|
+ if (hBus.showPatInfo(patInfo, out outParam) != 0)
|
|
|
+ {
|
|
|
+ rtnResult = outParam;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ rtnResult = JsonHelper.setIrisReturnValue(0, "", JObject.Parse(outParam)).ToString();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
JObject joPreSetOutpar ;
|
|
|
// 结算前先调用预结算?
|
|
|
if (hBus.preSettlement("2303",out joPreSetOutpar, out outParam) != 0)
|