|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <UserControl
- x:Class="BPASmartClient.JXJFoodSmallStation.View.WindSendParView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:con="clr-namespace:BPASmartClient.JXJFoodSmallStation.Converter"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.JXJFoodSmallStation.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.JXJFoodSmallStation.ViewModel"
- d:DesignHeight="1080"
- d:DesignWidth="1920"
- mc:Ignorable="d">
-
- <UserControl.DataContext>
- <vm:WindSendParViewModel />
- </UserControl.DataContext>
-
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.JXJFoodSmallStation;component/Resource/MyStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
-
- <Grid Margin="10">
- <Grid.RowDefinitions>
- <RowDefinition Height="60" />
- <RowDefinition Height="40" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <!--#region 表格标题栏设置-->
- <Grid>
- <StackPanel
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <!--<pry:IcoButton
- Margin="10"
- Command="{Binding UpdateRawMaterial}"
- Content="新增数据"
- FontSize="28"
- Foreground="Aqua"
- Style="{StaticResource IcoButtonStyle}" />-->
- <Button
- Width="150"
- Height="50"
- Margin="5"
- Command="{Binding SaveRawMaterialPara}"
- Content="保存参数"
- FontSize="28"
- Foreground="DeepSkyBlue"
- Style="{StaticResource ImageButtonStyle}" />
- <!--<pry:IcoButton
- Margin="10"
- Command="{Binding SaveRawMaterialPara}"
- Content="保存参数"
- FontSize="28"
- Foreground="Aqua"
- Style="{StaticResource IcoButtonStyle}" />-->
- </StackPanel>
-
- </Grid>
- <Grid
- Grid.Row="1"
- 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="2">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
- <ItemsControl Foreground="DeepSkyBlue" ItemsSource="{Binding WindSendRawMaterial}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid Name="gr">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <TextBlock
- Grid.Column="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="{Binding Location}" />
-
- <TextBlock
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="{Binding Location}" />
-
- <TextBox
- Grid.Column="2"
- Style="{StaticResource InputTextboxStyle}"
- Text="{Binding RawMaterialName}" />
-
- <TextBlock
- Grid.Column="3"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="{Binding RawMaterialChineseName}" />
-
- <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 Grid.Column="0" Margin="5">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="{Binding Location}" />
- <Border BorderThickness="1,0,1,0" Cursor="SizeWE" />
-
- </Grid>
- <Grid Grid.Column="1" Margin="5">
- <TextBlock
- Width="50"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="{Binding Location}"
- TextAlignment="Center" />
- <Border BorderThickness="1,0,1,0" Cursor="SizeWE" />
-
- </Grid>
- <Grid Grid.Column="2" Margin="5">
- <TextBox
- Name="name"
- Width="50"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="{Binding RawMaterialName}" />
- <Border BorderThickness="1,0,1,0" Cursor="SizeWE" />
- </Grid>
- <Grid Grid.Column="3" Margin="5">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="{Binding RawMaterialChineseName}" />
- <Border BorderThickness="1,0,1,0" Cursor="SizeWE" />
- </Grid>-->
- </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>
- </UserControl>
|