/// <summary> /// 读卡 /// </summary> /// <returns></returns> public NetworkPatInfo NetworkReadCard() { InterfaceInit(); NetworkPatInfo networkPatInfo = new NetworkPatInfo(); frmCARD frmCard = new frmCARD(); frmCard.ShowDialog(); if (frmCard.iscard == "1") { CARD_Y_N = "1"; P_syzhlx = "3"; try { patInfo = handelModel.ReadCardMZ(); } catch (Exception ex) { patInfo = handelModel.ReadCardMZ(); } } else if (frmCard.iscard == "0") { CARD_Y_N = "0"; P_syzhlx = "5"; patInfo = handelModel.QueryBasicInfo(frmCard.IDNo, "", "6", "");//*医疗统筹类别(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"]; //身份证号码shbzhm networkPatInfo.MedicalTypeName = patInfo["ylrylb"]; networkPatInfo.MedicalType = patInfo["ylrylb"]; //医疗人员类别 networkPatInfo.ICAmount = Convert.ToDecimal(patInfo["ye"]); //账户余额 networkPatInfo.ICNo = ""; //patInfo["kh"]; //社会保障卡卡号 networkPatInfo.CompanyNo = patInfo["sbjbm"]; //单位编号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); }