コード例 #1
0
ファイル: StoreInPlan.cs プロジェクト: swankham/Epicoil
        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();
        }
コード例 #2
0
        public CustomerHub(ICustomerRepo repo)
        {
            if (repo == null)
                throw new ArgumentException("repo cannot be null");

            this.repo = repo;
        }
コード例 #3
0
ファイル: OrderBLL.cs プロジェクト: maglunde/Tankshop
 public OrderBLL(IOrderRepo stub)
 {
     _repo = stub;
     _productrepo = new ProductRepoStub();
     _customerrepo = new CustomerRepoStub();
     _accountrepo = new AccountRepoStub();
 }
コード例 #4
0
 public CustomerBLL()
 {
     _repo = new CustomerRepo();
     _accountrepo = new AccountRepo();
     _orderrepo = new OrderRepo();
     _productrepo = new ProductService();
 }
コード例 #5
0
ファイル: CustomerDailog.cs プロジェクト: swankham/Epicoil
 public CustomerDailog()
 {
     InitializeComponent();
     this._repo = new CustomerRepo();
     this.CustId = "";
     this.CustName = "";
 }
コード例 #6
0
ファイル: OrderBLL.cs プロジェクト: maglunde/Tankshop
 public OrderBLL()
 {
     _repo = new OrderRepo();
     _productrepo = new ProductRepo();
     _customerrepo = new CustomerRepo();
     _accountrepo = new AccountRepo();
 }
コード例 #7
0
 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);
 }
コード例 #8
0
 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;
 }
コード例 #9
0
        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;
        }
コード例 #10
0
        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));
        }
コード例 #11
0
ファイル: McssMaster.cs プロジェクト: swankham/Epicoil
        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
        }
コード例 #12
0
 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;
 }
コード例 #13
0
 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);
 }
コード例 #14
0
 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>();
     });
 }
コード例 #15
0
 internal ShoppingCartRepo(
     DbContextOptions <StoreContext> options, IProductRepo productRepo, ICustomerRepo customerRepo)
     : this(new StoreContext(options), productRepo, customerRepo)
 {
 }
コード例 #16
0
 public CustomersController(ICustomerRepo repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
コード例 #17
0
 public CustomerProvider(ICustomerRepo customerRepo)
 {
     _customerRepo = customerRepo;
 }
コード例 #18
0
 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;
 }
コード例 #19
0
 public CustomerService(ICustomerRepo _customerRepo)
 {
     this._customerRepo = _customerRepo;
 }
コード例 #20
0
 public IActionResult Index([FromServices] ICustomerRepo customerRepo)
 {
     return(null);
 }
コード例 #21
0
 public CustomerController(ICustomerRepo customerRepo, ILogger <CustomerRepo> logger, CustomerDbContext context)
 {
     _context      = context;
     _customerRepo = customerRepo;
     _log          = logger;
 }
コード例 #22
0
 public CustomerControllerTests()
 {
     _customerRepo = Substitute.For <ICustomerRepo>();
 }
コード例 #23
0
 public ShoppingCartRepo(DbContextOptions <StoreContext> options) : base(new StoreContext(options))
 {
     _productRepo  = new ProductRepo(Context);
     _customerRepo = new CustomerRepo(Context);
     base.Dispose();
 }
コード例 #24
0
 public CustomersController(ICustomerRepo customerRepo, IMapper mapper)
 {
     _customerRepo = customerRepo;
     _mapper       = mapper;
 }
コード例 #25
0
 public CreateSessionHandler(ICustomerRepo customerRepo, ICheckoutSessionGateway sessionGateway)
 {
     this.customerRepo   = customerRepo;
     this.sessionGateway = sessionGateway;
 }
コード例 #26
0
 public CustomerController(ICustomerRepo iCustomerRepo)
 {
     svc = new CustomerSvc(iCustomerRepo);
 }
コード例 #27
0
 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;
 }
コード例 #28
0
 public CustomerService(ICustomerRepo Repo) : base(Repo)
 {
     _CustomerRepo = Repo;
 }
 public RegistrationController(ICustomerRepo crepo)
 {
     this.crepo = crepo;
 }
コード例 #30
0
 public BookingController(IBookingRepo bookingRepo, ICarRepo carRepo, ICustomerRepo customerRepo)
 {
     _bookingRepo  = bookingRepo;
     _carRepo      = carRepo;
     _customerRepo = customerRepo;
 }
コード例 #31
0
 public CustomersController(ICustomerRepo customerRepo)
 {
     _customerRepo = customerRepo;
 }
コード例 #32
0
 public CustomerServices(ICustomerRepo custRepo)
 {
     this.custRepo = custRepo;
 }
コード例 #33
0
 public InvoiceController(ICustomerRepo iCustomerRepo, ISalesmanRepo iSalesmanRepo)
 {
     cHelper = new ControllerHelper(this, iCustomerRepo);
     customerSvc = new CustomerSvc(iCustomerRepo);
     salesmanSvc = new SalesmanSvc(iSalesmanRepo);
 }
コード例 #34
0
 internal ShoppingCartRepo(DbContextOptions <StoreContext> options) : base(new StoreContext(options))
 {
     _productRepo  = new ProductRepo(Context);
     _customerRepo = new CustomerRepo(Context);
 }
コード例 #35
0
 public CustomerController(ICustomerRepo iCustomerRepo)
 {
     svc = new CustomerSvc(iCustomerRepo);
     cHelper = new ControllerHelper(this, iCustomerRepo);
 }
コード例 #36
0
 public CustomerController(ICustomerRepo customerRepo)
 {
     _repo = customerRepo;
 }
コード例 #37
0
 internal ShoppingCartRepo(DbContextOptions <StoreContext> options) : base(new StoreContext(options))
 {
     this.productRepo  = new ProductRepo(Context);
     this.customerRepo = new CustomerRepo(Context);
     base.Dispose();
 }
コード例 #38
0
 public ShoppingCartRepo(
     StoreContext context, IProductRepo productRepo, ICustomerRepo customerRepo) : base(context)
 {
     _productRepo  = productRepo;
     _customerRepo = customerRepo;
 }
コード例 #39
0
 public QuotationController(ICustomerRepo iCustomerRepo)
 {
     cHelper = new ControllerHelper(this, iCustomerRepo);
     customerSvc = new CustomerSvc(iCustomerRepo); 
 }
コード例 #40
0
 public AdminController(IAdminRepo arepo, IProductRepo prepo, ICustomerRepo crepo)
 {
     this.arepo = arepo;
     this.prepo = prepo;
     this.crepo = crepo;
 }
コード例 #41
0
 public static void DisplayCustomersByCity(ICustomerRepo customerRepo)
 {
     Console.Clear();
     customerRepo.DisplayCustomersGroupedByCity();
 }
コード例 #42
0
ファイル: AccountBLL.cs プロジェクト: maglunde/Tankshop
 public AccountBLL()
 {
     _repo = new AccountRepo();
     _customerrepo = new CustomerRepo();
 }
コード例 #43
0
 public CustomersController(ICustomerRepo customerRepo, IAppLogging <CustomersController> logger) : base(customerRepo, logger)
 {
 }
コード例 #44
0
 public CustomersController(ICustomerRepo customerRepo)
 {
     _customerRepo = customerRepo;
 }
コード例 #45
0
ファイル: AccountBLL.cs プロジェクト: maglunde/Tankshop
 public AccountBLL(IAccountRepo stub)
 {
     _repo = stub;
     _customerrepo = new CustomerRepoStub();
 }