コード例 #1
0
ファイル: Startup.cs プロジェクト: ykyaw/SSIS_Boot
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, SSISContext dbcontext)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }
            app.UseStaticFiles();

            app.UseSession();

            app.UseRouting();

            app.UseAuthorization();

            app.UseMiddlewareExtensions();

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

            dbcontext.Database.EnsureDeleted();
            dbcontext.Database.EnsureCreated();
            new SSISSeeder(dbcontext);
        }
コード例 #2
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ILogger <AccountController> logger,
     SSISContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _logger        = logger;
     _context       = context;
 }
コード例 #3
0
        public List <Item> ListProducts(string searchStr)
        {
            List <Item> items = new List <Item>();

            using (var db = new SSISContext())
            {
                if (searchStr == null)
                {
                    items = db.Items.ToList();
                }
                else
                {
                    items = db.Items.Where(ite => ite.Description.Contains(searchStr) || ite.Description.Contains(searchStr)).ToList();
                }
            }

            Session["searchStr"] = searchStr;
            ViewBag.products     = items;
            return(items);
        }
コード例 #4
0
ファイル: SupplierRepo.cs プロジェクト: ykyaw/SSIS_Boot
 public SupplierRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #5
0
 public TenderQuotationRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #6
0
 public CollectionPointRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #7
0
 public RequestDetailsController(SSISContext context)
 {
     _context = context;
 }
コード例 #8
0
 public TransactionRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #9
0
 public RequisitionRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #10
0
 public AVDetailsController(SSISContext context)
 {
     _context = context;
 }
コード例 #11
0
 public EmployeeRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #12
0
 public DepartmentRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #13
0
 public HomeController(SSISContext context)
 {
     _context = context;
 }
コード例 #14
0
 public PurchaseRequestRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #15
0
 public AgentController(SSISContext context)
 {
     _context = context;
 }
コード例 #16
0
ファイル: ProductRepo.cs プロジェクト: ykyaw/SSIS_Boot
 public ProductRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #17
0
 public RequestsController(SSISContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
コード例 #18
0
 public DepartmentsController(SSISContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
コード例 #19
0
 public AdjustmentVouchersController(SSISContext context)
 {
     _context = context;
 }
コード例 #20
0
 public ItemsController(SSISContext context)
 {
     _context = context;
 }
コード例 #21
0
ファイル: RetrievalRepo.cs プロジェクト: ykyaw/SSIS_Boot
 public RetrievalRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #22
0
 public PurchaseOrderDetailRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #23
0
 public AdjustmentVoucherRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
コード例 #24
0
 public DeptRequestsController(SSISContext context)
 {
     _context = context;
 }