Example #1
0
        /// <summary>
        /// 查询价格申请
        /// </summary>
        /// <param name="model"></param>
        /// <param name="PageSize"></param>
        /// <param name="PageIndex"></param>
        /// <param name="SortField"></param>
        /// <param name="callback"></param>
        public void QueryProductPriceRequestList(ProductPriceRequestQueryVM model
                                                 , int PageSize, int PageIndex, string SortField, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            ProductPriceRequestQueryFilter filter;

            filter = model.ConvertVM <ProductPriceRequestQueryVM, ProductPriceRequestQueryFilter>();

            filter.PagingInfo = new PagingInfo
            {
                PageSize  = PageSize,
                PageIndex = PageIndex,
                SortBy    = SortField
            };

            string relativeUrl = "/IMService/Product/QueryProductPriceRequesList";

            restClient.QueryDynamicData(relativeUrl, filter,
                                        (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                if (!(args.Result == null || args.Result.Rows == null))
                {
                    foreach (var item in args.Result.Rows)
                    {
                        item.IsChecked = false;
                    }
                }
                callback(obj, args);
            }
                                        );
        }
Example #2
0
        public void ImPortExecl(ProductPriceRequestQueryVM model, ColumnSet[] columns)
        {
            ProductPriceRequestQueryFilter query;

            query            = model.ConvertVM <ProductPriceRequestQueryVM, ProductPriceRequestQueryFilter>();
            query.PagingInfo = null;
            restClient.ExportFile("/IMService/Product/QueryProductPriceRequesList", query, columns);
        }