| | |
| | | using System; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_Core.DB; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.System; |
| | | using WIDESEAWCS_ISystemRepository; |
| | | using WIDESEAWCS_ISystemServices; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | | } |
| | | |
| | | public object GetVueDictionary(string[] dicNos) |
| | | public List<VueDictionaryDTO> GetVueDictionary(string[] dicNos) |
| | | { |
| | | if (dicNos == null || dicNos.Count() == 0) return new string[] { }; |
| | | if (dicNos == null || dicNos.Count() == 0) return new List<VueDictionaryDTO>(); |
| | | |
| | | var dicConfig = BaseDal.GetDictionaries(dicNos, false).Select(s => new |
| | | { |
| | |
| | | { |
| | | if (string.IsNullOrEmpty(dbSql)) |
| | | { |
| | | return data as object; |
| | | return data; |
| | | } |
| | | return BaseDal.QueryObjectDataBySql(dbSql, null); |
| | | } |
| | | return dicConfig.Select(item => new |
| | | return dicConfig.Select(item => new VueDictionaryDTO |
| | | { |
| | | item.dicNo, |
| | | item.config, |
| | | data = GetSourceData(item.dicNo, item.dbSql, item.list) |
| | | DicNo = item.dicNo, |
| | | Config = item.config, |
| | | Data = GetSourceData(item.dicNo, item.dbSql, item.list) |
| | | }).ToList(); |
| | | } |
| | | } |