Beispiel #1
0
 public async Task <DestinationsResult> GetItemsAsync(string SessionKey, DestinationSearch option)
 => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => {
     var result = (await destinationProcessor.GetAsync(option, token)).ToList();
     return(new DestinationsResult {
         Destinations = result,
         ProcessResult = new ProcessResult {
             Result = true
         },
     });
 }, logger);
 public async Task <CountResult> SaveAsync(string SessionKey, WebApiSetting setting)
 => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => {
     var result = await webApiSettingProcessor.SaveAsync(setting, token);
     return(new CountResult {
         ProcessResult = new ProcessResult {
             Result = true
         },
         Count = result,
     });
 }, logger);
 public async Task <CountResult> DeleteAsync(string sessionKey, long id)
 => await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token => {
     var result = await periodicBillingSettingProcessor.DeleteAsync(id, token);
     return(new CountResult {
         ProcessResult = new ProcessResult {
             Result = true
         },
         Count = result,
     });
 }, logger);
Beispiel #4
0
 public async Task <CountResult> DeleteAsync(string SessionKey, int Id)
 => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
 {
     var result = await ebFileFormatSettingProcessor.DeleteAsync(Id, token);
     return(new CountResult {
         ProcessResult = new ProcessResult {
             Result = true
         },
         Count = result,
     });
 }, logger);
Beispiel #5
0
 public async Task <JournalizingSummariesResult> GetSummaryAsync(string SessionKey, JournalizingOption option)
 => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => {
     var result = await hatarakuDBJournalizingProcessor.GetSummaryAsync(option, token);
     return(new JournalizingSummariesResult
     {
         ProcessResult = new ProcessResult {
             Result = true
         },
         JournalizingsSummaries = result.ToList(),
     });
 }, logger);
 public async Task <BillingDivisionContractsResult> GetByBillingIdsAsync(string sessionKey, long[] billingIds)
 => await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token => {
     var contracts = (await billingDivisionContractProcessor.GetAsync(new BillingDivisionContractSearch {
         BillingIds = billingIds,
     }, token)).ToList();
     return(new BillingDivisionContractsResult {
         BillingDivisionContracts = contracts,
         ProcessResult = new ProcessResult {
             Result = true
         },
     });
 }, logger);
 public async Task <ExistResult> ExistCustomerAsync(string SessionKey, int CustomerId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await kanaHistoryCustomerProcessor.ExistCustomerAsync(CustomerId, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = result,
         };
     }, logger));
 }
 public async Task <ClosingSettingResult> GetAsync(string sessionKey, int companyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token =>
     {
         var result = await closingSettingProcessor.GetAsync(companyId, token);
         return new ClosingSettingResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ClosingSetting = result
         };
     }, logger));
 }
 public async Task <ApplicationControlResult> GetAsync(string sessionKey, int companyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token =>
     {
         var result = await applicationControlProcessor.GetAsync(companyId, token);
         return new ApplicationControlResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ApplicationControl = result,
         };
     }, logger));
 }
 public async Task <PasswordPolicyResult> GetAsync(string SessionKey, int CompanyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await passwordPolicyProcessor.GetAsync(CompanyId, token);
         return new PasswordPolicyResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             PasswordPolicy = result,
         };
     }, logger));
 }
 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));
 }
 public async Task <ExistResult> ExistAccountTitleAsync(string sessionKey, int accountTitleid)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token =>
     {
         var result = await customerDiscountProcessor.ExistAccountTitleAsync(accountTitleid, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = result,
         };
     }, logger));
 }
Beispiel #13
0
 public async Task <StaffResult> SaveAsync(string SessionKey, Staff Staff)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await staffProcessor.SaveAsync(Staff, token);
         return new StaffResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Staff = result,
         };
     }, logger));
 }
 public async Task <PdfOutputSettingResult> GetAsync(string SessionKey, int CompanyId, int ReportType, int UserId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await pdfOutputSettingProcessor.GetAsync(CompanyId, ReportType, UserId, token);
         return new PdfOutputSettingResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             PdfOutputSetting = result,
         };
     }, logger));
 }
Beispiel #15
0
 public async Task <GridSettingResult> SaveAsync(string SessionKey, GridSetting[] GridSettings)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await gridSettingProcessor.SaveAsync(GridSettings, token)).First();
         return new GridSettingResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             GridSetting = result,
         };
     }, logger));
 }
Beispiel #16
0
 public async Task <ControlColorResult> GetAsync(string SessionKey, int CompanyId, int LoginuserId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await controlcolorProcessor.GetAsync(CompanyId, LoginuserId, token);
         return new ControlColorResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Color = (result == null) ? null : new ControlColor[] { result },
         };
     }, logger));
 }
Beispiel #17
0
 public async Task <ImportFileLogsResult> GetHistoryAsync(string Sessionkey, int ComapnyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(Sessionkey, async token =>
     {
         var result = (await importFileLogProcessor.GetHistoryAsync(ComapnyId, token)).ToList();
         return new ImportFileLogsResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ImportFileLogs = result
         };
     }, logger));
 }
 public async Task <BillingBalanceResult> GetLastCarryOverAtAsync(string SessionKey, int CompanyId)
 {
     return(await authorizationProcess.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await billingBalanceProcessor.GetLastCarryOverAtAsync(CompanyId, token);
         return new BillingBalanceResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             LastCarryOverAt = result,
         };
     }, logger));
 }
 public async Task <ReceiptHeadersResult> GetAsync(string SessionKey, long[] Ids)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await receiptHeaderProcessor.GetByIdsAsync(Ids, token)).ToList();
         return new ReceiptHeadersResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ReceiptHeaders = result,
         };
     }, logger));
 }
Beispiel #20
0
 public async Task <CountResult> DeleteAsync(string SessionKey, int CompanyId, string Kana)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await juridicalPersonalityProcessor.DeleteAsync(CompanyId, Kana);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
Beispiel #21
0
 public async Task <ExistResult> ExistExcludeCategoryAsync(string SessionKey, int CategoryId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await receiptexcludeProcessor.ExistExcludeCategoryAsync(CategoryId, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = result,
         };
     }, logger));
 }
        public async Task <TaskScheduleHistoryResult> GetItemsAsync(string SessionKey, TaskScheduleHistorySearch searchConditions)
        {
            return(await authorizationProcess.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await taskScheduleHistoryProcessor.GetAsync(searchConditions, token)).ToList();

                return new TaskScheduleHistoryResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    TaskScheduleHistoryList = result,
                };
            }, logger));
        }
        public async Task <CollationSettingResult> GetAsync(string SessionKey, int CompanyId)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await collationSettingProcessor.GetAsync(CompanyId);

                return new CollationSettingResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    CollationSetting = result,
                };
            }, logger));
        }
Beispiel #24
0
        public async Task <AdvanceReceivedBackupResult> GetByOriginalReceiptIdAsync(string SessionKey, long OriginalReceiptId)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await advanceReceivedBackupProcessor.GetByOriginalReceiptIdAsync(OriginalReceiptId, token);

                return new AdvanceReceivedBackupResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    AdvanceReceivedBackup = result,
                };
            }, logger));
        }
 public async Task <MatchingHistorysResult> GetAsync(string SessionKey, MatchingHistorySearch MatchingHistorySearch, string connectionId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var notifier = hubContext.CreateNotifier(connectionId);
         var result = (await matchingHistorySearchProcessor.GetAsync(MatchingHistorySearch, token, notifier)).ToList();
         return new MatchingHistorysResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             MatchingHistorys = result,
         };
     }, logger, connectionId));
 }
Beispiel #26
0
 public async Task <BillingAgingListsResult> GetAsync(string SessionKey, BillingAgingListSearch searchOption, string connectionId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var notifier = hubContext.CreateNotifier(connectionId);
         var result = await billingAgingListProcessor.GetAsync(searchOption, notifier, token);
         return new BillingAgingListsResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             BillingAgingLists = new List <BillingAgingList>(result),
         };
     }, logger, connectionId));
 }
 public async Task <LoginPasswordChangeResult> ChangeAsync(
     string SessionKey, int CompanyId, int LoginUserId, string OldPassword, string NewPassword)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await loginUserPasswordProcessor.ChangeAsync(CompanyId, LoginUserId, OldPassword, NewPassword, token);
         return new LoginPasswordChangeResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Result = result,
         };
     }, logger));
 }
        public async Task <EBExcludeAccountSettingListResult> GetItemsAsync(string SessionKey, int CompanyId)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await ebExcludeAccountSettingProcessor.GetAsync(CompanyId, token)).ToList();

                return new EBExcludeAccountSettingListResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    EBExcludeAccountSettingList = result,
                };
            }, logger));
        }
        public async Task <LoginUserLicensesResult> GetItemsAsync(string SessionKey, int CompanyId)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await loginUserLicenseProcessor.GetAsync(CompanyId, token)).ToList();
                return new LoginUserLicensesResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    LoginUserLicenses = result,
                };
            }, logger));

            throw new NotImplementedException();
        }
Beispiel #30
0
 public async Task <FunctionAuthoritiesResult> GetItemsAsync(string SessionKey, int CompanyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await functionAuthorityProcessor.GetAsync(new FunctionAuthoritySearch {
             CompanyId = CompanyId
         }, token)).ToList();
         return new FunctionAuthoritiesResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             FunctionAuthorities = result,
         };
     }, logger));
 }