private void MenuItem_Click_6(object sender, RoutedEventArgs e) { SelectTrueContDialog acc = new SelectTrueContDialog(); acc.ShowDialog(); if (acc.DialogResult.HasValue && acc.DialogResult.Value) { SelectAccDialog acc1 = new SelectAccDialog(); acc1.ShowDialog(); if (acc1.DialogResult.HasValue && acc1.DialogResult.Value) { ReportMenuProviderView reportMenuProvider = new ReportMenuProviderView(); reportMenuProvider.ShowDialog(); if (reportMenuProvider.DialogResult.HasValue && reportMenuProvider.DialogResult.Value) { var oldacc = Entrence.Mask.CreditAcc; var oldaccd = Entrence.Mask.DebitAcc; Entrence.Mask.CreditAcc = null; Entrence.Mask.DebitAcc = null; Entrence.Mask.FromDate = reportMenuProvider.Vm.FromDate(); Entrence.Mask.ToDate = reportMenuProvider.Vm.ToDate(); ReportDialog rd = new ReportDialog(new AnaliticRegisterViewModelTrueContr { FromDate = reportMenuProvider.Vm.FromDate(), ToDate = reportMenuProvider.Vm.ToDate(), ItemsDebit = acc.ItemsDebit, CurrenAcc = acc1.CurrentAcc, Title = (sender as MenuItem).Tag.ToString() }); rd.ShowDialog(); Entrence.Mask.CreditAcc = oldacc; Entrence.Mask.DebitAcc = oldaccd; } } } }
private void MenuItem_Click_1(object sender, RoutedEventArgs e) { SelectAccDialog acc = new SelectAccDialog(); acc.ShowDialog(); if (acc.DialogResult.HasValue && acc.DialogResult.Value) { ReportMenuProviderView reportMenuProvider = new ReportMenuProviderView(); reportMenuProvider.ShowDialog(); if (reportMenuProvider.DialogResult.HasValue && reportMenuProvider.DialogResult.Value) { var oldacc = Entrence.Mask.CreditAcc; var oldaccd = Entrence.Mask.DebitAcc; Entrence.Mask.CreditAcc = null; Entrence.Mask.DebitAcc = null; Entrence.Mask.FromDate = reportMenuProvider.Vm.FromDate(); Entrence.Mask.ToDate = reportMenuProvider.Vm.ToDate(); ReportDialog rd = new ReportDialog(new AnaliticRegisterViewModel { FromDate = reportMenuProvider.Vm.FromDate(), ToDate = reportMenuProvider.Vm.ToDate(), AccShortName = acc.Acc, ItemsDebit = acc.ItemsDebit }); rd.ShowDialog(); Entrence.Mask.CreditAcc = oldacc; Entrence.Mask.DebitAcc = oldaccd; } } }
public async Task Create() { meetingNotes = new MeetingNotes { Subject = "Sub", Secretary = "Secret", Date = DateTime.Today, Participants = new List <Participant> { new Participant { Name = "Part 1" } }, Decisions = new List <Decision> { new Decision { Solution = "Solution 0", Problem = "Problem 0", Responsible = "Responsible 0", ControlDate = DateTime.Today.AddDays(2) } } }; var dialog = new ReportDialog(meetingNotes); var result = await dialog.ShowDialog <MeetingNotes>(mainWindow); if (result != null) { meetingNotes = result; } }
private void MenuItem_Click_4(object sender, RoutedEventArgs e) { ChoiserValutaandAcc acc = new ChoiserValutaandAcc(); acc.ShowDialog(); if (acc.DialogResult.HasValue && acc.DialogResult.Value) { //Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; ReportMenuProviderView reportMenuProvider = new ReportMenuProviderView(); reportMenuProvider.ShowDialog(); if (reportMenuProvider.DialogResult.HasValue && reportMenuProvider.DialogResult.Value) { var oldacc = Entrence.Mask.CreditAcc; var oldaccd = Entrence.Mask.DebitAcc; Entrence.Mask.CreditAcc = null; Entrence.Mask.DebitAcc = null; Entrence.Mask.FromDate = reportMenuProvider.Vm.FromDate(); Entrence.Mask.ToDate = reportMenuProvider.Vm.ToDate(); ReportDialog rd = new ReportDialog(new ValutaExtendedDialog { FromDate = reportMenuProvider.Vm.FromDate(), ToDate = reportMenuProvider.Vm.ToDate(), AccShortName = acc.Acc, VidVal = acc.VidV, CodeClient = acc.CodeClient, Client = acc.Client, Title = (sender as MenuItem).Tag.ToString() }); Entrence.Mask.CreditAcc = oldacc; Entrence.Mask.DebitAcc = oldaccd; rd.ShowDialog(); } //Mouse.OverrideCursor = System.Windows.Input.Cursors.Arrow; } }
public bool ReportItemSettingsDialog(AppSettings settings, string name, string desc, bool useCustomIcon, GizmoComputerHardwareIconsEnum customIcon, TreeItem root, ReportSettings reportSettings) { ReportDialog dialog = new ReportDialog(settings, name, desc, useCustomIcon, customIcon, root, reportSettings); switch (dialog.ShowDialog()) { case true: Name = (dialog.DataContext as ReportItemSettingsViewModel).ReportName; Description = (dialog.DataContext as ReportItemSettingsViewModel).ReportDescription; UseCustomIcon = (dialog.DataContext as ReportItemSettingsViewModel).UseCustomIcon; CustomIcon = (dialog.DataContext as ReportItemSettingsViewModel).CustomIcon; ReportSettings = new ReportSettings() { ReportSourceContainerId = (dialog.DataContext as ReportItemSettingsViewModel).SelectedContainer.Id, ReportTimeStamp = DateTime.Now, Columns = (dialog.DataContext as ReportItemSettingsViewModel).Columns, ReportType = (ReportTypeEnum)(dialog.DataContext as ReportItemSettingsViewModel).SelectedReportTypeItem.Value, ComponentItem = (ComponentTypeEnum)(dialog.DataContext as ReportItemSettingsViewModel).SelectedComponentItem.Value, EachValueIsASepareteRow = (dialog.DataContext as ReportItemSettingsViewModel).EachValueIsASepareteRow }; return(true); default: return(false); } }
public bool ReportItemSettingsDialog(AppSettings settings, TreeItem root) { ReportDialog dialog = new ReportDialog(settings, root); switch (dialog.ShowDialog()) { case true: Name = (dialog.DataContext as ReportItemSettingsViewModel).ReportName; Description = (dialog.DataContext as ReportItemSettingsViewModel).ReportDescription; UseCustomIcon = (dialog.DataContext as ReportItemSettingsViewModel).UseCustomIcon; CustomIcon = (dialog.DataContext as ReportItemSettingsViewModel).CustomIcon; ReportSettings = new ReportSettings() { ReportSourceContainerId = (dialog.DataContext as ReportItemSettingsViewModel).SelectedContainer != null ? (dialog.DataContext as ReportItemSettingsViewModel).SelectedContainer.Id : new Guid(), ReportTimeStamp = DateTime.Now, Columns = (dialog.DataContext as ReportItemSettingsViewModel).Columns, ReportType = (ReportTypeEnum)(dialog.DataContext as ReportItemSettingsViewModel).SelectedReportTypeItem.Value, ComponentItem = (ComponentTypeEnum)(dialog.DataContext as ReportItemSettingsViewModel).SelectedComponentItem.Value, EachValueIsASepareteRow = (dialog.DataContext as ReportItemSettingsViewModel).EachValueIsASepareteRow }; return(true); default: return(false); } }
protected override void Add() { ReportDialog report = new ReportDialog(new DdsViewModel(new DdsDnevnikModel { KindActivity = 1, Title = "Дневник покупки", Month = Month, Year = Year })); report.ShowDialog(); }
private void AddReport_Click(object sender, RoutedEventArgs e) { ReportDialog reportDialog = new ReportDialog(); bool? response = reportDialog.ShowDialog(); //if (response == true) //{ // this.GetItems(); //} }
public async Task Open() { var dialog = new ReportDialog(meetingNotes); var result = await dialog.ShowDialog <MeetingNotes>(mainWindow); if (result != null) { meetingNotes = result; } }
protected override void Delete() { //AllConto = // new ObservableCollection<Conto>(Context.GetAllContoWithoutDds(ConfigTempoSinglenton.GetInstance().CurrentFirma.Id, Entrence.Mask,1)); //RefreshConto(AllConto); TypeRep = 2; var rd = new ReportDialog(this); rd.ShowDialog(); }
private void MenuItem_OnClick(object sender, RoutedEventArgs e) { ReportMenuProviderView reportMenuProvider = new ReportMenuProviderView(); reportMenuProvider.ShowDialog(); if (reportMenuProvider.DialogResult.HasValue && reportMenuProvider.DialogResult.Value) { var sm = new SearchViewModelWithAcc(); sm.Tipdnev = 1; Entrence.Mask.FromDate = reportMenuProvider.Vm.FromDate(); Entrence.Mask.ToDate = reportMenuProvider.Vm.ToDate(); ReportDialog rmDialog = new ReportDialog(sm); rmDialog.Title = (sender as MenuItem).Tag.ToString(); rmDialog.ShowDialog(); } }
public static void GenerateDdsSales(DateTime from, DateTime to, bool withdialog) { if (withdialog) { ReportManagerViewModel report = new ReportManagerViewModel(new DdsViewModel(new DdsDnevnikModel { KindActivity = 2, Title = "Дневник продажби", Month = from.Month, Year = from.Year, FromDate = from, ToDate = to })); report.StartTxt(null, null); } else { ReportDialog rd = new ReportDialog(new DdsViewModel(new DdsDnevnikModel { KindActivity = 2, Title = "Дневник продажби", Month = from.Month, Year = from.Year, FromDate = from, ToDate = to })); rd.ShowDialog(); } }
public static void GenerateDdsSales(int month, int year, bool withdialog) { if (withdialog) { ReportManagerViewModel report = new ReportManagerViewModel(new DdsViewModel(new DdsDnevnikModel { KindActivity = 2, Title = "Дневник продажби", Month = month, Year = year, FromDate = new DateTime(year, month, 1), ToDate = new DateTime(year, month, GetEndDate(month, year)) })); report.AddNewCommand.Execute(null); } else { ReportDialog rd = new ReportDialog(new DdsViewModel(new DdsDnevnikModel { KindActivity = 2, Title = "Дневник продажби", Month = month, Year = year, FromDate = new DateTime(year, month, 1), ToDate = new DateTime(year, month, GetEndDate(month, year)) })); rd.ShowDialog(); } }
private void MenuItem_Grouping(object sender, RoutedEventArgs e) { SelectAccDialog acc = new SelectAccDialog(); acc.ShowDialog(); if (acc.DialogResult.HasValue && acc.DialogResult.Value) { ReportMenuProviderView reportMenuProvider = new ReportMenuProviderView(); reportMenuProvider.ShowDialog(); if (reportMenuProvider.DialogResult.HasValue && reportMenuProvider.DialogResult.Value) { ReportDialog rd = new ReportDialog(new AnaliticRegisterViewModelContrGrupaDocument { FromDate = reportMenuProvider.Vm.FromDate(), ToDate = reportMenuProvider.Vm.ToDate(), CurrenAcc = acc.CurrentAcc, ItemsDebit = acc.ItemsDebit, Title = (sender as MenuItem).Tag.ToString() }); rd.ShowDialog(); } } }
//-------------------------------------------------------------------------- public void InsertDocuments() { OpenFileDialog documentFilesPicker = new OpenFileDialog(); documentFilesPicker.Title = "Select document files"; documentFilesPicker.Multiselect = true; documentFilesPicker.Filter = "txt files (*.txt)|*.txt"; documentFilesPicker.FilterIndex = 1; documentFilesPicker.RestoreDirectory = true; if (documentFilesPicker.ShowDialog() != DialogResult.OK) { return; } // start loading _documentsLoader = new DocumentsLoader(documentFilesPicker.FileNames, _businessLogic); if (!_documentsLoader.HasDocumentToProcess) { return; } if (!_documentsLoader.Load(_businessLogic)) { System.Windows.Forms.MessageBox.Show( "Failed loading ALL documents!", "Error"); return; } _currentLoadingScreen = new LoadingScreenDialog( "Loading documents ...", true); _currentLoadingScreen.ShowDialog(); // show report ReportDialog report = new ReportDialog(_documentsLoader.DocumentsStatus); report.ShowDialog(); }
protected override void Report() { var rd = new ReportDialog(this); rd.ShowDialog(); }
protected override void Report() { ReportDialog report = new ReportDialog(this); report.ShowDialog(); }
private void Button_Click(object sender, RoutedEventArgs e) { ReportDialog report = new ReportDialog(vm); report.ShowDialog(); }