コード例 #1
0
 public SubmitHotelOrderResponse SubmitHotelOrder(SubmitHotelOrderRequest SubmitHotelOrderRequest)
 {
     object[] results = this.Invoke("SubmitHotelOrder", new object[] {
         SubmitHotelOrderRequest
     });
     return((SubmitHotelOrderResponse)(results[0]));
 }
コード例 #2
0
 public SubmitHotelOrderResponse SubmitHotelOrder(SubmitHotelOrderRequest SubmitHotelOrderRequest)
 {
     object[] results = this.Invoke("SubmitHotelOrder", new object[] {
             SubmitHotelOrderRequest});
     return ((SubmitHotelOrderResponse)(results[0]));
 }
コード例 #3
0
 /// <remarks/>
 public System.IAsyncResult BeginSubmitHotelOrder(SubmitHotelOrderRequest SubmitHotelOrderRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("SubmitHotelOrder", new object[] {
             SubmitHotelOrderRequest}, callback, asyncState);
 }
コード例 #4
0
 /// <remarks/>
 public System.IAsyncResult BeginSubmitHotelOrder(SubmitHotelOrderRequest SubmitHotelOrderRequest, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("SubmitHotelOrder", new object[] {
         SubmitHotelOrderRequest
     }, callback, asyncState));
 }
コード例 #5
0
ファイル: ELongApiBiz.cs プロジェクト: uhealin/toyz-toyz4net
        public JsResultObject submitHotelOrder(ref OrderModel orderModel)
        {
            if (!this.login())
            {
                return LoginFailHandler("");
            }
            SubmitHotelOrderRequest req = new SubmitHotelOrderRequest();
            req.RequestHead = this.requestHead;
            req.RequestHead.GUID = Guid.NewGuid().ToString();
            HotelOrderForSubmitHotelOrder hotelOrder=new HotelOrderForSubmitHotelOrder();
            RoomForSubmitHotelOrder roomOrder = this.toRoomForSubmitHotelOrder(orderModel);
            hotelOrder.RoomGroups = new RoomForSubmitHotelOrder[] {roomOrder};
            req.HotelOrder = hotelOrder;
            SubmitHotelOrderResponse res = elongService.SubmitHotelOrder(req);
            if (res.ResponseHead.ResultCode == ELongApiService.RESULT_CODE_SUCCESS)
            {
                orderModel.elongOrderId = res.SubmitHotelOrderResult.HotelOrderID;
                orderModel.orderStatus = OrderModel.ORDER_STATUS_ZD_SUCCESS;
            }
            else {
                orderModel.remark = res.ResponseHead.ResultMessage;
            }

            return SubmitHotelOrderHandler(res);
        }