public StoreInPlan(SessionInfo _session = null, StoreInPlanHead model = null) { InitializeComponent(); this._repo = new StoreInPlanRepo(); this._repoIn = new StoreInRepo(); this._repoCurr = new CurrenciesRepo(); this._repoSupplier = new SupplierRepo(); this._repoBT = new BussinessTypeRepo(); this._repoMaker = new MakerRepo(); this._repoMill = new MillRepo(); this._repoCmdt = new Commodity(); this._repoSpec = new SpecRepo(); this._repoCoating = new CoatingRepo(); this._repoWhse = new WharehouseRepo(); this._repoPort = new ImportPortRepo(); this._repoCust = new CustomerRepo(); this._repoLookup = new LookupRepo(); this.SourceStr = ""; epiSession = _session; if (model == null || epiSession == null) { this.HeadContent = new StoreInPlanHead(); this.IMEXReviewFlag = false; } else { this.HeadContent = model; this.IMEXReviewFlag = true; } this.ModelClone = new StoreInPlanHead(); this.POTrans = new POLineModel(); }
public CustomerHub(ICustomerRepo repo) { if (repo == null) throw new ArgumentException("repo cannot be null"); this.repo = repo; }
public OrderBLL(IOrderRepo stub) { _repo = stub; _productrepo = new ProductRepoStub(); _customerrepo = new CustomerRepoStub(); _accountrepo = new AccountRepoStub(); }
public CustomerBLL() { _repo = new CustomerRepo(); _accountrepo = new AccountRepo(); _orderrepo = new OrderRepo(); _productrepo = new ProductService(); }
public CustomerDailog() { InitializeComponent(); this._repo = new CustomerRepo(); this.CustId = ""; this.CustName = ""; }
public OrderBLL() { _repo = new OrderRepo(); _productrepo = new ProductRepo(); _customerrepo = new CustomerRepo(); _accountrepo = new AccountRepo(); }
public DataImportor(ICustomerRepo iCustomerRepo, IGSTRepo iGSTRepo, IInvoiceRepo iInvoiceRepo, IOrderDetailRepo iOrderDetailRepo, ISalesmanRepo iSalesmanRepo,IPaymentRepo iPaymentRepo,IPaymentDetailRepo iPaymentDetailRepo) { custSvr = new CustomerSvc(iCustomerRepo); gstSvr = new GSTSvc(iGSTRepo); invSvr = new InvoiceSvc(iInvoiceRepo); orderDetailSvr = new OrderDetailSvc(iOrderDetailRepo); salesmanSvc = new SalesmanSvc(iSalesmanRepo); paymentSvc = new PaymentSvc(iPaymentRepo); paymentDetailSvc = new PaymentDetailSvc(iPaymentDetailRepo); }
public HomeController(IStarterRepo starterRepo , IMainCourseRepo mainCourseRepo , IDessertRepo dessertRepo , IDishesRepo dishesRepo , ICustomerRepo customerRepo , IOrderDetailsRepo orderDetailsRepo , IOrdersRepo ordersRepo) { _starterRepo = starterRepo; _mainCourseRepo = mainCourseRepo; _dessertRepo = dessertRepo; _dishesRepo = dishesRepo; _customerRepo = customerRepo; _orderDetailsRepo = orderDetailsRepo; _ordersRepo = ordersRepo; }
public LocationController(ICustomerRepo customerRepo, ILocationRepo locationRepo, IOrderRepo orderRepo, ICupcakeRepo cupcakeRepo, IOrderItemRepo orderItemRepo, ILocationInventoryRepo locationInventoryRepo, IRecipeItemRepo recipeItemRepo, IIngredientRepo ingRepo, ILogger <LocationController> logger) { LocRepo = locationRepo; CustomerRepo = customerRepo; OrderRepo = orderRepo; CupcakeRepo = cupcakeRepo; OrderItemRepo = orderItemRepo; LocationInventoryRepo = locationInventoryRepo; RecipeItemRepo = recipeItemRepo; IngRepo = ingRepo; _logger = logger; }
public IActionResult Index([FromServices] ICustomerRepo customerRepo) { ViewBag.Title = "Cart"; ViewBag.Header = "Cart"; IEnumerable <CartRecordWithProductInfo> cartItems = _shoppingCartRepo.GetShoppingCartRecords(ViewBag.CustomerId); var customer = customerRepo.Find(ViewBag.CustomerId); var mapper = _config.CreateMapper(); var viewModel = new CartViewModel { Customer = customer, CartRecords = mapper.Map <IList <CartRecordViewModel> >(cartItems) }; return(View(viewModel)); }
public McssMaster(MCSS model = null, SessionInfo _session = null) { InitializeComponent(); this._repo = new McssRepo(); this._repoCustomer = new CustomerRepo(); this._repoCoating = new CoatingRepo(); this._repoSpec = new SpecRepo(); this._repoCommodity = new Commodity(); this._repoSupplier = new SupplierRepo(); this._repoBT = new BussinessTypeRepo(); this._repoMaker = new MakerRepo(); this._repoMill = new MillRepo(); this._repoCatg = new CategoryGroupRepo(); specialRef = new Dictionary<int, string>(); #region Dashboard if (model == null) { this.McssContent = new MCSS(); this.ModelClone = new MCSS(); this.Initail = new InitialModel(); } else { this.McssContent = model; ModelClone = (MCSS)model.Clone(); } epiSession = _session; #endregion #region Direct form //epiSession = new SessionInfo(); //if (epiSession.SessionID == null) //{ // Login frm = new Login(); // frm.ShowDialog(); //} //else if (epiSession.SessionID == "x") //{ // Application.Exit(); //} //else //{ // this.Text = epiSession.CompanyName; //} #endregion }
public SettlementBatalController(IUserReferenceRepo repoBase, ILookupCodeRepo repoLookup, ISettlementBatalRepo repoSettlementBatal, ISalesOrderRepo repoSalesOrder, IAtmRepo repoAtm, IDataBoronganRepo repoBor, Iglt_detRepo repoglt_det, IERPConfigRepo repoERPConfig, Iac_mstrRepo repoac_mstr, Ibk_mstrRepo repobk_mstr, IAdminUangJalanRepo repoAdminUangJalan, Ipbyd_detRepo repopbyd_det, IMasterPoolRepo repoIMasterPool, ILookupCodeRepo repoLookupCode, ICustomerRepo repoCustomer, Igr_mstrRepo repogr_mstr) : base(repoBase, repoLookup) { RepoAdminUangJalan = repoAdminUangJalan; RepoSettlementBatal = repoSettlementBatal; RepoSalesOrder = repoSalesOrder; RepoAtm = repoAtm; RepoBor = repoBor; Repoglt_det = repoglt_det; RepoERPConfig = repoERPConfig; Repoac_mstr = repoac_mstr; Repobk_mstr = repobk_mstr; Repopbyd_det = repopbyd_det; RepoMasterPool = repoIMasterPool; RepoLookupCode = repoLookupCode; RepoCustomer = repoCustomer; Repogr_mstr = repogr_mstr; }
public CheckoutMenu(Customer customer, lacrosseContext context, ICustomerRepo customerRepo, ILocationRepo locationRepo, IInventoryRepo inventoryRepo, IProductRepo productRepo, ICartRepo cartRepo, ICartItemsRepo cartItemsRepo, IOrderRepo orderRepo, ILineItemRepo lineItemRepo) { this.customer = customer; this.customerRepo = customerRepo; this.inventoryRepo = inventoryRepo; this.locationRepo = locationRepo; this.productRepo = productRepo; this.orderRepo = orderRepo; this.cartRepo = cartRepo; this.cartItemsRepo = cartItemsRepo; this.lineItemRepo = lineItemRepo; this.customerServices = new CustomerServices(customerRepo); this.locationServices = new LocationServices(locationRepo); this.inventoryServices = new InventoryServices(inventoryRepo); this.productServices = new ProductServices(productRepo); this.cartServices = new CartServices(cartRepo); this.cartItemServices = new CartItemServices(cartItemsRepo); this.orderServices = new OrderServices(orderRepo); this.lineItemServices = new lineItemServices(lineItemRepo); }
public CartController( IShoppingCartRepo shoppingCartRepo, ICustomerRepo customerRepo, IProductRepo productRepo) { _shoppingCartRepo = shoppingCartRepo; _customerRepo = customerRepo; _productRepo = productRepo; _config = new MapperConfiguration( cfg => { cfg.CreateMap <AddToCartViewModel, ShoppingCartRecord>() .AfterMap((s, t) => { t.Id = 0; t.TimeStamp = null; }); cfg.CreateMap <CartRecordViewModel, ShoppingCartRecord>(); cfg.CreateMap <CartRecordWithProductInfo, CartRecordViewModel>(); cfg.CreateMap <ProductAndCategoryBase, AddToCartViewModel>(); }); }
internal ShoppingCartRepo( DbContextOptions <StoreContext> options, IProductRepo productRepo, ICustomerRepo customerRepo) : this(new StoreContext(options), productRepo, customerRepo) { }
public CustomersController(ICustomerRepo repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
public CustomerProvider(ICustomerRepo customerRepo) { _customerRepo = customerRepo; }
public SyncController(IUserReferenceRepo repoBase, IDriverRepo repoDriver, IUserRepo repoUser, Iptnr_mstrRepo repoptnr_mstr, ILookupCodeRepo repoLookup, ICustomerRepo repoCustomer, IDataTruckRepo repoDataTruck, Icode_mstrRepo repocode_mstr) : base(repoBase, repoLookup) { RepoDriver = repoDriver; RepoUser = repoUser; Repoptnr_mstr = repoptnr_mstr; RepoCustomer = repoCustomer; RepoDataTruck = repoDataTruck; Repocode_mstr = repocode_mstr; }
public CustomerService(ICustomerRepo _customerRepo) { this._customerRepo = _customerRepo; }
public IActionResult Index([FromServices] ICustomerRepo customerRepo) { return(null); }
public CustomerController(ICustomerRepo customerRepo, ILogger <CustomerRepo> logger, CustomerDbContext context) { _context = context; _customerRepo = customerRepo; _log = logger; }
public CustomerControllerTests() { _customerRepo = Substitute.For <ICustomerRepo>(); }
public ShoppingCartRepo(DbContextOptions <StoreContext> options) : base(new StoreContext(options)) { _productRepo = new ProductRepo(Context); _customerRepo = new CustomerRepo(Context); base.Dispose(); }
public CustomersController(ICustomerRepo customerRepo, IMapper mapper) { _customerRepo = customerRepo; _mapper = mapper; }
public CreateSessionHandler(ICustomerRepo customerRepo, ICheckoutSessionGateway sessionGateway) { this.customerRepo = customerRepo; this.sessionGateway = sessionGateway; }
public CustomerController(ICustomerRepo iCustomerRepo) { svc = new CustomerSvc(iCustomerRepo); }
public DokumenController(IUserReferenceRepo repoBase, ILookupCodeRepo repoLookup, IDokumenRepo repoDokumen, ICustomerRepo repoCustomer, ISalesOrderRepo repoSalesOrder, Iso_mstrRepo reposo_mstr, IERPConfigRepo repoERPConfig) : base(repoBase, repoLookup) { RepoDokumen = repoDokumen; RepoCustomer = repoCustomer; RepoSalesOrder = repoSalesOrder; RepoERPConfig = repoERPConfig; Reposo_mstr = reposo_mstr; }
public CustomerService(ICustomerRepo Repo) : base(Repo) { _CustomerRepo = Repo; }
public RegistrationController(ICustomerRepo crepo) { this.crepo = crepo; }
public BookingController(IBookingRepo bookingRepo, ICarRepo carRepo, ICustomerRepo customerRepo) { _bookingRepo = bookingRepo; _carRepo = carRepo; _customerRepo = customerRepo; }
public CustomersController(ICustomerRepo customerRepo) { _customerRepo = customerRepo; }
public CustomerServices(ICustomerRepo custRepo) { this.custRepo = custRepo; }
public InvoiceController(ICustomerRepo iCustomerRepo, ISalesmanRepo iSalesmanRepo) { cHelper = new ControllerHelper(this, iCustomerRepo); customerSvc = new CustomerSvc(iCustomerRepo); salesmanSvc = new SalesmanSvc(iSalesmanRepo); }
internal ShoppingCartRepo(DbContextOptions <StoreContext> options) : base(new StoreContext(options)) { _productRepo = new ProductRepo(Context); _customerRepo = new CustomerRepo(Context); }
public CustomerController(ICustomerRepo iCustomerRepo) { svc = new CustomerSvc(iCustomerRepo); cHelper = new ControllerHelper(this, iCustomerRepo); }
public CustomerController(ICustomerRepo customerRepo) { _repo = customerRepo; }
internal ShoppingCartRepo(DbContextOptions <StoreContext> options) : base(new StoreContext(options)) { this.productRepo = new ProductRepo(Context); this.customerRepo = new CustomerRepo(Context); base.Dispose(); }
public ShoppingCartRepo( StoreContext context, IProductRepo productRepo, ICustomerRepo customerRepo) : base(context) { _productRepo = productRepo; _customerRepo = customerRepo; }
public QuotationController(ICustomerRepo iCustomerRepo) { cHelper = new ControllerHelper(this, iCustomerRepo); customerSvc = new CustomerSvc(iCustomerRepo); }
public AdminController(IAdminRepo arepo, IProductRepo prepo, ICustomerRepo crepo) { this.arepo = arepo; this.prepo = prepo; this.crepo = crepo; }
public static void DisplayCustomersByCity(ICustomerRepo customerRepo) { Console.Clear(); customerRepo.DisplayCustomersGroupedByCity(); }
public AccountBLL() { _repo = new AccountRepo(); _customerrepo = new CustomerRepo(); }
public CustomersController(ICustomerRepo customerRepo, IAppLogging <CustomersController> logger) : base(customerRepo, logger) { }
public AccountBLL(IAccountRepo stub) { _repo = stub; _customerrepo = new CustomerRepoStub(); }