+12
-12
@@ -27,12 +27,12 @@ Public Class RegistryRowsFinancialControllingVC
|
||||
Protected Overrides Sub OnActivated()
|
||||
MyBase.OnActivated()
|
||||
If View.Id Like "RegistryRowsFinancialControlling_ListView_Reinvoice*" 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)
|
||||
End If
|
||||
If View.Id = "RegistryHeader_RegistryRowsFinancialControlling_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
|
||||
@@ -54,12 +54,12 @@ Public Class RegistryRowsFinancialControllingVC
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
If View.Id Like "RegistryRowsFinancialControlling_ListView_Reinvoice*" 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)
|
||||
End If
|
||||
If View.Id = "RegistryHeader_RegistryRowsFinancialControlling_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
|
||||
' If _RegistryHeader IsNot Nothing Then
|
||||
@@ -119,22 +119,22 @@ Public Class RegistryRowsFinancialControllingVC
|
||||
If _RegistryHeader Is Nothing Then Exit Sub
|
||||
If _RegistryHeader.CurrentWorkflowSystemSteps Is Nothing Then Exit Sub
|
||||
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)?.Active.SetItemValue("", False)
|
||||
If _RegistryHeader.CurrentWorkflowSystemSteps.StepFinancialType = eStepFinancialType.eCheckVATPlusControlling Then
|
||||
If _RegistryHeader.IsEditable = True Then
|
||||
If _RegistryHeader.BruttoAmountRemaining = 0 And _RegistryHeader.F_AmountBruttoHUF <> 0 Then
|
||||
If _RegistryHeader.NettoAmountRemaining <> 0 Then
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)?.Active.SetItemValue("", True)
|
||||
End If
|
||||
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.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