Esempio n. 1
0
        public void QueryCustomer(CustomerSimpleQueryVM vm, PagingInfo p, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            var data = vm.ConvertVM <CustomerSimpleQueryVM, CustomerSimpleQueryFilter>();

            data.PagingInfo  = p;
            data.CompanyCode = CPApplication.Current.CompanyCode;
            string relativeUrl = "/CustomerService/Customer/Picker";

            restClient.QueryDynamicData(relativeUrl, data, callback);
        }
Esempio n. 2
0
 public UCCustomerSearch()
 {
     InitializeComponent();
     this.Grid.DataContext = _viewModel = new CustomerSimpleQueryVM();
     this.Loaded          += new RoutedEventHandler(UCCustomerSearch_Loaded);
 }