Example #1
0
        public ActionResult ViewStoreProduct(int nStoreID)
        {
            GlobalSession.SessionIsAlive(Session, Response);
            _oStoreProduct = new StoreProduct();

            ContractorService oContractorService = new ContractorService();
            List <Contractor> oContractors       = new List <Contractor>();

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


            if (nStoreID > 0)
            {
                _oStore         = _oStoreService.Get(nStoreID, (int)Session[GlobalSession.UserID]);
                _oStoreProducts = _oStoreProductService.GetsByStoreID(_oStore.StoreID, (int)Session[GlobalSession.UserID]);
            }
            ViewBag.ProductTypes  = _oProductTypeService.Gets(1, (int)Session[GlobalSession.UserID]);
            ViewBag.StoreProducts = _oStoreProducts;
            ViewBag.Contractors   = oContractors;
            return(View(_oStore));
        }
        public ActionResult ViewProductCategory(int nProductCategoryID)
        {
            GlobalSession.SessionIsAlive(Session, Response);

            ProductCategory _oProductCategory = new ProductCategory();

            if (nProductCategoryID > 0)
            {
                _oProductCategory = _oProductCategoryService.Get(nProductCategoryID, (int)Session[GlobalSession.UserID]);
            }
            ViewBag.ProductTypes = _oProductTypeService.Gets(1, (int)Session[GlobalSession.UserID]);
            return(View(_oProductCategory));
        }
Example #3
0
 public ActionResult ViewProductTypes(int nBUID, int menuid)
 {
     GlobalSession.SessionIsAlive(Session, Response);
     _oProductTypes = _oProductTypeService.Gets(nBUID, (int)Session[GlobalSession.UserID]);
     return(View(_oProductTypes));
 }