public ActionResult RFPSummary(string TempId = null) { var _summary = ProcessRFP.GetSummaryInfo(TempId); ViewBag.ShowSubmit = "contactVendor"; return(View("~/Views/Request/RFPSummary.cshtml", _summary)); }
public ActionResult RFPSummary(string TempId = null) { var _summary = ProcessRFP.GetSummaryInfo(TempId); if (TempId != null) { ViewBag.ShowSubmit = "false"; } return(View(_summary)); }
// GET: Negotiate... May be removed public ActionResult Index(string TempNo) { var getItems = ProcessRFP.GetSummaryInfo(TempNo); var respondedVendors = getItems.Vendors.Where(m => m.STATUS == "RESPONDED").ToList(); getItems.Vendors = respondedVendors; if (getItems.Request.TEMP_ID == 0) { getItems.Request.TEMP_ID = Convert.ToDecimal(TempNo); } return(PartialView(getItems)); }
public JsonResult Search(string RefNum) { var Search = ProcessRFP.SearchRequest(RefNum); if (Search == null) { return(Json("No Record Found", JsonRequestBehavior.AllowGet)); } else { return(Json(Search, JsonRequestBehavior.AllowGet)); } }
public ActionResult EditRFIForm(string TempId = null) { decimal _TempId; if (TempId == null) { return(RedirectToAction("RFIList", "RunningRequest")); } else { ViewBag.ErrorMessage = TempData["ErrorMessage"] != null ? TempData["ErrorMessage"].ToString() : null; _TempId = Convert.ToDecimal(TempId); var _summary = ProcessRFP.GetSummaryInfo(TempId); return(View(_summary)); } }
public ActionResult RFISummary(string TempId = null) { var _summary = ProcessRFP.GetSummaryInfo(TempId); string checker = (TempData["ShowSubmit"] != null) ? TempData["ShowSubmit"].ToString() : null; if (TempId != null && checker == null) { ViewBag.ShowSubmit = "false"; } else { ViewBag.ShowSubmit = null; } return(View(_summary)); }
//Negotiate with a single vendor for RFP public ActionResult NegotiatePerVendor(string TempNo, string VendorId, string NegNum = null) { decimal?_vendorId = Convert.ToDecimal(VendorId); var getItems = ProcessRFP.GetSummaryInfo(TempNo); var respondedVendors = getItems.Vendors.Where(m => m.VENDOR_ID == _vendorId).ToList(); getItems.Vendors = respondedVendors; if (getItems.Request.TEMP_ID == 0) { getItems.Request.TEMP_ID = Convert.ToDecimal(TempNo); } TempData["TempNo"] = TempNo; TempData["VendorId"] = VendorId; ViewBag.NegNum = (NegNum != null) ? NegNum : "0"; return(PartialView("Index", getItems)); }
public ActionResult RFI(RFIRFPComboViewModel model) { var principal = (ClaimsIdentity)User.Identity; var FullName = principal.FindFirst(ClaimTypes.GivenName).Value; var UserId = principal.FindFirst(ClaimTypes.Actor).Value; model.Request.INITIATOR_NAME = FullName; model.Request.INITIATOR = Convert.ToDecimal(UserId); string process = ProcessRFP.ProcessRFPIndex(model); if (process != null) { HttpContext.Session["TempId"] = process; return(RedirectToAction("RFIInfo")); } return(View()); }