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.
162 lines
8.3 KiB
162 lines
8.3 KiB
<c:BWindow x:Class="BBWY.Client.Views.FallWare.SetJDWareBoxWindow2"
|
|
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.FallWare"
|
|
mc:Ignorable="d"
|
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
Title="SetJDWareBoxWindow2"
|
|
Height="280" Width="300"
|
|
MinButtonVisibility="Collapsed"
|
|
MaxButtonVisibility="Collapsed"
|
|
CloseButtonVisibility="Visible"
|
|
Style="{StaticResource bwstyle}">
|
|
<Window.Resources>
|
|
<Style TargetType="RadioButton">
|
|
|
|
<Setter Property="IsChecked" Value="False" />
|
|
<Setter Property="Foreground" Value="Black" />
|
|
<Setter Property="Background" Value="White" />
|
|
<!--<Setter Property="Content" Value="{Binding ElementName=txt,Path=Text}"/>-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="RadioButton">
|
|
<Grid Background="#F2F2F2" >
|
|
<Rectangle x:Name="_Rect" Fill="#F2F2F2" HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="{TemplateBinding Width}" RenderTransformOrigin="0.5,0.5">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleY="-1"/>
|
|
<SkewTransform/>
|
|
<RotateTransform/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Height="35">
|
|
<TextBlock VerticalAlignment="Center" Text="{TemplateBinding Content}" />
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter TargetName="_Rect" Property="Fill" Value="white" />
|
|
<Setter Property="Foreground" Value="#8080FF"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Window.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="40"/>
|
|
</Grid.RowDefinitions>
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}"
|
|
Background="{StaticResource Border.Background}">
|
|
<TextBlock Text="箱唛设置" Style="{StaticResource middleTextBlock}"/>
|
|
</Border>
|
|
<StackPanel Grid.Row="1" Background="#F5F7FA" Orientation="Horizontal">
|
|
<RadioButton Height="35" Width="80" VerticalAlignment="Center" Command="{Binding SetWareTypeCommand}" CommandParameter="{x:Static cmodel:WareType.京仓}" Content="京仓"
|
|
IsChecked="{Binding wareType,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=京仓:True:False}"
|
|
Name="btn_jingcang" />
|
|
<RadioButton Height="35" Width="80" VerticalAlignment="Center" Command="{Binding SetWareTypeCommand}" CommandParameter="{x:Static cmodel:WareType.云仓}" Content="云仓"
|
|
Name="btn_yuncang" IsChecked="{Binding wareType,Converter={StaticResource objConverter},ConverterParameter=云仓:True:False}"
|
|
/>
|
|
<RadioButton Height="35" Width="80" VerticalAlignment="Center" Command="{Binding SetWareTypeCommand}" CommandParameter="{x:Static cmodel:WareType.聚水潭}" Content="聚水潭"
|
|
Name="btn_jushuitang" IsChecked="{Binding wareType,Converter={StaticResource objConverter},ConverterParameter=聚水潭:True:False}"
|
|
/>
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="2" Margin="5,0" Name="panel_jingcang" >
|
|
<Grid Margin="0,10,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="入库采购单号" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
|
<c:BTextBox Grid.Column="1" Margin="5,0,0,0" Height="25"
|
|
Text="{Binding JDWareBoxModel.PurchaseOrder}"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,10,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="预约单号" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
|
<c:BTextBox Grid.Column="1" Margin="5,0,0,0" Height="25"
|
|
Text="{Binding JDWareBoxModel.PrewOrder}"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,10,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="商品名称" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
|
<c:BTextBox Grid.Column="1" Margin="5,0,0,0" Height="25"
|
|
Text="{Binding JDWareBoxModel.ProductTitle}"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,10,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="预约时间:" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
|
|
|
|
|
<DatePicker Grid.Column="1"
|
|
SelectedDate="{Binding PrewDate,StringFormat=yyyy-MM-dd}" Height="30" VerticalContentAlignment="Center" FocusVisualStyle="{x:Null}" Margin="5,0,0,0"/>
|
|
|
|
<c:BTextBox Grid.Column="2" Text="{Binding PrewTime}"/>
|
|
</Grid>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="2" Margin="5,0" Name="panel_yuncang" Visibility="Collapsed">
|
|
|
|
|
|
<Grid Margin="0,50,0,0" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="90"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="CLPS采购单号:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="10 0 0 0"/>
|
|
<c:BTextBox Grid.Column="1" Margin="5,0,10,0" Height="25"
|
|
Text="{Binding JDWareBoxModel.PurchaseOrder}"/>
|
|
</Grid>
|
|
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="2" Margin="5,0" Name="panel_jst" Visibility="Collapsed">
|
|
|
|
|
|
<Grid Margin="0,50,0,0" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="采购单号:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="10 0 0 0"/>
|
|
<c:BTextBox Grid.Column="1" Margin="5,0,10,0" Height="25"
|
|
Text="{Binding JDWareBoxModel.PurchaseOrder}"/>
|
|
</Grid>
|
|
|
|
|
|
</StackPanel>
|
|
<c:BButton Grid.Row="3" Content="保存" HorizontalAlignment="Right" Width="80" VerticalAlignment="Center" Click="btn_save_Click"
|
|
Name="btn_save" Margin="0,0,5,0"/>
|
|
|
|
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"
|
|
WaitText="正在提交中"
|
|
Grid.RowSpan="4"/>
|
|
</Grid>
|
|
</c:BWindow>
|
|
|