WinStepTraceMaintain.xaml
5.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<win:HideCloseWindow
xmlns:win="clr-namespace:HHECS.WinCommon.Win;assembly=HHECS.WinCommon"
x:Class="HHECS.WinClient.View.TaskInfo.WinStepTraceMaintain"
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:valuerules="clr-namespace:HHECS.WinCommon.ValueRules;assembly=HHECS.WinCommon"
mc:Ignorable="d"
Title="在制品维护" Height="450" Width="800" ResizeMode="NoResize" SizeToContent="WidthAndHeight" Loaded="BaseWindow_Loaded">
<Window.Resources>
<Style TargetType="StackPanel">
<Setter Property="Orientation" Value="Horizontal"></Setter>
<Setter Property="HorizontalAlignment" Value="Center"></Setter>
<Setter Property="Margin" Value="0,5,0,5"></Setter>
</Style>
<Style TargetType="TextBlock" BasedOn="{StaticResource BaseTextBlockStyle}">
<Setter Property="Foreground" Value="Black"/>
<Setter Property="Margin" Value="10,0,0,0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style TargetType="TextBox" BasedOn="{StaticResource BaseTextBoxStyle}">
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style TargetType="Button" BasedOn="{StaticResource BaseButtonStyle}">
<Setter Property="Margin" Value="10,0,0,0"/>
</Style>
<Style TargetType="ComboBox" BasedOn="{StaticResource BaseComboBoxStyle}">
<Setter Property="MinWidth" Value="100"></Setter>
<Setter Property="Height" Value="35"></Setter>
</Style>
</Window.Resources>
<Grid x:Name="Grid1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<ToolBar Grid.Row="0">
<TextBlock>当前任务号:</TextBlock>
<TextBlock Text="{Binding Id}"></TextBlock>
<Button x:Name="BtnRefresh" Click="BtnRefresh_Click">重置所有</Button>
</ToolBar>
<GroupBox Header="任务产品维护" Grid.Row="1" Visibility="Collapsed">
<StackPanel >
<TextBlock>产品ID:</TextBlock>
<ComboBox x:Name="Cbx_ProductId" SelectedValue="{Binding ProductCode}"></ComboBox>
<Button x:Name="BtnEditProductId" Click="BtnEditProductId_Click">修改</Button>
</StackPanel>
</GroupBox>
<!--<GroupBox Header="工序维护" Grid.Row="2" Visibility="Visible">
<StackPanel>
-->
<!--<TextBlock>当前工序:</TextBlock>
-->
<!--<ComboBox x:Name="Cbx_StepId" SelectedValue="{Binding NowProcessRoute}" ></ComboBox>-->
<!--
<ComboBox x:Name="Cbx_StepId" SelectedValue="{Binding NowProcessRoute}" ItemsSource="{Binding ProcessRoutes}" DisplayMemberPath="Key" SelectedValuePath="Value" SelectedIndex="0" HorizontalAlignment="Right" VerticalAlignment="Top" Width="120"/>
<Button x:Name="BtnEditStepIdVM" Click="BtnEditStepIdVM_Click">修改</Button>-->
<!--
<TextBlock>当前工位:</TextBlock>
-->
<!--<ComboBox x:Name="Cbx_StationId" SelectedValue="{Binding NowStation}"></ComboBox>-->
<!--
<ComboBox x:Name="Cbx_StationId" SelectedValue="{Binding NowStation,Mode=TwoWay}" ItemsSource="{Binding Stations}" DisplayMemberPath="Key" SelectedValuePath="Value" HorizontalAlignment="Right" VerticalAlignment="Top" Width="120"/>
<Button x:Name="BtnEditStationIdVM" Click="BtnEditStationIdVM_Click">修改</Button>
</StackPanel>
</GroupBox>
<GroupBox Header="清零维护" Grid.Row="3">
<StackPanel>
-->
<!--<TextBlock>下道工序:</TextBlock>
<TextBlock x:Name="Txt_NextStepIdVM" Text="{Binding NextProcessRoute}" ></TextBlock>
<Button x:Name="BtnEditNextStepIdVM" Click="BtnEditNextStepIdVM_Click">清零</Button>-->
<!--
<TextBlock>下道工位:</TextBlock>
-->
<!--<TextBlock x:Name="Txt_NextStationIdVM" Text="{Binding NextStation}"></TextBlock>-->
<!--
<ComboBox x:Name="Cbx_NextStationId" SelectedValue="{Binding NextStation,Mode=TwoWay}" ItemsSource="{Binding Stations}" DisplayMemberPath="Key" SelectedValuePath="Value" HorizontalAlignment="Right" VerticalAlignment="Top" Width="120"/>
<Button x:Name="BtnEditNextStationIdVM" Click="BtnEditNextStationIdVM_Click">修改</Button>
</StackPanel>
</GroupBox>-->
<GroupBox Header="状态维护" Grid.Row="1">
<StackPanel>
<TextBlock>任务状态:</TextBlock>
<!--<ComboBox x:Name="CbxStatus" SelectedValue="{Binding Status}"></ComboBox>-->
<ComboBox x:Name="CbxStatus" SelectedValue="{Binding Status,Mode=TwoWay}" ItemsSource="{Binding Statuss}" DisplayMemberPath="Key" SelectedValuePath="Value" HorizontalAlignment="Right" VerticalAlignment="Top" Width="120"/>
<Button x:Name="BtnEditStatus" Click="BtnEditStatus_Click">修改</Button>
</StackPanel>
</GroupBox>
</Grid>
</win:HideCloseWindow>