コード例 #1
0
        //GET: Create

        public ActionResult Create()
        {
            ViewBag.OutletId   = purchaseBll.GetOutlet();
            ViewBag.EmployeeId = purchaseBll.GetEmployee();
            ViewBag.ItemId     = purchaseBll.GetItem();
            ViewBag.Supplier   = purchaseBll.Supplier();
            return(View());
        }
コード例 #2
0
        //GET: Create

        public ActionResult Create()
        {
            ViewBag.OutletId     = purchaseBll.GetOutlet();
            ViewBag.EmployeeId   = purchaseBll.GetEmployee(); //TO DO: change to get the currently logged in Employee
            ViewBag.ItemId       = purchaseBll.GetItem();
            ViewBag.Supplier     = purchaseBll.Supplier();
            ViewBag.PurchaseCode = purchaseBll.GenerateAutoCode();
            return(View());
        }