public ActionResult GetRFIInfo() { decimal _TempId; string TempId = HttpContext.Session["TempId"].ToString(); _TempId = Convert.ToDecimal(TempId); UpdateRequestBLL _model = new UpdateRequestBLL(); _model.TempId = _TempId; var info = _model.GetRFIInfo(); ViewBag.ErrorMessage = TempData["ErrorMessage"] != null ? TempData["ErrorMessage"].ToString() : null; return(View(info)); }
public ActionResult EditRFQItem() { decimal _TempId; string TempId = HttpContext.Session["TempId"].ToString(); _TempId = Convert.ToDecimal(TempId); UpdateRequestBLL _model = new UpdateRequestBLL(); _model.TempId = _TempId; ViewBag.ErrorMessage = TempData["ErrorMessage"] != null ? TempData["ErrorMessage"].ToString() : null; var getRequest = _model.GetItems(); return(View(getRequest)); }
public ActionResult UpdateRFQForm(RFQREQViewModel model) { UpdateRequestBLL _model = new UpdateRequestBLL(); _model.model = model; decimal output = _model.UpdateRFQRequest(); if (output != 0) { HttpContext.Session["TempId"] = Convert.ToString(output); return(RedirectToAction("EditRFQItem")); } else { TempData["ErrorMessage"] = "An Error Occurred"; return(RedirectToAction("EditRFQForm", "UpdateRequest", new { TempId = Convert.ToString(model.TEMP_NO) })); } }
// GET: UpdateRequest #region RFQ UPDATE public ActionResult EditRFQForm(string TempId = null) { decimal _TempId; UpdateRequestBLL _model = new UpdateRequestBLL(); if (TempId == null) { return(RedirectToAction("RFQList", "RunningRequest")); } else { ViewBag.ErrorMessage = TempData["ErrorMessage"] != null?TempData["ErrorMessage"].ToString():null; _TempId = Convert.ToDecimal(TempId); _model.TempId = _TempId; var getRequest = _model.GetRFQRequest(); return(View(getRequest)); } }
public ActionResult UpdateRFIInfo(RFQITEMViewModel model) { decimal _TempId; string TempId = HttpContext.Session["TempId"].ToString(); _TempId = Convert.ToDecimal(TempId); UpdateRequestBLL _model = new UpdateRequestBLL(); _model.TempId = _TempId; _model._item = model; string output = _model.UpdateRFIInfor(); if (output != null) { return(RedirectToAction("EditRFIVendor")); } else { TempData["ErrorMessage"] = "An Error Occurred"; return(RedirectToAction("GetRFIInfo")); } }
public ActionResult UpdateRFQItem(RFQITEMViewModel[] item) { decimal _TempId; string TempId = HttpContext.Session["TempId"].ToString(); _TempId = Convert.ToDecimal(TempId); UpdateRequestBLL _model = new UpdateRequestBLL(); _model.TempId = _TempId; _model.items = item.ToList(); decimal output = _model.UpdateREQItems(); if (output != 0) { HttpContext.Session["TempId"] = Convert.ToString(output); return(RedirectToAction("EditRFQVendor")); } else { TempData["ErrorMessage"] = "An Error Occurred"; return(RedirectToAction("EditRFQItem")); } }
public ActionResult UpdateRFIForm(RFIRFPComboViewModel model) { decimal _TempId; string TempId = HttpContext.Session["TempId"].ToString(); _TempId = Convert.ToDecimal(TempId); UpdateRequestBLL _model = new UpdateRequestBLL(); _model.TempId = _TempId; _model._model = model; string output = _model.UpdateRFPIndex(); if (output != null) { HttpContext.Session["TempId"] = Convert.ToString(output); return(RedirectToAction("GetRFIInfo")); } else { TempData["ErrorMessage"] = "An Error Occurred"; return(RedirectToAction("EditRFIForm", "UpdateRequest", new { TempId = TempId })); } }