public ActionResult DeleteSpeCodeForAsset(int ID)
        {
            SpeCode speCode = virames <SpeCode>
                              .Initialize(new SpeCode()).Where(x => x.ID.ToString() == ID.ToString())
                              .Take();

            return(View(speCode));
        }
Пример #2
0
        public ActionResult detailProductSpeCode(int ID)
        {
            SpeCode speCode = virames <SpeCode>
                              .Initialize(new SpeCode()).Where(x => x.ID.ToString() == ID.ToString())
                              .Take();

            return(View(speCode));
        }
Пример #3
0
        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"));
        }
Пример #4
0
        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));
        }
Пример #7
0
        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));
        }
Пример #8
0
 public ActionResult editProductSpeCode(SpeCode speCode)
 {
     speCode.Save();
     return(RedirectToAction("productionOrderSpeCodeDefinitions"));
 }
Пример #9
0
 public ActionResult detailProductSpeCode(SpeCode speCode)
 {
     return(RedirectToAction("productionOrderSpeCodeDefinitions"));
 }
Пример #10
0
        public ActionResult newProductSpeCode()
        {
            SpeCode specode = new SpeCode();

            return(View(specode));
        }
Пример #11
0
 public ActionResult newProjectSpeCode(SpeCode specode)
 {
     specode.Save();
     return(RedirectToAction("projectSpeCodeDefinitions"));
 }
Пример #12
0
 public ActionResult editBomSpeCode(SpeCode speCode)
 {
     speCode.Save();
     return(RedirectToAction("recipeSpecifiCodeDefinitions"));
 }
Пример #13
0
 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"));
 }