e9e4db3cef
- Possibilità di creazione Chiave senza specificare Cliente (nel DB sarà NULL) - Aggiunta la data di creazione Chiave e Licenza, che è possibile modificare sia nel New che nell'Update (Aggiunta la colonna relativa e il filtro nelle pagine Search) - Aggiunto il pulsante Delete nelle pagine Search - Correzioni su textBox e comboBox varie (per es. le pagine Update caricano di default i valori dell'elemento selezionato precedentemente) - Gestione delle colonne KeyID, KeyDate e LicenseDate aggiunte nel DB - Correzione altezza di alcune DataGrid nelle pagine Search - Gestione GeneratedKey/Number in NewKeyPage
73 lines
2.8 KiB
XML
73 lines
2.8 KiB
XML
<Grid x:Class="SearchKeyPageV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:LicenseManager="clr-namespace:LicenseManager"
|
|
DataContext="{StaticResource SearchKeyPageVM}">
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border BorderBrush="Black"
|
|
BorderThickness="1"
|
|
Height="75"
|
|
Grid.ColumnSpan="2">
|
|
<TextBlock Height="50"
|
|
Text="{Binding SearchKeyMsg}"
|
|
FontSize="30"
|
|
TextAlignment="Center"/>
|
|
</Border>
|
|
|
|
<LicenseManager:KeyPageV Grid.Row="1"
|
|
Grid.ColumnSpan="2"/>
|
|
|
|
<DataGrid ItemsSource="{Binding SearchResult}"
|
|
SelectedItem="{Binding SelSearchResult}"
|
|
AutoGenerateColumns="False"
|
|
Grid.Row="2">
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Header="Number"
|
|
Binding="{Binding Number, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="Client Name"
|
|
Binding="{Binding ClientName, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="Is Dongle"
|
|
Binding="{Binding IsDongle, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="LockID"
|
|
Binding="{Binding LockID, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="State"
|
|
Binding="{Binding State, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="Key Date"
|
|
Binding="{Binding KeyDate, Mode=OneWay, StringFormat=\{0:dd/MM/yyyy\}}"
|
|
Width="1*"/>
|
|
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
|
|
<UniformGrid Grid.Row="3" Columns="4">
|
|
<Button Content="{Binding SearchMsg}"
|
|
Command="{Binding SearchKey_Command}"
|
|
IsDefault="True"
|
|
Style="{StaticResource Page_Button}"/>
|
|
<Button Content="{Binding CancelMsg}"
|
|
Command="{Binding Cancel_Command}"
|
|
Style="{StaticResource Page_Button}"/>
|
|
<Button Content="{Binding UpdateMsg}"
|
|
Command="{Binding UpdateKey_Command}"
|
|
Style="{StaticResource Page_Button}"/>
|
|
<Button Content="{Binding DeleteMsg}"
|
|
Command="{Binding DeleteKey_Command}"
|
|
Style="{StaticResource Page_Button}" Background="#FFE5AEAE"/>
|
|
</UniformGrid>
|
|
|
|
</Grid> |