|
- <Window
- x:Class="BPASmartClient.MorkCL.View.ManualSetItemStorageView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:Behavior="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:converter="clr-namespace:BPASmartClient.MorkCL.Converter"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.MorkCL.ViewModel"
- Title="EditFunctionView"
- Width="450"
- Height="350"
- AllowsTransparency="True"
- Background="{x:Null}"
- Topmost="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
- <Window.DataContext>
- <vm:ManualSetItemStorageViewModel />
- </Window.DataContext>
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.MorkCL;component/CustomStyle/CustomStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Window.Resources>
- <Border
- Name="br"
- BorderBrush="#0CADF5"
- BorderThickness="0">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/弹框/biankuang_.png" />
- </Border.Background>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition Height="50" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="50" />
- </Grid.RowDefinitions>
- <!--#region 标题栏-->
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Foreground="DeepSkyBlue"
- Text="主料库仓位信息编辑" />
- <!--#endregion-->
-
- <!--#region 操作栏-->
- <!--<Border
- Grid.Row="1"
- BorderBrush="#3099E5"
- BorderThickness="1">
- <TextBlock
- HorizontalAlignment="Center"
- FontSize="18"
- Foreground="DeepSkyBlue"
- Text="{Binding FuncName, StringFormat={}{0} 参数设置}" />
- </Border>-->
- <!--#endregion-->
-
- <!--#region 内容-->
- <StackPanel Grid.Row="2" Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <TextBlock Margin="10,15" Text="物料名称:" />
- <ComboBox
- Width="250"
- Height="40"
- d:Text="青椒"
- DisplayMemberPath="Name"
- FontSize="25"
- IsEditable="False"
- ItemsSource="{Binding Ingredients}"
- Text="{Binding Storage.Name}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Margin="10,15" Text="重量(Kg):" />
- <TextBox
- Width="250"
- Height="40"
- d:Text="25"
- FontSize="25"
- Text="{Binding Storage.Weight}" />
- </StackPanel>
- </StackPanel>
-
- <!--#endregion-->
-
- <!--#region 底部按钮栏-->
- <Grid Grid.Row="3">
- <Button
- Width="100"
- Height="35"
- Margin="50,0"
- HorizontalAlignment="Left"
- Command="{Binding SaveCommand}"
- Content="保存设置" />
-
- <Button
- Width="100"
- Height="35"
- Margin="50,0"
- HorizontalAlignment="Right"
- Click="Button_Click"
- Content="取消并关闭" />
- </Grid>
-
- <!--#endregion-->
- </Grid>
- </Border>
- </Window>
|