Exemplo n.º 1
0
 //得到病人详细信息 LY 2015-10-10
 public PatDetailInfo PsBasicInfoDetailGetPatientDetailInfo(DataConnection pclsCache, string UserId)
 {
     PatDetailInfo ret = new PatDetailInfo();
     try
     {
         if (!pclsCache.Connect())
         {
             return ret;
         }
         ret.PhoneNumber = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[0].ToString();
         ret.HomeAddress = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[1].ToString();
         ret.Occupation = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[2].ToString();
         ret.Nationality = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[3].ToString();
         ret.EmergencyContact = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[4].ToString();
         ret.EmergencyContactPhoneNumber = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[5].ToString();
         ret.PhotoAddress = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[6].ToString();
         ret.IDNo = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[7].ToString();
         ret.Height = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[8].ToString();
         ret.Weight = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[9].ToString();
         return ret;
     }
     catch (Exception ex)
     {
         HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsBasicInfoDetail.GetPatientDetailInfo", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
         return ret;
     }
     finally
     {
         pclsCache.DisConnect();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 得到病人详细信息 LY 2015-10-10
 /// </summary>
 /// <param name="pclsCache"></param>
 /// <param name="UserId"></param>
 /// <returns></returns>
 public PatDetailInfo PsBasicInfoDetailGetPatientDetailInfo(DataConnection pclsCache, string UserId)
 {
     PatDetailInfo ret = new PatDetailInfo();
     try
     {
         if (!pclsCache.Connect())
         {
             return ret;
         }
         InterSystems.Data.CacheTypes.CacheSysList list = null;
         list = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId);
         if (list != null)
         {
             ret.PhoneNumber = list[0];
             ret.HomeAddress = list[1];
             ret.Occupation = list[2];
             ret.Nationality = list[3];
             ret.EmergencyContact = list[4];
             ret.EmergencyContactPhoneNumber = list[5];
             ret.PhotoAddress = list[6];
             ret.IDNo = list[7];
             ret.Height = list[8];
             ret.Weight = list[9];
         }
         return ret;
     }
     catch (Exception ex)
     {
         HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "ModuleInfoMethod.PsBasicInfoDetailGetPatientDetailInfo", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
         return ret;
     }
     finally
     {
         pclsCache.DisConnect();
     }
 }