|
|
|
@ -5,171 +5,179 @@ |
|
|
|
xmlns:util="clr-namespace:B3DealerClient.Utils" |
|
|
|
xmlns:self="clr-namespace:B3DealerClient.Windows.CarcassSaleOutWindow_" |
|
|
|
Title="白条发货" Height="800" Width="1200" FontSize="17" WindowState="Maximized"> |
|
|
|
<Window.Resources> |
|
|
|
<util:NullToBoolConverter x:Key="NullIsFalseConverter"/> |
|
|
|
<self:TrueToFalseConverter x:Key="TrueToFalseConverter"/> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Setter Property="Margin" Value="5,20"/> |
|
|
|
<Setter Property="Width" Value="80"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Right"/> |
|
|
|
</Style> |
|
|
|
<Style TargetType="TextBox"> |
|
|
|
<Setter Property="Width" Value="150"/> |
|
|
|
<Setter Property="Height" Value="40"/> |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
|
|
</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> |
|
|
|
<Grid Margin="5"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="165"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition Width="320"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="100"/> |
|
|
|
<RowDefinition Height="0.8*"/> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition Height="80"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Border Grid.RowSpan="3" Margin="0,2" Style="{StaticResource DefaultBorder}"> |
|
|
|
<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}"> |
|
|
|
<Setter Property="Margin" Value="0,5"/> |
|
|
|
<Setter Property="Width" Value="150"/> |
|
|
|
<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 TargetType="TextBlock"> |
|
|
|
<Setter Property="TextWrapping" Value="Wrap"/> |
|
|
|
</Style> |
|
|
|
</ListBox.Resources> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Button> |
|
|
|
<Button.Content> |
|
|
|
<Window.Resources> |
|
|
|
<util:NullToBoolConverter x:Key="NullIsFalseConverter"/> |
|
|
|
<self:TrueToFalseConverter x:Key="TrueToFalseConverter"/> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Setter Property="Margin" Value="5,20"/> |
|
|
|
<Setter Property="Width" Value="80"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Right"/> |
|
|
|
</Style> |
|
|
|
<Style TargetType="TextBox"> |
|
|
|
<Setter Property="Width" Value="150"/> |
|
|
|
<Setter Property="Height" Value="40"/> |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
|
|
</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> |
|
|
|
<Grid Margin="5"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="165"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition Width="320"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="100"/> |
|
|
|
<RowDefinition Height="0.8*"/> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition Height="80"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Border Grid.RowSpan="3" Margin="0,2" Style="{StaticResource DefaultBorder}"> |
|
|
|
<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}"> |
|
|
|
<Setter Property="Margin" Value="0,5"/> |
|
|
|
<Setter Property="Width" Value="150"/> |
|
|
|
<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 TargetType="TextBlock"> |
|
|
|
<Setter Property="TextWrapping" Value="Wrap"/> |
|
|
|
</Style> |
|
|
|
</ListBox.Resources> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Button> |
|
|
|
<Button.Content> |
|
|
|
<TextBlock Text="{Binding Name}" TextWrapping="Wrap"/> |
|
|
|
</Button.Content> |
|
|
|
</Button> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
</Border> |
|
|
|
</Button.Content> |
|
|
|
</Button> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
</Border> |
|
|
|
|
|
|
|
<WrapPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"> |
|
|
|
<WrapPanel.Resources> |
|
|
|
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"> |
|
|
|
<Setter Property="Margin" Value="2,0"/> |
|
|
|
<Setter Property="Width" Value="75"/> |
|
|
|
<Setter Property="Height" Value="40"/> |
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="PageBtn_PreviewMouseDown"/> |
|
|
|
</Style> |
|
|
|
</WrapPanel.Resources> |
|
|
|
<Button Content="上一页" Tag="0"/> |
|
|
|
<Button Content="下一页" Tag="1"/> |
|
|
|
</WrapPanel> |
|
|
|
<WrapPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"> |
|
|
|
<WrapPanel.Resources> |
|
|
|
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"> |
|
|
|
<Setter Property="Margin" Value="2,0"/> |
|
|
|
<Setter Property="Width" Value="75"/> |
|
|
|
<Setter Property="Height" Value="40"/> |
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="PageBtn_PreviewMouseDown"/> |
|
|
|
</Style> |
|
|
|
</WrapPanel.Resources> |
|
|
|
<Button Content="上一页" Tag="0"/> |
|
|
|
<Button Content="下一页" Tag="1"/> |
|
|
|
</WrapPanel> |
|
|
|
|
|
|
|
<Grid Grid.Column="1"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<local:WeightControl x:Name="weightControl" HorizontalAlignment="Left" Width="250" Margin="2,5,0,5"/> |
|
|
|
<Grid Grid.Column="1"> |
|
|
|
<Grid.Resources> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/> |
|
|
|
</Style> |
|
|
|
</Grid.Resources> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="0.6*"/> |
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
<ColumnDefinition Width="1*"/> |
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
<ColumnDefinition Width="1*"/> |
|
|
|
<ColumnDefinition Width="0.6*"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<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.Column="1"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<local:WeightControl x:Name="weightControl" HorizontalAlignment="Left" Width="250" Margin="2,5,0,5"/> |
|
|
|
<Grid Grid.Column="1"> |
|
|
|
<Grid.Resources> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/> |
|
|
|
</Style> |
|
|
|
</Grid.Resources> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="61*"/> |
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
<ColumnDefinition Width="102*"/> |
|
|
|
<ColumnDefinition Width="89"/> |
|
|
|
<ColumnDefinition Width="92*"/> |
|
|
|
<ColumnDefinition Width="41*"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<TextBlock Grid.Column="1" Text="客户:" Height="22" Margin="0,14"/> |
|
|
|
<TextBlock Grid.Column="2" Text="{Binding Dmo.Customer_Name}" Height="22" Margin="0,14"/> |
|
|
|
<TextBlock Grid.Column="3" Text="司机:" Height="22" Margin="0,14"/> |
|
|
|
<TextBlock Grid.Column="4" Text="{Binding Dmo.Driver_Name}" Height="22" Margin="0,14"/> |
|
|
|
<TextBlock Grid.Column="1" Grid.Row="1" Text="仓库:" Height="22" Margin="0,14"/> |
|
|
|
<TextBlock Grid.Column="2" Grid.Row="1" Text="{Binding Dmo.Store_Name}" Height="22" Margin="0,14"/> |
|
|
|
<TextBlock Grid.Column="3" Grid.Row="1" Text="出库时间:" Height="22" Margin="0,14"/> |
|
|
|
<TextBlock Grid.Column="4" Grid.Row="1" Text="{Binding Dmo.LoadTime,StringFormat=\{0:yyyy-MM-dd\}}" Height="22" Margin="0,14"/> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="1" Margin="2" Style="{StaticResource DefaultBorder}"> |
|
|
|
<DataGrid Margin="5" ItemsSource="{Binding DmoList}"> |
|
|
|
<DataGrid.RowStyle> |
|
|
|
<Style TargetType="DataGridRow" BasedOn="{StaticResource DefaultDataGridRow}"> |
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="MainGridFocus "/> |
|
|
|
<Style.Triggers> |
|
|
|
<MultiDataTrigger> |
|
|
|
<MultiDataTrigger.Conditions> |
|
|
|
<Condition Binding="{Binding Selected}" Value="False" /> |
|
|
|
<Condition Binding="{Binding AssignFinished}" Value="True" /> |
|
|
|
</MultiDataTrigger.Conditions> |
|
|
|
<Setter Property="Background"> |
|
|
|
<Setter.Value> |
|
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1"> |
|
|
|
<GradientStop Offset="0.0" Color="#9ACD32"/> |
|
|
|
<GradientStop Offset="1.0" Color="White"/> |
|
|
|
</LinearGradientBrush> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
<Setter Property="Foreground" Value="Black"/> |
|
|
|
</MultiDataTrigger> |
|
|
|
<DataTrigger Binding="{Binding Selected}" Value="True"> |
|
|
|
<Setter Property="Background" Value="#1581ED"/> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</DataGrid.RowStyle> |
|
|
|
<DataGrid.Columns> |
|
|
|
<DataGridTextColumn Binding="{Binding ID}" Header="单号" Width="0.6*"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Goods_Name}" Header="存货名称" Width="1.5*"/> |
|
|
|
<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> |
|
|
|
</Border> |
|
|
|
<Border Grid.Row="1" Grid.Column="1" Margin="2" Style="{StaticResource DefaultBorder}"> |
|
|
|
<DataGrid Margin="5" ItemsSource="{Binding DmoList}"> |
|
|
|
<DataGrid.RowStyle> |
|
|
|
<Style TargetType="DataGridRow" BasedOn="{StaticResource DefaultDataGridRow}"> |
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="MainGridFocus "/> |
|
|
|
<Style.Triggers> |
|
|
|
<MultiDataTrigger> |
|
|
|
<MultiDataTrigger.Conditions> |
|
|
|
<Condition Binding="{Binding Selected}" Value="False" /> |
|
|
|
<Condition Binding="{Binding AssignFinished}" Value="True" /> |
|
|
|
</MultiDataTrigger.Conditions> |
|
|
|
<Setter Property="Background"> |
|
|
|
<Setter.Value> |
|
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1"> |
|
|
|
<GradientStop Offset="0.0" Color="#9ACD32"/> |
|
|
|
<GradientStop Offset="1.0" Color="White"/> |
|
|
|
</LinearGradientBrush> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
<Setter Property="Foreground" Value="Black"/> |
|
|
|
</MultiDataTrigger> |
|
|
|
<DataTrigger Binding="{Binding Selected}" Value="True"> |
|
|
|
<Setter Property="Background" Value="#1581ED"/> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</DataGrid.RowStyle> |
|
|
|
<DataGrid.Columns> |
|
|
|
<DataGridTextColumn Binding="{Binding ID}" Header="单号" Width="0.6*"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Goods_Name}" Header="存货名称" Width="2.0*"> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Setter Property="TextWrapping" Value="Wrap"/> |
|
|
|
<Setter Property="Height" Value="auto"/> |
|
|
|
</Style> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
</DataGridTextColumn> |
|
|
|
<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> |
|
|
|
</Border> |
|
|
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="1" Margin="2" Style="{StaticResource DefaultBorder}"> |
|
|
|
<DataGrid Margin="5" ItemsSource="{Binding Details}"> |
|
|
|
<DataGrid.RowStyle> |
|
|
|
<Style TargetType="DataGridRow" BasedOn="{StaticResource DefaultDataGridRow}"> |
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="DetailGridFocus"/> |
|
|
|
<Style.Triggers> |
|
|
|
<!--<MultiDataTrigger> |
|
|
|
<Border Grid.Row="2" Grid.Column="1" Margin="2" Style="{StaticResource DefaultBorder}"> |
|
|
|
<DataGrid Margin="5" ItemsSource="{Binding Details}"> |
|
|
|
<DataGrid.RowStyle> |
|
|
|
<Style TargetType="DataGridRow" BasedOn="{StaticResource DefaultDataGridRow}"> |
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="DetailGridFocus"/> |
|
|
|
<Style.Triggers> |
|
|
|
<!--<MultiDataTrigger> |
|
|
|
<MultiDataTrigger.Conditions> |
|
|
|
<Condition Binding="{Binding Selected}" Value="False" /> |
|
|
|
<Condition Binding="{Binding Finish}" Value="True" /> |
|
|
|
@ -184,93 +192,94 @@ |
|
|
|
</Setter> |
|
|
|
<Setter Property="Foreground" Value="Black"/> |
|
|
|
</MultiDataTrigger>--> |
|
|
|
<DataTrigger Binding="{Binding Selected}" Value="True"> |
|
|
|
<Setter Property="Background" Value="#1581ED"/> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</DataGrid.RowStyle> |
|
|
|
<DataGrid.Columns> |
|
|
|
<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> |
|
|
|
</Border> |
|
|
|
<DataTrigger Binding="{Binding Selected}" Value="True"> |
|
|
|
<Setter Property="Background" Value="#1581ED"/> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</DataGrid.RowStyle> |
|
|
|
<DataGrid.Columns> |
|
|
|
<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> |
|
|
|
</Border> |
|
|
|
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="2" HorizontalAlignment="Center"> |
|
|
|
<WrapPanel> |
|
|
|
<TextBlock Text="发货日期"/> |
|
|
|
<DatePicker SelectedDate="{Binding Date}" Width="150" Height="40" Margin="-0.2,0,0,0"/> |
|
|
|
</WrapPanel> |
|
|
|
<WrapPanel> |
|
|
|
<TextBlock Text="仓库"/> |
|
|
|
<TextBox x:Name="Store" Text="{Binding Store.Name}" PreviewMouseDown="BaseInfoBox_PreviewMouseDown"/> |
|
|
|
</WrapPanel> |
|
|
|
<WrapPanel> |
|
|
|
<TextBlock Text="扣钩重"/> |
|
|
|
<TextBox x:Name="hook" Text="{Binding HookWeight,StringFormat=\{0:0.######\}}" PreviewMouseDown="NumberBox_PreviewMouseDown"/> |
|
|
|
</WrapPanel> |
|
|
|
<local:SwitchCheckBox x:Name="weightUnit" HorizontalAlignment="Right" Text="头" CheckedText="片" Width="120" Margin="10,0" Click="weightUnit_Click"/> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Grid.Row="1" Grid.Column="2" HorizontalAlignment="Center"> |
|
|
|
<WrapPanel> |
|
|
|
<TextBlock Text="发货日期"/> |
|
|
|
<DatePicker SelectedDate="{Binding Date}" Width="150" Height="40" Margin="-0.2,0,0,0"/> |
|
|
|
</WrapPanel> |
|
|
|
<WrapPanel> |
|
|
|
<TextBlock Text="仓库"/> |
|
|
|
<TextBox x:Name="Store" Text="{Binding Store.Name}" PreviewMouseDown="BaseInfoBox_PreviewMouseDown"/> |
|
|
|
</WrapPanel> |
|
|
|
<WrapPanel> |
|
|
|
<TextBlock Text="扣钩重"/> |
|
|
|
<TextBox x:Name="hook" Text="{Binding HookWeight,StringFormat=\{0:0.######\}}" PreviewMouseDown="NumberBox_PreviewMouseDown"/> |
|
|
|
</WrapPanel> |
|
|
|
<local:SwitchCheckBox x:Name="weightUnit" HorizontalAlignment="Right" Text="头" CheckedText="片" Width="120" Margin="10,0" Click="weightUnit_Click"/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Grid.Row="2" Grid.Column="2"> |
|
|
|
<WrapPanel HorizontalAlignment="Center"> |
|
|
|
<TextBlock Text="称重头数"/> |
|
|
|
<TextBox Text="{Binding StrNumber}"/> |
|
|
|
</WrapPanel> |
|
|
|
<WrapPanel> |
|
|
|
<WrapPanel.Resources> |
|
|
|
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"> |
|
|
|
<Setter Property="Width" Value="95"/> |
|
|
|
<Setter Property="Height" Value="75"/> |
|
|
|
<Setter Property="Margin" Value="5"/> |
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="NumberBtn_PreviewMouseDown"/> |
|
|
|
</Style> |
|
|
|
</WrapPanel.Resources> |
|
|
|
<Button Content="1"/> |
|
|
|
<Button Content="2"/> |
|
|
|
<Button Content="3"/> |
|
|
|
<Button Content="4"/> |
|
|
|
<Button Content="5"/> |
|
|
|
<Button Content="6"/> |
|
|
|
<Button Content="7"/> |
|
|
|
<Button Content="8"/> |
|
|
|
<Button Content="9"/> |
|
|
|
<Button Content="0" Width="200"/> |
|
|
|
<Button Content="./点"/> |
|
|
|
</WrapPanel> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Grid.Row="2" Grid.Column="2"> |
|
|
|
<WrapPanel HorizontalAlignment="Center"> |
|
|
|
<TextBlock Text="称重头数"/> |
|
|
|
<TextBox Text="{Binding StrNumber}"/> |
|
|
|
</WrapPanel> |
|
|
|
<WrapPanel> |
|
|
|
<WrapPanel.Resources> |
|
|
|
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"> |
|
|
|
<Setter Property="Width" Value="95"/> |
|
|
|
<Setter Property="Height" Value="75"/> |
|
|
|
<Setter Property="Margin" Value="5"/> |
|
|
|
<EventSetter Event="PreviewMouseDown" Handler="NumberBtn_PreviewMouseDown"/> |
|
|
|
</Style> |
|
|
|
</WrapPanel.Resources> |
|
|
|
<Button Content="1"/> |
|
|
|
<Button Content="2"/> |
|
|
|
<Button Content="3"/> |
|
|
|
<Button Content="4"/> |
|
|
|
<Button Content="5"/> |
|
|
|
<Button Content="6"/> |
|
|
|
<Button Content="7"/> |
|
|
|
<Button Content="8"/> |
|
|
|
<Button Content="9"/> |
|
|
|
<Button Content="0"/> |
|
|
|
<Button Content="清零"/> |
|
|
|
<Button Content="./点"/> |
|
|
|
</WrapPanel> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<WrapPanel Grid.Row="3" Grid.Column="1" VerticalAlignment="Center"> |
|
|
|
<WrapPanel.Resources> |
|
|
|
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"> |
|
|
|
<Setter Property="Width" Value="120"/> |
|
|
|
<Setter Property="Height" Value="55"/> |
|
|
|
</Style> |
|
|
|
</WrapPanel.Resources> |
|
|
|
<TextBlock Text="送货线路" VerticalAlignment="Center" Margin="20,0,10,0"/> |
|
|
|
<Button x:Name="DriverGoodsLine" PreviewMouseDown="BaseInfoBox_PreviewMouseDown"> |
|
|
|
<Button.Content> |
|
|
|
<TextBlock Text="{Binding DriverGoodsLine.Name}" Style="{x:Null}"/> |
|
|
|
</Button.Content> |
|
|
|
</Button> |
|
|
|
</WrapPanel> |
|
|
|
<WrapPanel Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right"> |
|
|
|
<WrapPanel.Resources> |
|
|
|
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"> |
|
|
|
<Setter Property="Width" Value="120"/> |
|
|
|
<Setter Property="Height" Value="55"/> |
|
|
|
<Setter Property="Margin" Value="10,0"/> |
|
|
|
</Style> |
|
|
|
</WrapPanel.Resources> |
|
|
|
<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> |
|
|
|
<Button Grid.Row="3" Grid.Column="2" Content="称重/读取" Width="120" Height="55" IsEnabled="{Binding CanSave}" PreviewMouseDown="SaveBtn_PreviewMouseDown"/> |
|
|
|
</Grid> |
|
|
|
<WrapPanel Grid.Row="3" Grid.Column="1" VerticalAlignment="Center"> |
|
|
|
<WrapPanel.Resources> |
|
|
|
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"> |
|
|
|
<Setter Property="Width" Value="120"/> |
|
|
|
<Setter Property="Height" Value="55"/> |
|
|
|
</Style> |
|
|
|
</WrapPanel.Resources> |
|
|
|
<TextBlock Text="送货线路" VerticalAlignment="Center" Margin="20,0,10,0"/> |
|
|
|
<Button x:Name="DriverGoodsLine" PreviewMouseDown="DriverGoodsLine_PreviewMouseDown"> |
|
|
|
<Button.Content> |
|
|
|
<TextBlock Text="{Binding DriverGoodsLine.Name}" Style="{x:Null}"/> |
|
|
|
</Button.Content> |
|
|
|
</Button> |
|
|
|
</WrapPanel> |
|
|
|
<WrapPanel Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right"> |
|
|
|
<WrapPanel.Resources> |
|
|
|
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}"> |
|
|
|
<Setter Property="Width" Value="120"/> |
|
|
|
<Setter Property="Height" Value="55"/> |
|
|
|
<Setter Property="Margin" Value="10,0"/> |
|
|
|
</Style> |
|
|
|
</WrapPanel.Resources> |
|
|
|
<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> |
|
|
|
<Button Grid.Row="3" Grid.Column="2" Content="称重/读取" Width="120" Height="55" IsEnabled="{Binding CanSave}" PreviewMouseDown="SaveBtn_PreviewMouseDown"/> |
|
|
|
</Grid> |
|
|
|
</Window> |