public CompanyBusinessEngine(IDataRepositoryFactory data_repo_fact, IBusinessEngineFactory bus_eng_fact, IEntityServiceFactory ent_serv_fact) : base(data_repo_fact, bus_eng_fact, ent_serv_fact) { _company_repo = _data_repository_factory.GetDataRepository <ICompanyRepository>(); _comp_es = _entity_service_factory.GetEntityService <ICompanyEntityService>(); _pers_es = _entity_service_factory.GetEntityService <IPersonEntityService>(); _entity_attrib_be = _business_engine_factory.GetBusinessEngine <IEntityAttributeBusinessEngine>(); _person_respository = _data_repository_factory.GetDataRepository <IPersonRepository>(); _coa_be = _business_engine_factory.GetBusinessEngine <IChartOfAccountBusinessEngine>(); _address_be = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>(); _entity_person_repository = _data_repository_factory.GetDataRepository <IEntityPersonRepository>(); }
public List <ChartOfAccount> GetChartOfAccounts(Company company) { IChartOfAccountBusinessEngine coa_be = _business_engine_factory.GetBusinessEngine <IChartOfAccountBusinessEngine>(); return(coa_be.GetChartOfAccountsByCompany(company)); }
public bool DeleteChartOfAccount(ChartOfAccount chart_of_account) { IChartOfAccountBusinessEngine coa_be = _business_engine_factory.GetBusinessEngine <IChartOfAccountBusinessEngine>(); return(coa_be.ChartOfAccountDelete(chart_of_account)); }
public ChartOfAccount GetChartOfAccount(int chart_of_account_key) { IChartOfAccountBusinessEngine coa_be = _business_engine_factory.GetBusinessEngine <IChartOfAccountBusinessEngine>(); return(coa_be.GetChartOfAccountByID(chart_of_account_key)); }
public int CreateChartOfAccount(ChartOfAccount chart_of_account) { IChartOfAccountBusinessEngine coa_be = _business_engine_factory.GetBusinessEngine <IChartOfAccountBusinessEngine>(); return(coa_be.ChartOfAccountSave(chart_of_account)); }