Beispiel #1
0
        public ActionResult ViewSellProductQty(int nStoreID, int nStoreProductID)
        {
            GlobalSession.SessionIsAlive(Session, Response);
            _oStoreProduct         = new StoreProduct();
            _oStoreProduct.StoreID = nStoreID;

            if (nStoreProductID > 0)
            {
                _oStoreProduct = _oStoreProductService.Get(nStoreID, nStoreProductID, (int)Session[GlobalSession.UserID]);
            }
            ContractorService oContractorService = new ContractorService();
            List <Contractor> oContractors       = new List <Contractor>();

            oContractors = oContractorService.GetsByContractorType(EnumContractorType.Supplier, (int)Session[GlobalSession.UserID]);

            List <ProductCategory> oProductCategorys       = new List <ProductCategory>();
            ProductCategoryService oProductCategoryService = new ProductCategoryService();

            oProductCategorys = oProductCategoryService.Gets(1, (int)Session[GlobalSession.UserID]);

            List <Product> oProducts       = new List <Product>();
            ProductService oProductService = new ProductService();

            oProducts = oProductService.Gets(1, (int)Session[GlobalSession.UserID]);

            ViewBag.ProductTypes     = _oProductTypeService.Gets(1, (int)Session[GlobalSession.UserID]);
            ViewBag.Contractors      = oContractors;
            ViewBag.Products         = oProducts;
            ViewBag.ProductCategorys = oProductCategorys;

            return(View(_oStoreProduct));
        }
Beispiel #2
0
        public ActionResult ViewProduct(int nProductID)
        {
            GlobalSession.SessionIsAlive(Session, Response);
            Product _oProduct = new Product();

            if (nProductID > 0)
            {
                _oProduct = _oProductService.Get(nProductID, (int)Session[GlobalSession.UserID]);
            }
            ViewBag.ProductTypes     = _oProductTypeService.Gets(1, (int)Session[GlobalSession.UserID]);
            ViewBag.ProductCategorys = _oProductCategoryService.Gets(1, (int)Session[GlobalSession.UserID]);
            return(View(_oProduct));
        }
 public ActionResult ViewProductCategorys(int nBUID, int menuid)
 {
     GlobalSession.SessionIsAlive(Session, Response);
     _oProductCategorys = _oProductCategoryService.Gets(nBUID, (int)Session[GlobalSession.UserID]);
     return(View(_oProductCategorys));
 }