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>();
 }
예제 #2
0
        public List <ChartOfAccount> GetChartOfAccounts(Company company)
        {
            IChartOfAccountBusinessEngine coa_be = _business_engine_factory.GetBusinessEngine <IChartOfAccountBusinessEngine>();

            return(coa_be.GetChartOfAccountsByCompany(company));
        }
예제 #3
0
        public bool DeleteChartOfAccount(ChartOfAccount chart_of_account)
        {
            IChartOfAccountBusinessEngine coa_be = _business_engine_factory.GetBusinessEngine <IChartOfAccountBusinessEngine>();

            return(coa_be.ChartOfAccountDelete(chart_of_account));
        }
예제 #4
0
        public ChartOfAccount GetChartOfAccount(int chart_of_account_key)
        {
            IChartOfAccountBusinessEngine coa_be = _business_engine_factory.GetBusinessEngine <IChartOfAccountBusinessEngine>();

            return(coa_be.GetChartOfAccountByID(chart_of_account_key));
        }
예제 #5
0
        public int CreateChartOfAccount(ChartOfAccount chart_of_account)
        {
            IChartOfAccountBusinessEngine coa_be = _business_engine_factory.GetBusinessEngine <IChartOfAccountBusinessEngine>();

            return(coa_be.ChartOfAccountSave(chart_of_account));
        }