Reconfigure for GIT

This commit is contained in:
2017-03-26 20:00:03 +02:00
commit 00637826ab
8056 changed files with 535977 additions and 0 deletions
@@ -0,0 +1,35 @@
Partial Class GLAccountsVC
<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()
'
'GLAccountsVC
'
End Sub
End Class
@@ -0,0 +1,123 @@
<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>
@@ -0,0 +1,197 @@
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
Imports DevExpress.ExpressApp.Win.SystemModule
Imports DevExpress.XtraGrid.Views.Grid
Imports DevExpress.ExpressApp.Editors
Imports DevExpress.ExpressApp.Win.Editors
Imports DevExpress.XtraGrid.Columns
Imports DevExpress.ExpressApp.SystemModule
Imports DevExpress.Data.Filtering
Imports DevExpress.Xpo
Imports System.Linq
Imports System.Linq.Expressions
Imports DevExpress.XtraEditors
Public Class GLAccountsVC
Inherits SISBusiness.Module.GLAccountsVC
Dim _WaitFormClass As New WaitFormClass
Private _GridListEditor As GridListEditor
Public Sub New()
MyBase.New()
'This call is required by the Component Designer.
InitializeComponent()
RegisterActions(components)
End Sub
Protected Overrides Sub OnActivated()
MyBase.OnActivated()
If View.Id = "GLAccounts_DetailView" Or View.Id = "GLAccounts_GLRows_ListView" Then
Frame.GetController(Of WinModificationsController).ModificationsHandlingMode = DevExpress.ExpressApp.SystemModule.ModificationsHandlingMode.AutoRollback
End If
If View.Id = "GLHeader_GLRows_ListView_Accounts" Then
Frame.GetController(Of ToolbarVisibilityController).Active.SetItemValue("", False)
Frame.GetController(Of ToolbarVisibilityController).SetToolbarVisibility(False)
End If
AddHandler DoWork, AddressOf _WaitFormClass.DoWork
AddHandler InitWork, AddressOf _WaitFormClass.Initwork
AddHandler FinalWork, AddressOf _WaitFormClass.Finalwork
AddHandler View.ControlsCreated, AddressOf View_Controlcreated
End Sub
Protected Overrides Sub OnDeactivated()
MyBase.OnDeactivated()
If View.Id = "GLHeader_GLRows_ListView_Accounts" Then
Frame.GetController(Of ToolbarVisibilityController).Active.SetItemValue("", True)
Frame.GetController(Of ToolbarVisibilityController).SetToolbarVisibility(True)
End If
RemoveHandler DoWork, AddressOf _WaitFormClass.DoWork
RemoveHandler InitWork, AddressOf _WaitFormClass.Initwork
RemoveHandler FinalWork, AddressOf _WaitFormClass.Finalwork
End Sub
Protected Overrides Sub OnViewControlsCreated()
MyBase.OnViewControlsCreated()
If View.Id = "GLAccounts_ListView" Then
Dim editor As ListEditor = (CType(View, ListView)).Editor
Dim gridView As GridView = (CType(editor, GridListEditor)).GridView
AddHandler gridView.SelectionChanged, AddressOf GridView_SelectionChanged
End If
End Sub
Private Sub GridView_SelectionChanged(ByVal sender As Object, ByVal e As DevExpress.Data.SelectionChangedEventArgs)
Dim gridView As GridView = TryCast(sender, GridView)
If View Is Nothing Then Exit Sub
If View.SelectedObjects.Count = 1 Then
Dim _GLAccounts As GLAccounts = TryCast(View.SelectedObjects(0), GLAccounts)
If _GLAccounts Is Nothing Then
Else
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController).Active.SetItemValue("", True)
If _GLAccounts.IsEditable = False Then
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController).Active.SetItemValue("", False)
End If
End If
ElseIf View.SelectedObjects.Count > 1 Then
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController).Active.SetItemValue("", False)
End If
End Sub
Private Sub View_Controlcreated(sender As Object, e As EventArgs)
'If View.Id = "GLAccounts_DetailView" Or View.Id = "GLCassa_DetailView" Or View.Id = "GLBank_DetailView" Or View.Id = "GLCompensation_DetailView" Or View.Id = "GLMixed_DetailView" Then
' Dim _row_NoteRows As ViewItem = TryCast(View, DetailView).FindItem("row_NoteRows")
' Dim _NoteHeader As ViewItem = TryCast(View, DetailView).FindItem("NoteHeader")
' Dim _StringComboUserControl As StringComboUserControl
' Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
' If _row_NoteRows IsNot Nothing Then
' _StringComboUserControl = TryCast(_row_NoteRows.Control, StringComboUserControl)
' If _StringComboUserControl IsNot Nothing Then
' '//------------------------------------------------------------------------------------------------------------------------------------------
' Dim _DocumentNote_xpquery = New XPQuery(Of DocumentNote)(_onew.Session)
' Dim query = From _DocumentNote In _DocumentNote_xpquery _
' Where _DocumentNote.IsActive = True
' Select New With {Key .NoteRows = _DocumentNote.ShortName}
' For Each item In query
' _StringComboUserControl.ComboBoxEdit1.Properties.Items.Add(item.NoteRows)
' Next
' '--------------------------------------------------------------------------------------------------------------------------------------------
' AddHandler _StringComboUserControl.ComboBoxEdit1.KeyDown, AddressOf StringComboUserControl_KeyDown
' End If
' End If
' If _NoteHeader IsNot Nothing Then
' _StringComboUserControl = TryCast(_NoteHeader.Control, StringComboUserControl)
' If _StringComboUserControl IsNot Nothing Then
' '//------------------------------------------------------------------------------------------------------------------------------------------
' Dim _DocumentNote_xpquery = New XPQuery(Of DocumentNote)(_onew.Session)
' Dim query = From _DocumentNote In _DocumentNote_xpquery _
' Where _DocumentNote.IsActive = True
' Select New With {Key .NoteHeader = _DocumentNote.ShortName}
' For Each item In query
' _StringComboUserControl.ComboBoxEdit1.Properties.Items.Add(item.NoteHeader)
' Next
' '--------------------------------------------------------------------------------------------------------------------------------------------
' AddHandler _StringComboUserControl.ComboBoxEdit1.KeyDown, AddressOf StringComboUserControl_KeyDown
' End If
' End If
'End If
If View.Id = "GLAccounts_DetailView" Or View.Id = "GLCassa_DetailView" Or View.Id = "GLBank_DetailView" Or View.Id = "GLCompensation_DetailView" Or View.Id = "GLMixed_DetailView" Then
Dim _row_NoteRows As ViewItem = TryCast(View, DetailView).FindItem("row_NoteRows")
Dim _NoteHeader As ViewItem = TryCast(View, DetailView).FindItem("NoteHeader")
Dim _ComboBoxEdit As ComboBoxEdit
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
If _row_NoteRows IsNot Nothing Then
_ComboBoxEdit = TryCast(_row_NoteRows.Control, ComboBoxEdit)
If _ComboBoxEdit IsNot Nothing Then
'//------------------------------------------------------------------------------------------------------------------------------------------
Dim _DocumentNote_xpquery = New XPQuery(Of DocumentNote)(_onew.Session)
Dim query = From _DocumentNote In _DocumentNote_xpquery _
Where _DocumentNote.IsActive = True
Select New With {Key .NoteRows = _DocumentNote.ShortName}
For Each item In query
_ComboBoxEdit.Properties.Items.Add(item.NoteRows)
Next
'--------------------------------------------------------------------------------------------------------------------------------------------
AddHandler _ComboBoxEdit.KeyDown, AddressOf StringComboUserControl_KeyDown
End If
End If
If _NoteHeader IsNot Nothing Then
_ComboBoxEdit = TryCast(_NoteHeader.Control, ComboBoxEdit)
If _ComboBoxEdit IsNot Nothing Then
'//------------------------------------------------------------------------------------------------------------------------------------------
Dim _DocumentNote_xpquery = New XPQuery(Of DocumentNote)(_onew.Session)
Dim query = From _DocumentNote In _DocumentNote_xpquery _
Where _DocumentNote.IsActive = True
Select New With {Key .NoteHeader = _DocumentNote.ShortName}
For Each item In query
_ComboBoxEdit.Properties.Items.Add(item.NoteHeader)
Next
'--------------------------------------------------------------------------------------------------------------------------------------------
AddHandler _ComboBoxEdit.KeyDown, AddressOf StringComboUserControl_KeyDown
End If
End If
End If
End Sub
Private Sub StringComboUserControl_KeyDown(sender As Object, e As Windows.Forms.KeyEventArgs)
If e.KeyCode = System.Windows.Forms.Keys.F12 Then
'// Kell egy mentés
If TryCast(sender, DevExpress.XtraEditors.ComboBoxEdit) IsNot Nothing Then
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
Dim _DocumentNote As DocumentNote = Nothing
Dim _ShortName As String = TryCast(sender, DevExpress.XtraEditors.ComboBoxEdit).Text
_DocumentNote = _onew.FindObject(Of DocumentNote)(CriteriaOperator.Parse("ShortName=?", _ShortName))
If _DocumentNote Is Nothing Then
_DocumentNote = _onew.CreateObject(Of DocumentNote)()
_DocumentNote.ShortName = _ShortName
_DocumentNote.IsActive = True
_onew.CommitChanges()
End If
End If
e.Handled = True
End If
End Sub
End Class