예제 #1
0
 public MobileAPIController(InventoryManagementSystemContext db, EmployeeService eservice, RequisitionService rpService, ProductService pService)
 {
     this.eservice  = eservice;
     this.rpService = rpService;
     this.pService  = pService;
     this.db        = db;
 }
예제 #2
0
 public StationeryRetrievalFormService(InventoryManagementSystemContext db, InventoryTransactionService invtService, ProductService pService, EmployeeService empService)
 {
     this.db          = db;
     this.invtService = invtService;
     this.pService    = pService;
     this.empService  = empService;
 }
예제 #3
0
 public RequisitionService(InventoryManagementSystemContext db,
                           ProductService pService,
                           EmployeeService empService)
 {
     this.db         = db;
     this.pService   = pService;
     this.empService = empService;
 }
예제 #4
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env,
                              InventoryManagementSystemContext db,
                              IWebHostEnvironment environment,
                              ProductService pService,
                              DepartmentService dService,
                              InventoryTransactionService invtransService,
                              ProductCategoryService pcService,
                              DisbursementFormService dfService,
                              StationeryRetrievalFormService srfService,
                              EmployeeTypeService etService,
                              EmployeeService empService,
                              RequisitionService rfService,
                              DelegationService delService,
                              SupplierService supService,
                              SupplierProductService spService,
                              InventoryTransactionService itService)

        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
                // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
                app.UseHsts();
            }
            //app.UseHttpsRedirection();
            app.UseStaticFiles();

            app.UseRouting();

            // Cookie authentication configuration
            app.UseCookiePolicy();
            app.UseAuthentication();
            app.UseAuthorization();

            app.UseSession();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllerRoute(
                    name: "default",
                    pattern: "{controller=Home}/{action=Index}/{id?}");
            });

            db.Database.EnsureDeleted();
            db.Database.EnsureCreated();
            new DBSeeder(db, environment, pService, dService, pcService, dfService, srfService,
                         etService, empService, rfService, delService, supService, spService, itService);
        }
예제 #5
0
 public DeliveryOrderSupplierProductService(InventoryManagementSystemContext db, DeliveryOrderService doService)
 {
     this.db        = db;
     this.doService = doService;
 }
예제 #6
0
 public PurchaseOrderService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
 public DelegationService(InventoryManagementSystemContext db, EmployeeService empService, EmployeeTypeService etService)
 {
     this.db         = db;
     this.empService = empService;
     this.etService  = etService;
 }
 public DeliveryOrderService(InventoryManagementSystemContext db, InventoryTransactionService invtService)
 {
     this.db          = db;
     this.invtService = invtService;
 }
 public CollectionPointService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
 public DashboardService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
예제 #11
0
 public ProductCategoryService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
예제 #12
0
 public TrendAnalysisService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
예제 #13
0
 public DisbursementFormRequisitionFormProductService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
예제 #14
0
 public EmployeeTypeService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
 public PurchaseDeliveryProductService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
예제 #16
0
 public SupplierProductService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
예제 #17
0
 public DepartmentService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
 public ProductService(InventoryManagementSystemContext db, ProductCategoryService pcService)
 {
     this.db        = db;
     this.pcService = pcService;
 }
예제 #19
0
 public DisbursementFormService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
 public StationeryRetrievalRequisitionFormService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
 public EmployeeService(InventoryManagementSystemContext db, EmployeeTypeService etService, DepartmentService dService)
 {
     this.db        = db;
     this.etService = etService;
     this.dService  = dService;
 }