/// <summary>
        /// 已分配查询  - 商品总库存信息
        /// </summary>
        /// <param name="queryFilter"></param>
        /// <param name="callback"></param>
        public void QueryItemAllocatedCardInventoryTotal(InventoryAllocatedCardQueryVM model, Action <int, List <dynamic> > callback)
        {
            InventoryQueryFilter filter;

            model.CompanyCode           = CPApplication.Current.CompanyCode;
            filter                      = model.ConvertVM <InventoryAllocatedCardQueryVM, InventoryQueryFilter>();
            filter.IsShowTotalInventory = true;

            string relativeUrl = "/InventoryService/Inventory/QueryProductInventory";

            restClient.QueryDynamicData(relativeUrl, filter,
                                        (obj, args) =>
            {
                int totalCount        = 0;
                List <dynamic> vmList = null;
                if (!args.FaultsHandle())
                {
                    if (!(args.Result == null || args.Result.Rows == null))
                    {
                        totalCount = args.Result.TotalCount;
                        vmList     = args.Result.Rows.ToList();
                    }
                    callback(totalCount, vmList);
                }
            });
        }
        /// <summary>
        /// 导出查询结果
        /// </summary>
        /// <param name="model"></param>
        /// <param name="columns"></param>
        public void ExportExcelForItemAllocatedCardOrders(InventoryAllocatedCardQueryVM model, ColumnSet[] columns)
        {
            InventoryAllocatedCardQueryFilter queryFilter;

            model.CompanyCode = CPApplication.Current.CompanyCode;
            queryFilter       = model.ConvertVM <InventoryAllocatedCardQueryVM, InventoryAllocatedCardQueryFilter>();
            string relativeUrl = "InventoryService/InventoryStock/QueryAllocatedItemOrders";

            restClient.ExportFile(relativeUrl, queryFilter, columns);
        }