public ResultModel <ClientOrderResultModel[]> GetJobList_C(ClientOrderInfoModel model)
        {
            degree.longitude = model.longitude;
            degree.latitude  = model.latitude;
            var pIndex   = ParseHelper.ToInt(model.pageIndex, 1);
            var pSize    = ParseHelper.ToInt(model.pageSize, PageSizeType.App_PageSize.GetHashCode());
            var criteria = new ClientOrderSearchCriteria()
            {
                PagingRequest = new PagingResult(pIndex, pSize),
                userId        = model.userId,
                status        = model.status,
                isLatest      = model.isLatest,
                city          = string.IsNullOrWhiteSpace(model.city) ? null : model.city.Trim(),
                cityId        = string.IsNullOrWhiteSpace(model.cityId) ? null : model.cityId.Trim()
            };

            var pagedList = new OrderProvider().GetOrders(criteria);

            pagedList = pagedList.OrderBy(i => i.distance_OrderBy).ToList();
            return(ResultModel <ClientOrderResultModel[]> .Conclude(GetOrdersStatus.Success, pagedList.ToArray()));
        }
        public ResultModel <ClientOrderNoLoginResultModel[]> GetJobListNoLoginLatest_C()
        {
            ClientOrderInfoModel model = new ClientOrderInfoModel();

            model.city       = string.IsNullOrWhiteSpace(HttpContext.Current.Request["city"]) ? null : HttpContext.Current.Request["city"].Trim();     //城市
            model.cityId     = string.IsNullOrWhiteSpace(HttpContext.Current.Request["cityId"]) ? null : HttpContext.Current.Request["cityId"].Trim(); //城市编码
            degree.longitude = ParseHelper.ToDouble(HttpContext.Current.Request["longitude"]);
            degree.latitude  = ParseHelper.ToDouble(HttpContext.Current.Request["latitude"]);
            var pIndex   = ParseHelper.ToInt(model.pageIndex, 1);
            var pSize    = ParseHelper.ToInt(model.pageSize, PageSizeType.App_PageSize.GetHashCode());
            var criteria = new ClientOrderSearchCriteria()
            {
                PagingRequest = new PagingResult(pIndex, pSize),
                city          = model.city,
                cityId        = model.cityId
            };

            var pagedList = new OrderProvider().GetOrdersNoLoginLatest(criteria);

            pagedList = pagedList.OrderBy(i => i.distance_OrderBy).ToList();

            return(ResultModel <ClientOrderNoLoginResultModel[]> .Conclude(GetOrdersNoLoginStatus.Success, pagedList.ToArray()));
        }
        public ResultModel <ClientOrderResultModel[]> GetMyJobList_C(ClientOrderInfoModel model)
        {
            degree.longitude = model.longitude;
            degree.latitude  = model.latitude;
            var pIndex = ParseHelper.ToInt(model.pageIndex, 1);

            var pSize = ParseHelper.ToInt(model.pageSize, PageSizeType.App_PageSize.GetHashCode());

            var criteria = new ClientOrderSearchCriteria()
            {
                PagingRequest = new PagingResult(pIndex, pSize),
                userId        = model.userId,
                status        = model.status,
                isLatest      = model.isLatest
            };
            IList <ClientOrderResultModel> lists = new ClienterProvider().GetMyOrders(criteria);

            if (model.status != null && model.status != 1)
            {
                lists = lists.OrderBy(i => i.distance_OrderBy).ToList();
            }
            return(ResultModel <ClientOrderResultModel[]> .Conclude(GetOrdersStatus.Success, lists.ToArray()));
        }