修复升降级别问题
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -268,7 +268,7 @@ Namespace UTSModule.Station
|
|||||||
CanDelete = True
|
CanDelete = True
|
||||||
CanChangeLever = True
|
CanChangeLever = True
|
||||||
Case RowTypeEnum.Flow
|
Case RowTypeEnum.Flow
|
||||||
CanAddChildNode = False
|
CanAddChildNode = True
|
||||||
CanChangeContent = True
|
CanChangeContent = True
|
||||||
CanDelete = True
|
CanDelete = True
|
||||||
CanChangeLever = True
|
CanChangeLever = True
|
||||||
|
|||||||
@@ -1392,7 +1392,6 @@ Namespace UTSModule.Station
|
|||||||
Public Sub SetNodeRecordShowMode(recode As Boolean)
|
Public Sub SetNodeRecordShowMode(recode As Boolean)
|
||||||
If _headNode Is Nothing Then Return
|
If _headNode Is Nothing Then Return
|
||||||
|
|
||||||
' _grd.AutoRedraw = False
|
|
||||||
LockGridAutoRedraw()
|
LockGridAutoRedraw()
|
||||||
|
|
||||||
For i As Integer = 0 To _headNode.RowList.Count - 1
|
For i As Integer = 0 To _headNode.RowList.Count - 1
|
||||||
@@ -1414,8 +1413,7 @@ Namespace UTSModule.Station
|
|||||||
Next
|
Next
|
||||||
|
|
||||||
UnLockGridAutoRedraw()
|
UnLockGridAutoRedraw()
|
||||||
'_grd.AutoRedraw = True
|
|
||||||
'_grd.Refresh()
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub SetNodeExpand(expand As Boolean)
|
Public Sub SetNodeExpand(expand As Boolean)
|
||||||
@@ -1427,27 +1425,11 @@ Namespace UTSModule.Station
|
|||||||
If _headNode.RowList(i).RowType = RowNode.RowTypeEnum.FixedModule Then
|
If _headNode.RowList(i).RowType = RowNode.RowTypeEnum.FixedModule Then
|
||||||
_grd.Row(i).Visible = True
|
_grd.Row(i).Visible = True
|
||||||
|
|
||||||
'隐藏Main节点的子节点
|
|
||||||
'_headNode.RowList(i).Expanded = expand
|
|
||||||
'For Each node As RowNode In _headNode.RowList(i).Children
|
|
||||||
' _grd.Row(node.RowListIndex).Visible = expand
|
|
||||||
'Next
|
|
||||||
ElseIf _headNode.RowList(i).RowType = RowNode.RowTypeEnum.Module Then
|
ElseIf _headNode.RowList(i).RowType = RowNode.RowTypeEnum.Module Then
|
||||||
_headNode.RowList(i).Expanded = expand
|
_headNode.RowList(i).Expanded = expand
|
||||||
|
|
||||||
For Each node As RowNode In _headNode.RowList(i).Children
|
For Each node As RowNode In _headNode.RowList(i).Children
|
||||||
_grd.Row(node.RowListIndex).Visible = expand
|
_grd.Row(node.RowListIndex).Visible = expand
|
||||||
|
|
||||||
|
|
||||||
'If expand Then
|
|
||||||
' If String.IsNullOrEmpty(node.Description) AndAlso String.IsNullOrEmpty(node.CommandType) Then
|
|
||||||
' _grd.Row(node.RowListIndex).Visible = False
|
|
||||||
' Else
|
|
||||||
' _grd.Row(node.RowListIndex).Visible = True
|
|
||||||
' End If
|
|
||||||
'Else
|
|
||||||
' _grd.Row(node.RowListIndex).Visible = False
|
|
||||||
'End If
|
|
||||||
Next
|
Next
|
||||||
Else
|
Else
|
||||||
If expand Then
|
If expand Then
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user