public ActionResult DatagridHotelOrder() { ELongApiBiz elongBiz = ELongApiBiz.GetInstant(); GetHotelOrderCondition condition = new GetHotelOrderCondition(); HotelOrderPartialForGetHotelOrderList[] hotelArray= elongBiz.queryHotelOrderList(condition); IList<HotelOrderPartialForGetHotelOrderList> hotelList = hotelArray.ToList(); PageList<HotelOrderPartialForGetHotelOrderList> hotelPageList = new PageList<HotelOrderPartialForGetHotelOrderList>(hotelList,this.getPager()); DatagridObject datagrid = DatagridObject.ToDatagridObject(hotelPageList); return JsonText(datagrid ,JsonRequestBehavior.AllowGet); }
public ActionResult DatagridHotelOrder() { ELongApiBiz elongBiz = ELongApiBiz.GetInstant(); GetHotelOrderCondition condition = new GetHotelOrderCondition(); HotelOrderPartialForGetHotelOrderList[] hotelArray = elongBiz.queryHotelOrderList(condition); IList <HotelOrderPartialForGetHotelOrderList> hotelList = hotelArray.ToList(); PageList <HotelOrderPartialForGetHotelOrderList> hotelPageList = new PageList <HotelOrderPartialForGetHotelOrderList>(hotelList, this.getPager()); DatagridObject datagrid = DatagridObject.ToDatagridObject(hotelPageList); return(JsonText(datagrid, JsonRequestBehavior.AllowGet)); }
public GetHotelOrderCondition toGetHotelOrderCondition() { GetHotelOrderCondition conditon = new GetHotelOrderCondition(); conditon.CityId = ""; conditon.CustomerName = ""; conditon.EarlyArriveDate = this.arraivalEarlyTime; conditon.EarlyLeaveDate = this.arraivalLateTime; conditon.EndCreateTime = DateTime.Now; conditon.HotelId = this.hotelId; conditon.HotelName = ""; return(conditon); }
public HotelOrderPartialForGetHotelOrderList[] queryHotelOrderList(GetHotelOrderCondition condition) { if (!this.login()) { return(new HotelOrderPartialForGetHotelOrderList[] { }); } HotelOrderPartialForGetHotelOrderList[] hotelOrderList = new HotelOrderPartialForGetHotelOrderList[] {}; GetHotelOrderListRequest req = new GetHotelOrderListRequest(); req.GetHotelOrderCondition = condition; req.RequestHead = this.requestHead; GetHotelOrderListResponse res = elongService.GetHotelOrderList(req); if (res.ResponseHead.ResultCode == ELongApiService.RESULT_CODE_SUCCESS) { hotelOrderList = res.HotelOrderPartials; } return(hotelOrderList); }
public GetHotelOrderCondition toGetHotelOrderCondition() { GetHotelOrderCondition conditon = new GetHotelOrderCondition(); conditon.CityId = ""; conditon.CustomerName = ""; conditon.EarlyArriveDate = this.arraivalEarlyTime; conditon.EarlyLeaveDate = this.arraivalLateTime; conditon.EndCreateTime = DateTime.Now; conditon.HotelId = this.hotelId; conditon.HotelName = ""; return conditon; }
public HotelOrderPartialForGetHotelOrderList[] queryHotelOrderList(GetHotelOrderCondition condition) { if (!this.login()) { return new HotelOrderPartialForGetHotelOrderList[] { }; } HotelOrderPartialForGetHotelOrderList[] hotelOrderList=new HotelOrderPartialForGetHotelOrderList[]{}; GetHotelOrderListRequest req = new GetHotelOrderListRequest(); req.GetHotelOrderCondition = condition; req.RequestHead = this.requestHead; GetHotelOrderListResponse res= elongService.GetHotelOrderList(req); if (res.ResponseHead.ResultCode == ELongApiService.RESULT_CODE_SUCCESS) { hotelOrderList = res.HotelOrderPartials; } return hotelOrderList; }