/// <summary> /// 住院读卡 /// </summary> /// <returns></returns> public void InNetWorkReadCard(InPayParameter para) { Dictionary <string, string> patInfo = new Dictionary <string, string>(); //判断有卡无卡 frmCARD frmCard = new frmCARD(); frmCard.lblzylb.Visible = true; frmCard.cbType.Visible = true; frmCard.ShowDialog(); if (frmCard.iscard == "1") { CARD_Y_N = "1"; P_syzhlx = "3"; patInfo = handelModel.ReadCardZY(); } else if (frmCard.iscard == "0") { CARD_Y_N = "0"; P_syzhlx = "5"; patInfo = handelModel.QueryBasicInfo(frmCard.IDNo, "", "1", "");//*医疗统筹类别(1,住院,4 门规) } else { throw new Exception("操作员取消本次操作"); } p_yltclb = frmCard.cbType.SelectedValue.ToString(); dicPatInfo = patInfo; if (dicPatInfo["zhzybz"] == "1") { MessageBox.Show(dicPatInfo["zhzysm"]); } inReimPara.RegInfo.CardNo = patInfo["ylzbh"]; //医疗卡号 inReimPara.RegInfo.NetRegSerial = patInfo["sbjglx"]; //卡序列号 inReimPara.RegInfo.CantonCode = patInfo["sbjbm"]; //行政区号 inReimPara.RegInfo.MemberNo = patInfo["ylzbh"]; //成员编码 inReimPara.RegInfo.CompanyName = patInfo["dwmc"]; //单位名称 inReimPara.RegInfo.PatAddress = patInfo["dwmc"]; //住址 inReimPara.RegInfo.IdNo = patInfo["shbzhm"]; //身份证号 inReimPara.RegInfo.NetPatType = patInfo["ylrylb"]; //人员类别 inReimPara.RegInfo.Memo1 = patInfo["xb"] == "1" ? "男" : "女"; //性别 inReimPara.RegInfo.Memo2 = CARD_Y_N; // 有卡,无卡 inReimPara.RegInfo.NetPatName = patInfo["xm"]; //姓名 string rqlb = ""; if (dicPatInfo["sbjglx"] == "A") { rqlb = "职工"; } else if (dicPatInfo["sbjglx"] == "B") { rqlb = "居民"; } inReimPara.RegInfo.NetPatType = rqlb; //人员 inReimPara.RegInfo.NetType = "1"; inReimPara.RegInfo.PatInHosSerial = inReimPara.PatInfo.PatInHosCode; //当姓名不一致时提示 if (inReimPara.PatInfo.InPatName != patInfo["xm"]) { if (MessageBox.Show(" 医保卡姓名为:【" + patInfo["xm"].ToString() + "】 HIS患者姓名为:【" + inReimPara.PatInfo.InPatName + "】 是否继续 ", "询问", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) != DialogResult.Yes) { throw new Exception("姓名不一致,操作员取消操作!"); } } //inReimPara.RegInfo.NetPatName = patInfo["xm"]; //姓名 //if (patInfo["ylrylb"].Contains("居民")) // MessageBox.Show("提示:该患者人员类别属于居民,但住院信息中费别为职工,请取消操作并调整患者费别!"); //显示个人信息 PersonInfoDialog perDialog = new PersonInfoDialog(patInfo); perDialog.ShowDialog(); }