Esempio n. 1
0
 public EmployeeBusinessEngine(IDataRepositoryFactory data_repo_fact, IBusinessEngineFactory bus_eng_fact, IEntityServiceFactory ent_serv_fact)
     : base(data_repo_fact, bus_eng_fact, ent_serv_fact)
 {
     _pers_es            = _entity_service_factory.GetEntityService <IPersonEntityService>();
     _entity_person_repo = _data_repository_factory.GetDataRepository <IEntityPersonRepository>();
     _person_repo        = _data_repository_factory.GetDataRepository <IPersonRepository>();
     _entity_attrib_be   = _business_engine_factory.GetBusinessEngine <IEntityAttributeBusinessEngine>();
     _address_be         = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>();
     _company_be         = _business_engine_factory.GetBusinessEngine <ICompanyBusinessEngine>();
 }
Esempio n. 2
0
 public AccountBusinessEngine(IDataRepositoryFactory data_repo_fact, IBusinessEngineFactory bus_eng_fact, IEntityServiceFactory ent_serv_fact)
     : base(data_repo_fact, bus_eng_fact, ent_serv_fact)
 {
     _acct_repo           = _data_repository_factory.GetDataRepository <IAccountRepository>();
     _acct_es             = _entity_service_factory.GetEntityService <IAccountEntityService>();
     _account_type_be     = _business_engine_factory.GetBusinessEngine <IAccountTypeBusinessEngine>();
     _address_be          = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>();
     _entity_attribute_be = _business_engine_factory.GetBusinessEngine <IEntityAttributeBusinessEngine>();
     _fee_schedule_be     = _business_engine_factory.GetBusinessEngine <IFeeScheduleBusinessEngine>();
     _account_employee_be = _business_engine_factory.GetBusinessEngine <IAccountEmployeeBusinessEngine>();
     _contact_be          = _business_engine_factory.GetBusinessEngine <IContactBusinessEngine>();
     _comment_be          = _business_engine_factory.GetBusinessEngine <ICommentBusinessEngine>();
 }
Esempio n. 3
0
 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>();
 }
        public List <Address> GetAddressesByEntity(int entity_key, QIQOEntityType entity_type)
        {
            IAddressBusinessEngine address_be = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>();

            return(address_be.GetAddressesByEntityID(entity_key, entity_type));
        }
        public List <Address> GetAddressesByCompany(Company company)
        {
            IAddressBusinessEngine address_be = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>();

            return(address_be.GetAddressesByCompany(company));
        }
        public Address GetAddress(int address_key)
        {
            IAddressBusinessEngine address_be = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>();

            return(address_be.GetAddressByID(address_key));
        }
        public bool DeleteAddress(Address address)
        {
            IAddressBusinessEngine address_be = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>();

            return(address_be.AddressDelete(address));
        }
        public int CreateAddress(Address address)
        {
            IAddressBusinessEngine address_be = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>();

            return(address_be.AddressSave(address));
        }