Example #1
0
        public QueryResult GetAllImageSize(ImageSizeQueryFilter query)
        {
            int totalCount;
            var dataTable = ObjectFactory <IImageSizeDA> .Instance.GetAllImageSize(query, out totalCount);

            return(new QueryResult()
            {
                Data = dataTable,
                TotalCount = totalCount
            });
        }
Example #2
0
        /// <summary>
        /// 得到所有图片尺寸
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public DataTable GetAllImageSize(ImageSizeQueryFilter query, out int totalCount)
        {
            DataCommand cmd = DataCommandManager.GetDataCommand("GetAllImageSize");

            cmd.SetParameterValue("@pagesize", query.PageInfo.PageSize);
            cmd.SetParameterValue("@pageindex", query.PageInfo.PageIndex);
            DataTable dt = new DataTable();

            dt         = cmd.ExecuteDataTable();
            totalCount = (int)cmd.GetParameterValue("@TotalCount");
            return(dt);
        }
Example #3
0
        /// <summary>
        /// 获取所有尺寸
        /// </summary>
        /// <param name="PageSize"></param>
        /// <param name="PageIndex"></param>
        /// <param name="SortField"></param>
        /// <param name="callback"></param>
        public void GetAllImageSize(int PageSize, int PageIndex, string SortField, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            string GetAllImageSizeUrl  = "ExternalSYSService/ImageSize/GetAllImageSize";
            ImageSizeQueryFilter query = new ImageSizeQueryFilter()
            {
                PageInfo = new QueryFilter.Common.PagingInfo()
                {
                    PageIndex = PageIndex,
                    PageSize  = PageSize,
                    SortBy    = SortField
                }
            };

            restClient.QueryDynamicData(GetAllImageSizeUrl, query, callback);
        }