Exemplo n.º 1
0
        public async Task <ArrearagesListsResult> ArrearagesListAsync(string SessionKey, int CompanyId, ArrearagesListSearch ArrearagesListSearch)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var reportSettingList = (await reportSettingProcessor.GetAsync(CompanyId, "PF0401", token)).ToList();
                ArrearagesListSearch.CompanyId = CompanyId;
                ArrearagesListSearch.ReportSettings = reportSettingList;
                var searchResult = (await arrearagesListProcessor.GetAsync(ArrearagesListSearch, token)).ToList();

                return new ArrearagesListsResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    ArrearagesLists = searchResult,
                };
            }, logger));
        }
Exemplo n.º 2
0
 public async Task <ReportSettingsResult> GetItemsAsync(string SessionKey, int CompanyId, string ReportId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await reportSettingProcessor.GetAsync(CompanyId, ReportId, token)).ToList();
         return new ReportSettingsResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ReportSettings = result,
         };
     }, logger));
 }
Exemplo n.º 3
0
 public async Task <ActionResult <IEnumerable <ArrearagesList> > > ArrearagesList(ArrearagesListSearch option, CancellationToken token)
 {
     option.ReportSettings = (await reportSettingProcessor.GetAsync(option.CompanyId, nameof(PF0401), token)).ToList();
     return((await arrearagesListProcessor.GetAsync(option, token)).ToArray());
 }
Exemplo n.º 4
0
 public async Task <ActionResult <IEnumerable <ReportSetting> > > GetItems(ReportSetting setting, CancellationToken token = default(CancellationToken))
 => (await reportSettingProcessor.GetAsync(setting.CompanyId, setting.ReportId, token)).ToArray();