public ActionResult Booking(Booking model) { model.ProvinceID =2; model.ListPlace = Utility.getPlaceListByProvinceID(model.ProvinceID); model.eventTypeID = Session["EventType"].ToString(); model.bookingDatetime = model.BookingYear +"-"+model.BookingDate +"-"+model.BookingMounth +" 00:00:00.000" ; Session["BookingModel"] = model; return RedirectToAction("Search", "Booking"); }
public ActionResult Booking() { Booking model = new Booking(); model.BookingDate = "5"; model.ProvinceID = 2; model.ListPlace = Utility.getPlaceListByProvinceID(model.ProvinceID); model.eventTypeID = Session["EventType"].ToString(); return View(model); }
public ActionResult GrapherHome() { string errMsg = ""; long tmpID = Convert.ToInt64(0); Booking model = new Booking(); model = (Booking)Session["BookingModel"]; model.userID = 2; if (_cmrWF.insertBooking(model.bookingDatetime, Convert.ToInt32(model.bookingType), model.userID, model.grapherID, Convert.ToInt32(model.eventTypeID), model.ProvinceID, Convert.ToInt32(model.PlaceID), out tmpID, out errMsg)) { string resUrl = ConfigurationManager.AppSettings["resurl"].ToString(); string apUrl = resUrl + (Utility.stringToBase64("AP" + tmpID.ToString())) + "c"; string caUrl = resUrl + (Utility.stringToBase64("CA" + tmpID.ToString())) + "c"; SendMail.sendEmail("*****@*****.**", "Booking Request", apUrl + " \n " + caUrl, out errMsg); } Session["BookingModel"] = model; return View(); }
public ActionResult GrapherHome(int id) { Booking model = new Booking(); model = (Booking)Session["BookingModel"]; model.grapherID = id; Session["BookingModel"] = model; return View(); }
public ActionResult SelectEvent() { Booking model = new Booking(); //model.ProvinceID = 2; return View(model); }
public ActionResult Search() { string errMsg = ""; DataSet ds = new DataSet(); Booking model = new Booking(); model = (Booking)Session["BookingModel"]; service.getGrapherForBooking(model.bookingDatetime, Convert.ToInt16(model.bookingType), Convert.ToInt16(model.eventTypeID), model.ProvinceID, Convert.ToInt32(model.PlaceID), out ds, out errMsg); model.SearchGrapher = ds; return View(model); }
public ActionResult ChangeProvince(Booking model) { string test = model.PlaceID; model.ListPlace = Utility.getPlaceListByProvinceID(model.ProvinceID); return View("Booking", model); }