|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312 |
- <UserControl
- x:Class="BPASmartClient.MorkMV1.View.ParSet"
- 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:local="clr-namespace:BPASmartClient.MorkMV1.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:vm="clr-namespace:BPASmartClient.MorkMV1.ViewModel"
- Name="参数设置界面"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
-
- <UserControl.DataContext>
- <vm:ParSetViewModel />
- </UserControl.DataContext>
-
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
-
- <ResourceDictionary Source="/BPASmartClient.MorkMV1;component/Resource/MyStyle.xaml" />
-
- <ResourceDictionary>
- <Style x:Key="TextBlockStyle" TargetType="TextBlock">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- </Style>
-
- <Style x:Key="TextBoxStyle" TargetType="TextBox">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="FontSize" Value="22" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
- <Setter Property="BorderBrush" Value="#FF23CACA" />
- <Setter Property="CaretBrush" Value="Aqua" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
-
- </ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
-
- </UserControl.Resources>
-
- <Grid Margin="10">
- <Grid.RowDefinitions>
- <RowDefinition Height="35" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
-
- <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
-
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="请点击按钮保存参数:" />
-
- <pry:IcoButton
- Grid.Column="5"
- Width="140"
- HorizontalAlignment="Left"
- Command="{Binding SaveInfoCommand}"
- Content="保存配置"
- FontSize="16"
- IcoText=""
- Style="{StaticResource IcoButtonStyle}">
- <pry:IcoButton.Foreground>
- <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
- <GradientStop Color="#FFBB662A" />
- <GradientStop Offset="1" Color="White" />
- </LinearGradientBrush>
- </pry:IcoButton.Foreground>
- </pry:IcoButton>
-
-
- </StackPanel>
-
- <!-- 参数放置面板 -->
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <ItemsControl ItemsSource="{Binding parSets}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
- <TextBox
- Width="100"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#FF23CACA"
- CaretBrush="Aqua"
- FontFamily="楷体"
- FontSize="21"
- Foreground="#ff34f7f7"
- Text="{Binding Minute}" />
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
- <TextBox
- Width="100"
- Margin="0,10"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#FF23CACA"
- CaretBrush="Aqua"
- FontFamily="楷体"
- FontSize="21"
- Foreground="#ff34f7f7"
- Text="{Binding Second}" />
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
-
- <CheckBox
- Height="20"
- Margin="10"
- VerticalAlignment="Center"
- Background="#FF2AB2E7"
- Content="{Binding CheckBoxContext}"
- FontSize="14"
- Foreground="#00c2f4"
- IsChecked="{Binding IsShield}"
- Template="{StaticResource CbTemplate}" />
-
- </StackPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
-
- <Grid Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <Grid
- Grid.Row="0"
- Margin="0,10,0,0"
- Background="#ff0C255F">
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <TextBlock
- Grid.Column="0"
- FontSize="24"
- Style="{StaticResource TitleTextblockStyle}"
- Text="库位序号" />
-
- <TextBlock
- Grid.Column="1"
- FontSize="24"
- Style="{StaticResource TitleTextblockStyle}"
- Text="商品类型" />
-
- <TextBlock
- Grid.Column="2"
- FontSize="24"
- Style="{StaticResource TitleTextblockStyle}"
- Text="煮时间(分)" />
-
- <TextBlock
- Grid.Column="3"
- FontSize="24"
- Style="{StaticResource TitleTextblockStyle}"
- Text="煮时间(秒)" />
-
- <Border
- Grid.Column="0"
- Grid.ColumnSpan="4"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,1,1,1" />
- <Border
- Grid.Column="1"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,0" />
- <Border
- Grid.Column="3"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,0" />
-
-
- </Grid>
- <Grid Grid.Row="1">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
- <ItemsControl Foreground="DeepSkyBlue" ItemsSource="{Binding DishLibraryParSets}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid Name="gr">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <TextBlock
- Grid.Column="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="18"
- Text="{Binding TextBlockContext}" />
-
- <ComboBox
- Grid.Column="1"
- Height="auto"
- Background="Transparent"
- BorderThickness="0"
- FontSize="18"
- Foreground="DeepSkyBlue"
- IsEditable="False"
- ItemsSource="{Binding DataContext.DishTypeName, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
- SelectedIndex="{Binding LocDishType}" />
-
- <TextBox
- Grid.Column="2"
- FontSize="18"
- Style="{StaticResource InputTextboxStyle}"
- Text="{Binding Minute}" />
-
- <TextBox
- Grid.Column="3"
- FontSize="18"
- Style="{StaticResource InputTextboxStyle}"
- Text="{Binding Second}" />
-
-
- <Border
- Grid.Column="0"
- Grid.ColumnSpan="4"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,1" />
- <Border
- Grid.Column="1"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,0" />
- <Border
- Grid.Column="3"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,0" />
- </Grid>
-
- <DataTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
- </Trigger>
- </DataTemplate.Triggers>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- </Grid>
- </Grid>
-
- <!--<ItemsControl Grid.Column="1" ItemsSource="{Binding DishLibraryParSets}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
- <TextBox
- Width="100"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#FF23CACA"
- CaretBrush="Aqua"
- FontFamily="楷体"
- FontSize="21"
- Foreground="#ff34f7f7"
- Text="{Binding Minute}" />
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
- <TextBox
- Width="100"
- Margin="0,10"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#FF23CACA"
- CaretBrush="Aqua"
- FontFamily="楷体"
- FontSize="21"
- Foreground="#ff34f7f7"
- Text="{Binding Second}" />
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
-
- <CheckBox
- Height="20"
- Margin="10"
- VerticalAlignment="Center"
- Background="#FF2AB2E7"
- Content="{Binding CheckBoxContext}"
- FontSize="14"
- Foreground="#00c2f4"
- IsChecked="{Binding IsShield}"
- Template="{StaticResource CbTemplate}" />
-
- </StackPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>-->
-
- </Grid>
-
- </Grid>
-
-
- </UserControl>
|