public PatBasicInfo GetPatBasicInfo(DataConnection pclsCache, string UserId) { try { string module = ""; PatBasicInfo patientInfo = new PatBasicInfo(); PatientBasicInfo patientList = usersMethod.GetPatientBasicInfo(pclsCache, UserId); patientInfo.UserId = UserId; if (patientList != null) { patientInfo.UserName = patientList.UserName; patientInfo.Age = patientList.Age; patientInfo.Gender = patientList.Gender; patientInfo.BloodType = patientList.BloodType; patientInfo.InsuranceType = patientList.InsuranceType; patientInfo.Birthday = patientList.Birthday; patientInfo.GenderText = patientList.GenderText; patientInfo.BloodTypeText = patientList.BloodTypeText; patientInfo.InsuranceTypeText = patientList.InsuranceTypeText; patientInfo.DoctorId = patientList.DoctorId; patientInfo.IDNo = patientList.IDNo; } List <TypeAndName> modules = moduleInfoMethod.PsBasicInfoDetailGetModulesByPID(pclsCache, UserId); for (int i = 0; i < modules.Count; i++) { module = module + "|" + modules[i].Name; } if (module != "") { module = module.Substring(1, module.Length - 1); } patientInfo.Module = module; return(patientInfo); } catch (Exception ex) { HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "GetPatBasicInfo", "WebService调用异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace); return(null); throw ex; } }
public PatBasicInfo GetPatBasicInfo(string UserId) { PatBasicInfo ret = repository.GetPatBasicInfo(pclsCache, UserId); return(ret); }