You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
6.1 KiB
89 lines
6.1 KiB
<c:BWindow x:Class="BBWY.Client.Views.PackTask.EditConsumable"
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:BBWY.Client.Views.PackTask"
|
|
mc:Ignorable="d"
|
|
Title="TipsWindow" Height="400" Width="640"
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters"
|
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
CloseButtonVisibility="Visible"
|
|
WindowStartupLocation="CenterScreen"
|
|
DataContext="{Binding Consumable,Source={StaticResource Locator}}"
|
|
CloseButtonColor="{StaticResource WindowButtonColor}"
|
|
MinButtonVisibility="Collapsed"
|
|
MaxButtonVisibility="Collapsed"
|
|
RightButtonGroupMargin="0,5,5,0"
|
|
|
|
>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="40"/>
|
|
</Grid.RowDefinitions>
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}"
|
|
Background="{StaticResource Border.Background}">
|
|
<TextBlock Text="添加耗材" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<StackPanel Grid.Row="1" Orientation="Vertical">
|
|
<TextBlock Text="{Binding Id,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Visibility="Hidden"/>
|
|
<StackPanel Orientation="Horizontal" Margin="0 20 0 0">
|
|
<StackPanel.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
|
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</StackPanel.Resources>
|
|
<TextBlock Text="所属分类:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30 0 5 0" />
|
|
|
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}">
|
|
<ComboBox BorderThickness="0" Width="88" VerticalContentAlignment="Center" ItemsSource="{Binding ConsumableTypeList}"
|
|
DisplayMemberPath="ConsumableTypeName"
|
|
SelectedValuePath="ConsumableTypeId" SelectedValue="{Binding ConsumableTypeId}"
|
|
/>
|
|
</Border>
|
|
<c:BTextBox Margin="30 0 5 0" Width="100" Text="{Binding ConsumableTypeName}"/>
|
|
<c:BButton Content="添加分类" Width="80" Command="{Binding AddConsumableTypeCommand}"/>
|
|
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" Margin="0 10 0 10">
|
|
<TextBlock Text="耗材品名:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30 0 5 0"/>
|
|
<c:BTextBox Text="{Binding Name,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Height="25" Width="180" VerticalAlignment="Top"/>
|
|
<TextBlock Text="金额:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30 0 5 0"/>
|
|
<c:BTextBox Text="{Binding Price ,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Height="25" Width="228" VerticalAlignment="Top" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="重量:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="55 0 5 0"/>
|
|
<c:BTextBox Text="{Binding Weigth,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Height="25" Width="180" VerticalAlignment="Top" />
|
|
<TextBlock Text="尺寸:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30 0 5 0"/>
|
|
<c:BTextBox WaterRemark="长" Text="{Binding Length,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Height="25" Width="64" VerticalAlignment="Top" />
|
|
<c:BTextBox WaterRemark="宽" BorderThickness="0 1 0 1" Text="{Binding Width,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Height="25" Width="64" VerticalAlignment="Top" />
|
|
<c:BTextBox WaterRemark="高" Text="{Binding Heigth,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Height="25" Width="64" VerticalAlignment="Top" />
|
|
<Label Content="cm" Width="38" Height="25" Background="{StaticResource Border.Background}" HorizontalAlignment="Left" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" Margin="0 10 0 0">
|
|
<TextBlock Text="备注:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="55,5,5,0"/>
|
|
<TextBox Text="{Binding Remark,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" AcceptsReturn="True" TextWrapping="Wrap" Height="115" Width="471" />
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<Border BorderThickness="0 1 0 0" Grid.Row="2" Height="1" VerticalAlignment="Top" BorderBrush="{StaticResource Border.Brush}"/>
|
|
<c:BButton Grid.Row="2" Content="保存" HorizontalAlignment="Right" Width="100" VerticalAlignment="Stretch"
|
|
Command="{Binding SaveConsumableCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
|
|
/>
|
|
|
|
</Grid>
|
|
</c:BWindow>
|
|
|