public ActionResult deleteWarehouseParameter(int ID) { WarehouseLevel warehouseLevel = virames <WarehouseLevel> .Initialize(new WarehouseLevel()).Where(x => x.ID.ToString() == ID.ToString()) .Take(); return(View(warehouseLevel)); }
public ActionResult newWarehouseParameter() { ViewBag.Material = virames <Material> .Initialize(new List <Material>()).GetList().Select(x => new SelectListItem { Value = x.ID.ToString(), Text = x.CodeAndDefinition + " | " + x.MaterialType + " | " + x.MainUnit + " | " + x.SpeCode + " | " + x.TraceType }); ViewBag.Warehouse = virames <Warehouse> .Initialize(new List <Warehouse>()).GetList().Select(x => new SelectListItem { Value = x.ID.ToString(), Text = x.Code + " | " + x.WarehouseName + " | " + x.Center + " | " + x.Default + " | " + x.Quality }); ViewBag.Status = new SelectList(Enum.GetValues(typeof(Status))); WarehouseLevel warehouseLevel = new WarehouseLevel(); return(View(warehouseLevel)); }
public ActionResult deleteWarehouseParameter(WarehouseLevel warehouseLevel) { warehouseLevel.Delete(); return(RedirectToAction("warehouseParameters")); }
public ActionResult newWarehouseParameter(WarehouseLevel warehouseLevel) { warehouseLevel.Save(); return(RedirectToAction("warehouseParameters")); }