public PatientInfo GetMedcareInfo() { HIS_Entity.MIManage.InputClass inputClasss = new HIS_Entity.MIManage.InputClass(); Dictionary <InputType, object> dicStr = new Dictionary <InputType, object>(); inputClasss.SInput = dicStr; HIS_Entity.MIManage.ResultClass resultClass = MIInterFaceFactory.MZ_GetPersonInfo(inputClasss); if (resultClass.bSucess == true) { if (resultClass.sRemarks != "") { MessageBox.Show(resultClass.sRemarks); } List <PatientInfo> patientInfoList = (List <PatientInfo>)resultClass.oResult; string patientState = ""; if (patientInfoList[0].IsSpecifiedHosp.Trim() != "") { patientState = patientInfoList[0].IsSpecifiedHosp.Contains("0") ? "本地红名单" : (patientInfoList[0].IsSpecifiedHosp.Contains("1") ? "本人定点医院" : (patientInfoList[0].IsSpecifiedHosp.Contains("2") ? "不是本人定点医院" : "转诊")); } string MedicardInfo = "姓名:" + patientInfoList[0].PersonName + " 定点医院:" + patientState + " 红名单:" + patientInfoList[0].IsInredList + " 余额:" + patientInfoList[0].PersonCount + " 身份证号码:" + patientInfoList[0].IdNo; //"12345678900987654"; if (patientInfoList[0].IsInredList.Contains("false")) { MessageBox.Show("卡号:" + patientInfoList[0].CardNo + " 姓名:" + patientInfoList[0].PersonName + " 定点医院:" + patientState + " 该病人不是本院红名单!"); } if (patientInfoList[0].HospFlag.Trim() == "1") { MessageBox.Show("卡号:" + patientInfoList[0].CardNo + " 姓名:" + patientInfoList[0].PersonName + " 定点医院:" + patientState + " 该病人已在院!"); } return(patientInfoList[0]); } else { throw new Exception("异常!" + resultClass.sRemarks); } }
public void Mz_GetPersonInfoDllNew(string sCardNo) { dicStr.Clear(); dicStr.Add(InputType.CardNo, sCardNo); ResultClass resultClass = MIInterFaceFactory.MZ_GetPersonInfo(input); if (resultClass.bSucess) { List <PatientInfo> patientInfoList = (List <PatientInfo>)resultClass.oResult; iFrmMITest.LoadPatientInfo(patientInfoList[0]); } else { MessageBoxShowError("异常!" + resultClass.sRemarks); } }