예제 #1
0
        public string GetAccountNextNumber(Account account, QIQOEntityNumberType number_type)
        {
            IAccountBusinessEngine acctBE = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>();

            Log.Info("Beginning GetAccountNextNumber Call for account key {0}", account.AccountName);
            return(acctBE.GetNextEntityNumber(account, number_type));
        }
        public string GetNextEntityNumber(Company company, QIQOEntityNumberType num_type)
        {
            if (company == null)
            {
                throw new ArgumentNullException(nameof(company));
            }

            return(ExecuteFaultHandledOperation(() =>
            {
                var comp = _comp_es.Map(company);
                return _company_repo.GetNextNumber(comp, (int)num_type);
            }));
        }
예제 #3
0
        public string GetNextEntityNumber(Account account, QIQOEntityNumberType num_type)
        {
            if (account == null)
            {
                throw new ArgumentNullException(nameof(account));
            }

            var acct = _acct_es.Map(account);

            return(ExecuteFaultHandledOperation(() =>
            {
                return _acct_repo.GetNextNumber(acct, (int)num_type);
            }));
        }
예제 #4
0
 public Task <string> GetAccountNextNumberAsync(Account account, QIQOEntityNumberType number_type)
 {
     return(channel.GetAccountNextNumberAsync(account, number_type));
 }
예제 #5
0
 public string GetAccountNextNumber(Account account, QIQOEntityNumberType number_type)
 {
     return(channel.GetAccountNextNumber(account, number_type));
 }
 public Task <string> GetCompanyNextNumberAsync(Company company, QIQOEntityNumberType number_type)
 {
     return(channel.GetCompanyNextNumberAsync(company, number_type));
 }
 public string GetCompanyNextNumber(Company company, QIQOEntityNumberType number_type)
 {
     return(channel.GetCompanyNextNumber(company, number_type));
 }
예제 #8
0
 public Task <string> GetAccountNextNumberAsync(Account account, QIQOEntityNumberType number_type)
 {
     return(Task.Run(() => GetAccountNextNumber(account, number_type)));
 }
예제 #9
0
 public string GetAccountNextNumber(Account account, QIQOEntityNumberType number_type)
 {
     return(ExecuteHandledOperation(() => { return _accountRepository.GetNextNumber(_accountEntityService.Map(account), (int)number_type); }));
 }
        public string GetCompanyNextNumber(Company company, QIQOEntityNumberType number_type)
        {
            ICompanyBusinessEngine company_be = _business_engine_factory.GetBusinessEngine <ICompanyBusinessEngine>();

            return(company_be.GetNextEntityNumber(company, number_type));
        }
예제 #11
0
 public Task <string> GetCompanyNextNumberAsync(Company company, QIQOEntityNumberType number_type)
 {
     return(Task.Run(() => GetCompanyNextNumber(company, number_type)));
 }
예제 #12
0
 public string GetCompanyNextNumber(Company company, QIQOEntityNumberType number_type)
 {
     return(ExecuteHandledOperation(() => { return _companyRepository.GetNextNumber(_companyEntityService.Map(company), (int)number_type); }));
 }