Exemple #1
0
 public ApiReturnController(IRetailContract retailContract, IProductContract productContract, IRetailItemContract retailItemContract, IAdministratorContract administratorContract, IReturnedContract returnedContract, IInventoryContract inventoryContract, IMemberContract memberContract, IMemberDepositContract memberDepositContract,
                            IReturnedItemContract returnedItemContract, ICouponContract couponContract, IStoreContract storeContract,
                            IProductTrackContract productTrackContract,
                            ITimeoutSettingContract timeoutSettingContract,
                            IPunishScoreRecordContract adminPunishScoreRecordContract,
                            IMemberConsumeContract memberConsumeContract,
                            ISmsContract _smsContract,
                            ITimeoutRequestContract timeoutRequestContract)
 {
     _retailContract                 = retailContract;
     _productContract                = productContract;
     _retailItemContract             = retailItemContract;
     _administratorContract          = administratorContract;
     _returnedContract               = returnedContract;
     _inventoryContract              = inventoryContract;
     _memberContract                 = memberContract;
     _memberDepositContract          = memberDepositContract;
     _returnedItemContract           = returnedItemContract;
     _couponContract                 = couponContract;
     _storeContract                  = storeContract;
     _productTrackContract           = productTrackContract;
     _timeoutSettingContract         = timeoutSettingContract;
     _adminPunishScoreRecordContract = adminPunishScoreRecordContract;
     _memberConsumeContract          = memberConsumeContract;
     _timeoutRequestContract         = timeoutRequestContract;
     this._smsContract               = _smsContract;
 }
Exemple #2
0
 public SaleAutoGenController(
     ISaleAutoGenContract _SaleAutoGenContract,
     IBrandContract _brandContract,
     ICategoryContract _categoryContract,
     IColorContract _colorContract,
     ISeasonContract _seasonContract,
     IProductCrowdContract _productCrowdContract,
     IProductOrigNumberContract _productOrigNumberContract,
     IStorageContract _storageContract,
     IAdministratorContract _administratorContract,
     IMemberContract _memberContract,
     IStoreContract _storeContract,
     IProductContract _productContract
     )
 {
     this._SaleAutoGenContract       = _SaleAutoGenContract;
     this._brandContract             = _brandContract;
     this._categoryContract          = _categoryContract;
     this._colorContract             = _colorContract;
     this._seasonContract            = _seasonContract;
     this._productCrowdContract      = _productCrowdContract;
     this._productOrigNumberContract = _productOrigNumberContract;
     this._storageContract           = _storageContract;
     this._administratorContract     = _administratorContract;
     this._memberContract            = _memberContract;
     this._storeContract             = _storeContract;
     this._productContract           = _productContract;
 }
Exemple #3
0
 public TransferController(IProductContract productContract, IColorContract colorContract, IProductBarcodeDetailContract productBarcodeDetailContract, IInventoryContract inventoryContract)
 {
     _productContract = productContract;
     _colorContract   = colorContract;
     _productBarcodeDetailContract = productBarcodeDetailContract;
     _inventoryContract            = inventoryContract;
 }
        static void Main(string[] args)
        {
            ChannelFactory <IProductContract> myTcpClient =
                new ChannelFactory <IProductContract>(new NetTcpBinding(),
                                                      new EndpointAddress("net.tcp://localhost:3121/Product"));
            IProductContract contract = myTcpClient.CreateChannel();
            var collection            = contract.GetAll();

            foreach (var item in collection)
            {
                Console.WriteLine(item.Name);
            }

            Console.WriteLine("-------------------------------");
            ChannelFactory <IProductContract> myPipeClient =
                new ChannelFactory <IProductContract>(new NetNamedPipeBinding(),
                                                      new EndpointAddress("net.pipe://localhost/Product"));
            IProductContract contractPipe = myTcpClient.CreateChannel();
            var collection1 = contractPipe.GetAll();

            foreach (var item in collection1)
            {
                Console.WriteLine(item.Name);
            }
        }
        public InventoryController(IInventoryContract inventoryContract,
                                   IStoreContract storeContract,
                                   IStorageContract storageContract,
                                   IProductContract productContract,
                                   IBrandContract brandContract,
                                   ICategoryContract categoryContract,
                                   IColorContract colorContract,
                                   ILogContract logContract,
                                   IProductBarcodeDetailContract productBarcodeDetailContract,
                                   IProductBarcodePrintInfoContract productBarcodePrintInfoContract,
                                   IInventoryRecordContract inventoryRecordContract,
                                   IStoreRecommendContract storeRecommendContract,
                                   ISeasonContract seasonContract,
                                   IProductTrackContract productTrackContract,
                                   IAdministratorContract administratorContract)
        {
            _administratorContract           = administratorContract;
            _inventoryContract               = inventoryContract;
            _storeContract                   = storeContract;
            _productContract                 = productContract;
            _storageContract                 = storageContract;
            _brandContract                   = brandContract;
            _categoryContract                = categoryContract;
            _colorContract                   = colorContract;
            _productBarcodePrintInfoContract = productBarcodePrintInfoContract;
            _productBarcodeDetailContract    = productBarcodeDetailContract;
            _logContract             = logContract;
            _inventoryRecordContract = inventoryRecordContract;
            _storeRecommendContract  = storeRecommendContract;
            _seasonContract          = seasonContract;
            _productTrackContract    = productTrackContract;

            ViewBag.Products = CacheAccess.GetProductListItem(_productContract, true);
        }
Exemple #6
0
 public OnlineController(IStoreContract storeContract,
                         IStorageContract storageContract,
                         IGalleryContract galleryContract,
                         IInventoryContract inventoryContract,
                         IStoreCartContract storeCartContract,
                         IProductContract prodcutContract,
                         IAdministratorContract administratorContract,
                         IStoreCartItemContract storeCartItemContract,
                         IColorContract colorContract,
                         IOnlinePurchaseProductContract oppContract,
                         IProductContract productContract,
                         IProductOrigNumberContract _productOrigNumberContract,
                         IStoreTypeContract _storeTypeContract,
                         IBrandContract _brandContract,
                         ICategoryContract categoryContract)
 {
     _storeContract   = storeContract;
     _storageContract = storageContract;
     //_galleryContract = galleryContract;
     //_inventoryContract = inventoryContract;
     _storeCartContract              = storeCartContract;
     _productContract                = prodcutContract;
     _storeCartItemContract          = storeCartItemContract;
     _colorContract                  = colorContract;
     _categoryContract               = categoryContract;
     _oppContract                    = oppContract;
     this._brandContract             = _brandContract;
     this._administratorContract     = administratorContract;
     this._productOrigNumberContract = _productOrigNumberContract;
     ViewBag.Color                   = _colorContract.ParentSelectList("请选择");
     ViewBag.Category                = CacheAccess.GetCategory(_categoryContract, true);
     ViewBag.Brand                   = CacheAccess.GetBrand(_brandContract, true);
     this._storeTypeContract         = _storeTypeContract;
 }
Exemple #7
0
 public ProductOperationLogController(IProductOperationLogContract productOperationLogContrac, IProductContract productContract, IProductBarcodeDetailContract productBarcodeDetailContract,
                                      IInventoryContract inventoryContract,
                                      IRetailItemContract retailItemContract,
                                      IRetailInventoryContract retailInventoryContract,
                                      IRetailContract retailContract,
                                      IReturnedItemContract returnedItemContract,
                                      IReturnedContract returnedContract,
                                      IOrderblankContract orderblankContract,
                                      IOrderblankItemContract orderblankItemContract,
                                      IStorageContract storageContract,
                                      IStoreContract storeContract,
                                      IMemberContract memberContract,
                                      IAdministratorContract administratorContract)
 {
     _productOperationLogContract  = productOperationLogContrac;
     _productContract              = productContract;
     _productBarcodeDetailContract = productBarcodeDetailContract;
     _inventoryContract            = inventoryContract;
     _retailItemContract           = retailItemContract;
     _retailInventoryContract      = retailInventoryContract;
     _retailContract         = retailContract;
     _returnedItemContract   = returnedItemContract;
     _returnedContract       = returnedContract;
     _orderblankContract     = orderblankContract;
     _orderblankItemContract = orderblankItemContract;
     _storageContract        = storageContract;
     _storeContract          = storeContract;
     _memberContract         = memberContract;
     _administratorContract  = administratorContract;
 }
 public FactoryOnlineController(IStoreContract storeContract,
                                IStorageContract storageContract,
                                IGalleryContract galleryContract,
                                IInventoryContract inventoryContract,
                                IStoreCartContract storeCartContract,
                                IProductContract prodcutContract,
                                IAdministratorContract administratorContract,
                                IStoreCartItemContract storeCartItemContract,
                                IColorContract colorContract,
                                IProductContract productContract,
                                IProductOrigNumberContract _productOrigNumberContract,
                                IBrandContract _brandContract,
                                IPurchaseContract _purchaseContract,
                                IDesignerContract _DesignerContract,
                                IFactorysContract _factoryContract,
                                ICategoryContract categoryContract)
 {
     _storeContract                  = storeContract;
     _storageContract                = storageContract;
     _storeCartContract              = storeCartContract;
     _productContract                = prodcutContract;
     _storeCartItemContract          = storeCartItemContract;
     _colorContract                  = colorContract;
     _categoryContract               = categoryContract;
     this._brandContract             = _brandContract;
     this._administratorContract     = administratorContract;
     this._productOrigNumberContract = _productOrigNumberContract;
     ViewBag.Color          = _colorContract.ParentSelectList("请选择");
     ViewBag.Category       = CacheAccess.GetCategory(_categoryContract, true);
     ViewBag.Brand          = CacheAccess.GetBrand(_brandContract, true);
     this._purchaseContract = _purchaseContract;
     this._DesignerContract = _DesignerContract;
     this._factoryContract  = _factoryContract;
 }
Exemple #9
0
        public void TestResolveGeneric()
        {
            IProductContract productContract1 = ResolveMediator.Resolve <IProductContract>();
            IProductContract productContract2 = ResolveMediator.Resolve <IProductContract>();

            Assert.IsNotNull(productContract1);
            Assert.IsNotNull(productContract2);
        }
 /// <summary>
 /// 依赖注入构造器
 /// </summary>
 /// <param name="svcMediator">领域服务中介者</param>
 /// <param name="repMediator">仓储中介者</param>
 /// <param name="unitOfWork">单元事务</param>
 /// <param name="customerModelContract">客户模型服务契约</param>
 /// <param name="productContract">商品资源服务契约</param>
 /// <param name="craftEntityContract">工艺资源服务契约</param>
 public ForAppContract(DomainServiceMediator svcMediator, RepositoryMediator repMediator, IUnitOfWorkDesign unitOfWork, ICustomerModelContract customerModelContract, IProductContract productContract, ICraftEntityContract craftEntityContract)
 {
     this._svcMediator      = svcMediator;
     this._repMediator      = repMediator;
     this._unitOfWork       = unitOfWork;
     _customerModelContract = customerModelContract;
     _productContract       = productContract;
     _craftEntityContract   = craftEntityContract;
 }
Exemple #11
0
 /// <summary>
 /// 依赖注入构造器
 /// </summary>
 /// <param name="svcMediator">领域服务中介者</param>
 /// <param name="repMediator">仓储中介者</param>
 /// <param name="unitOfWork">单元事务</param>
 /// <param name="productContract"></param>
 /// <param name="craftEntityContract"></param>
 public PackPricedEventHandler(DomainServiceMediator svcMediator, RepositoryMediator repMediator, IUnitOfWorkDesign unitOfWork, IProductContract productContract, ICraftEntityContract craftEntityContract)
 {
     this._svcMediator    = svcMediator;
     this._repMediator    = repMediator;
     this._unitOfWork     = unitOfWork;
     _productContract     = productContract;
     _craftEntityContract = craftEntityContract;
     this.Sort            = uint.MaxValue;
 }
 public StoreRecommendController(IProductContract productContract,
                                 IBrandContract brandContract,
                                 ICategoryContract categoryContract,
                                 IColorContract colorContract,
                                 ISeasonContract seasonContract,
                                 ISizeContract sizeContract,
                                 IInventoryContract inventoryContract,
                                 IStorageContract storageContract,
                                 ISalesCampaignContract salesCampaignContract,
                                 IMemberContract memberContract,
                                 ICollocationContract collocationContract,
                                 IRetailContract retailContract,
                                 IRetailItemContract retailItemContract,
                                 IScoreRuleContract scoreRuleContract,
                                 ICouponContract couponContract,
                                 IAdministratorContract administratorContract,
                                 IMemberDepositContract memberDepositContract,
                                 ICheckerContract checkerContract,
                                 IStoreActivityContract storeActivityContract,
                                 IStoreContract storeContract,
                                 IProductTrackContract productTrackContract,
                                 IPermissionContract permissionContract,
                                 IProductOrigNumberContract productOrigNumberContract,
                                 IStoreRecommendContract storeRecommendContract,
                                 IStoreNoRecommendContract storeNoRecommendContract,
                                 IRecommendMemberSingleProductContract recommendMemberSingleProductContract
                                 )
 {
     _storeRecommendContract     = storeRecommendContract;
     _storeNoRecommendContract   = storeNoRecommendContract;
     _productContract            = productContract;
     _inventoryContract          = inventoryContract;
     _brandContract              = brandContract;
     _storageContract            = storageContract;
     _salesCampaignContract      = salesCampaignContract;
     _memberContract             = memberContract;
     _collocationContract        = collocationContract;
     _retailContract             = retailContract;
     _retailItemContract         = retailItemContract;
     _scoreRuleContract          = scoreRuleContract;
     _couponContract             = couponContract;
     _administratorContract      = administratorContract;
     _memberDepositContract      = memberDepositContract;
     _checkerContract            = checkerContract;
     _storeActivityContract      = storeActivityContract;
     _storeContract              = storeContract;
     _productTrackContract       = productTrackContract;
     _permissionContract         = permissionContract;
     _productOrignNumberContract = productOrigNumberContract;
     _brandContract              = brandContract;
     _categoryContract           = categoryContract;
     _colorContract              = colorContract;
     _seasonContract             = seasonContract;
     _sizeContract = sizeContract;
     _recommendMemberSingleProductContract = recommendMemberSingleProductContract;
 }
 public InventorySearchController(IRetailContract retailContract, IStorageContract storageContract, IBrandContract brandContract, IInventoryContract inventoryContract
                                  , IAdministratorContract _adminContract
                                  , IStoreContract storeContract
                                  , IProductContract _productContract)
 {
     _retailContract       = retailContract;
     _storageContract      = storageContract;
     _brandContract        = brandContract;
     _inventoryContract    = inventoryContract;
     this._productContract = _productContract;
     this._adminContract   = _adminContract;
     _storeContract        = storeContract;
 }
 public RetailDetailController(IRetailContract retailContract, IProductContract productContract, IStoreContract storeContract, IStorageContract storageContract, IRetailItemContract retailItemContract,
                               IAdministratorContract _administratorContract, IInventoryContract inventoryContract, IReturnedContract returnedContract, IRetailInventoryContract retailInventoryContract)
 {
     _retailContract             = retailContract;
     _productContract            = productContract;
     _storeContract              = storeContract;
     _storageContract            = storageContract;
     _retailItemContract         = retailItemContract;
     _inventoryContract          = inventoryContract;
     _returnedContract           = returnedContract;
     _retailInventoryContract    = retailInventoryContract;
     this._administratorContract = _administratorContract;
 }
Exemple #15
0
 public ApiProductController(IAdministratorContract administratorContract,
                             IProductContract productContract,
                             IInventoryContract inventoryContract,
                             ICommentContract commentContract,
                             IApprovalContract approvalContract,
                             IStorageContract storageContract,
                             ICategoryContract categotyContract)
 {
     _administratorContract = administratorContract;
     _productContract       = productContract;
     _inventoryContract     = inventoryContract;
     _commentContract       = commentContract;
     _approvalContract      = approvalContract;
     _storageContract       = storageContract;
     _categotyContract      = categotyContract;
 }
Exemple #16
0
 public PurchaseController(IPurchaseContract purchaseContract, IPurchaseItemContract purchaseItemContract,
                           IStoreTypeContract _storeTypeContract,
                           IStorageContract storageContract, IStoreContract storeContract, IAdministratorContract administratorContract,
                           IInventoryContract inventoryContract, IProductContract productContract, IOrderblankContract orderblankContract,
                           IPurchaseAuditContract purchaseAuditContract)
 {
     _purchaseContract       = purchaseContract;
     _purchaseItemContract   = purchaseItemContract;
     _storageContract        = storageContract;
     _storeContract          = storeContract;
     _administratorContract  = administratorContract;
     _inventoryContract      = inventoryContract;
     _productContract        = productContract;
     _orderblankContract     = orderblankContract;
     _purchaseAuditContract  = purchaseAuditContract;
     this._storeTypeContract = _storeTypeContract;
 }
Exemple #17
0
        public ProductsCreatorViewModel(
            IProductContract productsServiceClient,
            FileRepository <Product> fileRepository,
            AbstractValidator <Product> validator,
            ILog log)
            : base(validator)
        {
            this.productsServiceClient = productsServiceClient
                                         ?? throw new ArgumentNullException(nameof(productsServiceClient));

            this.fileRepository = fileRepository
                                  ?? throw new ArgumentNullException(nameof(fileRepository));

            this.log = log ?? new DefaultLog();

            CreateProductCommand = new AsyncCommand(CreateProductAsync);
        }
        public ProductsBrowserViewModel(
            IProductContract productsServiceClient,
            FileRepository <Product> fileRepository,
            IEqualityComparer <Product> productComparer,
            ILog log)
        {
            this.productsServiceClient = productsServiceClient
                                         ?? throw new ArgumentNullException(nameof(productsServiceClient));
            this.fileRepository  = fileRepository ?? throw new ArgumentNullException(nameof(fileRepository));
            this.productComparer = productComparer ?? new ProductComparer();
            this.log             = log ?? new DefaultLog();

            UploadToDatabase = new AsyncCommand(UploadToDatabaseAsync);

            Task.Run(async() => await SetProductsFromDbAsync().ConfigureAwait(true));
            Task.Run(async() => await SetNotUploadedToDbProductsAsync().ConfigureAwait(true));
        }
 public StoreController(IStoreProductCollocationContract storeProductCollocationContract, IStoreCollocationInfoContract storeCollocationInfoContract,
                        IProductContract productContract, IBrandContract brandContract,
                        IStoreContract storeContract, ICategoryContract categoryContract,
                        IColorContract colorContract, ISeasonContract seasonContract,
                        ISizeContract sizeContract, IProductAttributeContract productAttributeContract)
 {
     _storeProductCollocationContract = storeProductCollocationContract;
     _storeCollocationInfoContract    = storeCollocationInfoContract;
     _productContract          = productContract;
     _brandContract            = brandContract;
     _storeContract            = storeContract;
     _categoryContract         = categoryContract;
     _colorContract            = colorContract;
     _seasonContract           = seasonContract;
     _sizeContract             = sizeContract;
     _productAttributeContract = productAttributeContract;
 }
 public OnlinePurchaseProductController(IOnlinePurchaseProductContract onlinePurchaseProductContract,
                                        IProductContract productContract,
                                        IBrandContract brandContract,
                                        ICategoryContract categoryContract,
                                        IColorContract colorContract,
                                        IStoreContract storeContract,
                                        INotificationContract notificationContract
                                        )
 {
     _onlinePurchaseProductContract = onlinePurchaseProductContract;
     _productContract      = productContract;
     _brandContract        = brandContract;
     _categoryContract     = categoryContract;
     _colorContract        = colorContract;
     _storeContract        = storeContract;
     _notificationContract = notificationContract;
 }
 public CollocationTemplateController(ICollocationTemplateContract contract,
                                      IAdministratorContract adminContract,
                                      IModuleContract moduleContract,
                                      IPermissionContract permissionContract,
                                      ICategoryContract categoryContract,
                                      IProductAttributeContract productAttributeContract,
                                      IProductContract productContract,
                                      IProductOrigNumberContract productOrigNumberContract)
 {
     _contract                  = contract;
     _adminContract             = adminContract;
     _moduleContract            = moduleContract;
     _permissionContract        = permissionContract;
     _categoryContract          = categoryContract;
     _productAttributeContract  = productAttributeContract;
     _productContract           = productContract;
     _productOrigNumberContract = productOrigNumberContract;
 }
Exemple #22
0
 public CollocationPlanController(ICollocationPlanContract contract,
                                  IAdministratorContract adminContract,
                                  IModuleContract moduleContract,
                                  IPermissionContract permissionContract,
                                  ICollocationTemplateContract collocationTemplateContract,
                                  IProductContract productContract,
                                  IProductOrigNumberContract productOrigNumberContract,
                                  IMemberCollocationContract memberCollocationContract
                                  )
 {
     _adminContract               = adminContract;
     _contract                    = contract;
     _moduleContract              = moduleContract;
     _permissionContract          = permissionContract;
     _collocationTemplateContract = collocationTemplateContract;
     _productContract             = productContract;
     _productOrigNumberContract   = productOrigNumberContract;
     _memberCollocationContract   = memberCollocationContract;
 }
Exemple #23
0
 public BarcodeController(IProductContract productContract, IStorageContract storageContract
                          , IBrandContract brandContract, ICategoryContract categoryContract, ISeasonContract seasonContract
                          , IInventoryContract inventoryContract, IProductBarcodeDetailContract productBarcodeDetailContract
                          , IBarCodeConfigContract _barCodeConfigContract
                          , IProductBarcodePrintInfoContract productBarcodePrintInfoContract,
                          IStoreContract _StoreContract,
                          IProductTrackContract productTrackContract,
                          IAdministratorContract administratorContract)
 {
     _administratorContract           = administratorContract;
     _productContract                 = productContract;
     _storageContract                 = storageContract;
     _brandContract                   = brandContract;
     _categoryContract                = categoryContract;
     _seasonContract                  = seasonContract;
     _inventoryContract               = inventoryContract;
     _productBarcodeDetailContract    = productBarcodeDetailContract;
     _productBarcodePrintInfoContract = productBarcodePrintInfoContract;
     this._barCodeConfigContract      = _barCodeConfigContract;
     _productTrackContract            = productTrackContract;
     this._StoreContract              = _StoreContract;
 }
Exemple #24
0
 public CheckupController(IStoreContract storeContract,
                          IStorageContract storageContract,
                          ICheckerContract checkerContract,
                          ICheckerItemContract checkerItemContract,
                          IProductContract productContract,
                          IInventoryContract inventoryContract,
                          ICheckupItemContract checkupItemContract,
                          ICategoryContract categoryContract,
                          IAdministratorContract _adminContract,
                          IColorContract colorContract)
 {
     _storeContract       = storeContract;
     _storageContract     = storageContract;
     _checkerContract     = checkerContract;
     _checkerItemContract = checkerItemContract;
     _productContract     = productContract;
     _inventoryContract   = inventoryContract;
     _checkupItemContract = checkupItemContract;
     _categoryContract    = categoryContract;
     _colorContract       = colorContract;
     this._adminContract  = _adminContract;
 }
Exemple #25
0
 public SalesCampaignController(ISalesCampaignContract saleCampaignContract,
                                IStoreContract storeContract,
                                IInventoryContract inventoryContract,
                                IBrandContract brandContract,
                                IProductContract productContract,
                                IStorageContract storageContract,
                                IAdministratorContract _administratorContract,
                                ISeasonContract _seasonContract,
                                IProductOrigNumberContract productOriginNumberContract,
                                ICategoryContract categoryContract)
 {
     _saleCampaignContract        = saleCampaignContract;
     _storeContract               = storeContract;
     _inventoryContract           = inventoryContract;
     _brandContract               = brandContract;
     _productContract             = productContract;
     _storageContract             = storageContract;
     _productOriginNumberContract = productOriginNumberContract;
     this._administratorContract  = _administratorContract;
     this._seasonContract         = _seasonContract;
     _categoryContract            = categoryContract;
 }
Exemple #26
0
        public ProductDiscountController(IBrandContract brandContract,
                                         IStoreContract storeContract,
                                         ISeasonContract seasonContract,
                                         IColorContract colorContract,
                                         ISizeContract sizeContract,
                                         IProductDiscountContract productDiscountContract,
                                         IProductContract productContract,
                                         ICategoryContract categoryContract,
                                         IProductAttributeContract productAttributeContract,
                                         IProductOrigNumberContract ProductOrigNumberContract,
                                         IInventoryContract invenrtoryContract)
        {
            _brandContract             = brandContract;
            _storeContract             = storeContract;
            _seasonContract            = seasonContract;
            _colorContract             = colorContract;
            _sizeContract              = sizeContract;
            _productContract           = productContract;
            _productDiscountContract   = productDiscountContract;
            _categoryContract          = categoryContract;
            _productAttributeContract  = productAttributeContract;
            _ProductOrigNumberContract = ProductOrigNumberContract;
            _invenrtoryContract        = invenrtoryContract;

            ViewBag.Brand    = (_brandContract.SelectList().Select(m => new SelectListItem {
                Text = m.Key, Value = m.Value
            })).ToList();
            ViewBag.Season   = (_seasonContract.SelectList().Select(m => new SelectListItem {
                Text = m.Key, Value = m.Value
            })).ToList();
            ViewBag.Color    = (_colorContract.SelectList().Select(m => new SelectListItem {
                Text = m.Key, Value = m.Value
            })).ToList();
            ViewBag.Size     = (_sizeContract.SelectList().Select(m => new SelectListItem {
                Text = m.Key, Value = m.Value
            })).ToList();
            ViewBag.Discount = StaticHelper.DiscountList("选择折扣");
        }
 public AppointmentFeedbackController(IAppointmentFeedbackContract contract,
                                      IAdministratorContract adminContract,
                                      IModuleContract moduleContract,
                                      IPermissionContract permissionContract,
                                      ICollocationTemplateContract collocationTemplateContract,
                                      IProductContract productContract,
                                      IProductOrigNumberContract productOrigNumberContract,
                                      IMemberCollocationContract memberCollocationContract,
                                      IAppointmentContract appointmentContract
                                      , IStoreContract storeContract
                                      )
 {
     _adminContract               = adminContract;
     _contract                    = contract;
     _moduleContract              = moduleContract;
     _permissionContract          = permissionContract;
     _collocationTemplateContract = collocationTemplateContract;
     _productContract             = productContract;
     _productOrigNumberContract   = productOrigNumberContract;
     _memberCollocationContract   = memberCollocationContract;
     _appointmentContract         = appointmentContract;
     _storeContract               = storeContract;
 }
        public CommonController(
            IStoreContract storeContract,
            IModuleContract moduleContract,
            IDepartmentContract departContract,
            IAdministratorContract adminContract,
            IMemberContract memberContract,
            IStoreTypeContract storeTypeContract,
            IStoreDepositContract storeDepositContract,
            IStoreLevelContract storeLevelContract,
            IJobPositionContract jobPositionContract,
            IDesignerContract designerContract,
            IPermissionContract permisstionContract,
            ICategoryContract categoryContract,
            IProductAttributeContract productAttributeContract,
            IProductContract productContract,
            IProductOrigNumberContract productOrigNumberContract,
            IStorageContract storageContract

            )
        {
            _storeContract             = storeContract;
            _moduleContract            = moduleContract;
            _departContract            = departContract;
            _adminContract             = adminContract;
            _memberContract            = memberContract;
            _jobPositionContract       = jobPositionContract;
            _storeTypeContract         = storeTypeContract;
            _storeDepositContract      = storeDepositContract;
            _storeLevelContract        = storeLevelContract;
            _designerContract          = designerContract;
            _permisstionContract       = permisstionContract;
            _categoryContract          = categoryContract;
            _productAttributeContract  = productAttributeContract;
            _productContract           = productContract;
            _productOrigNumberContract = productOrigNumberContract;
            _storageContract           = storageContract;
        }
 public AppointmentGenController(
     IAppointmentGenContract _AppointmentGenContract,
     IBrandContract _brandContract,
     ICategoryContract _categoryContract,
     IColorContract _colorContract,
     ISeasonContract _seasonContract,
     IProductCrowdContract _productCrowdContract,
     IStoreContract _storeContract,
     IMemberContract _memberContract,
     IRetailContract _retailContract,
     IProductContract _productContract
     )
 {
     this._AppointmentGenContract = _AppointmentGenContract;
     this._brandContract          = _brandContract;
     this._categoryContract       = _categoryContract;
     this._colorContract          = _colorContract;
     this._seasonContract         = _seasonContract;
     this._productCrowdContract   = _productCrowdContract;
     this._productContract        = _productContract;
     this._storeContract          = _storeContract;
     this._memberContract         = _memberContract;
     this._retailContract         = _retailContract;
 }
 /// <summary>
 /// 依赖注入构造器
 /// </summary>
 public OrderController(IProductContract productContract)
 {
     this._productContract = productContract;
 }