Haltung exporter angefangen

This commit is contained in:
2023-04-13 18:58:53 +02:00
parent 33d0b1da93
commit 19bba6dfc1
15 changed files with 62 additions and 25 deletions

View File

@@ -137,6 +137,7 @@ namespace SewerStammGen.WPF.ViewModel
}
public ICommand Speichern { get; set; }
public ICommand Abbrechen { get; set; }
public HaltungEditViewModel(
IHaltungDataService haltungDataService,
@@ -153,6 +154,7 @@ namespace SewerStammGen.WPF.ViewModel
_model = _actualState.SelectedHaltung;
Speichern = new HaltungEditSaveCommand(_haltungDataService, renavigator, this);
Abbrechen = new RelayCommand((x) => Abbruch(renavigator));
ladeVerfuegbareSchaechte();
@@ -160,6 +162,11 @@ namespace SewerStammGen.WPF.ViewModel
}
private void Abbruch(IRenavigator renavigator)
{
renavigator.Renavigate();
}
private async void ladeVerfuegbareSchaechte()
{
var s = await _schachtDataService.GetAllByProjekt(_actualState.ProjektID);

View File

@@ -24,6 +24,7 @@ namespace SewerStammGen.WPF.ViewModel
public ICommand EditCommand { get; set; }
public ICommand AddCommand { get; set; }
public ICommand ExportCommand { get; set; }
public HaltungListViewModel(IHaltungDataService haltungDataService, IActualState actualState, IRenavigator renavigator )
{
@@ -35,6 +36,7 @@ namespace SewerStammGen.WPF.ViewModel
EditCommand = new HaltungEditCommand(actualState, renavigator, this);
AddCommand = new HaltungAddCommand();
ExportCommand = new ProjectExportCommand(actualState);
LoadHaltungen();
}

View File

@@ -1,5 +1,5 @@
using Microsoft.Xaml.Behaviors;
using Syncfusion.UI.Xaml.Grid;
//using Syncfusion.UI.Xaml.Grid;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -8,6 +8,7 @@ using System.Threading.Tasks;
namespace SewerStammGen.WPF.Views
{
/*
public class TextBoxFilterAction : TargetedTriggerAction<SfMultiColumnDropDownControl>
{
protected override void Invoke(object parameter)
@@ -15,4 +16,5 @@ namespace SewerStammGen.WPF.Views
throw new NotImplementedException();
}
}
*/
}