예제 #1
0
        public ActionResult GetPaymentPageListJson(Pagination pagination, string queryJson)
        {
            var watch    = CommonHelper.TimerStart();
            var data     = receivablebll.GetPaymentPageList(pagination, queryJson);
            var jsonData = new
            {
                rows     = data,
                total    = pagination.total,
                page     = pagination.page,
                records  = pagination.records,
                costtime = CommonHelper.TimerEnd(watch)
            };

            return(ToJsonResult(jsonData));
        }
예제 #2
0
 private Negotiator ReceivableList(dynamic _)
 {
     try
     {
         var  watch         = CommonHelper.TimerStart();
         var  recdata       = this.GetModule <ReceiveModule <PaginationModule> >();
         bool resValidation = this.DataValidation(recdata.userid, recdata.token);
         if (!resValidation)
         {
             return(this.SendData(ResponseType.Fail, "后台无登录信息"));
         }
         else
         {
             Pagination pagination = new Pagination
             {
                 page = recdata.data.page,
                 rows = recdata.data.rows,
                 sidx = recdata.data.sidx,
                 sord = recdata.data.sord
             };
             var data = receivablebll.GetPaymentPageList(pagination, recdata.data.queryData);
             DataPageList <IEnumerable <OrderEntity> > dataPageList = new DataPageList <IEnumerable <OrderEntity> >
             {
                 rows     = data,
                 total    = pagination.total,
                 page     = pagination.page,
                 records  = pagination.records,
                 costtime = CommonHelper.TimerEnd(watch)
             };
             return(this.SendData <DataPageList <IEnumerable <OrderEntity> > >(dataPageList, recdata.userid, recdata.token, ResponseType.Success));
         }
     }
     catch
     {
         return(this.SendData(ResponseType.Fail, "异常"));
     }
 }