|
|
@ -1,9 +1,13 @@ |
|
|
<Window x:Class="B3DealerClient.Windows.CarcassSaleOutWindow_.CarcassSaleOutWindow" |
|
|
<Window x:Class="B3DealerClient.Windows.CarcassSaleOutWindow_.CarcassSaleOutWindow" |
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
xmlns:local="clr-namespace:B3DealerClient.Control" |
|
|
|
|
|
Title="白条发货" Height="800" Width="1200" FontSize="17"> |
|
|
|
|
|
|
|
|
xmlns:local="clr-namespace:B3DealerClient.Control" |
|
|
|
|
|
xmlns:util="clr-namespace:B3DealerClient.Utils" |
|
|
|
|
|
xmlns:self="clr-namespace:B3DealerClient.Windows.CarcassSaleOutWindow_" |
|
|
|
|
|
Title="白条发货" Height="800" Width="1200" FontSize="17" WindowState="Maximized"> |
|
|
<Window.Resources> |
|
|
<Window.Resources> |
|
|
|
|
|
<util:NullToBoolConverter x:Key="NullIsFalseConverter"/> |
|
|
|
|
|
<self:TrueToFalseConverter x:Key="TrueToFalseConverter"/> |
|
|
<Style TargetType="TextBlock"> |
|
|
<Style TargetType="TextBlock"> |
|
|
<Setter Property="Margin" Value="5,20"/> |
|
|
<Setter Property="Margin" Value="5,20"/> |
|
|
<Setter Property="Width" Value="80"/> |
|
|
<Setter Property="Width" Value="80"/> |
|
|
@ -15,6 +19,11 @@ |
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
<Style x:Key="deleteBtn" TargetType="Button" BasedOn="{StaticResource RedButton}"> |
|
|
|
|
|
<Setter Property="Width" Value="120"/> |
|
|
|
|
|
<Setter Property="Height" Value="55"/> |
|
|
|
|
|
<Setter Property="Margin" Value="10,0"/> |
|
|
|
|
|
</Style> |
|
|
</Window.Resources> |
|
|
</Window.Resources> |
|
|
<Grid Margin="5"> |
|
|
<Grid Margin="5"> |
|
|
<Grid.ColumnDefinitions> |
|
|
<Grid.ColumnDefinitions> |
|
|
@ -29,55 +38,43 @@ |
|
|
<RowDefinition Height="80"/> |
|
|
<RowDefinition Height="80"/> |
|
|
</Grid.RowDefinitions> |
|
|
</Grid.RowDefinitions> |
|
|
<Border Grid.RowSpan="3" Margin="0,2" Style="{StaticResource DefaultBorder}"> |
|
|
<Border Grid.RowSpan="3" Margin="0,2" Style="{StaticResource DefaultBorder}"> |
|
|
<StackPanel> |
|
|
|
|
|
<StackPanel.Resources> |
|
|
|
|
|
|
|
|
<ListBox x:Name="customerPanel" ItemsSource="{Binding CustomerList}" ScrollViewer.HorizontalScrollBarVisibility="Hidden" BorderThickness="0"> |
|
|
|
|
|
<ListBox.Resources> |
|
|
|
|
|
<Style TargetType="ListBoxItem"> |
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
|
|
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="CustomerBtn_PriviewMouseDown"/> |
|
|
|
|
|
</Style> |
|
|
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"> |
|
|
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"> |
|
|
<Setter Property="Margin" Value="5"/> |
|
|
|
|
|
|
|
|
<Setter Property="Margin" Value="0,5"/> |
|
|
<Setter Property="Width" Value="150"/> |
|
|
<Setter Property="Width" Value="150"/> |
|
|
<Setter Property="Height" Value="50"/> |
|
|
<Setter Property="Height" Value="50"/> |
|
|
|
|
|
<Style.Triggers> |
|
|
|
|
|
<MultiDataTrigger> |
|
|
|
|
|
<MultiDataTrigger.Conditions> |
|
|
|
|
|
<Condition Binding="{Binding Selected}" Value="False" /> |
|
|
|
|
|
<Condition Binding="{Binding Finished}" Value="True" /> |
|
|
|
|
|
</MultiDataTrigger.Conditions> |
|
|
|
|
|
<Setter Property="Background" Value="DarkGreen"/> |
|
|
|
|
|
</MultiDataTrigger> |
|
|
|
|
|
<DataTrigger Binding="{Binding Selected}" Value="True"> |
|
|
|
|
|
<Setter Property="Background" Value="Orange"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
</Style.Triggers> |
|
|
</Style> |
|
|
</Style> |
|
|
<Style TargetType="TextBlock"> |
|
|
<Style TargetType="TextBlock"> |
|
|
<Setter Property="TextWrapping" Value="Wrap"/> |
|
|
<Setter Property="TextWrapping" Value="Wrap"/> |
|
|
</Style> |
|
|
</Style> |
|
|
</StackPanel.Resources> |
|
|
|
|
|
<Button Content="东台五烈"/> |
|
|
|
|
|
<Button Content="东台五烈"/> |
|
|
|
|
|
<Button Content="郭涛"/> |
|
|
|
|
|
<Button Content="东台刘家宾"/> |
|
|
|
|
|
<Button Content="浦东刘老板"/> |
|
|
|
|
|
<Button Content="建湖钱大方"/> |
|
|
|
|
|
<Button Content="柏庐小陈"/> |
|
|
|
|
|
<Button> |
|
|
|
|
|
<Button.Content> |
|
|
|
|
|
<TextBlock>大丰高丽苑13328121551</TextBlock> |
|
|
|
|
|
</Button.Content> |
|
|
|
|
|
</Button> |
|
|
|
|
|
<Button> |
|
|
|
|
|
<Button.Content> |
|
|
|
|
|
<TextBlock>胡传俊</TextBlock> |
|
|
|
|
|
</Button.Content> |
|
|
|
|
|
</Button> |
|
|
|
|
|
<Button> |
|
|
|
|
|
<Button.Content> |
|
|
|
|
|
<TextBlock>胡传俊</TextBlock> |
|
|
|
|
|
</Button.Content> |
|
|
|
|
|
</Button> |
|
|
|
|
|
<Button> |
|
|
|
|
|
<Button.Content> |
|
|
|
|
|
<TextBlock>胡传俊</TextBlock> |
|
|
|
|
|
</Button.Content> |
|
|
|
|
|
</Button> |
|
|
|
|
|
<Button> |
|
|
|
|
|
<Button.Content> |
|
|
|
|
|
<TextBlock>胡传俊</TextBlock> |
|
|
|
|
|
</Button.Content> |
|
|
|
|
|
</Button> |
|
|
|
|
|
<Button> |
|
|
|
|
|
<Button.Content> |
|
|
|
|
|
<TextBlock>胡传俊</TextBlock> |
|
|
|
|
|
</Button.Content> |
|
|
|
|
|
</Button> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
</ListBox.Resources> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
|
<DataTemplate> |
|
|
|
|
|
<Button> |
|
|
|
|
|
<Button.Content> |
|
|
|
|
|
<TextBlock Text="{Binding Name}"/> |
|
|
|
|
|
</Button.Content> |
|
|
|
|
|
</Button> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
|
</ListBox> |
|
|
</Border> |
|
|
</Border> |
|
|
|
|
|
|
|
|
<WrapPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"> |
|
|
<WrapPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"> |
|
|
@ -86,10 +83,11 @@ |
|
|
<Setter Property="Margin" Value="2,0"/> |
|
|
<Setter Property="Margin" Value="2,0"/> |
|
|
<Setter Property="Width" Value="75"/> |
|
|
<Setter Property="Width" Value="75"/> |
|
|
<Setter Property="Height" Value="40"/> |
|
|
<Setter Property="Height" Value="40"/> |
|
|
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="PageBtn_PreviewMouseDown"/> |
|
|
</Style> |
|
|
</Style> |
|
|
</WrapPanel.Resources> |
|
|
</WrapPanel.Resources> |
|
|
<Button Content="上一页"/> |
|
|
|
|
|
<Button Content="下一页"/> |
|
|
|
|
|
|
|
|
<Button Content="上一页" Tag="0"/> |
|
|
|
|
|
<Button Content="下一页" Tag="1"/> |
|
|
</WrapPanel> |
|
|
</WrapPanel> |
|
|
|
|
|
|
|
|
<Grid Grid.Column="1"> |
|
|
<Grid Grid.Column="1"> |
|
|
@ -98,7 +96,7 @@ |
|
|
<ColumnDefinition/> |
|
|
<ColumnDefinition/> |
|
|
</Grid.ColumnDefinitions> |
|
|
</Grid.ColumnDefinitions> |
|
|
<local:WeightControl x:Name="weightControl" HorizontalAlignment="Left" Width="250" Margin="2,5,0,5"/> |
|
|
<local:WeightControl x:Name="weightControl" HorizontalAlignment="Left" Width="250" Margin="2,5,0,5"/> |
|
|
<Grid Grid.Column="1" HorizontalAlignment="Center"> |
|
|
|
|
|
|
|
|
<Grid Grid.Column="1"> |
|
|
<Grid.Resources> |
|
|
<Grid.Resources> |
|
|
<Style TargetType="TextBlock"> |
|
|
<Style TargetType="TextBlock"> |
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
@ -106,36 +104,38 @@ |
|
|
</Style> |
|
|
</Style> |
|
|
</Grid.Resources> |
|
|
</Grid.Resources> |
|
|
<Grid.ColumnDefinitions> |
|
|
<Grid.ColumnDefinitions> |
|
|
<ColumnDefinition Width="50"/> |
|
|
|
|
|
<ColumnDefinition Width="120"/> |
|
|
|
|
|
<ColumnDefinition Width="50"/> |
|
|
|
|
|
<ColumnDefinition Width="120"/> |
|
|
|
|
|
|
|
|
<ColumnDefinition Width="0.6*"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="1*"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="1*"/> |
|
|
|
|
|
<ColumnDefinition Width="0.6*"/> |
|
|
</Grid.ColumnDefinitions> |
|
|
</Grid.ColumnDefinitions> |
|
|
<Grid.RowDefinitions> |
|
|
<Grid.RowDefinitions> |
|
|
<RowDefinition/> |
|
|
<RowDefinition/> |
|
|
<RowDefinition/> |
|
|
<RowDefinition/> |
|
|
</Grid.RowDefinitions> |
|
|
</Grid.RowDefinitions> |
|
|
<TextBlock Text="客户:"/> |
|
|
|
|
|
<TextBlock Grid.Column="1" Text="这里"/> |
|
|
|
|
|
<TextBlock Grid.Column="2" Text="司机"/> |
|
|
|
|
|
<TextBlock Grid.Column="3" Text="这里"/> |
|
|
|
|
|
<TextBlock Grid.Row="1" Text="仓库:"/> |
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="1" Text="这里"/> |
|
|
|
|
|
|
|
|
<TextBlock Grid.Column="1" Text="客户:"/> |
|
|
|
|
|
<TextBlock Grid.Column="2" Text="{Binding Dmo.Customer_Name}"/> |
|
|
|
|
|
<TextBlock Grid.Column="3" Text="司机:"/> |
|
|
|
|
|
<TextBlock Grid.Column="4" Text="{Binding Dmo.Driver_Name}"/> |
|
|
|
|
|
<TextBlock Grid.Column="1" Grid.Row="1" Text="仓库:"/> |
|
|
|
|
|
<TextBlock Grid.Column="2" Grid.Row="1" Text="{Binding Dmo.Store_Name}"/> |
|
|
</Grid> |
|
|
</Grid> |
|
|
</Grid> |
|
|
</Grid> |
|
|
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="1" Margin="2" Style="{StaticResource DefaultBorder}"> |
|
|
<Border Grid.Row="1" Grid.Column="1" Margin="2" Style="{StaticResource DefaultBorder}"> |
|
|
<DataGrid Margin="5"> |
|
|
|
|
|
|
|
|
<DataGrid Margin="5" ItemsSource="{Binding DmoList}"> |
|
|
<DataGrid.RowStyle> |
|
|
<DataGrid.RowStyle> |
|
|
<Style TargetType="DataGridRow" BasedOn="{StaticResource DefaultDataGridRow}"> |
|
|
<Style TargetType="DataGridRow" BasedOn="{StaticResource DefaultDataGridRow}"> |
|
|
<!--<EventSetter Event="PreviewMouseDown" Handler="TangGridFocus"/>--> |
|
|
|
|
|
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="MainGridFocus "/> |
|
|
<Style.Triggers> |
|
|
<Style.Triggers> |
|
|
<MultiDataTrigger> |
|
|
<MultiDataTrigger> |
|
|
<MultiDataTrigger.Conditions> |
|
|
<MultiDataTrigger.Conditions> |
|
|
<Condition Binding="{Binding Selected}" Value="False" /> |
|
|
<Condition Binding="{Binding Selected}" Value="False" /> |
|
|
<Condition Binding="{Binding Finish}" Value="True" /> |
|
|
|
|
|
|
|
|
<Condition Binding="{Binding AssignFinished}" Value="True" /> |
|
|
</MultiDataTrigger.Conditions> |
|
|
</MultiDataTrigger.Conditions> |
|
|
<Setter Property="Background"> |
|
|
|
|
|
|
|
|
<Setter Property="Background"> |
|
|
<Setter.Value> |
|
|
<Setter.Value> |
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1"> |
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1"> |
|
|
<GradientStop Offset="0.0" Color="#9ACD32"/> |
|
|
<GradientStop Offset="0.0" Color="#9ACD32"/> |
|
|
@ -147,35 +147,34 @@ |
|
|
</MultiDataTrigger> |
|
|
</MultiDataTrigger> |
|
|
<DataTrigger Binding="{Binding Selected}" Value="True"> |
|
|
<DataTrigger Binding="{Binding Selected}" Value="True"> |
|
|
<Setter Property="Background" Value="#1581ED"/> |
|
|
<Setter Property="Background" Value="#1581ED"/> |
|
|
<Setter Property="Foreground" Value="White"/> |
|
|
|
|
|
</DataTrigger> |
|
|
</DataTrigger> |
|
|
</Style.Triggers> |
|
|
</Style.Triggers> |
|
|
</Style> |
|
|
</Style> |
|
|
</DataGrid.RowStyle> |
|
|
</DataGrid.RowStyle> |
|
|
<DataGrid.Columns> |
|
|
<DataGrid.Columns> |
|
|
<DataGridTextColumn Binding="{Binding WeightID}" Header="单号" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Order}" Header="存货名称" Width="1.0*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Number ,StringFormat=\{0:yyyy-MM-dd\}}" Header="出库时间" Width="0.8*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding TotalWeight, StringFormat=\{0:0.######\}}" Header="主数量" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding TotalWeight, StringFormat=\{0:0.######\}}" Header="辅数量" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Number ,StringFormat=\{0:0.######\}}" Header="已配主数量" Width="0.8*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Already,StringFormat=\{0:0.######\}}" Header="已配辅数量" Width="0.8*"/> |
|
|
|
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ID}" Header="单号" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Goods_Name}" Header="存货名称" Width="1.0*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding LoadTime ,StringFormat=\{0:yyyy-MM-dd\}}" Header="出库时间" Width="0.8*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Number, StringFormat=\{0:0.######\}}" Header="主数量" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding SecondNumber, StringFormat=\{0:0.######\}}" Header="辅数量" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding AlreadyNumber ,StringFormat=\{0:0.######\}}" Header="已配主数量" Width="0.8*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding AlreadySecondNumber,StringFormat=\{0:0.######\}}" Header="已配辅数量" Width="0.8*"/> |
|
|
</DataGrid.Columns> |
|
|
</DataGrid.Columns> |
|
|
</DataGrid> |
|
|
</DataGrid> |
|
|
</Border> |
|
|
</Border> |
|
|
|
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="1" Margin="2" Style="{StaticResource DefaultBorder}"> |
|
|
<Border Grid.Row="2" Grid.Column="1" Margin="2" Style="{StaticResource DefaultBorder}"> |
|
|
<DataGrid Margin="5"> |
|
|
|
|
|
|
|
|
<DataGrid Margin="5" ItemsSource="{Binding Details}"> |
|
|
<DataGrid.RowStyle> |
|
|
<DataGrid.RowStyle> |
|
|
<Style TargetType="DataGridRow" BasedOn="{StaticResource DefaultDataGridRow}"> |
|
|
<Style TargetType="DataGridRow" BasedOn="{StaticResource DefaultDataGridRow}"> |
|
|
<!--<EventSetter Event="PreviewMouseDown" Handler="TangGridFocus"/>--> |
|
|
|
|
|
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="DetailGridFocus"/> |
|
|
<Style.Triggers> |
|
|
<Style.Triggers> |
|
|
<MultiDataTrigger> |
|
|
|
|
|
|
|
|
<!--<MultiDataTrigger> |
|
|
<MultiDataTrigger.Conditions> |
|
|
<MultiDataTrigger.Conditions> |
|
|
<Condition Binding="{Binding Selected}" Value="False" /> |
|
|
<Condition Binding="{Binding Selected}" Value="False" /> |
|
|
<Condition Binding="{Binding Finish}" Value="True" /> |
|
|
<Condition Binding="{Binding Finish}" Value="True" /> |
|
|
</MultiDataTrigger.Conditions> |
|
|
</MultiDataTrigger.Conditions> |
|
|
<Setter Property="Background"> |
|
|
|
|
|
|
|
|
<Setter Property="Background"> |
|
|
<Setter.Value> |
|
|
<Setter.Value> |
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1"> |
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1"> |
|
|
<GradientStop Offset="0.0" Color="#9ACD32"/> |
|
|
<GradientStop Offset="0.0" Color="#9ACD32"/> |
|
|
@ -184,21 +183,20 @@ |
|
|
</Setter.Value> |
|
|
</Setter.Value> |
|
|
</Setter> |
|
|
</Setter> |
|
|
<Setter Property="Foreground" Value="Black"/> |
|
|
<Setter Property="Foreground" Value="Black"/> |
|
|
</MultiDataTrigger> |
|
|
|
|
|
|
|
|
</MultiDataTrigger>--> |
|
|
<DataTrigger Binding="{Binding Selected}" Value="True"> |
|
|
<DataTrigger Binding="{Binding Selected}" Value="True"> |
|
|
<Setter Property="Background" Value="#1581ED"/> |
|
|
<Setter Property="Background" Value="#1581ED"/> |
|
|
<Setter Property="Foreground" Value="White"/> |
|
|
|
|
|
</DataTrigger> |
|
|
</DataTrigger> |
|
|
</Style.Triggers> |
|
|
</Style.Triggers> |
|
|
</Style> |
|
|
</Style> |
|
|
</DataGrid.RowStyle> |
|
|
</DataGrid.RowStyle> |
|
|
<DataGrid.Columns> |
|
|
<DataGrid.Columns> |
|
|
<DataGridTextColumn Binding="{Binding Order}" Header="存货名称" Width="1.0*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Number ,StringFormat=\{0:HH:mm\}}" Header="称重时间" Width="0.8*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding TotalWeight, StringFormat=\{0:0.######\}}" Header="称重重量" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding TotalWeight, StringFormat=\{0:0.######\}}" Header="辅数量" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Number ,StringFormat=\{0:0.######\}}" Header="扣重" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Already,StringFormat=\{0:0.######\}}" Header="净重" Width="0.6*"/> |
|
|
|
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Goods_Name}" Header="存货名称" Width="1.0*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Date ,StringFormat=\{0:HH:mm\}}" Header="称重时间" Width="0.8*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Weight, StringFormat=\{0:0.######\}}" Header="称重重量" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding SecondNumber, StringFormat=\{0:0.######\}}" Header="辅数量" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Discont ,StringFormat=\{0:0.######\}}" Header="扣重" Width="0.6*"/> |
|
|
|
|
|
<DataGridTextColumn Binding="{Binding NetWeight,StringFormat=\{0:0.######\}}" Header="净重" Width="0.6*"/> |
|
|
</DataGrid.Columns> |
|
|
</DataGrid.Columns> |
|
|
</DataGrid> |
|
|
</DataGrid> |
|
|
</Border> |
|
|
</Border> |
|
|
@ -206,22 +204,22 @@ |
|
|
<StackPanel Grid.Row="1" Grid.Column="2" HorizontalAlignment="Center"> |
|
|
<StackPanel Grid.Row="1" Grid.Column="2" HorizontalAlignment="Center"> |
|
|
<WrapPanel> |
|
|
<WrapPanel> |
|
|
<TextBlock Text="发货日期"/> |
|
|
<TextBlock Text="发货日期"/> |
|
|
<TextBox Text="2019/01/25"/> |
|
|
|
|
|
|
|
|
<DatePicker SelectedDate="{Binding Date}" Width="150" Height="40" Margin="-0.2,0,0,0"/> |
|
|
</WrapPanel> |
|
|
</WrapPanel> |
|
|
<WrapPanel> |
|
|
<WrapPanel> |
|
|
<TextBlock Text="仓库"/> |
|
|
<TextBlock Text="仓库"/> |
|
|
<TextBox Text="白条库"/> |
|
|
|
|
|
|
|
|
<TextBox x:Name="Store" Text="{Binding Store.Name}" PreviewMouseDown="BaseInfoBox_PreviewMouseDown"/> |
|
|
</WrapPanel> |
|
|
</WrapPanel> |
|
|
<WrapPanel> |
|
|
<WrapPanel> |
|
|
<TextBlock Text="扣钩重"/> |
|
|
<TextBlock Text="扣钩重"/> |
|
|
<TextBox Text="2.4"/> |
|
|
|
|
|
|
|
|
<TextBox x:Name="hook" Text="{Binding HookWeight,StringFormat=\{0:0.######\}}" PreviewMouseDown="NumberBox_PreviewMouseDown"/> |
|
|
</WrapPanel> |
|
|
</WrapPanel> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="2" Grid.Column="2"> |
|
|
<StackPanel Grid.Row="2" Grid.Column="2"> |
|
|
<WrapPanel HorizontalAlignment="Center"> |
|
|
<WrapPanel HorizontalAlignment="Center"> |
|
|
<TextBlock Text="称重头数"/> |
|
|
<TextBlock Text="称重头数"/> |
|
|
<TextBox Text="4"/> |
|
|
|
|
|
|
|
|
<TextBox Text="{Binding StrNumber}"/> |
|
|
</WrapPanel> |
|
|
</WrapPanel> |
|
|
<WrapPanel> |
|
|
<WrapPanel> |
|
|
<WrapPanel.Resources> |
|
|
<WrapPanel.Resources> |
|
|
@ -229,6 +227,7 @@ |
|
|
<Setter Property="Width" Value="95"/> |
|
|
<Setter Property="Width" Value="95"/> |
|
|
<Setter Property="Height" Value="75"/> |
|
|
<Setter Property="Height" Value="75"/> |
|
|
<Setter Property="Margin" Value="5"/> |
|
|
<Setter Property="Margin" Value="5"/> |
|
|
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="NumberBtn_PreviewMouseDown"/> |
|
|
</Style> |
|
|
</Style> |
|
|
</WrapPanel.Resources> |
|
|
</WrapPanel.Resources> |
|
|
<Button Content="1"/> |
|
|
<Button Content="1"/> |
|
|
@ -237,7 +236,7 @@ |
|
|
<Button Content="4"/> |
|
|
<Button Content="4"/> |
|
|
<Button Content="5"/> |
|
|
<Button Content="5"/> |
|
|
<Button Content="6"/> |
|
|
<Button Content="6"/> |
|
|
<Button Content="0" Width="190"/> |
|
|
|
|
|
|
|
|
<Button Content="0" Width="200"/> |
|
|
<Button Content="./点"/> |
|
|
<Button Content="./点"/> |
|
|
</WrapPanel> |
|
|
</WrapPanel> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
@ -250,7 +249,11 @@ |
|
|
</Style> |
|
|
</Style> |
|
|
</WrapPanel.Resources> |
|
|
</WrapPanel.Resources> |
|
|
<TextBlock Text="送货线路" VerticalAlignment="Center" Margin="20,0,10,0"/> |
|
|
<TextBlock Text="送货线路" VerticalAlignment="Center" Margin="20,0,10,0"/> |
|
|
<Button Content="沙河一线"/> |
|
|
|
|
|
|
|
|
<Button x:Name="DriverGoodsLine" PreviewMouseDown="BaseInfoBox_PreviewMouseDown"> |
|
|
|
|
|
<Button.Content> |
|
|
|
|
|
<TextBlock Text="{Binding DriverGoodsLine.Name}" Style="{x:Null}"/> |
|
|
|
|
|
</Button.Content> |
|
|
|
|
|
</Button> |
|
|
</WrapPanel> |
|
|
</WrapPanel> |
|
|
<WrapPanel Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right"> |
|
|
<WrapPanel Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right"> |
|
|
<WrapPanel.Resources> |
|
|
<WrapPanel.Resources> |
|
|
@ -260,10 +263,10 @@ |
|
|
<Setter Property="Margin" Value="10,0"/> |
|
|
<Setter Property="Margin" Value="10,0"/> |
|
|
</Style> |
|
|
</Style> |
|
|
</WrapPanel.Resources> |
|
|
</WrapPanel.Resources> |
|
|
<Button Content="删除选中"/> |
|
|
|
|
|
<Button Content="称重记录"/> |
|
|
|
|
|
<Button Content="配货完成"/> |
|
|
|
|
|
|
|
|
<Button Content="删除选中" Style="{StaticResource deleteBtn}" IsEnabled="{Binding CanDelete}" PreviewMouseDown="DeleteBtn_PreviewMouseDown"/> |
|
|
|
|
|
<Button Content="称重记录" IsEnabled="{Binding Dmo ,Converter={StaticResource NullIsFalseConverter}}" PreviewMouseDown="ViewBtn_PreviewMouseDown"/> |
|
|
|
|
|
<Button Content="配货完成" IsEnabled="{Binding Dmo ,Converter={StaticResource TrueToFalseConverter}}" PreviewMouseDown="FinishBtn_PreviewMouseDown"/> |
|
|
</WrapPanel> |
|
|
</WrapPanel> |
|
|
<Button Grid.Row="3" Grid.Column="2" Content="称重/读取" Width="120" Height="55"/> |
|
|
|
|
|
|
|
|
<Button Grid.Row="3" Grid.Column="2" Content="称重/读取" Width="120" Height="55" IsEnabled="{Binding CanSave}" PreviewMouseDown="SaveBtn_PreviewMouseDown"/> |
|
|
</Grid> |
|
|
</Grid> |
|
|
</Window> |
|
|
</Window> |