You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
9.1 KiB
124 lines
9.1 KiB
<Window x:Class="SunlightCentralizedControlManagement_SCCM_.EX.ManualDyelot"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_.EX"
|
|
xmlns:lang="clr-namespace:SunlightCentralizedControlManagement_SCCM_.Properties"
|
|
xmlns:viewmodel="clr-namespace:SunlightCentralizedControlManagement_SCCM_.ViewModel"
|
|
xmlns:System="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:core="clr-namespace:System;assembly=netstandard"
|
|
d:DataContext="{d:DesignInstance Type=viewmodel:ManualDyelotModel}"
|
|
mc:Ignorable="d" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterScreen"
|
|
Title="ManualDyelot" Height="960" Width="1280">
|
|
<Window.Resources>
|
|
<viewmodel:ManualDyelotModel x:Key="ManualDyelotModel"/>
|
|
</Window.Resources>
|
|
<Grid Background="#FFC9C9C9">
|
|
<Grid Margin="5,5,5,5" Background="White">
|
|
<DataGrid x:Name="Grid_data" AlternationCount="2" d:ItemsSource="{d:SampleData ItemCount=99}"
|
|
Background="White" HorizontalGridLinesBrush="#FFC9C9C9" VerticalGridLinesBrush="#FFC9C9C9"
|
|
GridLinesVisibility="All" ColumnHeaderHeight="50" BorderThickness="0,0,5,0"
|
|
Grid.ColumnSpan="2" CanUserResizeRows="False" AutoGenerateColumns="False" MinColumnWidth="30"
|
|
CanUserAddRows="False" CanUserDeleteRows="False" HeadersVisibility ="Column"
|
|
SelectionMode="Single" FontSize="20" Margin="5,5,500,5">
|
|
<DataGrid.RowStyle >
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
<Setter Property="Height" Value="35" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
<Style.Triggers>
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
|
|
<Setter Property="Background" Value="#FFFFFFFF" />
|
|
</Trigger>
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
|
|
<Setter Property="Background" Value="#FFF0F0F0" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="False"/>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="MinWidth" Value="20"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="#FFC0C0C0"/>
|
|
<Setter Property="BorderBrush" Value="#FFC0C0C0"/>
|
|
<Setter Property="Foreground" Value="Black"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</DataGrid.CellStyle>
|
|
<DataGrid.Columns>
|
|
<!--列信息绑定-->
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.ProductCode}" Width="200" MaxWidth="400" MinWidth="100" IsReadOnly="False">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<ComboBox x:Name="CP_PRODUCT_CODE" BorderThickness="0,0,0,0"
|
|
ItemsSource="{Binding stuff_Product, Source={StaticResource ManualDyelotModel}}"
|
|
DisplayMemberPath="ProductCode"
|
|
Text="{Binding PRODUCT_CODE}" IsTextSearchEnabled="True" StaysOpenOnEdit="True"
|
|
BorderBrush="{x:Null}" Background="{x:Null}"
|
|
DropDownClosed="CP_PRODUCT_CODE_DropDownClosed">
|
|
</ComboBox>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.ProcessName}" Width="200" MaxWidth="400" MinWidth="100" >
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<ComboBox x:Name="CP_PRODUCT_NAME" BorderThickness="0,0,0,0"
|
|
ItemsSource="{Binding stuff_Product, Source={StaticResource ManualDyelotModel}}"
|
|
DisplayMemberPath="ProductName"
|
|
Text="{Binding PRODUCT_NAME}"
|
|
DropDownClosed="CP_PRODUCT_NAME_DropDownClosed"
|
|
BorderBrush="{x:Null}" Background="{x:Null}" Focusable="True" IsTabStop="False"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Grams}" Width="200" MaxWidth="400" MinWidth="100" >
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBox x:Name="CP_CONC" BorderThickness="0,0,0,0" Text="{Binding CONC}"
|
|
BorderBrush="{x:Null}" Background="{x:Null}"
|
|
KeyDown="CP_CONC_KeyDown" />
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
|
|
|
|
<Button x:Name="State" Content="{x:Static lang:Resources.YES}" HorizontalAlignment="Right" Height="55" Margin="0,0,280,10" VerticalAlignment="Bottom" Width="200" Click="State_Click" Padding="0,4,0,4" FontSize="20"/>
|
|
<Button x:Name="Cancel" Content="{x:Static lang:Resources.Cancel}" HorizontalAlignment="Right" Height="55" Margin="0,0,15,10" VerticalAlignment="Bottom" Width="200" Click="Cancel_Click" Padding="0,4,0,4" FontSize="20"/>
|
|
|
|
<TextBlock HorizontalAlignment="Right" Height="50" Margin="10,100,365,0" TextWrapping="Wrap" Text="{x:Static lang:Resources.orders}"
|
|
VerticalAlignment="Top" Width="130" FontSize="35" Background="#FFEAEAEA"/>
|
|
<TextBlock HorizontalAlignment="Right" Height="50" Margin="10,100,15,0" TextWrapping="Wrap" x:Name="orders"
|
|
VerticalAlignment="Top" Width="350" FontSize="35"/>
|
|
<TextBlock HorizontalAlignment="Right" Height="50" Margin="10,150,365,0" TextWrapping="Wrap" Text="{x:Static lang:Resources.Dyelot}"
|
|
VerticalAlignment="Top" Width="130" FontSize="35" Background="#FFEAEAEA"/>
|
|
<TextBlock HorizontalAlignment="Right" Height="50" Margin="10,150,15,0" TextWrapping="Wrap" x:Name="dyelot"
|
|
VerticalAlignment="Top" Width="350" FontSize="35"/>
|
|
<Border BorderBrush="#FFE0E0E0" BorderThickness="1" Height="50" VerticalAlignment="Top" Margin="150,200,15,0" HorizontalAlignment="Right" Width="350">
|
|
<ComboBox Height="50" x:Name="comboBoxMachine" VerticalAlignment="Stretch"
|
|
FontSize="35" DropDownClosed="comboBoxMachine_DropDownClosed" />
|
|
</Border>
|
|
<TextBlock HorizontalAlignment="Right" Height="50" Margin="10,200,365,0" TextWrapping="Wrap" Text="{x:Static lang:Resources.Machine}"
|
|
VerticalAlignment="Top" Width="130" FontSize="35" Background="#FFEAEAEA"/>
|
|
<Border BorderBrush="#FFE0E0E0" BorderThickness="1" Height="50" VerticalAlignment="Top" Margin="150,250,15,0" HorizontalAlignment="Right" Width="350">
|
|
<ComboBox Height="50" x:Name="comboBoxtank" VerticalAlignment="Stretch" FontSize="35" />
|
|
</Border>
|
|
<TextBlock HorizontalAlignment="Right" Height="50" Margin="10,250,365,0" TextWrapping="Wrap" Text="{x:Static lang:Resources.Tank}"
|
|
VerticalAlignment="Top" Width="130" FontSize="35" Background="#FFEAEAEA"/>
|
|
<Border BorderBrush="#FFE0E0E0" BorderThickness="1" Height="50" VerticalAlignment="Top" Margin="150,300,15,0" HorizontalAlignment="Right" Width="350">
|
|
<TextBox Height="50" x:Name="comboBoxTotal" VerticalAlignment="Stretch" FontSize="35" />
|
|
</Border>
|
|
<TextBlock HorizontalAlignment="Right" Height="50" Margin="10,300,365,0" TextWrapping="Wrap" Text="{x:Static lang:Resources.Total}"
|
|
VerticalAlignment="Top" Width="130" FontSize="35" Background="#FFEAEAEA"/>
|
|
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|
|
|