/// <summary> /// 获取权限内的科室ID和病区ID集合 /// 注:string[0]:科室;string[1]:病区 /// </summary> /// <auth>Yanqiao.Cai</auth> /// <date>2013-01-18</date> /// <returns></returns> public static List <string[]> GetDeptAndWardInRight(string userID) { try { if (string.IsNullOrEmpty(userID)) { return(new List <string[]>()); } List <string[]> list = new List <string[]>(); DataTable dt = DS_SqlService.GetDeptAndWardInRight(userID); if (null != dt && dt.Rows.Count > 0) { foreach (DataRow drow in dt.Rows) { string[] array = new string[2]; array[0] = null == drow["deptid"] ? "" : drow["deptid"].ToString().Trim(); array[1] = null == drow["wardid"] ? "" : drow["wardid"].ToString().Trim(); list.Add(array); } } return(list); } catch (Exception ex) { throw new Exception(ex.Message); } }