예제 #1
0
        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);
        }
예제 #2
0
        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));
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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;
        }
예제 #6
0
        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;
        }