public void QueryPOSPayConfirmList(POSPayQueryVM query, int pageSize, int pageIndex, string sortField, Action <POSPayQueryResultVM> callback) { POSPayQueryFilter filter = query.ConvertVM <POSPayQueryVM, POSPayQueryFilter>(); filter.PagingInfo = new PagingInfo() { PageIndex = pageIndex, PageSize = pageSize, SortBy = sortField }; string relativeUrl = "/InvoiceService/POSPay/QueryConfirmList"; restClient.QueryDynamicData(relativeUrl, filter, (obj, args) => { if (args.FaultsHandle()) { return; } POSPayQueryResultVM result = new POSPayQueryResultVM(); if (args.Result[0] != null && args.Result[0].Rows != null) { result.ResultList = DynamicConverter <POSPayVM> .ConvertToVMList(args.Result[0].Rows); result.TotalCount = args.Result[0].TotalCount; } if (args.Result[1] != null && args.Result[1].Rows != null) { result.Statistic = DynamicConverter <POSPayQueryStatisticVM> .ConvertToVMList(args.Result[1].Rows); } callback(result); }); }
private void btnSearch_Click(object sender, RoutedEventArgs e) { var flag = ValidationManager.Validate(this.SeachBuilder); if (flag) { this.lastQueryVM = Newegg.Oversea.Silverlight.Utilities.UtilityHelper.DeepClone <POSPayQueryVM>(queryVM); this.dgPOSPayQueryResult.Bind(); } }
private void POSPayQuery_Loaded(object sender, RoutedEventArgs e) { Loaded -= new RoutedEventHandler(POSPayQuery_Loaded); m_POSPayFacade = new POSPayFacade(this); m_SOIncomeFace = new SaleIncomeFacade(this); queryVM = new POSPayQueryVM(); this.SeachBuilder.DataContext = lastQueryVM = queryVM; this.cmbChannel.SelectedIndex = 0; this.TotalInfoPannel.DataContext = this; this.IsShowTotalInfo = Visibility.Collapsed; this.TotalForPage = new POSPayQueryStatisticVM(); this.TotalForAll = new POSPayQueryStatisticVM(); }