public Account GetAccountByCode(string account_code, string company_code) { IAccountBusinessEngine acctBE = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>(); Log.Info("Beginning GetAccountByCode Call for account key {0}", account_code); return(acctBE.GetAccountByCode(account_code, company_code)); }
public List <Account> FindAccountByCompany(Company company, string pattern) { IAccountBusinessEngine acctBE = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>(); Log.Info("Beginning FindAccountByCompany Call for account key {0}", company.CompanyName); return(acctBE.FindAccountsByCompany(company, pattern)); }
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 bool DeleteAccount(Account account) { IAccountBusinessEngine acctBE = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>(); Log.Info("Beginning DeleteAccount Call for account key {0}", account.AccountName); return(acctBE.AccountDelete(account)); }
public List <Account> GetAccountsByCompany(Company company) { IAccountBusinessEngine acctBE = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>(); Log.Info("Beginning GetAccountsByCompany Call for account key {0}", company.CompanyName); return(acctBE.GetAccountsByCompany(company)); }
public List <Account> GetAccountsByEmployee(Employee employee) { IAccountBusinessEngine acctBE = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>(); Log.Info("Beginning GetAccountsByEmployee Call for account key {0}", employee.PersonLastName); return(acctBE.GetAccountsByRep(employee)); }
public Account GetAccountByID(int account_key, bool full_load = false) { IAccountBusinessEngine acctBE = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>(); Log.Info("Beginning GetAccountByID Call for account key {0}", account_key); return(acctBE.GetAccountByID(account_key, full_load)); }
public InvoiceBusinessEngine(IDataRepositoryFactory data_repo_fact, IBusinessEngineFactory bus_eng_fact, IEntityServiceFactory ent_serv_fact) : base(data_repo_fact, bus_eng_fact, ent_serv_fact) { _invoice_repo = _data_repository_factory.GetDataRepository <IInvoiceRepository>(); _invoice_item_repo = _data_repository_factory.GetDataRepository <IInvoiceItemRepository>(); _comment_be = _business_engine_factory.GetBusinessEngine <ICommentBusinessEngine>(); _employee_be = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>(); _address_be = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>(); _product_be = _business_engine_factory.GetBusinessEngine <IProductBusinessEngine>(); _account_be = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>(); _invoice_se = _entity_service_factory.GetEntityService <IInvoiceEntityService>(); _invoice_item_se = _entity_service_factory.GetEntityService <IInvoiceItemEntityService>(); }
public OrderBusinessEngine(IDataRepositoryFactory data_repo_fact, IBusinessEngineFactory bus_eng_fact, IEntityServiceFactory ent_serv_fact) : base(data_repo_fact, bus_eng_fact, ent_serv_fact) { _order_header_repo = _data_repository_factory.GetDataRepository <IOrderHeaderRepository>(); _order_item_repo = _data_repository_factory.GetDataRepository <IOrderItemRepository>(); _comment_be = _business_engine_factory.GetBusinessEngine <ICommentBusinessEngine>(); _employee_be = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>(); _address_be = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>(); _product_be = _business_engine_factory.GetBusinessEngine <IProductBusinessEngine>(); _account_be = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>(); _order_status_be = _business_engine_factory.GetBusinessEngine <IOrderStatusBusinessEngine>(); _order_item_status_be = _business_engine_factory.GetBusinessEngine <IOrderItemStatusBusinessEngine>(); _order_se = _entity_service_factory.GetEntityService <IOrderEntityService>(); _order_item_se = _entity_service_factory.GetEntityService <IOrderItemEntityService>(); }