예제 #1
0
 protected void btnBookingStep1_Click(object sender, EventArgs e)
 {
     var bookingObj = new BookingObject();
     bookingObj.DateFrom = DataHelper.ConvertInputDate(tbDateFrom.Text);
     bookingObj.DateTo = DataHelper.ConvertInputDate(tbDateTo.Text);
     bookingObj.RoomQty = DataHelper.ConvertInputNumber(cbRoomQty.SelectedValue);
     Session["CLN.W150901.BookingData"] = bookingObj;
     Response.Redirect(string.Format("/{0}/{1}", WebContextHelper.LocaleCd, "booking-step-2"));
 }
예제 #2
0
 private BasicResponse CalcInfo(BookingObject bookingObj)
 {
     var request = new BasicRequest();
     request.Add("TypeCd", bookingObj.TypeCd);
     request.Add("DateFrom", bookingObj.DateFrom);
     request.Add("DateTo", bookingObj.DateTo);
     request.Add("RoomQty", bookingObj.RoomQty);
     request.Add("HasPickUp", bookingObj.PickUp);
     request.Add("HasSeeOff", bookingObj.SeeOff);
     var logic = new CalcOperateLogic();
     var response = PageCom.Invoke(logic, request);
     return response;
 }