|
|
|
@ -7,12 +7,13 @@ |
|
|
|
xmlns:ConvertMoels="clr-namespace:formula_manage.ConvertMoels" |
|
|
|
xmlns:viewmodel="clr-namespace:formula_manage.ViewModel" |
|
|
|
mc:Ignorable="d" Loaded="Stuff_Loaded" |
|
|
|
Title="Stuff" Height="720" Width="1100" MaxHeight="720" MaxWidth="1100" MinHeight="720" MinWidth="1100" |
|
|
|
Title="Stuff" Height="720" Width="1200" MaxHeight="720" MaxWidth="1200" MinHeight="720" MinWidth="1200" |
|
|
|
BorderBrush="White" Background="#FFE0E0E0"> |
|
|
|
<Window.Resources> |
|
|
|
<!--引入转换器--> |
|
|
|
<ConvertMoels:ColorSQLConvert x:Key="ColorSQLConvert"/> |
|
|
|
<ConvertMoels:ProductTypeSQLConvert x:Key="ProductTypeSQLConvert"/> |
|
|
|
<ConvertMoels:IonSQLConvert x:Key="IonSQLConvert"/> |
|
|
|
</Window.Resources> |
|
|
|
<Grid> |
|
|
|
<!--原料表--> |
|
|
|
@ -60,8 +61,6 @@ |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTextColumn Header="原料代码" Binding="{Binding ProductCode}" Width="130" FontSize="15" MaxWidth="130" MinWidth="100" CanUserReorder="False"/> |
|
|
|
<DataGridTextColumn Header="原料名称" Binding="{Binding ProductName}" Width="200" FontSize="15" MaxWidth="200" MinWidth="200" CanUserReorder="False"/> |
|
|
|
<DataGridTextColumn Header="价格(¥/kg)" Binding="{Binding Price}" Width="100" FontSize="15" MaxWidth="100" MinWidth="100" CanUserReorder="False"/> |
|
|
|
<DataGridTextColumn Header="供应商" Binding="{Binding SUPPLIER}" Width="150" FontSize="15" MaxWidth="150" MinWidth="150" CanUserReorder="False"/> |
|
|
|
<DataGridTextColumn Header="原料类型" Width="80" FontSize="15" MaxWidth="80" MinWidth="70" CanUserReorder="False"> |
|
|
|
<!--事件名称:原料类型数字转文字显示,转换器ProductTypeSQLConvert--> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
@ -70,6 +69,14 @@ |
|
|
|
</Style> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
</DataGridTextColumn> |
|
|
|
<DataGridTextColumn Header="离子类型" Width="80" FontSize="15" MaxWidth="500" MinWidth="50" CanUserReorder="False"> |
|
|
|
<!--事件名称:离子数字转显示,转换器IonSQLConvert--> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
<Style TargetType="{x:Type TextBlock}"> |
|
|
|
<Setter Property="Text" Value="{Binding ProductIon_Type, Converter={StaticResource IonSQLConvert}}"/> |
|
|
|
</Style> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
</DataGridTextColumn> |
|
|
|
<DataGridTextColumn Header="色彩" Width="100" MaxWidth="500" MinWidth="50" CanUserReorder="False"> |
|
|
|
<!--事件名称:色彩数字转色彩显示,转换器ColorSQLConvert--> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
@ -80,18 +87,20 @@ |
|
|
|
</DataGridTextColumn> |
|
|
|
<DataGridTextColumn Header="浓度(%)" Binding="{Binding Concentration}" Width="70" FontSize="15" MaxWidth="200" MinWidth="20" CanUserReorder="False"/> |
|
|
|
<DataGridTextColumn Header="比重(sg)" Binding="{Binding GRAVITY}" Width="70" FontSize="15" MaxWidth="200" MinWidth="20" CanUserReorder="False"/> |
|
|
|
<DataGridTextColumn Header="价格(¥/kg)" Binding="{Binding Price}" Width="100" FontSize="15" MaxWidth="100" MinWidth="100" CanUserReorder="False"/> |
|
|
|
<DataGridTextColumn Header="供应商" Binding="{Binding SUPPLIER}" Width="150" FontSize="15" MaxWidth="150" MinWidth="150" CanUserReorder="False"/> |
|
|
|
</DataGrid.Columns> |
|
|
|
</DataGrid> |
|
|
|
<!--搜索类型--> |
|
|
|
<RadioButton Content="染料" x:Name="Button_0" Click="Radiobutton" HorizontalAlignment="Left" Height="20" Margin="995,265,0,0" |
|
|
|
<RadioButton Content="染料" x:Name="Button_0" Click="Radiobutton" HorizontalAlignment="Left" Height="20" Margin="1095,265,0,0" |
|
|
|
VerticalAlignment="Top" Width="100" BorderBrush="Black" Background="White" Grid.Column="1" FontSize="14" /> |
|
|
|
<RadioButton Content="助剂" x:Name="Button_1" Click="Radiobutton" HorizontalAlignment="Left" Height="20" Margin="995,295,0,0" |
|
|
|
<RadioButton Content="助剂" x:Name="Button_1" Click="Radiobutton" HorizontalAlignment="Left" Height="20" Margin="1095,295,0,0" |
|
|
|
VerticalAlignment="Top" Width="100" BorderBrush="Black" Background="White" Grid.Column="1" FontSize="14" /> |
|
|
|
<RadioButton Content="粉体助剂" x:Name="Button_2" Click="Radiobutton" HorizontalAlignment="Left" Height="20" Margin="995,325,0,0" |
|
|
|
<RadioButton Content="粉体助剂" x:Name="Button_2" Click="Radiobutton" HorizontalAlignment="Left" Height="20" Margin="1095,325,0,0" |
|
|
|
VerticalAlignment="Top" Width="100" BorderBrush="Black" Background="White" Grid.Column="1" FontSize="14"/> |
|
|
|
<RadioButton Content="液体染料" x:Name="Button_3" Click="Radiobutton" HorizontalAlignment="Left" Height="20" Margin="995,355,0,0" |
|
|
|
<RadioButton Content="液体染料" x:Name="Button_3" Click="Radiobutton" HorizontalAlignment="Left" Height="20" Margin="1095,355,0,0" |
|
|
|
VerticalAlignment="Top" Width="100" BorderBrush="Black" Background="White" Grid.Column="1" FontSize="14" /> |
|
|
|
<RadioButton Content="全部原料" x:Name="Button_all" Click="Radiobutton" HorizontalAlignment="Left" Height="20" Margin="995,385,0,0" |
|
|
|
<RadioButton Content="全部原料" x:Name="Button_all" Click="Radiobutton" HorizontalAlignment="Left" Height="20" Margin="1095,385,0,0" |
|
|
|
VerticalAlignment="Top" Width="100" BorderBrush="Black" Background="White" Grid.Column="1" IsChecked="True" FontSize="14" /> |
|
|
|
<!--原料代码--> |
|
|
|
<TextBox x:Name="stuff_ProductCode" HorizontalAlignment="Left" Height="30" Margin="105,0,0,100" Text="" |
|
|
|
@ -105,18 +114,31 @@ |
|
|
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="255,0,0,100" TextWrapping="Wrap" Text="原料名称" |
|
|
|
VerticalAlignment="Bottom" Width="100" FontSize="20"/> |
|
|
|
<!--原料类型--> |
|
|
|
<ComboBox x:Name="stuff_ProductType" HorizontalAlignment="Left" Height="30" Margin="645,0,0,100" Text="" |
|
|
|
<ComboBox x:Name="stuff_ProductType" HorizontalAlignment="Left" Height="30" Margin="755,0,0,100" Text="" |
|
|
|
VerticalAlignment="Bottom" Width="100" FontSize="16" IsReadOnly="True" IsEditable="True"> |
|
|
|
<ComboBoxItem Content="染料"></ComboBoxItem> |
|
|
|
<ComboBoxItem Content="助剂"></ComboBoxItem> |
|
|
|
<ComboBoxItem Content="粉体助剂"></ComboBoxItem> |
|
|
|
<ComboBoxItem Content="液体染料"></ComboBoxItem> |
|
|
|
</ComboBox> |
|
|
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="560,0,0,100" TextWrapping="Wrap" Text="原料类型" |
|
|
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="670,0,0,100" TextWrapping="Wrap" Text="原料类型" |
|
|
|
VerticalAlignment="Bottom" Width="100" FontSize="20"/> |
|
|
|
<!--离子类型--> |
|
|
|
<ComboBox x:Name="stuff_ion" HorizontalAlignment="Left" Height="30" Margin="755,0,0,50" Text="" |
|
|
|
VerticalAlignment="Bottom" Width="100" FontSize="16" IsReadOnly="True" IsEditable="True"> |
|
|
|
<ComboBoxItem Content="分散"></ComboBoxItem> |
|
|
|
<ComboBoxItem Content="酸性"></ComboBoxItem> |
|
|
|
<ComboBoxItem Content="活性"></ComboBoxItem> |
|
|
|
<ComboBoxItem Content="硫化"></ComboBoxItem> |
|
|
|
<ComboBoxItem Content="阳离子"></ComboBoxItem> |
|
|
|
<ComboBoxItem Content="酞菁"></ComboBoxItem> |
|
|
|
<ComboBoxItem Content="直接"></ComboBoxItem> |
|
|
|
</ComboBox> |
|
|
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="670,0,0,50" TextWrapping="Wrap" Text="离子类型" |
|
|
|
VerticalAlignment="Bottom" Width="100" FontSize="20"/> |
|
|
|
<!--色彩--> |
|
|
|
<TextBox x:Name="stuff_Color" HorizontalAlignment="Left" Height="30" Margin="445,0,0,50" |
|
|
|
VerticalAlignment="Bottom" Width="80" MaxLines="1" IsReadOnly="True" Cursor="Arrow" |
|
|
|
VerticalAlignment="Bottom" Width="100" MaxLines="1" IsReadOnly="True" Cursor="Arrow" |
|
|
|
MouseDoubleClick="Stuff_Color_MouseDoubleClick"/> |
|
|
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="400,0,0,50" TextWrapping="Wrap" Text="色彩" |
|
|
|
VerticalAlignment="Bottom" Width="50" FontSize="20"/> |
|
|
|
@ -132,24 +154,24 @@ |
|
|
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="255,0,0,50" TextWrapping="Wrap" Text="价格" |
|
|
|
VerticalAlignment="Bottom" Width="45" FontSize="20"/> |
|
|
|
<!--浓度--> |
|
|
|
<TextBox x:Name="stuff_Concentration" HorizontalAlignment="Left" Height="30" Margin="585,0,0,50" Text="100" |
|
|
|
<TextBox x:Name="stuff_Concentration" HorizontalAlignment="Left" Height="30" Margin="605,0,0,50" Text="100" |
|
|
|
VerticalAlignment="Bottom" Width="50" FontSize="22" MaxLines="1" MaxLength="7" |
|
|
|
InputMethod.IsInputMethodEnabled="False"/> |
|
|
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="540,0,0,50" TextWrapping="Wrap" Text="浓度" |
|
|
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="560,0,0,50" TextWrapping="Wrap" Text="浓度" |
|
|
|
VerticalAlignment="Bottom" Width="45" FontSize="20"/> |
|
|
|
<!--比重--> |
|
|
|
<TextBox x:Name="stuff_GRAVITY" HorizontalAlignment="Left" Height="30" Margin="695,0,0,50" Text="1" |
|
|
|
<TextBox x:Name="stuff_GRAVITY" HorizontalAlignment="Left" Height="30" Margin="605,0,0,100" Text="1" |
|
|
|
VerticalAlignment="Bottom" Width="50" FontSize="22" MaxLines="1" MaxLength="4" |
|
|
|
InputMethod.IsInputMethodEnabled="False"/> |
|
|
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="650,0,0,50" TextWrapping="Wrap" Text="比重" |
|
|
|
<TextBlock HorizontalAlignment="Left" Height="30" Margin="560,0,0,100" TextWrapping="Wrap" Text="比重" |
|
|
|
VerticalAlignment="Bottom" Width="45" FontSize="20"/> |
|
|
|
<!--存储按钮--> |
|
|
|
<Button Content="存储" HorizontalAlignment="Left" Height="50" Margin="795,0,0,60" |
|
|
|
<Button Content="存储" HorizontalAlignment="Left" Height="50" Margin="895,0,0,60" |
|
|
|
VerticalAlignment="Bottom" Width="100" FontSize="30" Background="#FFEFEFEF" BorderBrush="White" |
|
|
|
Click="Button_Preservation"> |
|
|
|
</Button> |
|
|
|
<!--删除按钮--> |
|
|
|
<Button Content="删除" HorizontalAlignment="Left" Height="50" Margin="935,0,0,60" |
|
|
|
<Button Content="删除" HorizontalAlignment="Left" Height="50" Margin="1035,0,0,60" |
|
|
|
VerticalAlignment="Bottom" Width="100" FontSize="30" Background="#FFEFEFEF" BorderBrush="White" |
|
|
|
Click="Button_Delete"> |
|
|
|
</Button> |
|
|
|
|