public void ExportSaleReceivablesExcelFile(SaleReceivablesQueryVM queryVM, ColumnSet[] columnSet) { SaleReceivablesQueryFilter queryFilter = queryVM.ConvertVM <SaleReceivablesQueryVM, SaleReceivablesQueryFilter>(); queryFilter.PagingInfo = new PagingInfo { PageSize = ECCentral.Portal.Basic.ConstValue.MaxRowCountLimit, PageIndex = 0 }; //List<TextInfo> textInfoList = new List<TextInfo>(); //textInfoList.Add(new TextInfo() { Title = "Neticom (Hong Kong) Limited", Memo = string.Empty }); //textInfoList.Add(new TextInfo() { Title = "As at", Memo = queryVM.QueryDate.Value.ToString("dd/MM/yyyy") }); //textInfoList.Add(new TextInfo() { Title = "Reporting currency:", Memo = "RMB / HKD" }); string relativeUrl = "/InvoiceService/SOIncome/QuerySaleReceivables"; restClient.ExportFile(relativeUrl, queryFilter, columnSet); }
public void QuerySaleReceivables(SaleReceivablesQueryVM query, int pageSize, int pageIndex, string sortField, Action <dynamic> callback) { SaleReceivablesQueryFilter filter = query.ConvertVM <SaleReceivablesQueryVM, SaleReceivablesQueryFilter>(); filter.PagingInfo = new PagingInfo() { PageIndex = pageIndex, PageSize = pageSize, SortBy = sortField }; string relativeUrl = "/InvoiceService/SOIncome/QuerySaleReceivables"; restClient.QueryDynamicData(relativeUrl, filter, (obj, args) => { if (args.FaultsHandle()) { return; } callback(args.Result); }); }