public ShoppingCartController(IOrderService orderService, IOrderDetailService orderDetailService, IProductService productService, ApplicationUserManager userManager) { this._orderDetailService = orderDetailService; this._productService = productService; this._userManager = userManager; this._orderService = orderService; }
public ReportController(IOrderService _orderService, IOrderDetailService _detailService, IEmployeeService _employeeService, IDistributorService _distributorService) { this.orderService = _orderService; this.detailService = _detailService; this.employeeService = _employeeService; this.distributorService = _distributorService; }
public ProductController(IProductSevice productService, IProductDetailService productDetailService, IProductSizeService productSizeService, IProductImageService productImageService, IColorService colorService, IRateService rateService, IReviewService reviewService, IUserService userService, IOrderService orderService, IOrderDetailService orderDetailService, ICategoryService categoryService, IMapper mapper) { _productService = productService; _categoryService = categoryService; _productDetailService = productDetailService; _productSizeService = productSizeService; _productImageService = productImageService; _colorService = colorService; _rateService = rateService; _reviewService = reviewService; _userService = userService; _orderService = orderService; _orderDetailService = orderDetailService; _mapper = mapper; }
/// <summary> /// 账单管理初始化 /// </summary> /// <param name="productService">productService</param> /// <param name="orderDetailService">orderDetailService</param> /// <param name="orderService">orderService</param> /// <param name="brokerService"></param> /// <param name="agentBillService">agentBillService</param> /// <param name="cfbBillService">CFBBillService</param> /// <param name="partnerlistService"></param> /// <param name="workContext"></param> /// <param name="landAgentBillService">landAgentBillService</param> /// <param name="commissionRatioService"></param> /// <param name="brokeAccountService"></param> public BillController( IProductService productService, IOrderDetailService orderDetailService, IOrderService orderService, IBrokerService brokerService, IAgentBillService agentBillService, ICFBBillService cfbBillService, IPartnerListService partnerlistService, IWorkContext workContext, ILandAgentBillService landAgentBillService, ICommissionRatioService commissionRatioService, IBrokeAccountService brokeAccountService) { _productService = productService; _orderDetailService = orderDetailService; _orderService = orderService; _brokerService = brokerService; _agentBillService = agentBillService; _CFBBillService = cfbBillService; _partnerlistService = partnerlistService; _workContext = workContext; _landAgentBillService = landAgentBillService; _commissionRatioService = commissionRatioService; _brokeAccountService = brokeAccountService; }
public Order CreateOrder(IUnitOfWork unitOfWork, ICartService cartService, IOrderService orderService, IOrderDetailService orderDetailService, IProductService productService, ICategoryService categoryService, Order order) { decimal orderTotal = 0; var cartItems = GetCartItems(cartService, productService, categoryService); foreach (var item in cartItems) { var orderDetail = new OrderDetail { ProductId = item.ProductId, OrderId = order.Id, UnitPrice = item.Product.Price, Quantity = item.Count }; orderTotal += (item.Count * item.Product.Price); orderDetailService.Insert(orderDetail); } // update total into order order.Total = orderTotal; orderService.Update(order); // commit to changes unitOfWork.SaveChanges(); //emty cart session EmptyCart(unitOfWork, cartService); return order; }
public ManageOrderDetailsController(IProductService productService, IOrderService orderService, IOrderDetailService orderDetailService) { _productService = productService; _orderService = orderService; _orderDetailService = orderDetailService; }
public OrderDetailsController( IOrderDetailService orderDetailService, IUnitOfWork unitOfWork) { _orderDetailService = orderDetailService; _unitOfWork = unitOfWork; }
public OrderController(IProductService productService, IOrderService orderService, IOrderDetailService orderDetailService, UserManager <ApplicationUser> userManager) { _productService = productService; _orderService = orderService; _orderDetailService = orderDetailService; _userManager = userManager; }
public ShopCartController(IProductService productService, IMapper mapper, IOrderDetailService orderDetailService, IOrderService orderService) { _orderDetailService = orderDetailService; _productService = productService; _mapper = mapper; _orderService = orderService; }
public OrderManager(IOrderDal orderDal, IOrderDetailService orderDetailService, IProductService productService, IUserService userService) { _orderDal = orderDal; _orderDetailService = orderDetailService; _productService = productService; _userService = userService; }
//IproductService'i başlatıyoruz public CartController(IProductService productService, ICustomerService customerService, IOrderService orderService, IOrderDetailService orderDetailService) { _productService = productService; _customerService = customerService; _orderService = orderService; _orderDetailService = orderDetailService; }
public OrderController(IOrderService orderService, IOrderDetailService orderDetailService, IPaymentTypeService paymentTypeService, IMapper mapper) { _orderService = orderService; _orderDetailService = orderDetailService; _paymentTypeService = paymentTypeService; _mapper = mapper; }
public ShoppingCartController(IProductService iProductService, IAccountService iAccountService, IOrderService iOrderService, IOrderDetailService iOrderDetailService) { _iProductService = iProductService; _iAccountService = iAccountService; _iOrderDetailService = iOrderDetailService; _iOrderService = iOrderService; }
public ManageOrderController(IOrderService orderService, ICustomerService customerService, IOrderDetailService orderDetailService, IProductService productService) { _orderService = orderService; _customerService = customerService; _orderDetailService = orderDetailService; _productService = productService; }
public UserController(ISysUserService sysUserService, ILibrarySeatService librarySeatService, IOrderDetailService orderDetailService, IAdminAuthService adminAuthService) { _sysUserService = sysUserService; _librarySeatService = librarySeatService; _adminAuthService = adminAuthService; _orderDetailService = orderDetailService; }
private void Init() { var context = new OmsContext(); _orderRepository = new OrderRepository(context); _customerLocationRepository = new CustomerLocationRepository(context); var customerRepository = new CustomerRepository(context); _customerProductDataRepository = new CustomerProductDataRepository(context); _orderService = new OrderService(_orderRepository, customerRepository, _customerLocationRepository, _coldWeightRepository); _orderDetailService = new OrderDetailService(_orderDetailRepository, _orderRepository, _productRepository, _customerLocationRepository, new SpeciesRepository(context), _customerProductDataRepository); _labelService = new LabelService(); _labelCreateService = new LabelCreateService(); _productRepository = new ProductRepository(context); _coldWeightRepository = new ColdWeightEntryRepository(context); _offalRepository = new OffalRepository(context); _orderComboRepository = new OrderComboRepository(context); _orderOffalRepository = new OrderOffalRepository(context); _orderDetailRepository = new OrderDetailRepository(context); _animalOrderDetailRepository = new AnimalOrderDetailRepository(context); _coldWeightEntryRepository = new ColdWeightEntryRepository(context); _qualityGradeRepository = new QualityGradeRepository(context); _animalLabelRepository = new AnimalLabelRepository(context); _coldWeightEntryDetailRepository = new ColdWeightEntryDetailRepository(context); }
public HomeController(IProductService productService, IUserService userService, ICommentService commentService, IOrderDetailService orderDetailService) { _productService = productService; _userService = userService; _commentService = commentService; _orderDetailService = orderDetailService; }
public OrderController(IOrderService orderService, IOrderDetailService orderDetailService, IStoreRepo storeRepo, ICategoryProductRepo categoryProductRepo, IUserRepo userRepo) { this.orderService = orderService; this.orderDetailService = orderDetailService; this.storeRepo = storeRepo; this.categoryProductRepo = categoryProductRepo; this.userRepo = userRepo; }
public CartController(IProductService productService, ICartService cartService, IShippingDetailService shippingDetailService, IOrderDetailService orderDetailService, IUserService userService) { _productService = productService; _cartService = cartService; _shippingDetailService = shippingDetailService; _orderDetailService = orderDetailService; _userService = userService; }
public ProductCommentController(IProductCommentService productCommentService,IProductService productService,IMemberService memberService,IWorkContext workContext,IOrderDetailService orderDetailService) { _productCommentService = productCommentService; _productService = productService; _memberService = memberService; _workContext = workContext; _orderDetailService = orderDetailService; }
public OrdersController(IProductService productService, ICategoryService categoryService, IOrdersService ordersService, IOrderDetailService orderDetailService, IUserService userService) { this.productService = productService; this.categoryService = categoryService; this.ordersService = ordersService; this.orderDetailService = orderDetailService; this.userService = userService; }
public ProductCommentController(IProductCommentService productCommentService, IProductService productService, IMemberService memberService, IWorkContext workContext, IOrderDetailService orderDetailService) { _productCommentService = productCommentService; _productService = productService; _memberService = memberService; _workContext = workContext; _orderDetailService = orderDetailService; }
public OrderController(IOrderService orderService, IOrderDetailService orderDetailService, IProductTypeService productTypeService) { this._orderService = orderService; this._orderDetailService = orderDetailService; this._productTypeService = productTypeService; }
public CartController(ICartService cartservice, IProductsService productservice, IOrderService orderservice, IOrderDetailService orderdetailserivce) { _cartservice = cartservice; _productservice = productservice; _orderservice = orderservice; _orderdetailservice = orderdetailserivce; }
public OrderController(IUnitOfWork unitOfWork, IOrderService orderService, IOrderDetailService orderDetailService, IProductService productService) { this._unitOfWork = unitOfWork; this._orderService = orderService; this._orderDetailService = orderDetailService; this._productService = productService; }
public CustomersController(IUserService userService, IUserAddressService userAddressService, IOrderDetailService orderDetailService, ICommentService commentService, IContactService contactService) { _userService = userService; _userAddressService = userAddressService; _orderDetailService = orderDetailService; _commentService = commentService; _contactService = contactService; }
public OrderController(IOrderDetailService iOrderDetailService, IOrderService iOrderService, IAccountService iAccountService, IProductService iProductService) { _iAccountService = iAccountService; _iOrderDetailService = iOrderDetailService; _iOrderService = iOrderService; _iProductService = iProductService; Thread.CurrentThread.CurrentUICulture = new CultureInfo("vi-VN"); }
public ShopController(ICategoryService categoryService, IProductService productService, IMapper mapper, IOrderDetailService orderDetailService, IOrderService orderService) { _productService = productService; _categoryService = categoryService; _mapper = mapper; _orderDetailService = orderDetailService; _orderService = orderService; }
public ManagerController(IPoRequestService poRequestService, IQuoteService quoteService, IOrderService orderService, IOrderDetailService orderDetailService, IAssetService assetService) { _poRequestService = poRequestService; _quoteService = quoteService; _orderService = orderService; _orderDetailService = orderDetailService; _assetService = assetService; }
// GET: Product/Detail/5 public ActionResult Detail(int id) { IOrderDetailService service = ServiceFactory.GetOrderDetailService(); OrderDetail orderdetail = service.Get(id); //ViewBag.product1 = service.GetAll().Where(a=> a.ProductID==id) ; return(View(orderdetail)); }
public OrderController( IProductService productService, IOrderDetailService orderDetailService, IOrderService orderService) { _productService = productService; _orderDetailService = orderDetailService; _orderService = orderService; }
public void SetUp() { _context = DataContextFactory.CreateTestDb(); _fixture = new Fixture(); _fixture.Behaviors.Add(new OmitOnRecursionBehavior()); _fixture.Behaviors.OfType <ThrowingRecursionBehavior>().ToList().ForEach(b => _fixture.Behaviors.Remove(b)); _orderDetailRepository = new Mock <IOrderDetailRepository>(); _sut = new OrderDetailService(_orderDetailRepository.Object); }
public CompleteController(IOrderService OrderService, IOrderDetailService OrderDetailService, ICustomerService CustomerService, IStoreService StoreService, IBasketService BasketService, IProductService ProductService) { _OrderService = OrderService; _OrderDetailService = OrderDetailService; _CustomerService = CustomerService; _StoreService = StoreService; _BasketService = BasketService; _ProductService = ProductService; }
public UserOrdersSummaryViewComponent(IOrderService orderService, IPaymentService paymentService, IAppUserService appUserService, UserManager <AppUser> userManager, IOrderDetailService orderDetailService, IProductService productService) { _orderService = orderService; _paymentService = paymentService; _appUserService = appUserService; _userManager = userManager; _orderDetailService = orderDetailService; _productService = productService; }
public OrderFromBasketManager(IOrderDetailService orderDetailService, IOrderService orderService, IBasketDetailService basketDetailService, IHttpContextAccessor httpContextAccessor, IProductService productService, IBasketService basketService) { _orderDetailService = orderDetailService; _orderService = orderService; _basketDetailService = basketDetailService; _httpContextAccessor = httpContextAccessor; _productService = productService; _basketService = basketService; }
public ShoppingCartController(IUnitOfWork unitOfWork, ICategoryService categoryService, IProductService productService, IOrderService orderService, IOrderDetailService orderDetailService, ICartService cartService) { this._unitOfWork = unitOfWork; this._categoryService = categoryService; this._productService = productService; this._orderService = orderService; this._orderDetailService = orderDetailService; this._cartService = cartService; }
public OrderDetailController(IAuditLevelService auditLevelService, IEnquiryService enquiryService, IMapperFactory mapperFactory, IEmployeesService employeesService, IPositionService positionService, IOrderService orderService, IPayPeriodService payPeriodService, ICustomerService customerService, IOrderDetailService orderDetailService) { _auditLevelService = auditLevelService; _enquiryService = enquiryService; _mapperFactory = mapperFactory; _employeesService = employeesService; _positionService = positionService; _orderService = orderService; _payPeriodService = payPeriodService; _customerService = customerService; _orderDetailService = orderDetailService; }
public CheckoutController(IUnitOfWork unitOfWork, ICategoryService categoryService, IOrderService orderService, IOrderDetailService orderDetailService, ICartService cartService, IEmailQueueService emailQueueService, IProductService productService, IEmailTemplateService emailTemplateService, IContentService content) { this._unitOfWork = unitOfWork; this._categoryService = categoryService; this._productService = productService; this._orderService = orderService; this._orderDetailService = orderDetailService; this._cartService = cartService; this._emailQueueService = emailQueueService; this._emailTemplateService = emailTemplateService; this._content = content; }
/// <summary> /// 经纪人带客初始化 /// </summary> /// <param name="brokerleadclientService">brokerleadclientService</param> /// <param name="brokerService">brokerService</param> /// <param name="clientInfoService">clientInfoService</param> /// <param name="workContext">workContext</param> /// <param name="orderService">orderService</param> /// <param name="productService">productService</param> /// <param name="orderDetailService">orderDetailService</param> public BrokerLeadClientController( IBrokerLeadClientService brokerleadclientService, IBrokerService brokerService, IClientInfoService clientInfoService, IWorkContext workContext, IOrderService orderService, IProductService productService, IOrderDetailService orderDetailService ) { _brokerleadclientService = brokerleadclientService; _brokerService = brokerService; _clientInfoService = clientInfoService; _workContext = workContext; _orderService = orderService; _productService = productService; _orderDetailService = orderDetailService; }
/// <summary> /// andmin推荐平台流程处理 /// </summary> /// <param name="brokerRecClientService">brokerRecClientService</param> /// <param name="brokerService">brokerService</param> /// <param name="userService">userService</param> /// <param name="workContext">workContext</param> /// <param name="orderService">orderService</param> /// <param name="orderDetailService">orderDetailService</param> /// <param name="levelService">levelService</param> /// <param name="roleService">roleService</param> /// <param name="productService">productService</param> public AdminRecomController(IBrokerRECClientService brokerRecClientService, IBrokerService brokerService, IUserService userService, IWorkContext workContext, IOrderService orderService, IOrderDetailService orderDetailService, ILevelService levelService, IRoleService roleService, IProductService productService ) { _productService = productService; _brokerRecClientService = brokerRecClientService; _brokerService = brokerService; _userService = userService; _workContext = workContext; _orderService = orderService; _orderDetailService = orderDetailService; _levelService = levelService; _roleService = roleService; }
public OrderDetailsController(IOrderDetailService orderDetailService, IUnitOfWorkAsync unitOfWork) { _orderDetailService = orderDetailService; _unitOfWork = unitOfWork; }
public OrderDetailController(IOrderDetailService orderDetailService) { _orderDetailService = orderDetailService; }