|
- <Window
- x:Class="BPASmartClient.SmallBatchingSystem.Views.NewSiloView"
- 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.SmallBatchingSystem.Views"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.SmallBatchingSystem.ViewModels"
- Title="NewSiloView"
- Width="500"
- Height="300"
- AllowsTransparency="True"
- Background="{x:Null}"
- Topmost="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
-
- <Window.DataContext>
- <vm:NewSiloViewModel />
- </Window.DataContext>
-
- <Grid>
- <Grid.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/容器边框.png" />
- </Grid.Background>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="0.18*" />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="20"
- Foreground="{StaticResource FontColor}"
- Text="新建料仓" />
-
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition Height="0.5*" />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.8*" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="料仓原料名称:" />
-
- <TextBlock
- Grid.Row="1"
- Style="{StaticResource TextBlockStyle}"
- Text="料仓原料位置:" />
-
- <TextBox
- Name="SiloName"
- Grid.Column="1"
- Width="250"
- Height="40"
- Margin="0,0,5,0"
- FontSize="20"
- Style="{StaticResource TextBoxStyle}"
- Text="{Binding SiloInfoModelObj.SiloName}" />
-
- <TextBox
- Name="SiloLoc"
- Grid.Row="1"
- Grid.Column="1"
- Width="250"
- Height="40"
- Margin="0,0,5,0"
- FontSize="20"
- Style="{StaticResource TextBoxStyle}"
- Text="{Binding SiloInfoModelObj.SiloLoc}" />
-
-
- <TextBlock
- Grid.Row="2"
- Grid.ColumnSpan="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="20"
- Foreground="#FFF53F62"
- Text="{Binding ErrorInfo}" />
-
- <Button
- Grid.Row="3"
- Width="150"
- Height="40"
- Margin="5,0,5,0"
- Command="{Binding CancelCommand}"
- Content="取消"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
-
- <Button
- Grid.Row="3"
- Grid.Column="1"
- Width="150"
- Height="40"
- Margin="5,0,5,0"
- Command="{Binding SaveCommand}"
- Content="保存"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
-
- </Grid>
-
- </Grid>
- </Window>
|