Exemple #1
0
        public IActionResult Index()
        {
            if (!_permissionService.Authorize("ViewSupplier"))
            {
                return(View("_AccessDeniedView"));
            }
            var data = _purchasingService.GetAllSuppliers();

            return(View(data));
        }
        public IActionResult Index()
        {
            //权限
            if (!_permissionService.Authorize("ViewPurchasingOrders"))
            {
                return(View("_AccessDeniedView"));
            }

            ViewBag.Suppliers = new SelectList(_purchasingService.GetAllSuppliers(), "SupplierName", "SupplierName");
            ViewBag.WareHouse = new SelectList(_wareHouseService.GetWareHouses(), "Name", "Name");

            return(View());
        }