Esempio n. 1
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 <Representative> GetSalesRepsByCompany(int company_key)
        {
            IEmployeeBusinessEngine employee_be = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>();

            return(employee_be.GetSalesRepsByCompany(company_key));
        }
        public List <Employee> GetEmployees(Company company)
        {
            IEmployeeBusinessEngine employee_be = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>();

            return(employee_be.GetEmployeesByCompany(company));
        }
        public Employee GetEmployeeByCredentials(string user_name)
        {
            IEmployeeBusinessEngine employee_be = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>();

            return(employee_be.GetEmployeeByCredentials(user_name));
        }
        public Employee GetEmployee(int entity_person_key)
        {
            IEmployeeBusinessEngine employee_be = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>();

            return(employee_be.GetEmployeeByID(entity_person_key));
        }
        public bool DeleteEmployee(Employee employee)
        {
            IEmployeeBusinessEngine employee_be = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>();

            return(employee_be.EmployeeDelete(employee));
        }
        public int CreateEmployee(Employee employee)
        {
            IEmployeeBusinessEngine employee_be = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>();

            return(employee_be.EmployeeSave(employee));
        }
Esempio n. 9
0
 public WorkOrderController(IWorkOrderBusinessEngine workOrderBusinessEngine, IEmployeeBusinessEngine employeeBusinessEngine, IHostingEnvironment hostingEnvironment)
 {
     _workOrderBusinessEngine = workOrderBusinessEngine;
     _employeeBusinessEngine  = employeeBusinessEngine;
     _hostingEnvironment      = hostingEnvironment;
 }