Esempio n. 1
0
 public CorporationDomain(IServiceFeeConfigBLL <ServiceFeeConfigModel> serviceFeeConfigBll
                          , IServiceFeeConfigDetailsBLL <ServiceFeeConfigDetailsModel> serviceFeeConfigDetailsBll
                          , ICorporationBLL <CorporationModel> corporationBll, IProjectNameBLL <ProjectNameModel> projectNameBll,
                          ICostCenterBLL <CostCenterModel> costCenterBll, ICustomerBLL <CustomerInfoModel> customerBll)
 {
     _serviceFeeConfigBll        = serviceFeeConfigBll;
     _serviceFeeConfigDetailsBll = serviceFeeConfigDetailsBll;
     _corporationBll             = corporationBll;
     _projectNameBll             = projectNameBll;
     _costCenterBll = costCenterBll;
     _customerBll   = customerBll;
 }
        public ICorporationDomain CreateComfireOrderViewObj()
        {
            IProjectNameBLLFactory             projectNameBllFactory  = new ProjectNameBLLFactory();
            IProjectNameBLL <ProjectNameModel> projectNameBll         = projectNameBllFactory.CreateBllObj();
            ICostCenterBLLFactory            consCostCenterBllFactory = new CostCenterBLLFactory();
            ICostCenterBLL <CostCenterModel> costCenterBll            = consCostCenterBllFactory.CreateBllObj();

            IServiceFeeConfigBLLFactory serviceFeeConfigBllFactory           = new ServiceFeeConfigBLLFactory();
            IServiceFeeConfigBLL <ServiceFeeConfigModel> serviceFeeConfigBll = serviceFeeConfigBllFactory.CreateBllObj();
            IServiceFeeConfigDetailsBLLFactory           serviceFeeConfigDetailsBllFactory        = new ServiceFeeConfigDetailsBLLFactory();
            IServiceFeeConfigDetailsBLL <ServiceFeeConfigDetailsModel> serviceFeeConfigDetailsBll =
                serviceFeeConfigDetailsBllFactory.CreateBllObj();
            ICorporationBLLFactory             corporationBllFactory = new CorporationBLLFactory();
            ICorporationBLL <CorporationModel> corporationBll        = corporationBllFactory.CreateBllObj();

            ICustomerBLLFactory customerBllFactory       = new CustomerBLLFactory();
            ICustomerBLL <CustomerInfoModel> customerBll = customerBllFactory.CreateBllObj();

            return(new CorporationDomain(serviceFeeConfigBll, serviceFeeConfigDetailsBll, corporationBll, projectNameBll,
                                         costCenterBll, customerBll));
        }