예제 #1
0
        /// <summary>
        /// 根据角色查询读者列表、该角色读者总数(弃用)
        /// </summary>
        /// <param name="roleId"></param>
        /// <param name="readerCount"></param>
        /// <returns></returns>
        public List <Reader> GetReaders(string roleId, out int readerCount)
        {
            List <Reader> readerList = objReaderService.GetReaders(roleId, out readerCount);

            for (int i = 0; i < readerList.Count; i++)
            {
                switch (readerList[i].StatusId)
                {
                case 1:
                    readerList[i].StatusDes = "正常";
                    break;

                case 2:
                    readerList[i].StatusDes = "禁用";
                    break;
                }
            }
            return(readerList);
        }
예제 #2
0
 private void RefreshReaders()
 {
     Task.Run(() => this.Readers = readerService.GetReaders());
 }