Beispiel #1
0
 public UserRolesModel(RoleManager <IdentityRole> roleManager,
                       CicotiWebApp.Data.ApplicationDbContext context, UserManager <ApplicationUser> userManager)
 {
     _roleManager = roleManager;
     _context     = context;
     _userManager = userManager;
 }
Beispiel #2
0
        public JsonResult GetProvinceList(CicotiWebApp.Data.ApplicationDbContext _context, int CountryId)
        {
            List <Province> ProvinceList     = _context.Provinces.Where(p => p.CountryID == CountryId).ToList();
            JsonResult      jsonProvinceList = new JsonResult(ProvinceList);

            return(jsonProvinceList);
        }
Beispiel #3
0
 public ExcelImportExport(IHostingEnvironment hostingEnvironment,
                          CicotiWebApp.Data.ApplicationDbContext context)
 {
     _hostingEnvironment = hostingEnvironment;
     _sWebRootFolder     = _hostingEnvironment.WebRootPath;
     _context            = context;
 }
Beispiel #4
0
        public void PopulateCountryDropDownList(CicotiWebApp.Data.ApplicationDbContext _context,
                                                object selectedCountry = null)
        {
            var CountryQuery = from c in _context.Countries
                               orderby c.CountryName
                               select c;

            CountryNameSL = new SelectList(CountryQuery.AsNoTracking(),
                                           "CountryID", "CountryName", selectedCountry);
        }
Beispiel #5
0
 public ExcelImportExport(String sfileName, IHostingEnvironment hostingEnvironment,
                          CicotiWebApp.Data.ApplicationDbContext context)
 {
     _hostingEnvironment = hostingEnvironment;
     _sWebRootFolder     = _hostingEnvironment.WebRootPath;
     _sFileName          = sfileName;
     _context            = context;
     workbook            = new XSSFWorkbook();
     excelSheet          = workbook.CreateSheet("Export");
 }
Beispiel #6
0
        public void PopulateProvinceDropDownList(CicotiWebApp.Data.ApplicationDbContext _context, int id,
                                                 object selectedProvince = null)
        {
            var ProvinceQuery = from c in _context.Provinces
                                where c.CountryID == id
                                orderby c.ProvinceName
                                select c;

            ProvinceNameSL = new SelectList(ProvinceQuery.AsNoTracking(),
                                            "ProvinceID", "ProvinceName", selectedProvince);
        }
Beispiel #7
0
        public UploadFilesController(IHostingEnvironment hostingEnvironment,
                                     CicotiWebApp.Data.ApplicationDbContext context, IConfiguration configuration)
        {
            _hostingEnvironment = hostingEnvironment;
            _configuration      = configuration;
            _context            = context;
            string folderName  = "Upload";
            string webRootPath = _hostingEnvironment.WebRootPath;

            _newPath = Path.Combine(webRootPath, folderName);
            // _virtualPathFolder = "~/Upload/";
            if (!Directory.Exists(_newPath))
            {
                Directory.CreateDirectory(_newPath);
            }
        }
Beispiel #8
0
 public DriverModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #9
0
 public LoadModel(CicotiWebApp.Data.ApplicationDbContext context, UserManager <ApplicationUser> userManager)
 {
     _context      = context;
     _userManager  = userManager;
     _workFlowRule = new WorkFlowRule(_context, _userManager);
 }
Beispiel #10
0
 public AccountMovTableModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #11
0
 public StockCountSummaryModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #12
0
 public DestinationModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #13
0
 public SalesRepEmployeeModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #14
0
 public FindSKUModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #15
0
 public EmployeeModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context     = context;
     _empBusLayer = new EmployeeBusinessLayer();
 }
Beispiel #16
0
 public RoleStatusModel(CicotiWebApp.Data.ApplicationDbContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
Beispiel #17
0
 public WarehouseTableModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #18
0
 public StockCountListingModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #19
0
 public OutstandingPODModel(CicotiWebApp.Data.ApplicationDbContext context, IHostingEnvironment hostingEnvironment)
 {
     _context            = context;
     _hostingEnvironment = hostingEnvironment;
 }
Beispiel #20
0
 public LoadReportModel(CicotiWebApp.Data.ApplicationDbContext context, IHostingEnvironment hostingEnvironment)
 {
     _context            = context;
     _hostingEnvironment = hostingEnvironment;
 }
Beispiel #21
0
 public DeliveryStatusPivotModel(CicotiWebApp.Data.ApplicationDbContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
Beispiel #22
0
 public StaffAllocationItemModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #23
0
 public OtherIncomeTableModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #24
0
 public AllocationPerAccountModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #25
0
 public CreateModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #26
0
 public InsuranceTypeItemModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #27
0
 public IndexModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #28
0
 public CreateModel(CicotiWebApp.Data.ApplicationDbContext context)
 {
     _context         = context;
     _vehicleBusLayer = new VehicleBusinessLayer();
 }