Beispiel #1
0
        /// <summary>
        /// 获取病区名称
        /// </summary>
        /// <auth>Yanqiao.Cai</auth>
        /// <date>2013-04-07</date>
        /// <returns></returns>
        public static string GetWardNameByID(string wardID)
        {
            try
            {
                string    wardName = string.Empty;
                DataTable dt       = DS_SqlService.GetWardByID(wardID);
                if (null != dt && dt.Rows.Count > 0)
                {
                    wardName = null == dt.Rows[0]["NAME"] ? "" : dt.Rows[0]["NAME"].ToString().Trim();
                }

                return(wardName);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }