public ActionResult Create1() { //TODO ViewBag.Warehouse_ID = new SelectList(NhapXuatKhoService.GetAllKho(), "ID", "WarehouseName"); ViewBag.Type = WebUtil.GetEnumSelectList <WarehouseTransaction_Type>(); return(View("CreateEdit1")); }
public ActionResult Edit1(int id) { ViewBag.Warehouse_ID = new SelectList(NhapXuatKhoService.GetAllKho(), "ID", "WarehouseName"); ViewBag.Type = WebUtil.GetEnumSelectList <WarehouseTransaction_Type>(); var model = NhapXuatKhoService.GetById(id); //TODO return(View("CreateEdit1", model)); }
// GET: CTKho public ActionResult Index() { ViewBag.KhoID = new SelectList(NhapXuatKhoService.GetAllKho(), "ID", "WarehouseName"); ViewBag.SanPhamID = new SelectList(NhapXuatKhoService.GetSanPham(), "ID", "ProductName"); return(View()); }
// GET: NhapKho public ActionResult Index() { ViewBag.Warehouse_ID = new SelectList(NhapXuatKhoService.GetAllKho(), "ID", "WarehouseName"); ViewBag.Type = WebUtil.GetEnumSelectList <WarehouseTransaction_Type>(); return(View()); }