Example #1
0
 //得到医生详细信息 LY 2015-10-10
 public DocInfoDetail PsDoctorInfoDetailGetDoctorInfoDetail(DataConnection pclsCache, string UserId)
 {
     try
     {
         DocInfoDetail ret = new DocInfoDetail();
         if (!pclsCache.Connect())
         {
             return null;
         }
         ret.IDNo = Ps.DoctorInfoDetail.GetDoctorInfoDetail(pclsCache.CacheConnectionObject, UserId)[0].ToString();
         ret.PhotoAddress = Ps.DoctorInfoDetail.GetDoctorInfoDetail(pclsCache.CacheConnectionObject, UserId)[1].ToString();
         ret.UnitName = Ps.DoctorInfoDetail.GetDoctorInfoDetail(pclsCache.CacheConnectionObject, UserId)[2].ToString();
         ret.JobTitle = Ps.DoctorInfoDetail.GetDoctorInfoDetail(pclsCache.CacheConnectionObject, UserId)[3].ToString();
         ret.Level = Ps.DoctorInfoDetail.GetDoctorInfoDetail(pclsCache.CacheConnectionObject, UserId)[4].ToString();
         ret.Dept = Ps.DoctorInfoDetail.GetDoctorInfoDetail(pclsCache.CacheConnectionObject, UserId)[5].ToString();
         return ret;
     }
     catch (Exception ex)
     {
         HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsDoctorInfoDetail.GetDoctorInfoDetail", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
         return null;
     }
     finally
     {
         pclsCache.DisConnect();
     }
 }
 /// <summary>
 /// 得到医生详细信息 LY 2015-10-10
 /// </summary>
 /// <param name="pclsCache"></param>
 /// <param name="UserId"></param>
 /// <returns></returns>
 public DocInfoDetail PsDoctorInfoDetailGetDoctorInfoDetail(DataConnection pclsCache, string UserId)
 {
     try
     {
         DocInfoDetail ret = new DocInfoDetail();
         if (!pclsCache.Connect())
         {
             return null;
         }
         InterSystems.Data.CacheTypes.CacheSysList list = null;
         list = Ps.DoctorInfoDetail.GetDoctorInfoDetail(pclsCache.CacheConnectionObject, UserId);
         if (list != null)
         {
             ret.IDNo = list[0];
             ret.PhotoAddress = list[1];
             ret.UnitName = list[2];
             ret.JobTitle = list[3];
             ret.Level = list[4];
             ret.Dept = list[5];
         }
         return ret;
     }
     catch (Exception ex)
     {
         HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "ModuleInfoMethod.PsDoctorInfoDetailGetDoctorInfoDetail", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
         return null;
     }
     finally
     {
         pclsCache.DisConnect();
     }
 }