+28
-28
@@ -35,25 +35,25 @@ Public Class GLBankVC
|
||||
Frame.GetController(Of GLBankVC).aRecalculateBallance.Active.SetItemValue("", False)
|
||||
|
||||
If View.Id Like "GLHeader_GLRows_ListView_Bank" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of ListViewProcessCurrentObjectController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController)()?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)()?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController)()?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController)()?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of ListViewProcessCurrentObjectController)?.Active.SetItemValue("", False)
|
||||
|
||||
Dim nv As ListView = CType(View, ListView)
|
||||
Dim cs As PropertyCollectionSource = CType(nv.CollectionSource, PropertyCollectionSource)
|
||||
AddHandler cs.MasterObjectChanged, AddressOf cs_MasterObjectChanged
|
||||
End If
|
||||
If View.Id = "GLBank_DetailView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController)?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController)()?.Active.SetItemValue("", False)
|
||||
Dim _GLBank As GLBank = TryCast(View.CurrentObject, GLBank)
|
||||
If _GLBank Is Nothing Then
|
||||
Else
|
||||
|
||||
If _GLBank.IsEditable = False Then
|
||||
Frame.GetController(Of ModificationsController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of ModificationsController)?.Active.SetItemValue("", False)
|
||||
|
||||
Frame.GetController(Of GLBankVC).aFinal_GLBank.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of GLBankVC).aFinalAndNew_GLBank.Active.SetItemValue("", False)
|
||||
@@ -73,30 +73,30 @@ Public Class GLBankVC
|
||||
End If
|
||||
End If
|
||||
If _GLBank.IsStorno = True Then
|
||||
Frame.GetController(Of ModificationsController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of ModificationsController)?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController)?.Active.SetItemValue("", False)
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
If View.Id = "GLBank_ListView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController)?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController)()?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of GLBankVC).aMakeEditable_GLBank.Active.SetItemValue("", True)
|
||||
Frame.GetController(Of GLBankVC).aRecalculateBallance.Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "GLBank_ListView_Editable" Then
|
||||
AddHandler Frame.GetController(Of DeleteObjectsViewController).DeleteAction.Executed, AddressOf GLBank_DeleteAction_Executed
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController)()?.Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "PCIGroup_ListView_HUF" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController)()?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)()?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController)()?.Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "GLBankPrepareName_GLBankPrepareNameGroup_ListView" Then
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController)?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController)?.Active.SetItemValue("", False)
|
||||
AddHandler View.SelectionChanged, AddressOf view_SelectionChanged
|
||||
End If
|
||||
|
||||
@@ -109,23 +109,23 @@ Public Class GLBankVC
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
If View.Id = "GLBank_ListView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DeleteObjectsViewController)?.Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id Like "GLHeader_GLRows_ListView_Bank" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DeleteObjectsViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of ListViewProcessCurrentObjectController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of LinkUnlinkController)()?.Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)()?.Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DeleteObjectsViewController)()?.Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController)()?.Active.SetItemValue("", True)
|
||||
Frame.GetController(Of ListViewProcessCurrentObjectController)?.Active.SetItemValue("", True)
|
||||
|
||||
Dim nv As ListView = CType(View, ListView)
|
||||
Dim cs As PropertyCollectionSource = CType(nv.CollectionSource, PropertyCollectionSource)
|
||||
RemoveHandler cs.MasterObjectChanged, AddressOf cs_MasterObjectChanged
|
||||
End If
|
||||
If View.Id = "PCIGroup_ListView_HUF" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DeleteObjectsViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of LinkUnlinkController)()?.Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)()?.Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DeleteObjectsViewController)()?.Active.SetItemValue("", True)
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Reference in New Issue
Block a user