Compare commits
2 Commits
db6624e5bc
..
v0.9.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f73238216 | |||
| 1d0876fa40 |
+20
-5
@@ -104,52 +104,67 @@
|
|||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" Spacing="10" HorizontalAlignment="Center"
|
<StackPanel Grid.Row="1" Orientation="Horizontal" Spacing="10" HorizontalAlignment="Center"
|
||||||
Margin="0,0,5,0">
|
Margin="0,0,5,0">
|
||||||
<Button Width="250" HorizontalContentAlignment="Center"
|
<Button Width="250" HorizontalContentAlignment="Center"
|
||||||
Margin="0,0,0,10" IsEnabled="False"
|
Margin="0,0,0,10" IsEnabled="False" VerticalAlignment="Stretch"
|
||||||
x:Name="BtnCheck" Click="BtnCheck_OnClick">
|
x:Name="BtnCheck" Click="BtnCheck_OnClick">
|
||||||
|
<StackPanel Orientation="Vertical">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<LucideIcon Kind="SpellCheck" Width="36" Height="36" />
|
<LucideIcon Kind="SpellCheck" Width="36" Height="36" />
|
||||||
<Label Content="Prüfen" VerticalContentAlignment="Center" FontSize="15"
|
<Label Content="Prüfen" VerticalContentAlignment="Center" FontSize="15"
|
||||||
FontWeight="Bold" />
|
FontWeight="Bold" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<TextBlock TextWrapping="Wrap" FontSize="9" Text="Prüft alle Adressen auf Fehler." HorizontalAlignment="Stretch" TextAlignment="Left"></TextBlock>
|
||||||
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Width="250" IsEnabled="False"
|
<Button Width="250" IsEnabled="False"
|
||||||
HorizontalContentAlignment="Center"
|
HorizontalContentAlignment="Center"
|
||||||
Click="BtnCombine_OnClick" x:Name="BtnCombine"
|
Click="BtnCombine_OnClick" x:Name="BtnCombine" VerticalAlignment="Stretch"
|
||||||
Margin="0,0,0,10">
|
Margin="0,0,0,10">
|
||||||
|
<StackPanel Orientation="Vertical">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<LucideIcon Kind="Combine" Width="36" Height="36" />
|
<LucideIcon Kind="Combine" Width="36" Height="36" />
|
||||||
<Label Content="Zusammenführen" VerticalContentAlignment="Center" FontSize="15"
|
<Label Content="Zusammenführen" VerticalContentAlignment="Center" FontSize="15"
|
||||||
FontWeight="Bold" />
|
FontWeight="Bold" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<TextBlock TextWrapping="Wrap" FontSize="9" Text="Führt mehrere Adress-Sets auf verschiedene Art und Weise zusammen." HorizontalAlignment="Stretch" TextAlignment="Left"></TextBlock>
|
||||||
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Width="250" IsEnabled="False" Click="BtnShorten_OnClick"
|
<Button Width="250" IsEnabled="False" Click="BtnShorten_OnClick"
|
||||||
HorizontalContentAlignment="Center" x:Name="BtnShorten"
|
HorizontalContentAlignment="Center" x:Name="BtnShorten" VerticalAlignment="Stretch"
|
||||||
Margin="0,0,0,10">
|
Margin="0,0,0,10">
|
||||||
|
<StackPanel Orientation="Vertical">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<LucideIcon Kind="ListX" Width="36" Height="36" />
|
<LucideIcon Kind="ListX" Width="36" Height="36" />
|
||||||
<Label Content="Kürzen" VerticalContentAlignment="Center" FontSize="15"
|
<Label Content="Kürzen" VerticalContentAlignment="Center" FontSize="15"
|
||||||
FontWeight="Bold" />
|
FontWeight="Bold" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<TextBlock TextWrapping="Wrap" FontSize="9" Text="Entfernt alle Fehlerhaften Adressen (ggf. bitte vorher Reparieren). Setzt Prüfung voraus." HorizontalAlignment="Stretch" TextAlignment="Left"></TextBlock>
|
||||||
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Width="250" IsEnabled="False"
|
<Button Width="250" IsEnabled="False"
|
||||||
Click="BtnGenerateLabels_OnClick"
|
Click="BtnGenerateLabels_OnClick"
|
||||||
HorizontalContentAlignment="Center" x:Name="BtnGenerateLabels"
|
HorizontalContentAlignment="Center" x:Name="BtnGenerateLabels" VerticalAlignment="Stretch"
|
||||||
Margin="0,0,0,10">
|
Margin="0,0,0,10">
|
||||||
|
<StackPanel Orientation="Vertical">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<LucideIcon Kind="Tags" Width="36" Height="36" />
|
<LucideIcon Kind="Tags" Width="36" Height="36" />
|
||||||
<Label Content="Etiketten generieren" VerticalContentAlignment="Center"
|
<Label Content="Etiketten generieren" VerticalContentAlignment="Center"
|
||||||
FontSize="15"
|
FontSize="15"
|
||||||
FontWeight="Bold" />
|
FontWeight="Bold" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<TextBlock TextWrapping="Wrap" FontSize="9" Text="Generiert Versandetiketten und Bundleitzettel" HorizontalAlignment="Stretch" TextAlignment="Left"></TextBlock>
|
||||||
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Width="250" IsEnabled="False"
|
<Button Width="250" IsEnabled="False"
|
||||||
HorizontalContentAlignment="Center" x:Name="BtnRepair"
|
HorizontalContentAlignment="Center" x:Name="BtnRepair" VerticalAlignment="Stretch"
|
||||||
Margin="0,0,0,10">
|
Margin="0,0,0,10">
|
||||||
|
<StackPanel Orientation="Vertical">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<LucideIcon Kind="Hammer" Width="36" Height="36" />
|
<LucideIcon Kind="Hammer" Width="36" Height="36" />
|
||||||
<Label Content="Reparieren" VerticalContentAlignment="Center" FontSize="15"
|
<Label Content="Reparieren" VerticalContentAlignment="Center" FontSize="15"
|
||||||
FontWeight="Bold" />
|
FontWeight="Bold" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<TextBlock TextWrapping="Wrap" FontSize="9" Text="Versucht, verschiedene Adressaspekte zu reparieren. Setzt Prüfung voraus." HorizontalAlignment="Stretch" TextAlignment="Left"></TextBlock>
|
||||||
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<!-- </Grid> -->
|
<!-- </Grid> -->
|
||||||
|
|||||||
+15
-2
@@ -698,10 +698,23 @@ public partial class MainWindow : Window
|
|||||||
BtnCheck.IsEnabled = true;
|
BtnCheck.IsEnabled = true;
|
||||||
BtnCombine.IsEnabled = true;
|
BtnCombine.IsEnabled = true;
|
||||||
BtnGenerateLabels.IsEnabled = true;
|
BtnGenerateLabels.IsEnabled = true;
|
||||||
BtnShorten.IsEnabled = true;
|
|
||||||
|
|
||||||
|
// check for existing errors, otherwise disable the features
|
||||||
|
foreach(KasPerson pers in (LstCustomerAdressSets.SelectedItem as KasAddressList).KasPersons)
|
||||||
|
if (pers.PersonError != null)
|
||||||
|
{
|
||||||
|
BtnShorten.IsEnabled = true;
|
||||||
// BtnRepair.IsEnabled = true;
|
// BtnRepair.IsEnabled = true;
|
||||||
// BtnShorten.IsEnabled = true;
|
break;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BtnShorten.IsEnabled = false;
|
||||||
|
BtnRepair.IsEnabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user