Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="param"></param>
        public ResponseModelBase <BookListByPage> AllBookListByPage(BookListByPageParam param)
        {
            WebApiUtil.Url = $"{_ServiceIP}:{_ServicePort}/{BOOK}";
            var obj = WebApiUtil.PostAPI <ResponseModelBase <BookListByPage> >(BOOK_AllBook, param);

            return(obj);
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            BookListByPageParam param = new BookListByPageParam();

            param.PageSize  = 100;
            param.PageIndex = 0;
            var _item = _BLLBook.LoadBookList(0, 100);

            LoadBookListControl();
            _UcBookList.BindingData(_item);
        }
Exemple #3
0
        /// <summary>
        /// 加载图书列表
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public BookListByPage LoadBookList(int pageIndex, int pageSize)
        {
            BookListByPageParam param = new BookListByPageParam();

            param.PageSize  = pageSize;
            param.PageIndex = pageIndex;
            var obj = _Api.AllBookListByPage(param);

            if (obj.Successful)
            {
                return(obj.Data);
            }
            return(null);
        }