Zooflow: fix new record button
This commit is contained in:
parent
6ffc699fb1
commit
41b0cd535c
@ -48,13 +48,11 @@ Public Class ClassDetailForm
|
|||||||
}},
|
}},
|
||||||
{PAGE_IDB_ATTRIBUTE_REL, New DetailSettings With {
|
{PAGE_IDB_ATTRIBUTE_REL, New DetailSettings With {
|
||||||
.GridTitle = "Attribute-Relations",
|
.GridTitle = "Attribute-Relations",
|
||||||
.NewRecordTitle = "",
|
|
||||||
.[Module] = MODULE_IDB,
|
.[Module] = MODULE_IDB,
|
||||||
.Entity = PAGE_IDB_ATTRIBUTES
|
.Entity = PAGE_IDB_ATTRIBUTES
|
||||||
}},
|
}},
|
||||||
{PAGE_GI_RELATIONS, New DetailSettings With {
|
{PAGE_GI_RELATIONS, New DetailSettings With {
|
||||||
.GridTitle = "Globix profile-relations",
|
.GridTitle = "Globix profile-relations",
|
||||||
.NewRecordTitle = "",
|
|
||||||
.[Module] = MODULE_GI,
|
.[Module] = MODULE_GI,
|
||||||
.Entity = PAGE_GI_RELATIONS
|
.Entity = PAGE_GI_RELATIONS
|
||||||
}},
|
}},
|
||||||
@ -66,13 +64,11 @@ Public Class ClassDetailForm
|
|||||||
}},
|
}},
|
||||||
{PAGE_IDB_DOCTYPE, New DetailSettings With {
|
{PAGE_IDB_DOCTYPE, New DetailSettings With {
|
||||||
.GridTitle = "Doctype Configuration",
|
.GridTitle = "Doctype Configuration",
|
||||||
.NewRecordTitle = "New Doctype",
|
|
||||||
.[Module] = MODULE_IDB,
|
.[Module] = MODULE_IDB,
|
||||||
.Entity = PAGE_IDB_DOCTYPE
|
.Entity = PAGE_IDB_DOCTYPE
|
||||||
}},
|
}},
|
||||||
{PAGE_IDB_DOCTYPE_BE, New DetailSettings With {
|
{PAGE_IDB_DOCTYPE_BE, New DetailSettings With {
|
||||||
.GridTitle = "Doctype BE Relations",
|
.GridTitle = "Doctype BE Relations",
|
||||||
.NewRecordTitle = "New Relation",
|
|
||||||
.[Module] = MODULE_IDB,
|
.[Module] = MODULE_IDB,
|
||||||
.Entity = PAGE_IDB_DOCTYPE_BE
|
.Entity = PAGE_IDB_DOCTYPE_BE
|
||||||
}},
|
}},
|
||||||
@ -283,7 +279,11 @@ Public Class ClassDetailForm
|
|||||||
Public Property GridTitle As String
|
Public Property GridTitle As String
|
||||||
Public Property [Module] As String
|
Public Property [Module] As String
|
||||||
Public Property Entity As String
|
Public Property Entity As String
|
||||||
Public Property NewRecordTitle As String
|
|
||||||
|
''' <summary>
|
||||||
|
''' If this is empty, the button "New Record will be hidden"
|
||||||
|
''' </summary>
|
||||||
|
Public Property NewRecordTitle As String = ""
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class DetailData
|
Public Class DetailData
|
||||||
|
|||||||
@ -439,7 +439,6 @@ Partial Class frmAdmin_Start
|
|||||||
Me.TreeListMenu.AppendNode(New Object() {"User Management"}, -1, 11, 11, -1)
|
Me.TreeListMenu.AppendNode(New Object() {"User Management"}, -1, 11, 11, -1)
|
||||||
Me.TreeListMenu.AppendNode(New Object() {"User List"}, 16, 5, 5, -1, "USERS_USERLIST")
|
Me.TreeListMenu.AppendNode(New Object() {"User List"}, 16, 5, 5, -1, "USERS_USERLIST")
|
||||||
Me.TreeListMenu.AppendNode(New Object() {"Group List"}, 16, 12, 12, -1, "USERS_GROUPLIST")
|
Me.TreeListMenu.AppendNode(New Object() {"Group List"}, 16, 12, 12, -1, "USERS_GROUPLIST")
|
||||||
Me.TreeListMenu.AppendNode(New Object() {"Module List"}, 16, 13, 13, -1, "USERS_MODULELIST")
|
|
||||||
Me.TreeListMenu.EndUnboundLoad()
|
Me.TreeListMenu.EndUnboundLoad()
|
||||||
Me.TreeListMenu.OptionsBehavior.Editable = False
|
Me.TreeListMenu.OptionsBehavior.Editable = False
|
||||||
Me.TreeListMenu.OptionsView.ShowColumns = False
|
Me.TreeListMenu.OptionsView.ShowColumns = False
|
||||||
|
|||||||
@ -288,9 +288,6 @@
|
|||||||
<metadata name="DSIDB_Stammdaten.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="DSIDB_Stammdaten.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>531, 17</value>
|
<value>531, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="DSIDB_Stammdaten.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>531, 17</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="TableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="TableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>1043, 17</value>
|
<value>1043, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|||||||
@ -7,6 +7,7 @@ Imports DigitalData.Modules.Logging
|
|||||||
Imports DigitalData.Modules.Language.Utils
|
Imports DigitalData.Modules.Language.Utils
|
||||||
Imports DigitalData.GUIs.ZooFlow.Administration.ClassConstants
|
Imports DigitalData.GUIs.ZooFlow.Administration.ClassConstants
|
||||||
Imports DevExpress.XtraGrid
|
Imports DevExpress.XtraGrid
|
||||||
|
Imports DevExpress.XtraBars
|
||||||
|
|
||||||
Public Class frmAdmin_Start
|
Public Class frmAdmin_Start
|
||||||
Private CurrentModule As String
|
Private CurrentModule As String
|
||||||
@ -94,14 +95,6 @@ Public Class frmAdmin_Start
|
|||||||
If Handle_LoadPage(e.Node.Tag.ToString) Then
|
If Handle_LoadPage(e.Node.Tag.ToString) Then
|
||||||
RibbonPageGroup1.Enabled = True
|
RibbonPageGroup1.Enabled = True
|
||||||
CurrentPage = e.Node.Tag.ToString
|
CurrentPage = e.Node.Tag.ToString
|
||||||
btnAddRecord.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
|
|
||||||
Select Case CurrentPage
|
|
||||||
Case PAGE_IDB_DOCTYPE
|
|
||||||
btnAddRecord.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
|
|
||||||
Case PAGE_IDB_DOCTYPE_BE
|
|
||||||
btnAddRecord.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
|
|
||||||
|
|
||||||
End Select
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user