|
|
|
@ -13,7 +13,7 @@ |
|
|
|
<ViewModel:MainWindowViewModel x:Key="MainWindowViewModel"/> |
|
|
|
</Window.Resources> |
|
|
|
<Grid> |
|
|
|
<Menu IsTabStop="False" Grid.ColumnSpan="2"> |
|
|
|
<Menu IsTabStop="False" Grid.ColumnSpan="1"> |
|
|
|
<MenuItem x:Name="tab" Header="_文件" FontSize="16" Focusable ="False" > |
|
|
|
<MenuItem Header="_许可证" Click="CDKEY_SET" FontSize="16"/> |
|
|
|
<Separator/> |
|
|
|
@ -24,7 +24,7 @@ |
|
|
|
<MenuItem Header="_备份/还原" FontSize="16" Name="_SQLBAK" Click="SQLBAK" IsEnabled="False"/> |
|
|
|
<Separator/> |
|
|
|
<MenuItem Header="_软件设置" FontSize="16" Name="_SOFTWARE_SET" Click="SOFTWARE_SET" IsEnabled="False"/> |
|
|
|
<MenuItem Header="_转换设置" FontSize="16" Name="_EXCHANGE_SET" IsEnabled="False"/> |
|
|
|
<MenuItem Header="_转换设置" FontSize="16" Name="_EXCHANGE_SET" IsEnabled="False"/> |
|
|
|
<MenuItem Header="_打印设置" FontSize="16" Name="_PRINT_SET" Click="PRINT_SET" IsEnabled="False"/> |
|
|
|
<MenuItem Header="_用户设置" FontSize="16" Name="_USER_SET" Click="USER_SET" IsEnabled="False"/> |
|
|
|
<MenuItem Header="_登录限制" FontSize="16" Name="_USER_log" IsEnabled="False"/> |
|
|
|
@ -189,16 +189,16 @@ |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTextColumn Header="计算单位" Width="80" MaxWidth="80" MinWidth="80" CellStyle="{StaticResource CellStyle}" Binding="{Binding SHIFT}"/> |
|
|
|
<DataGridTemplateColumn Header="原料名称" Width="200" MaxWidth="400" MinWidth="100" CellStyle="{StaticResource CellStyle}"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<ComboBox x:Name="CP_PRODUCT_NAME" BorderThickness="0,0,0,0" |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<ComboBox x:Name="CP_PRODUCT_NAME" BorderThickness="0,0,0,0" |
|
|
|
ItemsSource="{Binding stuff_Product, Source={StaticResource MainWindowViewModel}}" |
|
|
|
DisplayMemberPath="ProductName" |
|
|
|
Text="{Binding PRODUCT_NAME}" |
|
|
|
DropDownClosed="CP_PRODUCT_NAME_DropDownClosed" |
|
|
|
BorderBrush="{x:Null}" Background="{x:Null}" IsEditable="True" IsReadOnly="True" Focusable="True" IsTabStop="False"/> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTextColumn Header="目标重量(g)" Width="200" FontSize="15" MaxWidth="400" MinWidth="100" IsReadOnly="True" Binding="{Binding TARGET_WT}" CellStyle="{StaticResource CellStyle}"/> |
|
|
|
<DataGridTextColumn Header="单位" Width="80" FontSize="15" MaxWidth="80" MinWidth="80" IsReadOnly="True" Binding="{Binding UNIT}" CellStyle="{StaticResource CellStyle}"/> |
|
|
|
@ -215,10 +215,13 @@ |
|
|
|
<ContentControl x:Name="Deputy"/> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Viewbox x:Name="cdk_box" Margin="0,0,0,0" Opacity="0.8" Visibility="Hidden"> |
|
|
|
<Grid Background="#FFA4A4A4" > |
|
|
|
<TextBlock Height="40" Margin="0,0,0,0" TextWrapping="Wrap" Text="ReRegistration" Width="180" FontSize="28" HorizontalAlignment="Center" Foreground="Black" VerticalAlignment="Center"/> |
|
|
|
</Grid> |
|
|
|
</Viewbox> |
|
|
|
<Grid Grid.Column="1" Margin="0,0,0,0" Background="White" Opacity="0.8" Visibility="{Binding Cdk_page}"> |
|
|
|
<TextBlock Height="50" Margin="0,0,0,300" TextWrapping="Wrap" Text="The registration code expires" Width="500" FontSize="34" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
|
|
|
<TextBlock Height="50" Margin="0,0,0,200" TextWrapping="Wrap" Text="{Binding Cdk_time}" Width="500" FontSize="34" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
|
|
|
<TextBlock Height="50" Margin="0,0,0,100" TextWrapping="Wrap" Text="Contact SUNLIGHT Reactivate" Width="500" FontSize="34" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
|
|
|
<Button Content="Reactivate" HorizontalAlignment="Center" Height="50" Margin="200,100,0,0" VerticalAlignment="Center" Width="150" FontSize="24" BorderBrush="{x:Null}" Background="#FFDFDFDF" Click="CDKEY_SET"/> |
|
|
|
<Button Content="Contact" HorizontalAlignment="Center" Height="50" Margin="0,100,200,0" VerticalAlignment="Center" Width="150" FontSize="24" BorderBrush="{x:Null}" Background="#FFDFDFDF" Click="HELP"/> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
</Window> |
|
|
|
|