/// <summary> /// 导出全部 /// </summary> /// <param name="model"></param> /// <param name="columns"></param> public void ExportExcelForStockQuery(StockQueryVM model, ColumnSet[] columns) { StockQueryFilter queryFilter; model.CompanyCode = CPApplication.Current.CompanyCode; queryFilter = model.ConvertVM <StockQueryVM, StockQueryFilter>(); string relativeUrl = "/InventoryService/Stock/QueryStock"; restClient.ExportFile(relativeUrl, queryFilter, columns); }
public void QueryStock(StockQueryVM model, EventHandler <RestClientEventArgs <dynamic> > callback) { StockQueryFilter filter = model.ConvertVM <StockQueryVM, StockQueryFilter>(); string relativeUrl = "/InventoryService/Stock/QueryStock"; restClient.QueryDynamicData(relativeUrl, filter, (obj, args) => { if (!args.FaultsHandle()) { foreach (var item in args.Result.Rows) { item.IsChecked = false; } callback(obj, args); } }); }