Example #1
0
        public async Task <ActionResult> UpdateViewQA(string search)
        {
            var nhnch     = new NHibernateNonCatalogStore();
            var employees = new NHibernateCompanyStore();
            var category  = new NHibernateCategoryStore();
            var supplier  = new NHibernateISupplierStore();
            IList <NonCatalogItemHeadModel> nonCatalogHeads = null;

            ViewData["Categories"] = await category.GeatAllCategoryAsync();

            ViewData["pageName"]  = "QuoteAnalysisUV";
            ViewData["employees"] = await employees.GetAllEmployeeAsync();

            ViewData["supplier"] = await supplier.GeatAllSupplierAsync();

            ViewData["brand"] = await supplier.GeatAllBrandAsync();

            long id;

            if (search == null)
            {
                nonCatalogHeads = await nhnch.FindLatestNonCatalogHeadAsync(10);
            }
            else if (long.TryParse(search, out id))
            {
                nonCatalogHeads = await nhnch.FindIdNonCatalogHeadListAsync(id);
            }
            else
            {
                nonCatalogHeads = await nhnch.SearchNonCatalogByNameAsync(search);
            }
            return(View(nonCatalogHeads));
        }
        // GET: ItemMaintenance
        public async Task <ActionResult> AddItems()
        {
            var branditems    = new NHibernateItemStore();
            var suppliernames = new NHibernateISupplierStore();

            ViewData["BrandItems"] = await branditems.GetAllBrandNameAsync();

            ViewData["SupplierNames"] = await suppliernames.GeatAllSupplierAsync();

            return(View());
        }
Example #3
0
        public async Task <ActionResult> QuoteAnalysis()
        {
            var category  = new NHibernateCategoryStore();
            var supplier  = new NHibernateISupplierStore();
            var employees = new NHibernateCompanyStore();

            ViewData["pageName"]   = "QuoteAnalysis";
            ViewData["Categories"] = await category.GeatAllCategoryAsync();

            ViewData["supplier"] = await supplier.GeatAllSupplierAsync();

            ViewData["brand"] = await supplier.GeatAllBrandAsync();

            ViewData["employees"] = await employees.GetAllEmployeeAsync();

            return(View());
        }