private void DgResults_OnOnFilter(object sender, FilterEvent e) { var viewModel = (GeneratePurchaseViewModel)DataContext; if (_temp == 1) { viewModel.SelectedPurchaseRow.DetailsList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); viewModel.DetailFilter = filter; viewModel.DetailValuesObjects = valueObjecttemp; viewModel.GetDetailData(); } else { viewModel.SelectedPurchaseRow.DetailsList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); viewModel.DetailFilter = filter; viewModel.DetailValuesObjects = valueObjecttemp; viewModel.GetDetail2Data(); } }
private void Grid_OnOnFilter(object sender, FilterEvent e) { string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); _viewModel.Filter = filter; _viewModel.ValuesObjects = valueObjecttemp; }
private void DgDyeingOrderResults_OnOnFilter(object sender, FilterEvent e) { ViewModel.DyeingOrderHeaderList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); ViewModel.Filter = filter; ViewModel.ValuesObjects = valueObjecttemp; ViewModel.SearchHeader(); }
private void DetailSubGrid_OnFilter(object sender, FilterEvent e) { _viewModel.SelectedMainRow.StyleDetailList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); _viewModel.DetailSubFilter = filter; _viewModel.DetailSubValuesObjects = valueObjecttemp; _viewModel.GetRecInvStyle(); }
private void DetailGrid_OnOnFilter(object sender, FilterEvent e) { _viewModel.RecieveHeaderList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); _viewModel.DetailSubFilter = filter; _viewModel.DetailSubValuesObjects = valueObjecttemp; _viewModel.GetRecieveHeaderListData(); }
private void DetailGrid_OnFilter(object sender, FilterEvent e) { _viewModel.SelectedMainRow.DetailsList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); _viewModel.DetailFilter = filter; _viewModel.DetailValuesObjects = valueObjecttemp; _viewModel.GetDetailData(); }
private void DetailGrid_OnFilter(object sender, FilterEvent e) { ViewModel.TransactionHeader.DetailsList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); ViewModel.DetailFilter = filter; ViewModel.DetailValuesObjects = valueObjecttemp; ViewModel.GetDetailData(); }
private void MainGrid_OnFilter(object sender, FilterEvent e) { _viewModel.MainRowList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); _viewModel.Filter = filter; _viewModel.ValuesObjects = valueObjecttemp; _viewModel.GetMaindata(); }
private void DgResults_OnOnFilter(object sender, FilterEvent e) { var viewModel = (DyeingOrderInvoiceViewModel)DataContext; viewModel.MainRowList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); viewModel.DetailFilter = filter; viewModel.DetailValuesObjects = valueObjecttemp; viewModel.SearchHeader(); }
private void DgResults_OnOnFilter(object sender, FilterEvent e) { var viewModel = (FabricDefectsViewModel)DataContext; viewModel.TransactionHeaderList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); viewModel.DetailFilter = filter; viewModel.DetailValuesObjects = valueObjecttemp; viewModel.SearchHeader(); }
private void MainGrid_OnFilter(object sender, FilterEvent e) { var viewModel = DataContext as GlobalRetailBusinessBudgetViewModel; viewModel.MainRowList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); viewModel.Filter = filter; viewModel.ValuesObjects = valueObjecttemp; viewModel.GetMaindata(); }
private void DgResults_OnOnFilter(object sender, FilterEvent e) { var viewModel = (PurchaseOrderRequestViewModel)DataContext; viewModel.MainRowList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); viewModel.Filter = filter; viewModel.ValuesObjects = valueObjecttemp; viewModel.GetMaindata(); }
private void DgResults_OnOnFilter(object sender, FilterEvent e) { var viewModel = (IssueJournalViewModel)DataContext; viewModel.SelectedMainRow.SubDetailList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); viewModel.DetailSubFilter = filter; viewModel.DetailSubValuesObjects = valueObjecttemp; viewModel.GetSubDetaildata(); }
private void MainGrid_OnFilter(object sender, FilterEvent e) { var viewModel = DataContext as AccessoriesViewModel; viewModel.MainRowList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); viewModel.Filter = filter; viewModel.ValuesObjects = valueObjecttemp; viewModel.GetAllAcc(); }
private void RecGrid_OnOnFilter(object sender, FilterEvent e) { var viewModel = (PurchaseOrderRequestViewModel)DataContext; viewModel.SelectedMainRow.RecHeaderList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); viewModel.DetailSubFilter = filter; viewModel.DetailSubValuesObjects = valueObjecttemp; viewModel.GetRecHeader(); }
public StoreCommissionViewModel() : base(PermissionItemName.StoreCommission) { if (!DesignerProperties.IsInDesignTool) { MainRowList = new ObservableCollection <TblStoreCommission>(); BankDepositClient.GetLookUpStoreCompleted += (s, e) => { StoreList = e.Result; foreach (var item in MainRowList) { item.TblStore1 = StoreList.FirstOrDefault(st => st.iserial == item.Tblstore); } }; GetComboData(); BankDepositClient.GetStoreCommissionCompleted += (s, sv) => { MainRowList.Clear(); foreach (var row in sv.Result) { var newrow = new TblStoreCommission(); newrow.InjectFrom(row); newrow.TblStore1 = StoreList.FirstOrDefault(st => st.iserial == row.Tblstore); MainRowList.Add(newrow); } Loading = false; if (SearchWindow != null) { SearchWindow.Loading = false; } if (FullCount == 0 && MainRowList.Count == 0) { AddNewMainRow(false); } }; BankDepositClient.UpdateOrInsertStoreCommissionCompleted += (s, x) => SaveCompleted(x.Result, x.Error); FilterCommand = new RelayCommand <FilterEvent>((e) => { string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); Filter = filter; ValuesObjects = valueObjecttemp; GetMaindata(); }); GetMaindata(); //AddNewMainRow(false); } }
public override void OnFilter(Os.Controls.DataGrid.Events.FilterEvent e) { base.OnFilter(e); ItemsList.Clear();// هنفضى الريكوردات string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); Filter = filter; //الفيلتر موجود فى البيز ValuesObjects = valueObjecttemp; // ده كمان فى البيز if (GetDataCommand.CanExecute(GetDataParameter)) { GetDataCommand.Execute(GetDataParameter); } }
private void MainGrid_OnFilter(object sender, FilterEvent e) { var viewModel = DataContext as ColorLinkViewModel; if (viewModel != null) { viewModel.ColorsList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); viewModel.DetailFilter = filter; viewModel.DetailValuesObjects = valueObjecttemp; viewModel.GetDetaildata(); } }
private void StandardBomGrid_OnFilter(object sender, FilterEvent e) { if (_viewModel.Loading) { return; } _viewModel.StandardBomList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); _viewModel.DetailFilter = filter; _viewModel.DetailValuesObjects = valueObjecttemp; _viewModel.GetStandardBom(); }
private void MainGrid_OnFilter(object sender, FilterEvent e) { var _viewModel = DataContext as PromHeaderViewModel; if (_viewModel.Loading) { return; } _viewModel.DetailList.Clear(); string filter; Dictionary <string, object> valueObjecttemp; GeneralFilter.GeneralFilterMethod(out filter, out valueObjecttemp, e); _viewModel.DetailFilter = filter; _viewModel.DetailValuesObjects = valueObjecttemp; _viewModel.GetDetailData(); }