コード例 #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;
 }
コード例 #7
0
 public DelegationService(InventoryManagementSystemContext db, EmployeeService empService, EmployeeTypeService etService)
 {
     this.db         = db;
     this.empService = empService;
     this.etService  = etService;
 }
コード例 #8
0
 public DeliveryOrderService(InventoryManagementSystemContext db, InventoryTransactionService invtService)
 {
     this.db          = db;
     this.invtService = invtService;
 }
コード例 #9
0
 public CollectionPointService(InventoryManagementSystemContext db)
 {
     this.db = db;
 }
コード例 #10
0
 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;
 }
コード例 #18
0
 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;
 }
コード例 #21
0
 public EmployeeService(InventoryManagementSystemContext db, EmployeeTypeService etService, DepartmentService dService)
 {
     this.db        = db;
     this.etService = etService;
     this.dService  = dService;
 }