Reconfigure for GIT
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
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
|
||||
|
||||
<DefaultClassOptions(), NavigationItem(False), CreatableItem(False), DeferredDeletion(False)> _
|
||||
Public Class DBCColumns
|
||||
Inherits BaseObject
|
||||
|
||||
Private _DBCTables As DBCTables
|
||||
Private _ColumnName As String
|
||||
Private _ColumnType As String
|
||||
Private _ColumnLength As String
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
Property DBCTables As DBCTables
|
||||
Get
|
||||
Return _DBCTables
|
||||
End Get
|
||||
Set(value As DBCTables)
|
||||
SetPropertyValue("DBCTables", _DBCTables, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(255)> _
|
||||
Property ColumnName As String
|
||||
Get
|
||||
Return _ColumnName
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("ColumnName", _ColumnName, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(255)> _
|
||||
Property ColumnType As String
|
||||
Get
|
||||
Return _ColumnType
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("ColumnType", _ColumnType, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ColumnLength As String
|
||||
Get
|
||||
Return _ColumnLength
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("ColumnLength", _ColumnLength, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
Partial Class DBCExportVC
|
||||
|
||||
<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()
|
||||
Me.components = New System.ComponentModel.Container()
|
||||
Me.aDBCGetTables = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aDBCCopyData = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
'
|
||||
'aDBCGetTables
|
||||
'
|
||||
Me.aDBCGetTables.Caption = "aDBCGet Tables"
|
||||
Me.aDBCGetTables.ConfirmationMessage = Nothing
|
||||
Me.aDBCGetTables.Id = "aDBCGetTables"
|
||||
Me.aDBCGetTables.ImageName = Nothing
|
||||
Me.aDBCGetTables.Shortcut = Nothing
|
||||
Me.aDBCGetTables.Tag = Nothing
|
||||
Me.aDBCGetTables.TargetObjectsCriteria = Nothing
|
||||
Me.aDBCGetTables.TargetObjectType = GetType(SISBusiness.[Module].Win.DBCLogin)
|
||||
Me.aDBCGetTables.TargetViewId = Nothing
|
||||
Me.aDBCGetTables.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aDBCGetTables.ToolTip = Nothing
|
||||
Me.aDBCGetTables.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aDBCCopyData
|
||||
'
|
||||
Me.aDBCCopyData.Caption = "aDBCCopy Data"
|
||||
Me.aDBCCopyData.ConfirmationMessage = Nothing
|
||||
Me.aDBCCopyData.Id = "aDBCCopyData"
|
||||
Me.aDBCCopyData.ImageName = Nothing
|
||||
Me.aDBCCopyData.Shortcut = Nothing
|
||||
Me.aDBCCopyData.Tag = Nothing
|
||||
Me.aDBCCopyData.TargetObjectsCriteria = Nothing
|
||||
Me.aDBCCopyData.TargetObjectType = GetType(SISBusiness.[Module].Win.DBCLogin)
|
||||
Me.aDBCCopyData.TargetViewId = Nothing
|
||||
Me.aDBCCopyData.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aDBCCopyData.ToolTip = Nothing
|
||||
Me.aDBCCopyData.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
|
||||
End Sub
|
||||
Friend WithEvents aDBCGetTables As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aDBCCopyData As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="aDBCGetTables.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aDBCCopyData.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>152, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,168 @@
|
||||
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
|
||||
|
||||
<DefaultClassOptions(), NavigationItem(False), CreatableItem(False), DeferredDeletion(False)> _
|
||||
Public Class DBCLogin
|
||||
Inherits BaseObject
|
||||
|
||||
Private _ShortName As String
|
||||
|
||||
Private _SQLType_From As eSQLType
|
||||
Private _SQLServer_From As String
|
||||
Private _SQLUser_From As String
|
||||
Private _SQLPassword_From As String
|
||||
Private _SQLDatabase_From As String
|
||||
|
||||
Private _SQLType_To As eSQLType
|
||||
Private _SQLServer_To As String
|
||||
Private _SQLUser_To As String
|
||||
Private _SQLPassword_To As String
|
||||
Private _SQLDatabase_To As String
|
||||
|
||||
Private _UserCreated As User
|
||||
Private _ObjectCreated As Date
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
' This constructor is used when an object is loaded from a persistent storage.
|
||||
' Do not place any code here or place it only when the IsLoading property is false:
|
||||
' if (!IsLoading){
|
||||
' It is now OK to place your initialization code here.
|
||||
' }
|
||||
' or as an alternative, move your initialization code into the AfterConstruction method.
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
' Place here your initialization code.
|
||||
End Sub
|
||||
|
||||
Property ShortName As String
|
||||
Get
|
||||
Return _ShortName
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("ShortName", _ShortName, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLType_From As eSQLType
|
||||
Get
|
||||
Return _SQLType_From
|
||||
End Get
|
||||
Set(value As eSQLType)
|
||||
SetPropertyValue("SQLType_From", _SQLType_From, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLServer_From As String
|
||||
Get
|
||||
Return _SQLServer_From
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("SQLServer_From", _SQLServer_From, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLUser_From As String
|
||||
Get
|
||||
Return _SQLUser_From
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("SQLUser_From", _SQLUser_From, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLPassword_From As String
|
||||
Get
|
||||
Return _SQLPassword_From
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("SQLPassword_From", _SQLPassword_From, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLDatabase_From As String
|
||||
Get
|
||||
Return _SQLDatabase_From
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("SQLDatabase_From", _SQLDatabase_From, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property SQLType_To As eSQLType
|
||||
Get
|
||||
Return _SQLType_To
|
||||
End Get
|
||||
Set(value As eSQLType)
|
||||
SetPropertyValue("SQLType_To", _SQLType_To, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLServer_To As String
|
||||
Get
|
||||
Return _SQLServer_To
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("SQLServer_To", _SQLServer_To, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLUser_To As String
|
||||
Get
|
||||
Return _SQLUser_To
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("SQLUser_To", _SQLUser_To, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLPassword_To As String
|
||||
Get
|
||||
Return _SQLPassword_To
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("SQLPassword_To", _SQLPassword_To, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SQLDatabase_To As String
|
||||
Get
|
||||
Return _SQLDatabase_To
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("SQLDatabase_To", _SQLDatabase_To, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonCloneable> _
|
||||
Property UserCreated As User
|
||||
Get
|
||||
Return _UserCreated
|
||||
End Get
|
||||
Set(value As User)
|
||||
SetPropertyValue("UserCreated", _UserCreated, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonCloneable> _
|
||||
Property ObjectCreated As Date
|
||||
Get
|
||||
Return _ObjectCreated
|
||||
End Get
|
||||
Set(value As Date)
|
||||
SetPropertyValue("ObjectCreated", _ObjectCreated, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'//XPCollections
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property DBCTables_From As XPCollection(Of DBCTables)
|
||||
Get
|
||||
Return New XPCollection(Of DBCTables)(Session, CriteriaOperator.Parse("DBCLogin=? and DBCType=0", Me))
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property DBCTables_To As XPCollection(Of DBCTables)
|
||||
Get
|
||||
Return New XPCollection(Of DBCTables)(Session, CriteriaOperator.Parse("DBCLogin=? and DBCType=1", Me))
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,87 @@
|
||||
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
|
||||
|
||||
<DefaultClassOptions(), NavigationItem(False), CreatableItem(False), DeferredDeletion(False)> _
|
||||
Public Class DBCTables
|
||||
Inherits BaseObject
|
||||
|
||||
Private _DBCType As Long
|
||||
Private _DBCLogin As DBCLogin
|
||||
Private _TableName As String
|
||||
Private _CreateScript As String
|
||||
Private _DropScript As String
|
||||
Private _DBCTableCount As Long
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
Property DBCType As Long
|
||||
Get
|
||||
Return _DBCType
|
||||
End Get
|
||||
Set(value As Long)
|
||||
SetPropertyValue("DBCType", _DBCType, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DBCLogin As DBCLogin
|
||||
Get
|
||||
Return _DBCLogin
|
||||
End Get
|
||||
Set(value As DBCLogin)
|
||||
SetPropertyValue("DBCLogin", _DBCLogin, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(255)> _
|
||||
Property TableName As String
|
||||
Get
|
||||
Return _TableName
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("TableName", _TableName, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property CreateScript As String
|
||||
Get
|
||||
Return _CreateScript
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("CreateScript", _CreateScript, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property DropScript As String
|
||||
Get
|
||||
Return _DropScript
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("DropScript", _DropScript, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DBCTableCount As Long
|
||||
Get
|
||||
Return _DBCTableCount
|
||||
End Get
|
||||
Set(value As Long)
|
||||
SetPropertyValue("DBCTableCount", _DBCTableCount, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property DBCColumns As XPCollection(Of DBCColumns)
|
||||
Get
|
||||
Return New XPCollection(Of DBCColumns)(Session, CriteriaOperator.Parse("DBCTables=?", Me))
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
Reference in New Issue
Block a user