コード例 #1
0
 //构造函数-初始化业务层操作对象
 public MemberCollocationController(IMemberCollocationContract memberCollocationContract,
                                    IMemberContract memberContract,
                                    ICommentContract singleCommentContract,
                                    IColorContract colorContract,
                                    ISeasonContract seasonContract,
                                    ISizeContract sizeContract,
                                    ICategoryContract categoryContract,
                                    IProductAttributeContract productAttrContract,
                                    IMemberColloEleContract memberColloEleContract,
                                    IApprovalContract ApprovalContract,
                                    IMemberSingleProductContract memberSingleProductContract,
                                    IAdministratorContract administratorContract,
                                    ICommentContract commentContract,
                                    IApprovalContract approvalContract)
 {
     _memberCollocationContract = memberCollocationContract;
     _memberContract            = memberContract;
     _singleCommentContract     = singleCommentContract;
     _colorContract             = colorContract;
     _seasonContract            = seasonContract;
     _sizeContract                = sizeContract;
     _categoryContract            = categoryContract;
     _productAttrContract         = productAttrContract;
     _memberColloEleContract      = memberColloEleContract;
     _ApprovalContract            = ApprovalContract;
     _memberSingleProductContract = memberSingleProductContract;
     _administratorContract       = administratorContract;
     _commentContract             = commentContract;
     _approvalContract            = approvalContract;
 }
コード例 #2
0
 public SeasonController(ISeasonContract seasonContract)
 {
     _seasonContract = seasonContract;
     ViewBag.Season  = (_seasonContract.SelectList("选择季节").Select(m => new SelectListItem {
         Text = m.Key, Value = m.Value
     })).ToList();
 }
コード例 #3
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;
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 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;
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 public ProductCommissionController(IBrandContract brandContract,
                                    IStoreContract storeContract,
                                    ISeasonContract seasonContract,
                                    IProductCommissionContract productCommissionContract)
 {
     _brandContract             = brandContract;
     _storeContract             = storeContract;
     _seasonContract            = seasonContract;
     _productCommissionContract = productCommissionContract;
     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.Discount = StaticHelper.CommList("选择提成点");
 }
コード例 #8
0
 //构造函数-初始化业务层操作对象
 public MemberSingleProductController(IMemberSingleProductContract memberSingleProductContract,
                                      IMemberContract memberContract,
                                      ICommentContract singleProductCommentContract,
                                      IColorContract colorContract,
                                      ISeasonContract seasonContract,
                                      ISizeContract sizeContract,
                                      ICategoryContract categoryContract,
                                      IProductAttributeContract productAttrContract,
                                      IApprovalContract productApprovalContract)
 {
     _memberSingleProductContract = memberSingleProductContract;
     _memberContract = memberContract;
     _singleProductCommentContract = singleProductCommentContract;
     _colorContract           = colorContract;
     _seasonContract          = seasonContract;
     _sizeContract            = sizeContract;
     _categoryContract        = categoryContract;
     _productAttrContract     = productAttrContract;
     _productApprovalContract = productApprovalContract;
 }
コード例 #9
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;
 }
コード例 #10
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;
 }
コード例 #11
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("选择折扣");
        }
コード例 #12
0
 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;
 }