+10
-10
@@ -23,11 +23,11 @@ Public Class RegistryRowsFinancialVC
|
||||
Protected Overrides Sub OnActivated()
|
||||
MyBase.OnActivated()
|
||||
If View.Id = "RegistryRowsFinancial_DetailView" Then
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)?.Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "RegistryHeader_RegistryRowsFinancial_ListView" Then
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController)?.Active.SetItemValue("", False)
|
||||
|
||||
'If TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject IsNot Nothing Then
|
||||
' Dim _RegistryHeader As RegistryHeader = TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject
|
||||
@@ -47,11 +47,11 @@ Public Class RegistryRowsFinancialVC
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
If View.Id = "RegistryRowsFinancial_DetailView" Then
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)?.Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "RegistryHeader_RegistryRowsFinancial_ListView" Then
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)?.Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DeleteObjectsViewController)?.Active.SetItemValue("", True)
|
||||
|
||||
'If TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject IsNot Nothing Then
|
||||
' Dim _RegistryHeader As RegistryHeader = TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject
|
||||
@@ -100,22 +100,22 @@ Public Class RegistryRowsFinancialVC
|
||||
If _RegistryHeader Is Nothing Then Exit Sub
|
||||
If _RegistryHeader.CurrentWorkflowSystemSteps Is Nothing Then Exit Sub
|
||||
'// Mikor NE látszódjon a NEW action
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)?.Active.SetItemValue("", False)
|
||||
If _RegistryHeader.CurrentWorkflowSystemSteps.StepFinancialType = eStepFinancialType.eCheckVAT Or _
|
||||
_RegistryHeader.CurrentWorkflowSystemSteps.StepFinancialType = eStepFinancialType.eCheckVATPlusControlling Then
|
||||
If _RegistryHeader.IsEditable = True Then
|
||||
If _RegistryHeader.BruttoAmountRemaining <> 0.0 Then
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)?.Active.SetItemValue("", True)
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
'// Mikor NE látszódjon a törlés gomb
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController)?.Active.SetItemValue("", False)
|
||||
If _RegistryHeader.CurrentWorkflowSystemSteps.StepFinancialType = eStepFinancialType.eCheckVAT Or _
|
||||
_RegistryHeader.CurrentWorkflowSystemSteps.StepFinancialType = eStepFinancialType.eCheckVATPlusControlling Then
|
||||
If _RegistryHeader.IsEditable = True Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DeleteObjectsViewController)?.Active.SetItemValue("", True)
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
Reference in New Issue
Block a user