You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
675 lines
32 KiB
XML
675 lines
32 KiB
XML
<Window
|
|
x:Class="XGLFinishPro.Views.ExecReportWorkWin"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:convert="clr-namespace:XGLFinishPro.Tools"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
xmlns:local="clr-namespace:XGLFinishPro.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
Title="CheckUserWin"
|
|
Width="1350"
|
|
Height="750"
|
|
Loaded="Window_Loaded"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowStyle="None"
|
|
mc:Ignorable="d">
|
|
<Window.Resources>
|
|
<ResourceDictionary>
|
|
|
|
<!-- ComboBox下拉按钮 -->
|
|
<Style x:Key="ComboxStyleBtn" TargetType="ToggleButton">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Border
|
|
x:Name="Back"
|
|
Background="#F7FDF7"
|
|
BorderBrush="Transparent"
|
|
BorderThickness="1">
|
|
<Path
|
|
Name="PathFill"
|
|
Width="8"
|
|
Height="6"
|
|
Data="M5,0 L10,10 L0,10 z"
|
|
Fill="Blue"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Stretch="Fill"
|
|
StrokeThickness="0">
|
|
<Path.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform />
|
|
<SkewTransform />
|
|
<RotateTransform Angle="180" />
|
|
<TranslateTransform />
|
|
</TransformGroup>
|
|
</Path.RenderTransform>
|
|
</Path>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="PathFill" Property="Fill" Value="White" />
|
|
<Setter TargetName="Back" Property="Background" Value="#3697A4" />
|
|
<Setter TargetName="Back" Property="BorderBrush" Value="#3697A4" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ComboBoxStyle" TargetType="ComboBox">
|
|
<Setter Property="ItemContainerStyle">
|
|
<Setter.Value>
|
|
<!-- ComBoxItem #59CA4F #81D779 -->
|
|
<Style TargetType="ComboBoxItem">
|
|
<Setter Property="Height" Value="60" />
|
|
<Setter Property="MinHeight" Value="22" />
|
|
<Setter Property="MinWidth" Value="60" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ComboBoxItem">
|
|
<Border
|
|
Name="Back"
|
|
Background="Transparent"
|
|
BorderBrush="Blue"
|
|
BorderThickness="0,0,0,0"
|
|
CornerRadius="5,5,5,5"
|
|
RenderTransformOrigin="0.5,0.5">
|
|
<ContentPresenter
|
|
Margin="5,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
ContentSource="{Binding Source}" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Back" Property="Background" Value="LightGray" />
|
|
</Trigger>
|
|
<Trigger Property="IsHighlighted" Value="True">
|
|
<Setter TargetName="Back" Property="Background" Value="LightGray" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ComboBox">
|
|
<Grid Background="#F7FDF7">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="0.7*" />
|
|
<ColumnDefinition Width="0.3*" MaxWidth="30" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBox
|
|
x:Name="PART_EditableTextBox"
|
|
Grid.Column="0"
|
|
VerticalContentAlignment="Center"
|
|
FontSize="18"
|
|
IsReadOnly="{TemplateBinding IsReadOnly}"
|
|
Text="{TemplateBinding Text}" />
|
|
<Border
|
|
Grid.Column="0"
|
|
BorderBrush="LightGray"
|
|
BorderThickness="1,1,0,1"
|
|
CornerRadius="1,0,0,1" />
|
|
<Border
|
|
Grid.Column="1"
|
|
BorderBrush="LightGray"
|
|
BorderThickness="0,1,1,1"
|
|
CornerRadius="0,1,1,0">
|
|
<ToggleButton
|
|
ClickMode="Press"
|
|
IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Style="{StaticResource ComboxStyleBtn}" />
|
|
</Border>
|
|
<Popup
|
|
x:Name="Popup"
|
|
AllowsTransparency="True"
|
|
Focusable="False"
|
|
IsOpen="{TemplateBinding IsDropDownOpen}"
|
|
Placement="Bottom"
|
|
PopupAnimation="Slide">
|
|
<Border
|
|
x:Name="DropDown"
|
|
MinWidth="{TemplateBinding ActualWidth}"
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
|
CornerRadius="1"
|
|
SnapsToDevicePixels="True">
|
|
<Border.Effect>
|
|
<DropShadowEffect
|
|
BlurRadius="2"
|
|
Opacity="0.5"
|
|
ShadowDepth="0"
|
|
Color="Black" />
|
|
</Border.Effect>
|
|
<ScrollViewer
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
|
Margin="4,6,4,6"
|
|
CanContentScroll="True"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
SnapsToDevicePixels="True"
|
|
Style="{DynamicResource ScrollViewerStyle}"
|
|
VerticalScrollBarVisibility="Auto">
|
|
<!-- StackPanel 用于显示子级,方法是将 IsItemsHost 设置为 True -->
|
|
<StackPanel
|
|
Background="White"
|
|
IsItemsHost="True"
|
|
KeyboardNavigation.DirectionalNavigation="Contained" />
|
|
</ScrollViewer>
|
|
</Border>
|
|
</Popup>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="Height" Value="40" />
|
|
<Setter Property="Margin" Value="5" />
|
|
<Setter Property="Background" Value="Red" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="TextBox">
|
|
<Border
|
|
Background="#f2f3f5"
|
|
BorderThickness="2"
|
|
CornerRadius="8">
|
|
<ScrollViewer x:Name="PART_ContentHost" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="Label">
|
|
<Setter Property="Margin" Value="15,0,0,0" />
|
|
<Setter Property="Foreground" Value="Black" />
|
|
</Style>
|
|
<Style x:Key="CustomCellStyle" TargetType="DataGridCell">
|
|
<Setter Property="Foreground" Value="Black" />
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center" />
|
|
<Setter Property="TextBlock.FontSize" Value="22" />
|
|
<Setter Property="BorderThickness" Value="0,0,1,1" />
|
|
|
|
</Style>
|
|
<SolidColorBrush x:Key="EvenRowBackground" Color="#E0E0E0" />
|
|
<SolidColorBrush x:Key="OddRowBackground" Color="#FFFFFF" />
|
|
<Style x:Key="DataGridRowStyle" TargetType="DataGridRow">
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="BorderBrush" Value="LightGray" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="Background" Value="{StaticResource EvenRowBackground}" />
|
|
<Style.Triggers>
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
|
|
<Setter Property="Background" Value="{StaticResource OddRowBackground}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="btnKey" TargetType="Button">
|
|
<Setter Property="Width" Value="120" />
|
|
<Setter Property="Height" Value="43" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="FontSize" Value="22" />
|
|
<Setter Property="FontWeight" Value="Bold" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Right" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
x:Name="Back"
|
|
Background="#2B7EE6"
|
|
BorderThickness="2"
|
|
CornerRadius="10">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Back" Property="Background" Value="#3697A4" />
|
|
<Setter TargetName="Back" Property="BorderBrush" Value="#3697A4" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
</Style>
|
|
<Style x:Key="btnCancelKey" TargetType="Button">
|
|
<Setter Property="Width" Value="120" />
|
|
<Setter Property="Height" Value="43" />
|
|
<Setter Property="Foreground" Value="Black" />
|
|
<Setter Property="FontSize" Value="22" />
|
|
<Setter Property="FontWeight" Value="Bold" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Right" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
x:Name="Back"
|
|
Background="#f2f3f5"
|
|
BorderThickness="2"
|
|
CornerRadius="10">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Back" Property="Background" Value="#3697A4" />
|
|
<Setter TargetName="Back" Property="BorderBrush" Value="#3697A4" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40" />
|
|
<RowDefinition Height="200" />
|
|
<RowDefinition Height="500" />
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
x:Name="lbTitle"
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="报工"
|
|
FontSize="24"
|
|
FontWeight="Bold"
|
|
Foreground="Black" />
|
|
<ScrollViewer
|
|
x:Name="scrollViewer"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
VerticalScrollBarVisibility="Auto">
|
|
|
|
<Grid
|
|
x:Name="MyGrid"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Label
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="当前工单:"
|
|
FontSize="24" />
|
|
<Label
|
|
x:Name="lbCurrOrderNo"
|
|
Grid.Row="1"
|
|
Width="260"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="202311010001"
|
|
FontSize="24" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Label
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="报工数量:"
|
|
FontSize="24" />
|
|
<TextBox
|
|
x:Name="txtQuantity"
|
|
Grid.Row="1"
|
|
Width="260"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="24"
|
|
TextChanged="txtQuantity_TextChanged" />
|
|
<Button
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Margin="20,0"
|
|
Click="ReadOrder_Click"
|
|
Content="获取"
|
|
Style="{StaticResource btnKey}" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Label
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="辅助工时:"
|
|
FontSize="24" />
|
|
<TextBox
|
|
x:Name="txtWorkTime"
|
|
Grid.Row="1"
|
|
Width="260"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="24"
|
|
TextChanged="txtWorkTime_TextChanged" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Label
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="辅助人数:"
|
|
FontSize="24" />
|
|
<TextBox
|
|
x:Name="txtUserCount"
|
|
Grid.Row="1"
|
|
Width="260"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="24"
|
|
TextChanged="txtUserCount_TextChanged" />
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<!--<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Row="3" Grid.Column="1">
|
|
<Label Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="24" Content="母单人数:"></Label>
|
|
<TextBox x:Name="txtFOUserCount" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="24" Width="260" TextChanged="txtFOUserCount_TextChanged"></TextBox>
|
|
</StackPanel>-->
|
|
<StackPanel
|
|
Grid.Row="13"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Label
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="成本中心:"
|
|
FontSize="24" />
|
|
<ComboBox
|
|
x:Name="comboBoxCostCenter"
|
|
Grid.Row="1"
|
|
Width="360"
|
|
Height="50"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="24"
|
|
SelectionChanged="comboBoxCostCenter_SelectionChanged"
|
|
Style="{StaticResource ComboBoxStyle}" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Row="13"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Label
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="批 次 号:"
|
|
FontSize="24" />
|
|
<ComboBox
|
|
x:Name="comboBoxBatch"
|
|
Grid.Row="1"
|
|
Width="360"
|
|
Height="50"
|
|
Margin="2,5,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="24"
|
|
Style="{StaticResource ComboBoxStyle}" />
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
Foreground="Red"
|
|
Text="* 不选批次号则默认为该工单报工
* 不选批次号则无法创建批次成品检验任务"
|
|
TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
|
|
|
|
</Grid>
|
|
</ScrollViewer>
|
|
<!--<Grid.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FF2281D1"></GradientStop>
|
|
<GradientStop Color="AliceBlue" Offset="0.8"></GradientStop>
|
|
<GradientStop Color="AliceBlue" Offset="1"></GradientStop>
|
|
</LinearGradientBrush>
|
|
</Grid.Background>-->
|
|
<Grid Grid.Row="2" Grid.ColumnSpan="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="380" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<DataGrid
|
|
x:Name="dgConsumeInfo"
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="2"
|
|
AlternatingRowBackground="LightGray"
|
|
AutoGenerateColumns="False"
|
|
Background="#0000"
|
|
CanUserAddRows="False"
|
|
CellEditEnding="dgConsumeInfo_CellEditEnding"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
GridLinesVisibility="All"
|
|
HeadersVisibility="Column"
|
|
HorizontalGridLinesBrush="AliceBlue"
|
|
LoadingRow="dgConsumeInfo_LoadingRow"
|
|
MinRowHeight="35"
|
|
RowBackground="White"
|
|
RowStyle="{StaticResource DataGridRowStyle}"
|
|
SelectionMode="Single"
|
|
VerticalGridLinesBrush="AliceBlue">
|
|
<DataGrid.ColumnHeaderStyle>
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="Height" Value="48" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
<Setter Property="Foreground" Value="Gray" />
|
|
<Setter Property="Background" Value="#f7f9fe" />
|
|
</Style>
|
|
</DataGrid.ColumnHeaderStyle>
|
|
<DataGrid.Columns>
|
|
<DataGridTemplateColumn
|
|
Width="50"
|
|
MinWidth="10"
|
|
Header=" 序号"
|
|
IsReadOnly="True">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type DataGridRow}}, Path=Header}" />
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<!-- 如果新增列,需要调整用量的取值序号 -->
|
|
<DataGridTextColumn
|
|
Width="250"
|
|
Binding="{Binding material_code1}"
|
|
Header="组件编码"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="250"
|
|
Binding="{Binding material_code}"
|
|
Header="组件编码"
|
|
IsReadOnly="True"
|
|
Visibility="Hidden" />
|
|
<DataGridTextColumn
|
|
Width="350"
|
|
Binding="{Binding material_name}"
|
|
Header="组件名称"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="100"
|
|
Binding="{Binding unit}"
|
|
Header="单位"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="100"
|
|
Binding="{Binding recoil}"
|
|
Header="反冲标识"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="120"
|
|
Binding="{Binding quantity}"
|
|
Header="领取数"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="120"
|
|
Binding="{Binding qty}"
|
|
Header="实际用量"
|
|
IsReadOnly="False" />
|
|
<DataGridTextColumn
|
|
Width="120"
|
|
Binding="{Binding wastage}"
|
|
Header="损耗"
|
|
IsReadOnly="False" />
|
|
<DataGridTextColumn
|
|
Width="100"
|
|
Binding="{Binding parent_work_order}"
|
|
Header="母单"
|
|
IsReadOnly="True"
|
|
Visibility="Hidden" />
|
|
<DataGridTextColumn
|
|
Width="180"
|
|
Binding="{Binding workorder_code_sap}"
|
|
Header="母单"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="100"
|
|
Binding="{Binding remark}"
|
|
Header="备注"
|
|
IsReadOnly="False" />
|
|
|
|
<!--<DataGridTextColumn Width="250" Header="物料组" Binding="{Binding productGroup}" IsReadOnly="True"/>
|
|
<DataGridTextColumn Width="250" Header="组名称" Binding="{Binding productGroupName}" IsReadOnly="True"/>-->
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
<Label
|
|
x:Name="tbMsg"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
Width="600"
|
|
Height="40"
|
|
VerticalAlignment="Center"
|
|
HorizontalContentAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
FontSize="24"
|
|
FontWeight="Bold"
|
|
Foreground="Red" />
|
|
<CheckBox
|
|
Name="xuanze9"
|
|
Grid.Row="2"
|
|
Height="auto"
|
|
Margin="15,20,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalContentAlignment="Center"
|
|
Checked="xuanze9_Checked"
|
|
Click="xuanze9_Click"
|
|
Content="最终报工"
|
|
FontSize="10"
|
|
IsChecked="False"
|
|
ToolTip="选择后将结束该工单">
|
|
<CheckBox.LayoutTransform>
|
|
<ScaleTransform ScaleX="2" ScaleY="2" />
|
|
</CheckBox.LayoutTransform>
|
|
</CheckBox>
|
|
<Label
|
|
Grid.Row="2"
|
|
Margin="230,20,313,0"
|
|
Content="效率原因:"
|
|
FontSize="24" />
|
|
<ComboBox
|
|
x:Name="xiaolv"
|
|
Grid.Row="2"
|
|
Margin="362,20,112,0"
|
|
FontSize="24"
|
|
Style="{StaticResource ComboBoxStyle}" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Margin="10,20,545,0"
|
|
Content="影响时间:"
|
|
FontSize="24" />
|
|
<TextBox
|
|
x:Name="txtWorkTime2"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Margin="135,20,328,7"
|
|
FontSize="24" />
|
|
<Button
|
|
x:Name="btnOK"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Margin="30,20,20,0"
|
|
Click="btnOK_Click"
|
|
Content="确定"
|
|
Style="{StaticResource btnKey}" />
|
|
<Button
|
|
x:Name="yingxiang"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Margin="30,20,170,0"
|
|
Background="Gray"
|
|
Click="btnCancel_Click"
|
|
Content="取消"
|
|
Style="{StaticResource btnCancelKey}" />
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|