First create solution
This commit is contained in:
@@ -0,0 +1,147 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
|
||||
Imports DevExpress.Xpo
|
||||
Imports DevExpress.Data.Filtering
|
||||
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.Persistent.Base
|
||||
Imports DevExpress.Persistent.BaseImpl
|
||||
Imports DevExpress.Persistent.Validation
|
||||
Imports DevExpress.ExpressApp.ConditionalAppearance
|
||||
|
||||
Public Enum DashboardViewMode
|
||||
Viewer = 0
|
||||
Designer = 1
|
||||
End Enum
|
||||
|
||||
<DefaultClassOptions()> _
|
||||
<CreatableItem(False)> _
|
||||
<NavigationItem(False)> _
|
||||
<NonPersistent()> _
|
||||
<Appearance("Hide DashboardDesigner, when DashboardViewMode = 0", AppearanceItemType.ViewItem, "DashboardViewMode = 0", TargetItems:="DashboardDesigner", visibility:=Editors.ViewItemVisibility.Hide)> _
|
||||
<Appearance("Hide DashboardViewer, when DashboardViewMode = 1", AppearanceItemType.ViewItem, "DashboardViewMode = 1", TargetItems:="DashboardViewer", visibility:=Editors.ViewItemVisibility.Hide)> _
|
||||
Public Class Dashboard
|
||||
Inherits BaseObject
|
||||
|
||||
Private _DashboardViewMode As DashboardViewMode
|
||||
Private _DashboardViewer As String
|
||||
Private _DashboardDesigner As String
|
||||
Private _SQLServer As String
|
||||
Private _SQLType As eSQLType
|
||||
Private _Database As String
|
||||
Private _UserName As String
|
||||
Private _Password As String
|
||||
Private _XMLFileData As FileData
|
||||
Private _Object_Oid As String
|
||||
Private _Object_Type As System.Type
|
||||
Private _IsNewDashboard As Boolean
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
IsNewDashboard = False
|
||||
End Sub
|
||||
|
||||
<ImmediatePostData()> _
|
||||
Property DashboardViewMode As DashboardViewMode
|
||||
Get
|
||||
Return _DashboardViewMode
|
||||
End Get
|
||||
Set(value As DashboardViewMode)
|
||||
SetPropertyValue("DashboardViewMode", _DashboardViewMode, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property DashboardViewer As String
|
||||
Get
|
||||
Return _DashboardViewer
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("DashboardViewer", _DashboardViewer, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property DashboardDesigner As String
|
||||
Get
|
||||
Return _DashboardDesigner
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("DashboardDesigner", _DashboardDesigner, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLServer As String
|
||||
Get
|
||||
Return _SQLServer
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("SQLServer", _SQLServer, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLType As eSQLType
|
||||
Get
|
||||
Return _SQLType
|
||||
End Get
|
||||
Set(value As eSQLType)
|
||||
SetPropertyValue("SQLType", _SQLType, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Database As String
|
||||
Get
|
||||
Return _Database
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("Database", _Database, value)
|
||||
End Set
|
||||
End Property
|
||||
Property UserName As String
|
||||
Get
|
||||
Return _UserName
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("UserName", _UserName, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Password As String
|
||||
Get
|
||||
Return _Password
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("Password", _Password, value)
|
||||
End Set
|
||||
End Property
|
||||
Property XMLFileData As FileData
|
||||
Get
|
||||
Return _XMLFileData
|
||||
End Get
|
||||
Set(value As FileData)
|
||||
SetPropertyValue("XMLFileData", _XMLFileData, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Object_Oid As String
|
||||
Get
|
||||
Return _Object_Oid
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("Object_Oid", _Object_Oid, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Object_Type As System.Type
|
||||
Get
|
||||
Return _Object_Type
|
||||
End Get
|
||||
Set(value As System.Type)
|
||||
SetPropertyValue("Object_Type", _Object_Type, value)
|
||||
End Set
|
||||
End Property
|
||||
Property IsNewDashboard As Boolean
|
||||
Get
|
||||
Return _IsNewDashboard
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("IsNewDashboard", _IsNewDashboard, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
Partial Class Dashboard_VC
|
||||
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Public Sub New(ByVal Container As System.ComponentModel.IContainer)
|
||||
MyClass.New()
|
||||
|
||||
'Required for Windows.Forms Class Composition Designer support
|
||||
Container.Add(Me)
|
||||
|
||||
End Sub
|
||||
|
||||
'Component overrides dispose to clean up the component list.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
MyBase.Dispose(disposing)
|
||||
End Sub
|
||||
|
||||
'Required by the Component Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Component Designer
|
||||
'It can be modified using the Component Designer.
|
||||
'Do not modify it using the code editor.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
components = New System.ComponentModel.Container()
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,21 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
Imports System.Collections.Generic
|
||||
Imports System.Diagnostics
|
||||
Imports System.Text
|
||||
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.ExpressApp.Actions
|
||||
Imports DevExpress.Persistent.Base
|
||||
|
||||
Public Class Dashboard_VC
|
||||
Inherits DevExpress.ExpressApp.ViewController
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
InitializeComponent()
|
||||
RegisterActions(components)
|
||||
End Sub
|
||||
|
||||
|
||||
End Class
|
||||
Reference in New Issue
Block a user