Example #1
0
        // 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);
        }
Example #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;
 }
Example #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);
        }
Example #4
0
 public SupplierRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Example #5
0
 public TenderQuotationRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Example #6
0
 public CollectionPointRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Example #7
0
 public RequestDetailsController(SSISContext context)
 {
     _context = context;
 }
Example #8
0
 public TransactionRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Example #9
0
 public RequisitionRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
 public AVDetailsController(SSISContext context)
 {
     _context = context;
 }
Example #11
0
 public EmployeeRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Example #12
0
 public DepartmentRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Example #13
0
 public HomeController(SSISContext context)
 {
     _context = context;
 }
Example #14
0
 public PurchaseRequestRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Example #15
0
 public AgentController(SSISContext context)
 {
     _context = context;
 }
Example #16
0
 public ProductRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Example #17
0
 public RequestsController(SSISContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
Example #18
0
 public DepartmentsController(SSISContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
Example #19
0
 public AdjustmentVouchersController(SSISContext context)
 {
     _context = context;
 }
 public ItemsController(SSISContext context)
 {
     _context = context;
 }
Example #21
0
 public RetrievalRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
 public PurchaseOrderDetailRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Example #23
0
 public AdjustmentVoucherRepo(SSISContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
Example #24
0
 public DeptRequestsController(SSISContext context)
 {
     _context = context;
 }