public void QueryProduct(ProductSimpleQueryVM vm, PagingInfo p, EventHandler <RestClientEventArgs <dynamic> > callback) { var data = vm.ConvertVM <ProductSimpleQueryVM, ProductQueryFilter>(); data.PagingInfo = p; QueryProduct(data, callback); }
public UCProductSearch() { InitializeComponent(); if (null == _viewModel) { _viewModel = new ProductSimpleQueryVM(); } this.Loaded += new RoutedEventHandler(UCProductSearch_Loaded); }
public UCProductSearch(int vendorSysNo, string vendorName) : this() { if (null == _viewModel) { _viewModel = new ProductSimpleQueryVM(); } _viewModel.VendorSysNo = vendorSysNo; _viewModel.VendorName = vendorName; }
public void LoadProductBySysNo() { this.txtProductSysNo.ClearValidationError(); PagingInfo p = new PagingInfo { PageIndex = 0, PageSize = 25 }; ProductSimpleQueryVM queryReq = new ProductSimpleQueryVM() { ProductSysNo = this.txtProductSysNo.Text.Trim(), CompanyCode = CPApplication.Current.CountryCode }; new ProductQueryFacade(CPApplication.Current.CurrentPage).QueryProduct(queryReq, p, OnLoadProductBySysNo); }