Esempio n. 1
0
        public async Task <TData <List <TypeConfigEntity> > > GetList(TypeConfigListParam param)
        {
            TData <List <TypeConfigEntity> > obj = new TData <List <TypeConfigEntity> >();

            obj.Result = await typeConfigService.GetList(param);

            obj.TotalCount = obj.Result.Count;
            obj.Tag        = 1;
            return(obj);
        }
Esempio n. 2
0
        /// <summary>
        /// 获取患者登记列表
        /// </summary>
        /// <returns></returns>
        public List <RegisterModel> GetRegisters(RequestRegisterModel request)
        {
            var models  = _registerService.GetList(request).MapListTo <tb_Register, RegisterModel>();
            var genders = _typeConfigService.GetList(x => x.DataType == (int)TypeConfigEnum.Gender);

            models.ForEach(x =>
            {
                x.IDCard     = AesUnit.AESDecrypt(x.IDCard, AppConfSetting.AesKey);
                x.GenderName = genders.Where(g => g.DataCode == x.Gender).Select(g => g.DataName).FirstOrDefault();
            });
            return(models);
        }