/// <summary> /// 跨省异地卡交易 /// </summary> internal void Ksydkjy() { #region get clsDGZydyxs_VO objDgzydyxsVo = null; clsDGZyjsfh_VO objDgzyjsfhVo = null; string strName = string.Empty; string strZyh = string.Empty; string strStatus = string.Empty; decimal decZyfyze = 0; decimal decGrzfeije = 0; long lngRes = this.objDomain.m_lngGetZYYBDyxs(this.m_objViewer.strJslx, this.m_objViewer.strRegisterId, ref strName, ref strZyh, ref strStatus, out objDgzydyxsVo, out objDgzyjsfhVo, out decZyfyze, out decGrzfeije); if (objDgzydyxsVo == null) { MessageBox.Show("该病人没有医保登记信息,请注意!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Question); return; } #endregion string uri = string.Empty; string JBR = this.m_objViewer.LoginInfo.m_strEmpNo; clsDGZydj_VO vo = new clsDGZydj_VO(); vo.GMSFHM = objDgzydyxsVo.GMSFHM; vo.JZLB = objDgzydyxsVo.JZLB; vo.RYRQ = this.objDomain.GetFeeMaxDate(this.m_objViewer.strRegisterId); // 费用日期: 结算终止日期 vo.CBDTCQBM = objDgzydyxsVo.CBDTCQBM; vo.YYBH = clsYBPublic_cs.m_strReadXML("DGCSZYYB", "YYBHZY", "AnyOne"); // 住院医院编号 clsYBPublic_cs.SP3_5003(vo, JBR, objDgzydyxsVo.JZJLH, out uri); if (!string.IsNullOrEmpty(uri)) { frmUri frm = new frmUri("跨省异地卡交易", uri); frm.ShowDialog(); } }
/// <summary> /// 住院待遇享受条件判断、初始化界面 /// </summary> public void m_mthZydyxs() { clsDGZydyxs_VO objDgzydyxsVo = null; clsDGZyjsfh_VO objDgzyjsfhVo = null; string strName = string.Empty; string strZyh = string.Empty; string strStatus = string.Empty; decimal decZyfyze = 0; decimal decGrzfeije = 0; long lngRes = this.objDomain.m_lngGetZYYBDyxs(this.m_objViewer.strJslx, this.m_objViewer.strRegisterId, ref strName, ref strZyh, ref strStatus, out objDgzydyxsVo, out objDgzyjsfhVo, out decZyfyze, out decGrzfeije); if (objDgzydyxsVo == null) { MessageBox.Show("该病人没有医保登记信息,请注意!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Question); return; } this.strRYDYZDBY = objDgzydyxsVo.RYDYZDBY; this.strJSDYZDBY = objDgzydyxsVo.JSDYZDBY; #region 补全全局病人VO objDgextraVo.JZJLH = objDgzydyxsVo.JZJLH; objDgextraVo.ZYH = strZyh; DataTable dtTmp = null; this.objDomain.m_lngGetPatientInfo(objDgextraVo.ZYH, "0", out dtTmp); if (dtTmp != null && dtTmp.Rows.Count > 0) { objDgextraVo.CBDTCQBM = dtTmp.Rows[dtTmp.Rows.Count - 1]["CBDTCQBM_VCHR"].ToString(); } if (string.IsNullOrEmpty(objDgextraVo.CBDTCQBM)) { objDgextraVo.CBDTCQBM = "441925"; // 茶山 } #endregion if (objDgzyjsfhVo != null) { if (objDgzyjsfhVo.SDYWH != "0") { this.m_objViewer.lblSdywh.Text = objDgzyjsfhVo.SDYWH; } } this.m_objViewer.lblName.Text = strName; this.m_objViewer.lblZyh.Text = strZyh; if (objDgzydyxsVo.ZYLB == "1" || objDgzydyxsVo.ZYLB == "4") { if (objDgzydyxsVo.ZYLB == "1") { this.m_objViewer.lblzylb.Text = "医疗住院"; } else if (objDgzydyxsVo.ZYLB == "4") { this.m_objViewer.lblzylb.Text = "生育住院"; } if (this.strJSDYZDBY != "") { foreach (string key in dicJSDYZDBY.Keys) { if (dicJSDYZDBY[key] == this.strJSDYZDBY) { this.m_objViewer.cobJSDYZDBY.Enabled = false; this.m_objViewer.cobJSDYZDBY.SelectedItem = key; } } } else if (this.strRYDYZDBY != "5" && this.strRYDYZDBY != "6" && !string.IsNullOrEmpty(this.strRYDYZDBY)) { this.m_objViewer.cobJSDYZDBY.Enabled = false; string strDefault = Convert.ToString(Convert.ToInt32(this.strRYDYZDBY) + 10); foreach (string key in dicJSDYZDBY.Keys) { if (dicJSDYZDBY[key] == strDefault) { this.m_objViewer.cobJSDYZDBY.SelectedItem = key; } } } else { this.m_objViewer.cobJSDYZDBY.SelectedIndex = 0; } } else if (objDgzydyxsVo.ZYLB == "2") { this.m_objViewer.lblzylb.Text = "工伤住院"; if (this.strJSDYZDBY != "") { foreach (string key in dicJSDYZDBY.Keys) { if (dicJSDYZDBY[key] == this.strJSDYZDBY) { this.m_objViewer.cobJSDYZDBY.Enabled = false; this.m_objViewer.cobJSDYZDBY.SelectedItem = key; } } } else { this.m_objViewer.cobJSDYZDBY.Enabled = false; if (this.strRYDYZDBY != "") { string strDefault = Convert.ToString(Convert.ToInt32(this.strRYDYZDBY) + 10); foreach (string key in dicJSDYZDBY.Keys) { if (dicJSDYZDBY[key] == strDefault) { this.m_objViewer.cobJSDYZDBY.SelectedItem = key; } } } } } this.m_objViewer.lbljzjlh.Text = objDgzydyxsVo.JZJLH; this.m_objViewer.lblTotal.Text = decZyfyze.ToString(); this.m_objViewer.lblSub.Text = decGrzfeije.ToString(); this.m_objViewer.lblAcc.Text = Convert.ToString(decZyfyze - decGrzfeije); string strYYTemp = string.Empty; string strDyxsbzTemp = string.Empty; lngRes = clsYBPublic_cs.m_lngFunSP1003(objDgzydyxsVo, objDgextraVo, ref strYYTemp, ref strDyxsbzTemp); if (lngRes > 0) { this.m_objViewer.txtReason.Text = strYYTemp; if (strDyxsbzTemp == "0") { this.m_objViewer.lbldyxsdz.Text = "不能享受医保待遇"; MessageBox.Show("社保系统提示:该病人目前不能享受医保待遇,请注意!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Question); this.m_objViewer.btnUpload.Enabled = false; this.m_objViewer.btnCharge.Enabled = false; this.m_objViewer.btnOk.Enabled = false; return; } else if (strDyxsbzTemp == "1") { this.m_objViewer.lbldyxsdz.Text = "享受医保待遇"; if (strStatus != null) { switch (strStatus) { case "0": this.m_objViewer.btnUpload.Enabled = true; break; case "1": this.m_objViewer.btnCharge.Enabled = true; break; } this.m_objViewer.btnOk.Enabled = true; } } } }
/// <summary> /// 获取住院医保待遇享受所需数据 /// </summary> /// <param name="strRegisterId"></param> /// <param name="objDgzydyxsVo"></param> /// <returns></returns> public long m_lngGetZYYBDyxs(string strJslx, string strRegisterId, ref string strName, ref string strZyh, ref string strStatus, out clsDGZydyxs_VO objDgzydyxsVo, out clsDGZyjsfh_VO objDgzyjsfhVo, out decimal decZyfyze, out decimal decGrzfeije) { com.digitalwave.iCare.middletier.HIS.clsYBCSQuerySVC objSvc = (com.digitalwave.iCare.middletier.HIS.clsYBCSQuerySVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsYBCSQuerySVC)); long l = objSvc.m_lngGetZYYBDyxs(strJslx, strRegisterId, ref strName, ref strZyh, ref strStatus, out objDgzydyxsVo, out objDgzyjsfhVo, out decZyfyze, out decGrzfeije); objSvc.Dispose(); return(l); }