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,164 @@
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
<DefaultClassOptions()> _
<NavigationItem(False), CreatableItem(False)> _
<Appearance("Disable non editable properties",
AppearanceItemType:="ViewItem",
criteria:="1=1",
TargetItems:="BankSavedFileName;BankPrepareName;AmountHUF;AmountDEV",
Enabled:=False)> _
<Appearance("Disable actions if currentstep is not first",
AppearanceItemType:="Action",
Criteria:="RegistryHeader.CurrentWorkflowSystemSteps.StepIndex <> 1",
TargetItems:="New;Delete",
Enabled:=False, Context:="Any")> _
<Appearance("Disable all property when transfered",
AppearanceItemType:="ViewItem",
criteria:="BankSavedFileName != ''",
TargetItems:="*",
Enabled:=False, Context:="Any")> _
Public Class RegistryBankTransfer
Inherits BaseObject
Private _RegistryHeader As RegistryHeader 'Iktatás fejléce
Private _AmountHUF As Double = 0 'Utalandó összeg HUF
Private _AmountDEV As Double = 0 'Utalandó összeg DEV
Private _DatePayment As Date 'Fizetési határidő
Private _IsBlocked As Boolean = False 'Blokkolva
Private _Note As String 'Utalásra kerülő megjegyzés
Private _BankSavedFileName As String 'Milyen banki csomagba ment el?
Private _BankPrepareName As String = "" 'Előkészítési megnevezés
Private _RowType As eHoldRowType = eHoldRowType.Normal
Private _BallanceDEV As Double 'Egyenleg (DEV)
Private _BallanceHUF As Double 'Egyenleg (HUF)
Private _Description_Private As String
Public Sub New(ByVal session As Session)
MyBase.New(session)
End Sub
Public Overrides Sub AfterConstruction()
MyBase.AfterConstruction()
If Session.IsNewObject(Me) Then
BankSavedFileName = ""
BankPrepareName = ""
End If
End Sub
<Browsable(False)> _
<Association("RegistryHeader-RegistryBankTransfer", GetType(RegistryHeader))> _
Property RegistryHeader As RegistryHeader
Get
Return _RegistryHeader
End Get
Set(ByVal value As RegistryHeader)
SetPropertyValue("RegistryHeader", _RegistryHeader, value)
If Not Session.IsObjectsSaving And Not Session.IsObjectsLoading And Me.RegistryHeader IsNot Nothing Then
AmountHUF = Me.RegistryHeader.BruttoAmountRemainingBank
End If
End Set
End Property
Property AmountHUF As Double
Get
Return _AmountHUF
End Get
Set(ByVal value As Double)
SetPropertyValue("AmountHUF", _AmountHUF, value)
End Set
End Property
Property AmountDEV As Double
Get
Return _AmountDEV
End Get
Set(ByVal value As Double)
SetPropertyValue("AmountDEV", _AmountDEV, value)
If Not Session.IsObjectsSaving And Not Session.IsObjectsLoading And Me.RegistryHeader IsNot Nothing Then
If Not Me.RegistryHeader.F_CurrencyName.ShortName = "HUF" Then
Me.AmountHUF = Math.Round((value * Me.RegistryHeader.F_CurrencyRate), 0, MidpointRounding.AwayFromZero)
End If
End If
End Set
End Property
<RuleRequiredField("RegistryBankTransfer.DatePayment", DefaultContexts.Save)> _
Property DatePayment As Date
Get
Return _DatePayment
End Get
Set(ByVal value As Date)
SetPropertyValue("DatePayment", _DatePayment, value)
End Set
End Property
Property IsBlocked As Boolean
Get
Return _IsBlocked
End Get
Set(ByVal value As Boolean)
SetPropertyValue("IsBlocked", _IsBlocked, value)
End Set
End Property
Property Note As String
Get
Return _Note
End Get
Set(ByVal value As String)
SetPropertyValue("Note", _Note, value)
End Set
End Property
Property BankSavedFileName As String
Get
Return _BankSavedFileName
End Get
Set(ByVal value As String)
SetPropertyValue("BankSavedFileName", _BankSavedFileName, value)
End Set
End Property
Property BankPrepareName As String
Get
Return _BankPrepareName
End Get
Set(value As String)
SetPropertyValue("BankPrepareName", _BankPrepareName, value)
End Set
End Property
Property RowType As eHoldRowType
Get
Return _RowType
End Get
Set(value As eHoldRowType)
SetPropertyValue("RowType", _RowType, value)
End Set
End Property
Property BallanceHUF As Double
Get
Return _BallanceHUF
End Get
Set(value As Double)
SetPropertyValue("BallanceHUF", _BallanceHUF, value)
End Set
End Property
Property BallanceDEV As Double
Get
Return _BallanceDEV
End Get
Set(value As Double)
SetPropertyValue("BallanceDEV", _BallanceDEV, value)
End Set
End Property
<Size(-1)> _
Property Description_Private As String
Get
Return _Description_Private
End Get
Set(value As String)
SetPropertyValue("Description_Private", _Description_Private, value)
End Set
End Property
End Class
@@ -0,0 +1,49 @@
Partial Class RegistryBankTransferVC
<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.aBlockBankTransfer = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
'
'aBlockBankTransfer
'
Me.aBlockBankTransfer.Caption = "Block"
Me.aBlockBankTransfer.ConfirmationMessage = "Do you want to execute command ?"
Me.aBlockBankTransfer.Id = "aBlockBankTransfer"
Me.aBlockBankTransfer.ImageName = Nothing
Me.aBlockBankTransfer.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireMultipleObjects
Me.aBlockBankTransfer.Shortcut = Nothing
Me.aBlockBankTransfer.Tag = Nothing
Me.aBlockBankTransfer.TargetObjectsCriteria = Nothing
Me.aBlockBankTransfer.TargetViewId = Nothing
Me.aBlockBankTransfer.ToolTip = Nothing
Me.aBlockBankTransfer.TypeOfView = Nothing
End Sub
Friend WithEvents aBlockBankTransfer As DevExpress.ExpressApp.Actions.SimpleAction
End Class
@@ -0,0 +1,126 @@
<?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="aBlockBankTransfer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 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>
@@ -0,0 +1,67 @@
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.Xpo
Imports DevExpress.Data.Filtering
Imports DevExpress.ExpressApp.SystemModule
Imports DevExpress.ExpressApp.CloneObject
Public Class RegistryBankTransferVC
Inherits DevExpress.ExpressApp.ViewController
Public Sub New()
MyBase.New()
'This call is required by the Component Designer.
InitializeComponent()
RegisterActions(components)
End Sub
Protected Overrides Sub OnActivated()
MyBase.OnActivated()
Frame.GetController(Of RegistryBankTransferVC).aBlockBankTransfer.Active.SetItemValue("", False)
If View.Id = "RegistryBankTransfer_ListView_Not_Transfered" Then
Frame.GetController(Of RegistryBankTransferVC).aBlockBankTransfer.Active.SetItemValue("", True)
End If
If View.Id Like "*RegistryBankTransfer*" Then
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", False)
End If
End Sub
Protected Overrides Sub OnDeactivated()
MyBase.OnDeactivated()
Frame.GetController(Of RegistryBankTransferVC).aBlockBankTransfer.Active.SetItemValue("", True)
If View.Id = "RegistryBankTransfer_ListView_Not_Transfered" Then
Frame.GetController(Of RegistryBankTransferVC).aBlockBankTransfer.Active.SetItemValue("", False)
End If
If View.Id Like "*RegistryBankTransfer*" Then
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", True)
End If
End Sub
Private Sub aBlockBankTransfer_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aBlockBankTransfer.Execute
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
Dim _uow As New UnitOfWork(_ocur.Session.DataLayer)
Dim _RegistryBankTransferView As RegistryBankTransferView
Dim _RegistryBankTransfer As RegistryBankTransfer
For Each _RegistryBankTransferView In View.SelectedObjects
_RegistryBankTransfer = _uow.GetObjectByKey(Of RegistryBankTransfer)(_RegistryBankTransferView.Oid)
If _RegistryBankTransfer IsNot Nothing Then
If _RegistryBankTransfer.BankSavedFileName = "" Then
If _RegistryBankTransfer.IsBlocked = True Then
_RegistryBankTransfer.IsBlocked = False
Else
_RegistryBankTransfer.IsBlocked = True
End If
End If
End If
Next
_uow.CommitChanges()
Frame.GetController(Of RefreshController).RefreshAction.DoExecute()
End Sub
End Class
@@ -0,0 +1,38 @@
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
<DefaultClassOptions()> _
<NavigationItem(False), CreatableItem(False)> _
<Persistent("vv_RegistryBankTransfer")> _
<ImageName("BO_Report")> _
Public Class RegistryBankTransferView
Inherits XPLiteObject
Public Sub New(ByVal session As Session)
MyBase.New(session)
End Sub
<Key(True), Persistent("Oid")> Public Oid As Guid
<Persistent("RegistryHeader")> Public RegistryHeader As RegistryHeader
<Persistent("AmountHUF")> Public AmountHUF As Double
<Persistent("AmountDEV")> Public AmountDEV As Double
<Persistent("DatePayment")> Public DatePayment As Date
<Persistent("IsBlocked")> Public IsBlocked As Boolean
<Persistent("Note")> Public Note As String
<Persistent("BankSavedFileName")> Public BankSavedFileName As String
<Persistent("BallanceHUF")> Public BallanceHUF As Double
<Persistent("BallanceDEV")> Public BallanceDEV As Double
<Persistent("DifferenceHUF")> Public DifferenceHUF As Double
<Persistent("DifferenceDEV")> Public DifferenceDEV As Double
<Persistent("OfferedHUF")> Public OfferedHUF As Double
<Persistent("OfferedDEV")> Public OfferedDEV As Double
<Persistent("BankPrepareName")> Public BankPrepareName As String
End Class