/// <summary> /// 读卡 /// </summary> /// <returns></returns> public NetworkPatInfo NetworkReadCard() { InterfaceInit(); NetworkPatInfo networkPatInfo = new NetworkPatInfo(); frmCARD frmCard = new Dialog.frmCARD(); frmCard.ShowDialog(); if (frmCard.iscard == "1") { CARD_Y_N = "1"; P_syzhlx = "3"; try { patInfo = handelModel.ReadCardMG(); } catch (Exception ex) { patInfo = handelModel.ReadCardMG(); } } else if (frmCard.iscard == "0") { CARD_Y_N = "0"; P_syzhlx = "5"; patInfo = handelModel.QueryBasicInfo(frmCard.IDNo, "", "4", "");//*医疗统筹类别(1,住院,4 门规) } else { throw new Exception("操作员取消本次操作"); } dicPatInfo = patInfo; networkPatInfo.MedicalNo = patInfo["ylzbh"]; //医疗卡号 networkPatInfo.PatName = patInfo["xm"]; //姓名 networkPatInfo.Sex = patInfo["xb"] == "1" ? "男" : "女"; //性别 networkPatInfo.IDNo = patInfo["shbzhm"]; //身份证号码 patInfo["sfzhm"] networkPatInfo.MedicalTypeName = patInfo["ylrylb"]; networkPatInfo.MedicalType = patInfo["ylrylb"]; //医疗人员类别 networkPatInfo.ICAmount = Convert.ToDecimal(patInfo["ye"]); //账户余额 networkPatInfo.ICNo = ""; //社会保障卡卡号patInfo["kh"] networkPatInfo.CompanyNo = patInfo["sbjbm"]; //单位编号 networkPatInfo.CompanyName = patInfo["dwmc"]; //单位名称 //networkPatInfo.Birthday = Convert.ToDateTime(patInfo["csrq"].Substring(0, 4) + "-" + patInfo["csrq"].Substring(4, 2) + "-" + patInfo["csrq"].Substring(6, 2)); //出生日期 networkPatInfo.MedicalType = patInfo["ylrylb"]; return(networkPatInfo); }