Exemplo n.º 1
0
 public GrapherService()
 {
     try
     {
         _cmrWS = new CameRoomService.ServiceClient();
     }
     catch (Exception ex)
     {
     }
 }
Exemplo n.º 2
0
        public GrapherService()
        {
            try
            {
                _cmrWS = new CameRoomService.ServiceClient();
            }
            catch (Exception ex)
            {

            }
        }
Exemplo n.º 3
0
        public static IEnumerable <SelectListItem> getPlaceListByProvinceID(int provinceID)
        {
            CameRoomService.ServiceClient cmrWS = new CameRoomService.ServiceClient();
            string    errMsg = "";
            DataSet   ds     = null;
            DataTable dt     = null;

            if (!cmrWS.getPlaceListByProvinceID(provinceID, out ds, out errMsg))
            {
                return(null);
            }
            else
            {
                dt = ds.Tables[0];
                return(DT2SelectList(dt, "PLACEID", "PLACENAME"));
            }
        }
Exemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lblMsg.InnerText = "";
            if (Request.QueryString.Count == 0)
            {
                lblMsg.InnerText = "Invalid request.";
                return;
            }
            else
            {
                if (Request.QueryString[0].ToString().Trim() == "")
                {
                    lblMsg.InnerText = "Invalid request.";
                    return;
                }
            }
            if (!IsPostBack)
            {
                string errMsg = "";
                DataSet ds = new DataSet();
                CameRoomService.ServiceClient _cmrWF = new CameRoomService.ServiceClient();
                string rawMsg = Request.QueryString[0].ToString();
                string reqMessage = Utility.base64ToString(rawMsg.Substring(0, rawMsg.ToString().Length - 1));
                string reqCode = reqMessage.Substring(0, 2);
                long BookingID = Convert.ToInt64(reqMessage.Substring(2, reqMessage.Length - 2));
                _cmrWF.updateBookingStatus(BookingID, reqCode, out ds, out errMsg);
                string BookingStatus = ds.Tables[0].Rows[0]["BOOKINGSTATUS"].ToString();

                if (BookingStatus == "AP")
                {
                    lblMsg.InnerText = "Booking Approved!";
                }
                else if (BookingStatus == "CA")
                {
                    lblMsg.InnerText = "Booking Cancelled!";
                }
                else
                {
                    lblMsg.InnerText = "Booking Failed!";
                }
            }
            return;
        }
Exemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lblMsg.InnerText = "";
            if (Request.QueryString.Count == 0)
            {
                lblMsg.InnerText = "Invalid request.";
                return;
            }
            else
            {
                if (Request.QueryString[0].ToString().Trim() == "")
                {
                    lblMsg.InnerText = "Invalid request.";
                    return;
                }
            }
            if (!IsPostBack)
            {
                string  errMsg = "";
                DataSet ds     = new DataSet();
                CameRoomService.ServiceClient _cmrWF = new CameRoomService.ServiceClient();
                string rawMsg     = Request.QueryString[0].ToString();
                string reqMessage = Utility.base64ToString(rawMsg.Substring(0, rawMsg.ToString().Length - 1));
                string reqCode    = reqMessage.Substring(0, 2);
                long   BookingID  = Convert.ToInt64(reqMessage.Substring(2, reqMessage.Length - 2));
                _cmrWF.updateBookingStatus(BookingID, reqCode, out ds, out errMsg);
                string BookingStatus = ds.Tables[0].Rows[0]["BOOKINGSTATUS"].ToString();

                if (BookingStatus == "AP")
                {
                    lblMsg.InnerText = "Booking Approved!";
                }
                else if (BookingStatus == "CA")
                {
                    lblMsg.InnerText = "Booking Cancelled!";
                }
                else
                {
                    lblMsg.InnerText = "Booking Failed!";
                }
            }
            return;
        }