Exemple #1
0
        /// <summary>
        /// 导出全部
        /// </summary>
        /// <param name="model"></param>
        /// <param name="columns"></param>
        public void ExportExcelForWarehouseOwnerQuery(WarehouseOwnerQueryVM model, ColumnSet[] columns)
        {
            WarehouseOwnerQueryFilter queryFilter;

            model.CompanyCode = CPApplication.Current.CompanyCode;
            queryFilter       = model.ConvertVM <WarehouseOwnerQueryVM, WarehouseOwnerQueryFilter>();
            string relativeUrl = "/InventoryService/Stock/QueryWarehouseOwner";

            restClient.ExportFile(relativeUrl, queryFilter, columns);
        }
Exemple #2
0
        public void QueryWarehouseOwner(WarehouseOwnerQueryVM model, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            WarehouseOwnerQueryFilter filter = model.ConvertVM <WarehouseOwnerQueryVM, WarehouseOwnerQueryFilter>();
            string relativeUrl = "/InventoryService/Stock/QueryWarehouseOwner";

            restClient.QueryDynamicData(relativeUrl, filter,
                                        (obj, args) =>
            {
                if (!args.FaultsHandle())
                {
                    foreach (var item in args.Result.Rows)
                    {
                        item.IsChecked = false;
                    }
                    callback(obj, args);
                }
            });
        }