|
- <Window
- x:Class="BPASmartClient.MorkCL.View.EditRawMaterialView"
- 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: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:EditRawMaterialViewModel />
- </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 CurrentMaterialType, StringFormat={}{0} 参数设置}" />
- </Border>
- <!--#endregion-->
-
- <!--#region 正文-->
- <StackPanel
- Grid.Row="2"
- Margin="5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Vertical">
- <StackPanel
- Margin="0,5"
- Orientation="Horizontal"
- Visibility="{Binding MaterialTypeVis}">
- <TextBlock Text="物料类型:" />
- <ComboBox
- Width="200"
- Height="40"
- FontSize="18"
- IsEditable="False"
- ItemsSource="{Binding MaterialType}"
- SelectedItem="{Binding CurrentMaterialType}" />
- </StackPanel>
- <StackPanel Margin="0,5" Orientation="Horizontal">
- <TextBlock Text="物料名称:" />
- <TextBox
- Width="200"
- Height="40"
- FontSize="18"
- Text="{Binding MaterialName}" />
- </StackPanel>
- <StackPanel
- Margin="0,5"
- Orientation="Horizontal"
- Visibility="{Binding LocationVis}">
- <TextBlock Text="物料位置:" />
- <TextBox
- Width="200"
- Height="40"
- FontSize="18"
- Text="{Binding MaterialLoc}" />
- </StackPanel>
- <StackPanel Margin="0,5" Orientation="Horizontal">
- <TextBlock Text="物料描述:" />
- <TextBox
- Width="200"
- Height="40"
- FontSize="18"
- Text="{Binding MaterialDescription}" />
- </StackPanel>
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 底部按钮栏-->
- <Grid Grid.Row="3">
- <Button
- Width="100"
- Height="35"
- Margin="50,0"
- HorizontalAlignment="Left"
- Command="{Binding SaveParamCommand}"
- Content="保存信息" />
-
- <Button
- Width="100"
- Height="35"
- Margin="50,0"
- HorizontalAlignment="Right"
- Command="{Binding CancelCommand}"
- Content="取消并关闭" />
- </Grid>
-
- <!--#endregion-->
- </Grid>
- </Border>
- </Window>
|