public void OutNetworkSettle(OutPayParameter para) { OutPayPara = para; //门诊结算 dicSettleInfo = handelModel.SettleMZ(false); //保存门诊结算明细 SaveOutSettleMain(); handelModel.PrintDJ(dicSettleInfo["brjsh"], "FP"); isInit = false; GC.Collect(); //释放对象 handelModel.ReleaseComObj(); }
/// <summary> /// 门诊联网结算 /// </summary> /// <param name="inPara">门诊接口入参</param> /// <returns></returns> public void OutNetworkSettle(OutPayParameter para) { InterfaceInit(); outReimPara = para; //当姓名不一致时提示 if (outReimPara.PatInfo.PatName != dicPatInfo["xm"]) { if (MessageBox.Show(" 医保卡姓名为:【" + dicPatInfo["xm"].ToString() + "】 HIS患者姓名为:【" + outReimPara.PatInfo.PatName + "】 是否继续 ", "询问", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) != DialogResult.Yes) { throw new Exception("姓名不一致,操作员取消操作!"); } } //门诊初始化 handelModel.InitMZ(); handelModel.SaveOutItemsMZ(outReimPara.Details); //门诊结算 dicSettleInfo = handelModel.SettleMZ(dicPatInfo["sbjbm"], dicPatInfo["ylzbh"]); //---------------------------------------------低保结算 if (Convert.ToDecimal(dicSettleInfo["xj"]) > 0) //如果自负金额大于0弹出是否低保结算提示 { if (outReimPara.RegInfo.Memo2 == "低保") { dicSettleInfoDibao.Clear(); DiBaoJS_Confirm diBaoJS = new DiBaoJS_Confirm(outReimPara, dicSettleInfo, dicSettleInfoDibao); diBaoJS.ShowDialog(); } } //------------------------------------------------ //保存门诊结算明细 SaveOutSettleMain(); GC.KeepAlive(handelModel); GC.Collect(); }