/// <summary> /// 获取验证码,只有已支付、退款中、退款完成由验证码 /// </summary> /// <param name="orderId"></param> private void GetIdentifyingCode(int orderId) { var request = new GetIdentifyingCodeByOrderRequest() { OrderId = orderId }; var result = BusHelper.Send <GetIdentifyingCodeByOrderResponse>(request); _listCode = result.Codes; }
/// <summary> /// 获取订单 /// </summary> /// <param name="orderId"></param> private void GetData(int orderId) { var orderRequest = new GetHotelOrderByOrderIdRequest() { OrderId = orderId }; var result = BusHelper.Send <GetHotelOrderResponse>(orderRequest); Order = result; GetIdentifyingCode(orderId); GetOrderList(orderId); GetUserMsg(Order); // GetOrderStatusMsg(Order); }
private void GetUserMsg(GetHotelOrderResponse order) { //订单信息 if (order != null) { var request = new GetHotelRequest() { HotelId = order.HotelId }; var hotel = BusHelper.Send <GetHotelResponse>(request); var createTime = string.Format("{0:yyyy/MM/dd HH:mm}", Order.CreateDate); Dingdanren += "<tr> <td>酒店商户或门店:" + hotel.Name + "</td></tr>"; Dingdanren += "<tr> <td>商户或门店编号:" + hotel.Code + "</td></tr>"; Dingdanren += "<tr><td width=\"70\">订单编号: " + order.OrderNum + "</td></tr>"; Dingdanren += "<tr> <td>交易日期:" + createTime + "</td></tr>"; Dingdanren += "<tr><td>预定人:" + order.OrderPersonName + "</td></tr>"; Dingdanren += "<tr><td>电话:" + order.Tel + "</td></tr>"; // dingdanren += "<tr><td>地址:" + manage.address + "</td></tr>"; // dingdanren += "<tr><td>备注 :" + manage.oderRemark + "</td></tr>"; status = HotelStatusManager.OrderStatus.GetStatusDict(order.OrderStatus); Dingdanren += "<tr><td>订单状态:<em style='width:70px;' class='" + status.CssClass + "'>" + status.StatusName + "</em></td></tr>"; } else { Dingdanren += "<tr> <td>酒店商户或门店:</td></tr>"; Dingdanren += "<tr> <td>商户或门店编号:</td></tr>"; Dingdanren += "<tr><td width=\"70\">订单编号:</td></tr>"; Dingdanren += "<tr> <td>交易日期:</td></tr>"; Dingdanren += "<tr><td>预定人:</td></tr>"; Dingdanren += "<tr><td>电话:</td></tr>"; Dingdanren += "<tr><td>订单状态:<em style='width:70px;' class='no'>未处理</em></td></tr>"; } }