|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- <UserControl
- x:Class="BPASmartClient.MorkCL.View.ItemStorageView"
- 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.MorkCL.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.MorkCL.ViewModel"
- xmlns:converter="clr-namespace:BPASmartClient.MorkCL.Converter"
- Name="库位状态"
- d:DesignHeight="900"
- d:DesignWidth="1200"
- mc:Ignorable="d">
- <UserControl.DataContext>
- <vm:ItemStorageViewModel />
- </UserControl.DataContext>
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.MorkCL;component/CustomStyle/CustomStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- <converter:Bool2VisibilityConverter x:Key="Bool2VisibilityConverter" />
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200" />
- <ColumnDefinition Width="1*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.3*" />
- <RowDefinition Height="0.7*" />
- </Grid.RowDefinitions>
-
- <!--#region 入库电子称状态-->
- <pry:ImageBorder Margin="5,15" />
- <StackPanel Margin="15,20">
- <TextBlock Width="200" Text="{Binding ScaleCurrentWeight, StringFormat=当前重量:{0:F2} Kg}" />
-
-
- <Button
- Height="40"
- Margin="0,30"
- Command="{Binding InitialStorageCommand}"
- Content="清空全部库位" />
-
- <Button
- Height="50"
- Margin="0,10"
- Command="{Binding ModifySelectStorageCommand}"
- CommandParameter="{Binding ElementName=List_Ingre, Path=SelectedIndex}"
- Content="修改所选库位信息" />
-
-
- <Button
- Height="40"
- Command="{Binding ClearSelectStorageCommand}"
- CommandParameter="{Binding ElementName=List_Ingre, Path=SelectedIndex}"
- Content="清空所选库位信息" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 入库操作-->
- <pry:ImageBorder Grid.Row="1" Margin="5,15" />
- <StackPanel Grid.Row="1" Margin="15,20">
- <TextBlock Text="入库名称:" />
- <ComboBox
- x:Name="cmbSelectName"
- Height="50"
- Margin="0,5"
- DisplayMemberPath="Name"
- FontSize="26"
- IsEditable="False"
- ItemsSource="{Binding Ingredients}" />
-
- <Button
- Height="40"
- Margin="0,10"
- Command="{Binding InStorageCommand}"
- CommandParameter="{Binding ElementName=cmbSelectName, Path=SelectedItem}"
- Content="入库" />
- <!--<Button
- Height="40"
- Margin="0,30,0,10"
- Command="{Binding WeigherTareCommand}"
- Content="电子秤除皮"/>-->
- <Button
- Height="40"
- Margin="0,10"
- Command="{Binding WeigherZeroCommand}"
- Content="电子秤置零" />
- </StackPanel>
- <!--#endregion-->
- <!--#region 辅料仓不需要显示,整体注释。-->
- <!--<pry:ImageBorder Grid.Column="1" Margin="15" Visibility="Collapsed"/>
- <ItemsControl
- Grid.Column="1"
- Margin="3"
- Background="Transparent"
- BorderThickness="1"
- ItemsSource="{Binding AccessoriesItorage}" Visibility="Collapsed"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Columns="8" />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
-
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Border Margin="5" Background="Transparent">
- <Grid Height="180">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <TextBlock
- Margin="0,0,0,25"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- FontSize="25"
- Foreground="#ffccd61f"
- Text="{Binding Name}" />
-
- <TextBlock
- Grid.Row="1"
- Margin="0,0,0,35"
- HorizontalAlignment="Center"
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding Weight, StringFormat={}{0} g}" />
-
- <StackPanel
- Grid.Row="1"
- Margin="0,25"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding ID, StringFormat={}{0} 号仓}" />
- </StackPanel>
- <Image
- Grid.RowSpan="2"
- Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
- Stretch="Fill" />
- </Grid>
- </Border>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>-->
- <!--#endregion-->
- <!--#region 原料仓-->
- <pry:ImageBorder
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1" />
- <ListView
- x:Name="List_Ingre"
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1"
- Margin="3"
- Background="Transparent"
- BorderThickness="0"
- ItemsSource="{Binding IngredientsItorage}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled"
- ScrollViewer.VerticalScrollBarVisibility="Disabled"
- SelectionMode="Single">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Columns="3"
- Rows="4">
- <UniformGrid.LayoutTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </UniformGrid.LayoutTransform>
- </UniformGrid>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
-
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Margin="5" Background="Transparent">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.LayoutTransform>
- <TransformGroup>
- <RotateTransform Angle="-90" />
- <ScaleTransform ScaleX="1" ScaleY="-1" />
- </TransformGroup>
- </Grid.LayoutTransform>
-
- <TextBlock
- Margin="0,0,0,55"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- FontSize="25"
- Foreground="#ffccd61f"
- Text="{Binding Name}" />
-
- <TextBlock
- Grid.Row="1"
- Margin="0,0,0,35"
- HorizontalAlignment="Center"
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding Weight, StringFormat={}{0} Kg}" />
-
- <!--<StackPanel
- Grid.Row="1"
- Margin="0,25"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding ID, StringFormat={}{0} 号仓}" />
- </StackPanel>-->
- <Image
- Grid.RowSpan="2"
- Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
- Stretch="Fill" />
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
-
- <!--#endregion-->
- </Grid>
- </UserControl>
|