|
- <UserControl x:Class="BPASmartClient.JXJFoodBigStation.View.StockBinRawMaterialView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:vm="clr-namespace:BPASmartClient.JXJFoodBigStation.ViewModel"
- mc:Ignorable="d"
- d:DesignHeight="1080" d:DesignWidth="1920">
- <UserControl.DataContext>
- <vm:StockBinRawMaterialViewModel />
- </UserControl.DataContext>
-
- <Grid Margin="10">
- <Grid.RowDefinitions>
- <!--<RowDefinition Height="60" />-->
- <RowDefinition Height="60" />
- <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}" />
- <pry:IcoButton
- Margin="10"
- Command="{Binding SaveRawMaterialPara}"
- Content="保存参数"
- FontSize="28"
- Foreground="Aqua"
- Style="{StaticResource IcoButtonStyle}" />
- </StackPanel>
-
- </Grid>-->
- <Grid
- Grid.Row="0"
- Margin="0,10,0,0"
- Background="#ff0C255F">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <TextBlock Text="序号" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Aqua"/>
- <Border BorderThickness="1,1,1,1" Cursor="SizeWE" />
- </Grid>
- <TextBlock Grid.Column="1" FontSize="24" Text="料仓位置" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Aqua" />
- <TextBlock Grid.Column="2" FontSize="24" Text="原料编号" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Aqua" />
- <TextBlock Grid.Column="3" FontSize="24" Text="原料名称" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Aqua" />
- </Grid>
- <Grid Grid.Row="1">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" >
- <ItemsControl ItemsSource="{Binding RawMaterialInfo}" Foreground="Aqua">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid Name="gr" Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0" Margin="5">
- <TextBlock
- FontSize="16"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding RawMaterialCount}" />
- <Border
- BorderThickness="1,0,1,0"
- Cursor="SizeWE" />
-
- </Grid>
- <Grid Grid.Column="1" Margin="5">
- <TextBlock
- FontSize="16"
- TextAlignment="Center"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding RawMaterialLocation}" />
- <Border
- BorderThickness="1,0,1,0"
- Cursor="SizeWE" />
-
- </Grid>
- <Grid Grid.Column="2" Margin="5">
- <TextBlock
- FontSize="16"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding RawMaterialName}" />
- <Border
- BorderThickness="1,0,1,0"
- Cursor="SizeWE" />
- </Grid>
- <Grid Grid.Column="3">
- <TextBlock
- FontSize="16"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding RawMaterialChineseName}" />
- <Border
- BorderThickness="1,0,1,0"
- Cursor="SizeWE" />
- <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <pry:IcoButton
- Margin="3,4,4,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="#11F53F62"
- BorderThickness="0"
- Command="{Binding DataContext.RemoveCommand, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
- CommandParameter="{Binding RawMaterialLocation}"
- Content="删除"
- EnterBackground="#22F53F62"
- Foreground="#FFF53F62"
- IcoText=""
- Style="{StaticResource IcoButtonStyle}" />
- </StackPanel>-->
-
- </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>
|