WinOrganization.xaml
16.4 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<Window x:Class="XingYe_ACS.UI.WinOrganization"
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:XingYe_ACS.UI"
Title="机构管理" Height="600" Width="1490"
WindowStyle="None" AllowsTransparency="True" Background="Transparent"
WindowStartupLocation="CenterScreen"
Loaded="Window_Loaded" Icon="/XingYe_ACS;component/Image/Icon.ico">
<Border Background="White" BorderThickness="1" BorderBrush="{StaticResource HHLGRed}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid Name="Spl_title" Grid.Row="0" Grid.ColumnSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"
Foreground="{StaticResource HHAst2}" FontSize="20">执 行 机 构 管 理</TextBlock>
<Button Name="BtnClose" Grid.Column="3" Background="{StaticResource HHLGRed}" Foreground="White" Width="20" Margin="2" Click="BtnClose_Click">X</Button>
</Grid>
<StackPanel Height="2" Grid.Row="1" Background="{StaticResource HHLGRed}"></StackPanel>
<StackPanel Height="2" Grid.Row="3" Background="{StaticResource HHLGRed}"></StackPanel>
<TextBlock Grid.Row="4" FontSize="20" HorizontalAlignment="Center"
Foreground="{StaticResource HHAst2}">控制台系统</TextBlock>
<TabControl Grid.Row="2">
<TabItem Header="站台状态显示">
<DataGrid Name="DGrid_Hoister" CanUserAddRows="False" IsReadOnly="True" AutoGenerateColumns="False" Background="Transparent" CanUserDeleteRows="False" GridLinesVisibility="Vertical">
<DataGrid.Columns>
<DataGridTextColumn Header="编号" Binding="{Binding Path=hoisterNo}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridCheckBoxColumn Header="料台有货" Binding="{Binding Path=read_isFull}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="手动还是自动" Binding="{Binding Path=read_isHoisterManual}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="料台允许取" Binding="{Binding Path=read_isGet}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="料台允许放" Binding="{Binding Path=read_isPut}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="料台取货完成" Binding="{Binding Path=read_isHoisterGetFinish}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="料台放货完成" Binding="{Binding Path=read_isHoisterPutFinish}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="料台取货完成确认" Binding="{Binding Path=write_isHoisterGetAck}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="料台放货完成确认" Binding="{Binding Path=write_isHoisterPutAck}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="AGV请求取" Binding="{Binding Path=write_isGet}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="AGV取货到位" Binding="{Binding Path=write_isGetAck}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="AGV取货完成离开" Binding="{Binding Path=write_isAgvGetFinish}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="AGV取货完成离开确认" Binding="{Binding Path=read_isAgvGetAck}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="AGV请求放" Binding="{Binding Path=write_isPut}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="AGV放货到位" Binding="{Binding Path=write_isPutAck}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="AGV放货完成离开" Binding="{Binding Path=write_isAgvPutFinish}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="AGV放货完成离开确认" Binding="{Binding Path=read_isAgvPutAck}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridTextColumn Header="异常报警" Binding="{Binding Path=errorMesg}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem Name="MItem_Hoister" Header="清除AGV取货中信号" Click="MItem_Hoister_Click"></MenuItem>
</ContextMenu>
</DataGrid.ContextMenu>
</DataGrid>
</TabItem>
<TabItem Header="AGV管理">
<DataGrid Name="DGrid_AGV" CanUserAddRows="False" IsReadOnly="True" AutoGenerateColumns="False" Background="Transparent" CanUserDeleteRows="False" GridLinesVisibility="Vertical">
<DataGrid.Columns>
<DataGridTextColumn Header="AgvNo" Binding="{Binding Path=strAgvNo}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="当前码值" Binding="{Binding Path=strBarcode}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="小车匹配充电桩" Binding="{Binding Path=strChooseStation}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="是否有货" Binding="{Binding Path=isCarry}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem Name="MItem_AgvOnline" Header="小车上线" Click="MItem_AgvOnline_Click"></MenuItem>
<MenuItem Name="MItem_AgvOut" Header="小车下线" Click="MItem_AgvOut_Click"></MenuItem>
<!--<MenuItem Name="MItem_UnLockedChargeStation" Header="解除匹配充电桩" Click="MItem_UnLockedChargeStation_Click"></MenuItem>-->
</ContextMenu>
</DataGrid.ContextMenu>
</DataGrid>
</TabItem>
<TabItem Header="充电桩管理">
<DataGrid Name="DGrid_Charge" CanUserAddRows="False" AutoGenerateColumns="False" Background="Transparent"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical">
<DataGrid.Columns>
<DataGridTextColumn Header="编号" Binding="{Binding Path=strStationNo}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="类型" Binding="{Binding Path=stationType}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridCheckBoxColumn Header="是否可用" Binding="{Binding Path=isEnable}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="是否锁定" Binding="{Binding Path=isLocked}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem Name="MItem_Cforbit" Header="禁用" Click="MItem_Cforbit_Click"></MenuItem>
<MenuItem Name="MItem_CEnable" Header="启用" Click="MItem_CEnable_Click"></MenuItem>
<MenuItem Name="MItem_CUnLock" Header="解除锁定" Click="MItem_CUnLock_Click"></MenuItem>
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border BorderThickness="1" BorderBrush="Black" Margin="2">
<StackPanel>
</StackPanel>
</Border>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</TabItem>
<TabItem Header="工位管理">
<DataGrid Name="DGrid_Station" CanUserAddRows="False" AutoGenerateColumns="False" Background="Transparent"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical">
<DataGrid.Columns>
<DataGridTextColumn Header="编号" Binding="{Binding Path=strStationNo}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="名称" Binding="{Binding Path=strRemark}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="类型" Binding="{Binding Path=stationType}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="状态" Binding="{Binding Path=stationState}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridCheckBoxColumn Header="是否锁定" Binding="{Binding Path=isLocked}" CanUserSort="False"></DataGridCheckBoxColumn>
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem Name="MItem_ChangeStationType" Header="更改站台状态" Click="MItem_ChangeStationType_Click"></MenuItem>
<MenuItem Name="MItem_OnEnable" Header="启用" Click="MItem_OnEnable_Click"></MenuItem>
<MenuItem Name="MItem_OffEnable" Header="禁用" Click="MItem_OffEnable_Click"></MenuItem>
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border BorderThickness="1" BorderBrush="Black" Margin="2">
<StackPanel>
</StackPanel>
</Border>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</TabItem>
<TabItem Header="货架管理">
<DataGrid Name="DGrid_Shelf" CanUserAddRows="False" AutoGenerateColumns="False" Background="Transparent"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical">
<DataGrid.Columns>
<DataGridTextColumn Header="编号" Binding="{Binding Path=strShelfNo}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="固定点" Binding="{Binding Path=strBarcode}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="当前点" Binding="{Binding Path=strCurrentBarcode}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="方向" Binding="{Binding Path=oriShelf}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridCheckBoxColumn Header="是否启用" Binding="{Binding Path=isEnable}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
<DataGridCheckBoxColumn Header="是否锁定" Binding="{Binding Path=isLocked}" IsReadOnly="True" CanUserSort="False"></DataGridCheckBoxColumn>
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem Name="MItem_ChangeShelf" Header="更改货架信息" Click="MItem_ChangeShelf_Click"></MenuItem>
<MenuItem Name="MItem_ShelfUnLock" Header="解除锁定" Click="MItem_ShelfUnLock_Click"></MenuItem>
<MenuItem Name="MItem_SelectShelf" Header="查找货架" Click="MItem_SelectShelf_Click"></MenuItem>
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border BorderThickness="1" BorderBrush="Black" Margin="2">
<StackPanel>
</StackPanel>
</Border>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</TabItem>
<TabItem Header="二维码管理">
<DataGrid Name="DGrid_MatixManager" CanUserAddRows="False" AutoGenerateColumns="False" Background="Transparent"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical">
<DataGrid.Columns>
<DataGridTextColumn Header="码值" Binding="{Binding Path=strBarcode}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="X值" Binding="{Binding Path=intX}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
<DataGridTextColumn Header="Y值" Binding="{Binding Path=intY}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<!--<MenuItem Name="MItem_MBarCodeChange" Header="换码" Click="MItem_MBarCodeChange_Click"></MenuItem>-->
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border BorderThickness="1" BorderBrush="Black" Margin="2">
<StackPanel>
</StackPanel>
</Border>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</TabItem>
</TabControl>
</Grid>
</Border>
</Window>