/// <summary> /// 发票明细表导出 /// </summary> /// <param name="queryVM"></param> /// <param name="columnSet"></param> public void ExportInvoiceDetailReportExcelFile(InvoiceDetailReportQueryVM queryVM, ColumnSet[] columnSet) { InvoiceDetailReportQueryFilter queryFilter = queryVM.ConvertVM <InvoiceDetailReportQueryVM, InvoiceDetailReportQueryFilter>(); queryFilter.PagingInfo = new PagingInfo { PageSize = ECCentral.Portal.Basic.ConstValue.MaxRowCountLimit, PageIndex = 0, SortBy = "" }; string relativeUrl = "/InvoiceService/InvoiceReport/InvoiceDetailReport"; restClient.ExportFile(relativeUrl, queryFilter, columnSet); }
/// <summary> /// 发票明细报表查询 /// </summary> public void QueryInvoiceDetailReport(InvoiceDetailReportQueryVM queryVM, int pageSize, int pageIndex, string sortField, Action <dynamic> callback) { InvoiceDetailReportQueryFilter filter = queryVM.ConvertVM <InvoiceDetailReportQueryVM, InvoiceDetailReportQueryFilter>(); filter.PagingInfo = new PagingInfo() { PageIndex = pageIndex, PageSize = pageSize, SortBy = sortField }; string relativeUrl = "/InvoiceService/InvoiceReport/InvoiceDetailReport"; restClient.QueryDynamicData(relativeUrl, filter, (obj, args) => { if (args.FaultsHandle()) { return; } callback(args.Result); }); }