public ActionResult DeleteSpeCodeForAsset(int ID) { SpeCode speCode = virames <SpeCode> .Initialize(new SpeCode()).Where(x => x.ID.ToString() == ID.ToString()) .Take(); return(View(speCode)); }
public ActionResult detailProductSpeCode(int ID) { SpeCode speCode = virames <SpeCode> .Initialize(new SpeCode()).Where(x => x.ID.ToString() == ID.ToString()) .Take(); return(View(speCode)); }
public ActionResult deleteProjectSpeCode(int ID) { SpeCode speCode = virames <SpeCode> .Initialize(new SpeCode()).Where(x => x.ID.ToString() == ID.ToString()) .Take(); speCode.Delete(); return(RedirectToAction("projectSpeCodeDefinitions")); }
public ActionResult editProjectSpeCode(int ID) { SpeCode speCode = virames <SpeCode> .Initialize(new SpeCode()).Where(x => x.ID.ToString() == ID.ToString()) .Take(); ViewBag.SpeCode = speCode; return(View(speCode)); }
public ActionResult NewSpeCodeForAsset() { ViewBag.Status = new SelectList(Enum.GetValues(typeof(Status))); SpeCode speCode = new SpeCode(); speCode.SpeCodeType = SpeCodeType.Asset; return(View(speCode)); }
public ActionResult EditSpeCodeForAsset(int ID) { ViewBag.Status = new SelectList(Enum.GetValues(typeof(Status))); SpeCode speCode = virames <SpeCode> .Initialize(new SpeCode()).Where(x => x.ID.ToString() == ID.ToString()) .Take(); speCode.SpeCodeType = SpeCodeType.Asset; return(View(speCode)); }
public ActionResult newBOMSpeCode() { ViewBag.RecordStatus = new SelectList(Enum.GetValues(typeof(SpeCodeType))).Where((x => x.Text == SpeCodeType.BOM.ToString())); ViewBag.SpeCodeType = virames <SpeCode> .Initialize(new List <SpeCode>()).Where(x => x.SpeCodeType == SpeCodeType.BOM).GetList().Select(x => new SelectListItem { Value = x.ID.ToString(), Text = " | " + x.SpeCodeType }); SpeCode specode = new SpeCode(); return(View(specode)); }
public ActionResult editProductSpeCode(SpeCode speCode) { speCode.Save(); return(RedirectToAction("productionOrderSpeCodeDefinitions")); }
public ActionResult detailProductSpeCode(SpeCode speCode) { return(RedirectToAction("productionOrderSpeCodeDefinitions")); }
public ActionResult newProductSpeCode() { SpeCode specode = new SpeCode(); return(View(specode)); }
public ActionResult newProjectSpeCode(SpeCode specode) { specode.Save(); return(RedirectToAction("projectSpeCodeDefinitions")); }
public ActionResult editBomSpeCode(SpeCode speCode) { speCode.Save(); return(RedirectToAction("recipeSpecifiCodeDefinitions")); }
public ActionResult detailBomSpeCode(SpeCode speCode) { return(RedirectToAction("recipeSpecifiCodeDefinitions")); }
public ActionResult DeleteSpeCodeForAsset(SpeCode speCode) { speCode.Delete(); return(RedirectToAction("SpeCodeForAsset")); }
public ActionResult DetailSpeCodeForAsset(SpeCode speCode) { speCode.Save(); return(RedirectToAction("SpeCodeForAsset")); }