First create solution
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
DetailViewen lévõ action
|
||||
------------------
|
||||
aOrderInStorageOutDeliveryNoteOut (Kitárolás + Szállítólevél egyben)
|
||||
aOrderInStorageOutDeliveryNoteOutInvoice (Szállítólevél + Számla)
|
||||
aGenerateInvoicefromOrderIn (Számlázás)
|
||||
|
||||
Kitárolások fül
|
||||
---------------
|
||||
aORI_Storno_StorageOut (Kitárolás stornó)
|
||||
aORI_Create_Delivery (Szállítólevél készítése)
|
||||
aORI_Create_DeliveryInvoice (Szállítólevél + számla)
|
||||
|
||||
Kiszállítások fül
|
||||
-----------------
|
||||
aORI_Storno_DeliveryNoteOut (Szállítólevél stornó)
|
||||
aORI_Create_Invoice (Számla készítése)
|
||||
|
||||
Kimenõ számla sorok
|
||||
---------------------------
|
||||
aORI_Storno_Invoice (Számla stornírozása)
|
||||
aOrderIn_InvoiceRowFinalize (Számlasorok véglegesítése)
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
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 System.Linq
|
||||
Imports System.Linq.Expressions
|
||||
|
||||
<DefaultClassOptions()> _
|
||||
<NavigationItem(False), CreatableItem(False)> _
|
||||
Public Class OrderInAcknowledgementHeader
|
||||
Inherits BaseObject
|
||||
Private _OrderInHeader As OrderInHeader
|
||||
Private _DateCreated As Date
|
||||
Private _DocumentNumber As String
|
||||
Private _ShipmentOption As ShipmentOption
|
||||
Private _PaymentOption As PaymentOption
|
||||
Private _NoteHeader As String
|
||||
Private _UserCreated As User
|
||||
Private _ObjectCreated As Date
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
Me.ObjectCreated = GetSQLTime(Session)
|
||||
Me.UserCreated = Session.GetObjectByKey(Of User)(Session.GetKeyValue(SecuritySystem.CurrentUser))
|
||||
End Sub
|
||||
<Association("OrderInHeader-OrderInAcknowledgementHeader", GetType(OrderInHeader))> _
|
||||
Property OrderInHeader As OrderInHeader
|
||||
Get
|
||||
Return _OrderInHeader
|
||||
End Get
|
||||
Set(value As OrderInHeader)
|
||||
SetPropertyValue("OrderInHeader", _OrderInHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DateCreated As Date
|
||||
Get
|
||||
Return _DateCreated
|
||||
End Get
|
||||
Set(value As Date)
|
||||
SetPropertyValue("DateCreated", _DateCreated, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DocumentNumber As String
|
||||
Get
|
||||
Return _DocumentNumber
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("DocumentNumber", _DocumentNumber, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ShipmentOption As ShipmentOption
|
||||
Get
|
||||
Return _ShipmentOption
|
||||
End Get
|
||||
Set(value As ShipmentOption)
|
||||
SetPropertyValue("ShipmentOption", _ShipmentOption, value)
|
||||
End Set
|
||||
End Property
|
||||
Property PaymentOption As PaymentOption
|
||||
Get
|
||||
Return _PaymentOption
|
||||
End Get
|
||||
Set(value As PaymentOption)
|
||||
SetPropertyValue("PaymentOption", _PaymentOption, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property NoteHeader As String
|
||||
Get
|
||||
Return _NoteHeader
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("NoteHeader", _NoteHeader, 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
|
||||
<VisibleInListView(False)> _
|
||||
<Association("OrderInAcknowledgementHeader-OrderInAcknowledgementRows", GetType(OrderInAcknowledgementRows))> _
|
||||
ReadOnly Property OrderInAcknowledgementRows As XPCollection(Of OrderInAcknowledgementRows)
|
||||
Get
|
||||
Return GetCollection(Of OrderInAcknowledgementRows)("OrderInAcknowledgementRows")
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False)> _
|
||||
<Association("OrderInAcknowledgementHeader-OrderInAcknowledgementVAT", GetType(OrderInAcknowledgementVAT))> _
|
||||
ReadOnly Property OrderInAcknowledgementVAT As XPCollection(Of OrderInAcknowledgementVAT)
|
||||
Get
|
||||
Return GetCollection(Of OrderInAcknowledgementVAT)("OrderInAcknowledgementVAT")
|
||||
End Get
|
||||
End Property
|
||||
Sub RecalculateOrderInAcknowledgement(ByVal _OrderInAcknowledgementHeader As OrderInAcknowledgementHeader, ByVal _ocur As Xpo.XPObjectSpace)
|
||||
'-- A rutin újragenerálja a pénzügyi sorokat
|
||||
Dim _OrderInAcknowledgementVAT As OrderInAcknowledgementVAT
|
||||
Dim i As Long = 1
|
||||
Dim j As Long = 1
|
||||
Dim _Exists As Boolean = False
|
||||
|
||||
Session.Delete(_OrderInAcknowledgementHeader.OrderInAcknowledgementVAT)
|
||||
Dim OIAR = New XPQuery(Of OrderInAcknowledgementRows)(_ocur.Session)
|
||||
Dim query = From invoice In OIAR
|
||||
Where invoice.OrderInAcknowledgementHeader.Oid = _OrderInAcknowledgementHeader.Oid _
|
||||
Group invoice By invoice.VAT Into g = Group _
|
||||
Select New With {Key .VAT = VAT, _
|
||||
Key .AmountNettoHUF = g.Sum(Function(inv) (inv.FinalPriceHUF) * inv.QTT), _
|
||||
Key .AmountNettoDEV = g.Sum(Function(inv) (inv.FinalPriceDEV) * inv.QTT)}
|
||||
For Each item In query
|
||||
_OrderInAcknowledgementVAT = _ocur.CreateObject(Of OrderInAcknowledgementVAT)()
|
||||
_OrderInAcknowledgementVAT.OrderInAcknowledgementHeader = _OrderInAcknowledgementHeader
|
||||
_OrderInAcknowledgementVAT.VAT = item.VAT
|
||||
_OrderInAcknowledgementVAT.AmountNettoHUF = Math.Round(item.AmountNettoHUF, 0, MidpointRounding.AwayFromZero)
|
||||
_OrderInAcknowledgementVAT.AmountVATHUF = 0
|
||||
If item.VAT IsNot Nothing Then
|
||||
_OrderInAcknowledgementVAT.AmountVATHUF = Math.Round(item.VAT.KeyValue * _OrderInAcknowledgementVAT.AmountNettoHUF, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
_OrderInAcknowledgementVAT.AmountBruttoHUF = _OrderInAcknowledgementVAT.AmountNettoHUF + _OrderInAcknowledgementVAT.AmountVATHUF
|
||||
|
||||
_OrderInAcknowledgementVAT.AmountNettoDEV = Math.Round(item.AmountNettoDEV, 2, MidpointRounding.AwayFromZero)
|
||||
_OrderInAcknowledgementVAT.AmountVATDEV = 0
|
||||
If item.VAT IsNot Nothing Then
|
||||
_OrderInAcknowledgementVAT.AmountVATDEV = Math.Round(item.VAT.KeyValue * _OrderInAcknowledgementVAT.AmountNettoDEV, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
_OrderInAcknowledgementVAT.AmountBruttoDEV = _OrderInAcknowledgementVAT.AmountNettoDEV + _OrderInAcknowledgementVAT.AmountVATDEV
|
||||
|
||||
_OrderInAcknowledgementVAT.Save()
|
||||
_OrderInAcknowledgementHeader.OrderInAcknowledgementVAT.Add(_OrderInAcknowledgementVAT)
|
||||
Next
|
||||
_OrderInAcknowledgementHeader.Save()
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
+180
@@ -0,0 +1,180 @@
|
||||
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)> _
|
||||
Public Class OrderInAcknowledgementRows
|
||||
Inherits BaseObject
|
||||
Private _OrderInAcknowledgementHeader As OrderInAcknowledgementHeader
|
||||
Private _RowIndex As Long
|
||||
Private _RowGroup1 As String 'Szöveges csoportosítás (nem kötelezõ)
|
||||
Private _RowGroup2 As String 'Szöveges másodlagos csoportosítás (nem kötelezõ)
|
||||
Private _ShortName As String
|
||||
Private _Description As String
|
||||
Private _QTT As Double
|
||||
Private _Units As Units 'Mennyiségi egység
|
||||
Private _QualityOption As QualityOption 'Minõségi opció
|
||||
Private _VAT As VAT 'ÁFA kód
|
||||
Private _SumPriceHUF As Double
|
||||
Private _SumPriceDEV As Double
|
||||
Private _FinalPriceDEV As Double
|
||||
Private _FinalPriceHUF As Double
|
||||
Private _DateExecution As Date
|
||||
Private _OrderInRows As OrderInRows
|
||||
Private _OrderInRowsOther As OrderInRowsOther
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
|
||||
End Sub
|
||||
<Association("OrderInAcknowledgementHeader-OrderInAcknowledgementRows", GetType(OrderInAcknowledgementHeader))> _
|
||||
Property OrderInAcknowledgementHeader As OrderInAcknowledgementHeader
|
||||
Get
|
||||
Return _OrderInAcknowledgementHeader
|
||||
End Get
|
||||
Set(value As OrderInAcknowledgementHeader)
|
||||
SetPropertyValue("OrderInAcknowledgementHeader", _OrderInAcknowledgementHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowIndex As Long
|
||||
Get
|
||||
Return _RowIndex
|
||||
End Get
|
||||
Set(value As Long)
|
||||
SetPropertyValue("RowIndex", _RowIndex, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowGroup1 As String
|
||||
Get
|
||||
Return _RowGroup1
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("RowGroup1", _RowGroup1, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowGroup2 As String
|
||||
Get
|
||||
Return _RowGroup2
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("RowGroup2", _RowGroup2, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ShortName As String
|
||||
Get
|
||||
Return _ShortName
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("ShortName", _ShortName, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property Description As String
|
||||
Get
|
||||
Return _Description
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("Description", _Description, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT As Double
|
||||
Get
|
||||
Return _QTT
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("QTT", _QTT, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Units As Units
|
||||
Get
|
||||
Return _Units
|
||||
End Get
|
||||
Set(value As Units)
|
||||
SetPropertyValue("Units", _Units, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QualityOption As QualityOption
|
||||
Get
|
||||
Return _QualityOption
|
||||
End Get
|
||||
Set(value As QualityOption)
|
||||
SetPropertyValue("QualityOption", _QualityOption, value)
|
||||
End Set
|
||||
End Property
|
||||
Property VAT As VAT
|
||||
Get
|
||||
Return _VAT
|
||||
End Get
|
||||
Set(value As VAT)
|
||||
SetPropertyValue("VAT", _VAT, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceHUF As Double
|
||||
Get
|
||||
Return _SumPriceHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceHUF", _SumPriceHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceDEV As Double
|
||||
Get
|
||||
Return _SumPriceDEV
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceDEV", _SumPriceDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property FinalPriceDEV As Double
|
||||
Get
|
||||
Return _FinalPriceDEV
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("FinalPriceDEV", _FinalPriceDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property FinalPriceHUF As Double
|
||||
Get
|
||||
Return _FinalPriceHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("FinalPriceHUF", _FinalPriceHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DateExecution As Date
|
||||
Get
|
||||
Return _DateExecution
|
||||
End Get
|
||||
Set(value As Date)
|
||||
SetPropertyValue("DateExecution", _DateExecution, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property OrderInRows As OrderInRows
|
||||
Get
|
||||
Return _OrderInRows
|
||||
End Get
|
||||
Set(value As OrderInRows)
|
||||
SetPropertyValue("OrderInRows", _OrderInRows, value)
|
||||
End Set
|
||||
End Property
|
||||
Property OrderInRowsOther As OrderInRowsOther
|
||||
Get
|
||||
Return _OrderInRowsOther
|
||||
End Get
|
||||
Set(value As OrderInRowsOther)
|
||||
SetPropertyValue("OrderInRowsOther", _OrderInRowsOther, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
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)> _
|
||||
Public Class OrderInAcknowledgementVAT
|
||||
Inherits BaseObject
|
||||
Private _OrderInAcknowledgementHeader As OrderInAcknowledgementHeader
|
||||
Private _VAT As VAT
|
||||
Private _AmountNettoHUF As Double
|
||||
Private _AmountVATHUF As Double
|
||||
Private _AmountBruttoHUF As Double
|
||||
Private _AmountNettoDEV As Double
|
||||
Private _AmountVATDEV As Double
|
||||
Private _AmountBruttoDEV As Double
|
||||
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
|
||||
<Association("OrderInAcknowledgementHeader-OrderInAcknowledgementVAT", GetType(OrderInAcknowledgementHeader))> _
|
||||
Property OrderInAcknowledgementHeader As OrderInAcknowledgementHeader
|
||||
Get
|
||||
Return _OrderInAcknowledgementHeader
|
||||
End Get
|
||||
Set(value As OrderInAcknowledgementHeader)
|
||||
SetPropertyValue("OrderInAcknowledgementHeader", _OrderInAcknowledgementHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property VAT As VAT
|
||||
Get
|
||||
Return _VAT
|
||||
End Get
|
||||
Set(ByVal value As VAT)
|
||||
SetPropertyValue("VAT", _VAT, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountNettoHUF As Double
|
||||
Get
|
||||
Return _AmountNettoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountNettoHUF", _AmountNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountVATHUF As Double
|
||||
Get
|
||||
Return _AmountVATHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountVATHUF", _AmountVATHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountBruttoHUF As Double
|
||||
Get
|
||||
Return _AmountBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountBruttoHUF", _AmountBruttoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountNettoDEV As Double
|
||||
Get
|
||||
Return _AmountNettoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountNettoDEV", _AmountNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountVATDEV As Double
|
||||
Get
|
||||
Return _AmountVATDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountVATDEV", _AmountVATDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountBruttoDEV As Double
|
||||
Get
|
||||
Return _AmountBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountBruttoDEV", _AmountBruttoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
End Class
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
Partial Class OrderInAcknowledgementVC
|
||||
|
||||
<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.aCreateAcknowledgementFromOrderIn = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aCreateContractsFromAcknowledgement = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aAcknowledgementRows_Up = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aAcknowledgementRows_Down = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
'
|
||||
'aCreateAcknowledgementFromOrderIn
|
||||
'
|
||||
Me.aCreateAcknowledgementFromOrderIn.AcceptButtonCaption = Nothing
|
||||
Me.aCreateAcknowledgementFromOrderIn.CancelButtonCaption = Nothing
|
||||
Me.aCreateAcknowledgementFromOrderIn.Caption = "Create Acknowledgement From Order In"
|
||||
Me.aCreateAcknowledgementFromOrderIn.Category = "aCreateAcknowledgementFromOrderIn"
|
||||
Me.aCreateAcknowledgementFromOrderIn.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aCreateAcknowledgementFromOrderIn.Id = "aCreateAcknowledgementFromOrderIn"
|
||||
Me.aCreateAcknowledgementFromOrderIn.ImageName = "document_check"
|
||||
Me.aCreateAcknowledgementFromOrderIn.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aCreateAcknowledgementFromOrderIn.Shortcut = Nothing
|
||||
Me.aCreateAcknowledgementFromOrderIn.Tag = Nothing
|
||||
Me.aCreateAcknowledgementFromOrderIn.TargetObjectsCriteria = Nothing
|
||||
Me.aCreateAcknowledgementFromOrderIn.TargetViewId = "OrderInHeader_DetailView"
|
||||
Me.aCreateAcknowledgementFromOrderIn.ToolTip = Nothing
|
||||
Me.aCreateAcknowledgementFromOrderIn.TypeOfView = Nothing
|
||||
'
|
||||
'aCreateContractsFromAcknowledgement
|
||||
'
|
||||
Me.aCreateContractsFromAcknowledgement.AcceptButtonCaption = Nothing
|
||||
Me.aCreateContractsFromAcknowledgement.CancelButtonCaption = Nothing
|
||||
Me.aCreateContractsFromAcknowledgement.Caption = "Create Contracts From Acknowledgement"
|
||||
Me.aCreateContractsFromAcknowledgement.Category = "aCreateContractsFromAcknowledgement"
|
||||
Me.aCreateContractsFromAcknowledgement.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aCreateContractsFromAcknowledgement.Id = "aCreateContractsFromAcknowledgement"
|
||||
Me.aCreateContractsFromAcknowledgement.ImageName = Nothing
|
||||
Me.aCreateContractsFromAcknowledgement.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aCreateContractsFromAcknowledgement.Shortcut = Nothing
|
||||
Me.aCreateContractsFromAcknowledgement.Tag = Nothing
|
||||
Me.aCreateContractsFromAcknowledgement.TargetObjectsCriteria = Nothing
|
||||
Me.aCreateContractsFromAcknowledgement.TargetViewId = "OrderInHeader_OrderInAcknowledgementHeader_ListView"
|
||||
Me.aCreateContractsFromAcknowledgement.ToolTip = Nothing
|
||||
Me.aCreateContractsFromAcknowledgement.TypeOfView = Nothing
|
||||
'
|
||||
'aAcknowledgementRows_Up
|
||||
'
|
||||
Me.aAcknowledgementRows_Up.Caption = "aAcknowledgementRows_Up"
|
||||
Me.aAcknowledgementRows_Up.ConfirmationMessage = Nothing
|
||||
Me.aAcknowledgementRows_Up.Id = "aAcknowledgementRows_Up"
|
||||
Me.aAcknowledgementRows_Up.ImageName = Nothing
|
||||
Me.aAcknowledgementRows_Up.Shortcut = Nothing
|
||||
Me.aAcknowledgementRows_Up.Tag = Nothing
|
||||
Me.aAcknowledgementRows_Up.TargetObjectsCriteria = Nothing
|
||||
Me.aAcknowledgementRows_Up.TargetObjectType = GetType(Nuvolar.[Module].OrderInAcknowledgementRows)
|
||||
Me.aAcknowledgementRows_Up.TargetViewId = Nothing
|
||||
Me.aAcknowledgementRows_Up.ToolTip = Nothing
|
||||
Me.aAcknowledgementRows_Up.TypeOfView = Nothing
|
||||
'
|
||||
'aAcknowledgementRows_Down
|
||||
'
|
||||
Me.aAcknowledgementRows_Down.Caption = "aAcknowledgementRows_Down"
|
||||
Me.aAcknowledgementRows_Down.ConfirmationMessage = Nothing
|
||||
Me.aAcknowledgementRows_Down.Id = "aAcknowledgementRows_Down"
|
||||
Me.aAcknowledgementRows_Down.ImageName = Nothing
|
||||
Me.aAcknowledgementRows_Down.Shortcut = Nothing
|
||||
Me.aAcknowledgementRows_Down.Tag = Nothing
|
||||
Me.aAcknowledgementRows_Down.TargetObjectsCriteria = Nothing
|
||||
Me.aAcknowledgementRows_Down.TargetObjectType = GetType(Nuvolar.[Module].OrderInAcknowledgementRows)
|
||||
Me.aAcknowledgementRows_Down.TargetViewId = Nothing
|
||||
Me.aAcknowledgementRows_Down.ToolTip = Nothing
|
||||
Me.aAcknowledgementRows_Down.TypeOfView = Nothing
|
||||
|
||||
End Sub
|
||||
Friend WithEvents aCreateAcknowledgementFromOrderIn As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aCreateContractsFromAcknowledgement As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aAcknowledgementRows_Up As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aAcknowledgementRows_Down As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
|
||||
End Class
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
<?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="aCreateAcknowledgementFromOrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aCreateContractsFromAcknowledgement.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>46, 103</value>
|
||||
</metadata>
|
||||
<metadata name="aAcknowledgementRows_Up.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>321, 103</value>
|
||||
</metadata>
|
||||
<metadata name="aAcknowledgementRows_Down.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>530, 103</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+276
@@ -0,0 +1,276 @@
|
||||
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.Data.Filtering
|
||||
Imports DevExpress.Xpo
|
||||
|
||||
Public Class OrderInAcknowledgementVC
|
||||
Inherits DevExpress.ExpressApp.ViewController
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
|
||||
InitializeComponent()
|
||||
RegisterActions(components)
|
||||
|
||||
End Sub
|
||||
Protected Overrides Sub OnActivated()
|
||||
MyBase.OnActivated()
|
||||
|
||||
If View.Id = "OrderInHeader_OrderInAcknowledgementHeader_ListView" Then
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.CloneObject.CloneObjectViewController)().Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "OrderInAcknowledgementHeader_OrderInAcknowledgementRows_ListView" Then
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.CloneObject.CloneObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController)().Active.SetItemValue("", False)
|
||||
End If
|
||||
End Sub
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
If View.Id = "OrderInHeader_OrderInAcknowledgementHeader_ListView" Then
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.CloneObject.CloneObjectViewController)().Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "OrderInAcknowledgementHeader_OrderInAcknowledgementRows_ListView" Then
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.CloneObject.CloneObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController)().Active.SetItemValue("", True)
|
||||
End If
|
||||
End Sub
|
||||
Private Sub aCreateAcknowledgementFromOrderIn_CustomizePopupWindowParams(sender As Object, e As DevExpress.ExpressApp.Actions.CustomizePopupWindowParamsEventArgs) Handles aCreateAcknowledgementFromOrderIn.CustomizePopupWindowParams
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _OrderInHeader As OrderInHeader = _onew.GetObject(TryCast(View.SelectedObjects(0), OrderInHeader))
|
||||
Dim _OrderInAcknowledgementPopup As OrderInAcknowledgementPopup = _onew.CreateObject(Of OrderInAcknowledgementPopup)()
|
||||
|
||||
e.View = Application.CreateDetailView(_onew, "OrderInAcknowledgementPopup_DetailView", False, _OrderInAcknowledgementPopup)
|
||||
End Sub
|
||||
Private Sub aCreateAcknowledgementFromOrderIn_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventArgs) Handles aCreateAcknowledgementFromOrderIn.Execute
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInAcknowledgementHeader_New As OrderInAcknowledgementHeader = _ocur.CreateObject(Of OrderInAcknowledgementHeader)()
|
||||
Dim _OrderInHeader As OrderInHeader = _ocur.GetObject(TryCast(View.SelectedObjects(0), OrderInHeader))
|
||||
Dim _OrderInAcknowledgementRows_New As OrderInAcknowledgementRows
|
||||
Dim _OrderInRows As OrderInRows
|
||||
Dim _OrderInRowsOther As OrderInRowsOther
|
||||
Dim i As Integer = 0
|
||||
|
||||
'----- FEJLÉC ADATOK ÁTADÁSA --------------------------------------------------------------------------
|
||||
_OrderInAcknowledgementHeader_New.OrderInHeader = _OrderInHeader
|
||||
_OrderInAcknowledgementHeader_New.DateCreated = _ocur.GetObject(TryCast(e.PopupWindow.View.SelectedObjects(0), OrderInAcknowledgementPopup).DateCreated)
|
||||
_OrderInAcknowledgementHeader_New.DocumentNumber = _OrderInHeader.OrderInParameters.NumberGeneratorAcknowledgement.GetNewNumber(_OrderInHeader.OrderInParameters.NumberGeneratorAcknowledgement)
|
||||
_OrderInAcknowledgementHeader_New.NoteHeader = _ocur.GetObject(TryCast(e.PopupWindow.View.SelectedObjects(0), OrderInAcknowledgementPopup).NoteHeader)
|
||||
_OrderInAcknowledgementHeader_New.PaymentOption = _OrderInHeader.PaymentOption
|
||||
_OrderInAcknowledgementHeader_New.ShipmentOption = _OrderInHeader.ShipmentOption
|
||||
|
||||
_OrderInAcknowledgementHeader_New.Save()
|
||||
_OrderInHeader.OrderInRows.Sorting.Add(New SortProperty("RowIndex", DB.SortingDirection.Ascending))
|
||||
|
||||
'----- SOROK ÁTADÁSA ----------------------------------------------------------------------------------
|
||||
For i = 0 To _OrderInHeader.OrderInRows.Count - 1
|
||||
_OrderInRows = _ocur.GetObject(_OrderInHeader.OrderInRows(i))
|
||||
_OrderInAcknowledgementRows_New = _ocur.CreateObject(Of OrderInAcknowledgementRows)()
|
||||
|
||||
_OrderInAcknowledgementRows_New.OrderInAcknowledgementHeader = _OrderInAcknowledgementHeader_New
|
||||
_OrderInAcknowledgementRows_New.FinalPriceDEV = _OrderInRows.FinalPriceDEV
|
||||
_OrderInAcknowledgementRows_New.FinalPriceHUF = _OrderInRows.FinalPriceHUF
|
||||
_OrderInAcknowledgementRows_New.Description = _OrderInRows.Description
|
||||
_OrderInAcknowledgementRows_New.QTT = _OrderInRows.QTT
|
||||
_OrderInAcknowledgementRows_New.QualityOption = _OrderInRows.QualityOption
|
||||
_OrderInAcknowledgementRows_New.RowGroup1 = _OrderInRows.RowGroup1
|
||||
_OrderInAcknowledgementRows_New.RowGroup2 = _OrderInRows.RowGroup2
|
||||
_OrderInAcknowledgementRows_New.Units = _OrderInRows.Products.Units
|
||||
_OrderInAcknowledgementRows_New.VAT = _OrderInRows.VAT
|
||||
_OrderInAcknowledgementRows_New.SumPriceHUF = _OrderInRows.FinalPriceHUF * _OrderInRows.QTT
|
||||
_OrderInAcknowledgementRows_New.SumPriceDEV = _OrderInRows.FinalPriceDEV * _OrderInRows.QTT
|
||||
_OrderInAcknowledgementRows_New.ShortName = _OrderInRows.Products.ShortName
|
||||
_OrderInAcknowledgementRows_New.RowIndex = i
|
||||
_OrderInAcknowledgementRows_New.OrderInRows = _OrderInRows
|
||||
|
||||
_OrderInAcknowledgementRows_New.Save()
|
||||
Next
|
||||
|
||||
For y = 0 To _OrderInHeader.OrderInRowsOther.Count - 1
|
||||
_OrderInRowsOther = _ocur.GetObject(_OrderInHeader.OrderInRowsOther(y))
|
||||
_OrderInAcknowledgementRows_New = _ocur.CreateObject(Of OrderInAcknowledgementRows)()
|
||||
|
||||
_OrderInAcknowledgementRows_New.OrderInAcknowledgementHeader = _OrderInAcknowledgementHeader_New
|
||||
_OrderInAcknowledgementRows_New.FinalPriceDEV = _OrderInRowsOther.ListPriceDEV - _OrderInRowsOther.DiscountPriceDEV
|
||||
_OrderInAcknowledgementRows_New.FinalPriceHUF = _OrderInRowsOther.ListPriceHUF - _OrderInRowsOther.DiscountPriceHUF
|
||||
_OrderInAcknowledgementRows_New.Description = _OrderInRowsOther.Description
|
||||
_OrderInAcknowledgementRows_New.QTT = _OrderInRowsOther.QTT
|
||||
_OrderInAcknowledgementRows_New.QualityOption = _OrderInRowsOther.QualityOption
|
||||
_OrderInAcknowledgementRows_New.RowGroup1 = _OrderInRowsOther.RowGroup1
|
||||
_OrderInAcknowledgementRows_New.RowGroup2 = _OrderInRowsOther.RowGroup2
|
||||
_OrderInAcknowledgementRows_New.Units = _OrderInRowsOther.Units
|
||||
_OrderInAcknowledgementRows_New.VAT = _OrderInRowsOther.VAT
|
||||
_OrderInAcknowledgementRows_New.SumPriceHUF = (_OrderInRowsOther.ListPriceHUF - _OrderInRowsOther.DiscountPriceHUF) * _OrderInRowsOther.QTT
|
||||
_OrderInAcknowledgementRows_New.SumPriceDEV = (_OrderInRowsOther.ListPriceDEV - _OrderInRowsOther.DiscountPriceDEV) * _OrderInRowsOther.QTT
|
||||
_OrderInAcknowledgementRows_New.OrderInRowsOther = _OrderInRowsOther
|
||||
If i = 0 Then
|
||||
_OrderInAcknowledgementRows_New.RowIndex = y
|
||||
Else
|
||||
_OrderInAcknowledgementRows_New.RowIndex = y + i + 1
|
||||
End If
|
||||
_OrderInAcknowledgementRows_New.ShortName = _OrderInRowsOther.ShortName
|
||||
|
||||
_OrderInAcknowledgementRows_New.Save()
|
||||
Next
|
||||
|
||||
_OrderInAcknowledgementHeader_New.RecalculateOrderInAcknowledgement(_OrderInAcknowledgementHeader_New, _ocur)
|
||||
|
||||
_ocur.CommitChanges()
|
||||
End Sub
|
||||
Private Sub aCreateContractsFromAcknowledgement_CustomizePopupWindowParams(ByVal sender As System.Object, ByVal e As DevExpress.ExpressApp.Actions.CustomizePopupWindowParamsEventArgs) Handles aCreateContractsFromAcknowledgement.CustomizePopupWindowParams
|
||||
Dim _OrderInAcknowledgementHeader As OrderInAcknowledgementHeader = TryCast(View.SelectedObjects(0), OrderInAcknowledgementHeader)
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _ContractsFromAcknowledgement_PopUp As ContractsFromAcknowledgement_PopUp = _onew.CreateObject(Of ContractsFromAcknowledgement_PopUp)()
|
||||
|
||||
_ContractsFromAcknowledgement_PopUp.OrderInAcknowledgementHeader = _OrderInAcknowledgementHeader
|
||||
_ContractsFromAcknowledgement_PopUp.CustomersFrom = _onew.GetObject(_OrderInAcknowledgementHeader.OrderInHeader.CustomersFrom)
|
||||
_ContractsFromAcknowledgement_PopUp.Save()
|
||||
|
||||
e.View = Application.CreateDetailView(_onew, _ContractsFromAcknowledgement_PopUp, True)
|
||||
|
||||
End Sub
|
||||
Private Sub aCreateContractsFromAcknowledgement_Execute(ByVal sender As System.Object, ByVal e As DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventArgs) Handles aCreateContractsFromAcknowledgement.Execute
|
||||
|
||||
'A szerződés sor jelölő adatai itt nem fontosak így a függvény élettartamára kikapcsoljuk a validálást
|
||||
Frame.GetController(Of DevExpress.ExpressApp.Validation.PersistenceValidationController)().Active.SetItemValue("", False)
|
||||
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ContractsFromAcknowledgement_PopUp As ContractsFromAcknowledgement_PopUp = TryCast(e.PopupWindow.View.SelectedObjects(0), ContractsFromAcknowledgement_PopUp)
|
||||
Dim _Contracts As Contracts
|
||||
Dim _ContractRows As ContractRows
|
||||
Dim _ContractTemplate As ContractTemplate = _ocur.FindObject(Of ContractTemplate)(CriteriaOperator.Parse("Oid=?", _ContractsFromAcknowledgement_PopUp.ContractTemplate.Oid))
|
||||
|
||||
|
||||
|
||||
_Contracts = _ocur.CreateObject(Of Contracts)()
|
||||
_Contracts.ContractTemplate = _ContractTemplate
|
||||
_Contracts.State = State.Ready
|
||||
_Contracts.DocumentNumber = _Contracts.ContractTemplate.NumberGenerator.GetNewNumber(_Contracts.ContractTemplate.NumberGenerator)
|
||||
_Contracts.CustomersFrom = _ContractsFromAcknowledgement_PopUp.OrderInAcknowledgementHeader.OrderInHeader.CustomersFrom
|
||||
_Contracts.Customers = _ContractsFromAcknowledgement_PopUp.OrderInAcknowledgementHeader.OrderInHeader.Customers
|
||||
_Contracts.DateCreated = GetSQLTime(_ocur.Session)
|
||||
_Contracts.CRM_Opportunities = _ContractsFromAcknowledgement_PopUp.OrderInAcknowledgementHeader.OrderInHeader.CRM_Opportunities
|
||||
_Contracts.ShortName = _ContractsFromAcknowledgement_PopUp.OrderInAcknowledgementHeader.DocumentNumber & " számú rendelés visszaigazolás szerződése"
|
||||
|
||||
|
||||
For Each _OrderInAcknowledgementRows As OrderInAcknowledgementRows In _ContractsFromAcknowledgement_PopUp.OrderInAcknowledgementHeader.OrderInAcknowledgementRows
|
||||
|
||||
_ContractRows = _ocur.CreateObject(Of ContractRows)()
|
||||
_ContractRows.Contracts = _Contracts
|
||||
_ContractRows.ShortName = _OrderInAcknowledgementRows.ShortName
|
||||
_ContractRows.DateExecution = _OrderInAcknowledgementRows.DateExecution
|
||||
_ContractRows.Units = _OrderInAcknowledgementRows.Units
|
||||
_ContractRows.VAT = _OrderInAcknowledgementRows.VAT
|
||||
_ContractRows.ContractRowsType = eContractRowsType.eFix
|
||||
_ContractRows.CurrencyName = _ContractsFromAcknowledgement_PopUp.OrderInAcknowledgementHeader.OrderInHeader.OrderInParameters.CurrencyName
|
||||
_ContractRows.NettoPriceHUF = _OrderInAcknowledgementRows.FinalPriceHUF
|
||||
_ContractRows.NettoPriceDEV = _OrderInAcknowledgementRows.FinalPriceDEV
|
||||
_ContractRows.RowGroup1 = _OrderInAcknowledgementRows.RowGroup1
|
||||
_ContractRows.RowGroup2 = _OrderInAcknowledgementRows.RowGroup2
|
||||
Next
|
||||
_ocur.CommitChanges()
|
||||
Frame.GetController(Of DevExpress.ExpressApp.Validation.PersistenceValidationController)().Active.SetItemValue("", True)
|
||||
|
||||
End Sub
|
||||
Private Sub aAcknowledgementRows_Up_Execute(sender As Object, e As SimpleActionExecuteEventArgs) Handles aAcknowledgementRows_Up.Execute
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInAcknowledgementRowsSelected As OrderInAcknowledgementRows = TryCast(View.SelectedObjects(0), OrderInAcknowledgementRows)
|
||||
If _OrderInAcknowledgementRowsSelected Is Nothing Then Throw New Exception("*Nincs kiválasztva egyetlen sor sem!")
|
||||
If _OrderInAcknowledgementRowsSelected.RowIndex = 0 Then
|
||||
_OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader.OrderInAcknowledgementRows.Sorting.Add(New SortProperty("RowIndex", DB.SortingDirection.Ascending))
|
||||
Dim _RowIndex As Long = 1
|
||||
For Each _OrderInAcknowledgementRows As OrderInAcknowledgementRows In _OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader.OrderInAcknowledgementRows
|
||||
_OrderInAcknowledgementRows.RowIndex = _RowIndex
|
||||
_RowIndex += 1
|
||||
Next
|
||||
Else
|
||||
Dim _HaveZeroIndex As Boolean = False
|
||||
For Each _OrderInAcknowledgementRows As OrderInAcknowledgementRows In _OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader.OrderInAcknowledgementRows
|
||||
If _OrderInAcknowledgementRows.RowIndex = 0 Then
|
||||
_HaveZeroIndex = True
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
If _HaveZeroIndex Then
|
||||
Dim _RowIndex As Long = 1
|
||||
For Each _OrderInAcknowledgementRows As OrderInAcknowledgementRows In _OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader.OrderInAcknowledgementRows
|
||||
_OrderInAcknowledgementRows.RowIndex = _RowIndex
|
||||
_RowIndex += 1
|
||||
Next
|
||||
Else
|
||||
If _OrderInAcknowledgementRowsSelected.RowIndex = 1 Then Throw New Exception("*A kiválasztott sor a legelső a listában!")
|
||||
Dim _OrderInAcknowledgementRowsPrev As OrderInAcknowledgementRows = _ocur.FindObject(Of OrderInAcknowledgementRows) _
|
||||
(CriteriaOperator.Parse("OrderInAcknowledgementHeader=? AND RowIndex=?", _OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader, _OrderInAcknowledgementRowsSelected.RowIndex - 1))
|
||||
If _OrderInAcknowledgementRowsPrev IsNot Nothing Then
|
||||
_OrderInAcknowledgementRowsSelected.RowIndex -= 1
|
||||
_OrderInAcknowledgementRowsPrev.RowIndex += 1
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, "Hiba!")
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aAcknowledgementRows_Down_Execute(sender As Object, e As SimpleActionExecuteEventArgs) Handles aAcknowledgementRows_Down.Execute
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInAcknowledgementRowsSelected As OrderInAcknowledgementRows = TryCast(View.SelectedObjects(0), OrderInAcknowledgementRows)
|
||||
If _OrderInAcknowledgementRowsSelected Is Nothing Then Throw New Exception("*Nincs kiválasztva egyetlen sor sem!")
|
||||
If _OrderInAcknowledgementRowsSelected.RowIndex = 0 Then
|
||||
_OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader.OrderInAcknowledgementRows.Sorting.Add(New SortProperty("RowIndex", DB.SortingDirection.Ascending))
|
||||
Dim _RowIndex As Long = 1
|
||||
For Each _OrderInAcknowledgementRows As OrderInAcknowledgementRows In _OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader.OrderInAcknowledgementRows
|
||||
_OrderInAcknowledgementRows.RowIndex = _RowIndex
|
||||
_RowIndex += 1
|
||||
Next
|
||||
Else
|
||||
Dim _HaveZeroIndex As Boolean = False
|
||||
For Each _OrderInAcknowledgementRows As OrderInAcknowledgementRows In _OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader.OrderInAcknowledgementRows
|
||||
If _OrderInAcknowledgementRows.RowIndex = 0 Then
|
||||
_HaveZeroIndex = True
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
If _HaveZeroIndex Then
|
||||
Dim _RowIndex As Long = 1
|
||||
For Each _OrderInAcknowledgementRows As OrderInAcknowledgementRows In _OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader.OrderInAcknowledgementRows
|
||||
_OrderInAcknowledgementRows.RowIndex = _RowIndex
|
||||
_RowIndex += 1
|
||||
Next
|
||||
Else
|
||||
If _OrderInAcknowledgementRowsSelected.RowIndex = _OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader.OrderInAcknowledgementRows.Count Then Throw New Exception("*A kiválasztott sor a legutolsó a listában!")
|
||||
Dim _OrderInAcknowledgementRowsNext As OrderInAcknowledgementRows = _ocur.FindObject(Of OrderInAcknowledgementRows) _
|
||||
(CriteriaOperator.Parse("OrderInAcknowledgementHeader=? AND RowIndex=?", _OrderInAcknowledgementRowsSelected.OrderInAcknowledgementHeader, _OrderInAcknowledgementRowsSelected.RowIndex + 1))
|
||||
If _OrderInAcknowledgementRowsNext IsNot Nothing Then
|
||||
_OrderInAcknowledgementRowsSelected.RowIndex += 1
|
||||
_OrderInAcknowledgementRowsNext.RowIndex -= 1
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, "Hiba!")
|
||||
End Try
|
||||
End Sub
|
||||
End Class
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
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)> _
|
||||
Public Class ContractsFromAcknowledgement_PopUp
|
||||
Inherits BaseObject
|
||||
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
|
||||
<NonPersistent(), Browsable(False)> Property OrderInAcknowledgementHeader As OrderInAcknowledgementHeader
|
||||
<NonPersistent()> <ImmediatePostData(True), DataSourceCriteria("CustomersFrom='@This.CustomersFrom' AND PartnerType=0")> <RuleRequiredField("ContractsFromAcknowledgement_PopUp.CustomersFrom", "PopUpOK")> Property ContractTemplate As ContractTemplate
|
||||
<NonPersistent(), Browsable(False)> Property CustomersFrom As CustomersFrom
|
||||
End Class
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
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
|
||||
|
||||
<NonPersistent()> _
|
||||
<NavigationItem(False), CreatableItem(False)> _
|
||||
<DefaultClassOptions()> _
|
||||
<Appearance("Hide OrderInHeader", AppearanceItemType.ViewItem, "1=1", TargetItems:="OrderInHeader", visibility:=Editors.ViewItemVisibility.Hide)> _
|
||||
Public Class OrderInAcknowledgementPopup
|
||||
Inherits BaseObject
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
Me.DateCreated = GetSQLTime(Session)
|
||||
End Sub
|
||||
Property DateCreated As Date
|
||||
<Size(-1)> _
|
||||
Property NoteHeader As String
|
||||
End Class
|
||||
+790
@@ -0,0 +1,790 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
|
||||
Imports DevExpress.Xpo
|
||||
Imports DevExpress.Data.Filtering
|
||||
|
||||
Imports DevExpress.ExpressApp.ConditionalAppearance
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.Persistent.Base
|
||||
Imports DevExpress.Persistent.BaseImpl
|
||||
Imports DevExpress.Persistent.Validation
|
||||
Imports System.Linq
|
||||
Imports System.Linq.Expressions
|
||||
|
||||
'-- Bejövő megrendelés ---------------------------------------------------------------------------------------------------
|
||||
|
||||
'<EditorStateRule("OrderInHeader.Customers.DisableEditor", "Customers", ViewType.DetailView, "IsNull(Contacts) = False", EditorState.Disabled)> _
|
||||
'<EditorStateRule("Disable all properties when IsEditable = False", "OrderInParameters;CustomersFrom;Customers;DocumentNumber;Contacts;DateCreated;DateExecution;ObjectCreated;IsEditable;IsStorno", ViewType.DetailView, "IsEditable = False", EditorState.Disabled)> _
|
||||
'<EditorStateRuleAttribute("Disable OrderInParameters when is not empty in OrderIn", "OrderInParameters", ViewType.DetailView, "IsNull(OrderInParameters) = False", EditorState.Disabled)> _
|
||||
'<EditorStateRuleAttribute("Disable Customers when is not empty in OrderIn", "Customers", ViewType.DetailView, "IsNull(Customers) = False", EditorState.Disabled)> _
|
||||
'<EditorStateRuleAttribute("Disable CustomresFrom when is not empty in CustomresFrom", "CustomersFrom", ViewType.DetailView, "IsNull(CustomersFrom) = False", EditorState.Disabled)> _
|
||||
'<EditorStateRuleAttribute("Disable CRM_Opportunities when is not empty in CRM_Opportunities", "CRM_Opportunities", ViewType.DetailView, "IsNull(CRM_Opportunities) = False", EditorState.Disabled)> _
|
||||
'<EditorStateRuleAttribute("Disable Contacts when is not empty in Contacts", "Contacts", ViewType.DetailView, "IsNull(Contacts) = False", EditorState.Disabled)> _
|
||||
'<EditorStateRuleAttribute("Disable CRM_Opportunities when IsEditable=False", "CRM_Opportunities", ViewType.DetailView, " IsEditable=False", EditorState.Disabled)> _
|
||||
|
||||
'<Appearance("Hide Item2", AppearanceItemType.LayoutItem, "IsNull(DocumentNumber) Or IsNull(OrderInParameters) Or (IsNull(CustomersFrom) Or IsNull(Customers))", TargetItems:="Item2", visibility:=Editors.ViewItemVisibility.Hide)> _
|
||||
'<Appearance("Hide Item4", AppearanceItemType.LayoutItem, "IsNull(DocumentNumber) Or IsNull(OrderInParameters) Or (IsNull(CustomersFrom) Or IsNull(Customers))", TargetItems:="Item4", visibility:=Editors.ViewItemVisibility.Hide)> _
|
||||
|
||||
<DefaultClassOptions()>
|
||||
<NavigationItem("BusinessTransactions")>
|
||||
<Appearance("OrderInHeader.Customers.DisableEditor", TargetItems:="Customers", Criteria:="IsNull(Contacts) = False", Enabled:=False, Context:="DetailView")>
|
||||
<Appearance("Disable all properties when IsEditable = False", TargetItems:="OrderInParameters;CustomersFrom;Customers;DocumentNumber;Contacts;DateCreated;DateExecution;ObjectCreated;IsEditable;IsStorno", Criteria:="IsEditable = False", Enabled:=False, Context:="DetailView")>
|
||||
<Appearance("Disable Customers when is not empty in OrderIn", TargetItems:="Customers", Criteria:="IsNull(DocumentNumber) = False", Enabled:=False, Context:="DetailView")>
|
||||
<Appearance("Disable CustomresFrom when is not empty in CustomresFrom", TargetItems:="CustomersFrom", Criteria:="IsNull(CustomersFrom) = False", Enabled:=False, Context:="DetailView")>
|
||||
<Appearance("Disable CRM_Opportunities when is not empty in CRM_Opportunities", TargetItems:="CRM_Opportunities", Criteria:="IsNull(CRM_Opportunities) = False", Enabled:=False, Context:="DetailView")>
|
||||
<Appearance("Disable CRM_Opportunities when IsEditable=False", TargetItems:="CRM_Opportunities", Criteria:="IsEditable=False", Enabled:=False, Context:="DetailView")>
|
||||
<Appearance("Hide Tab_OrderInRows", AppearanceItemType.LayoutItem, "IsNull(DocumentNumber) Or IsNull(OrderInParameters) Or (IsNull(CustomersFrom) Or IsNull(Customers))", TargetItems:="Tab_OrderInRows", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide Tab_OrderInAcknoledgement", AppearanceItemType.LayoutItem, "IsNull(DocumentNumber) Or IsNull(OrderInParameters) Or (IsNull(CustomersFrom) Or IsNull(Customers))", TargetItems:="Tab_OrderInAcknoledgement", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide Tab_DeliveryNoteOutRows", AppearanceItemType.LayoutItem, "IsNull(DocumentNumber) Or IsNull(OrderInParameters) Or (IsNull(CustomersFrom) Or IsNull(Customers))", TargetItems:="Tab_DeliveryNoteOutRows", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide AddRows and RemoveRows", AppearanceItemType.Action, "IsNull(OrderInParameters) Or (IsNull(CustomersFrom) Or IsNull(Customers))", TargetItems:="aToTable_OrderIn;aToTableD_OrderIn;aToTable_OrderInOther;aToTableD_OrderInOther", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide AddRows and RemoveRows when IsEditable=False", AppearanceItemType.Action, "IsEditable=False", TargetItems:="aToTable_OrderIn;aToTableD_OrderIn;aToTable_OrderInOther;aToTableD_OrderInOther", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide row_Products and row_QTT when IsEditable=False", AppearanceItemType.ViewItem, "IsEditable=False", TargetItems:="row_o_DiscountPercent;row_o_ListPriceDEV;row_o_ListPriceHUF;row_o_VAT;row_o_Units;row_o_QTT;row_o_Description;row_o_ShortName;row_Products;row_QTT", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide DEV properties when CurrencyName = HUF", AppearanceItemType.ViewItem, "OrderInParameters.CurrencyName.ShortName = 'HUF'", TargetItems:="row_o_ListPriceDEV", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide HUF properties when CurrencyName != HUF", AppearanceItemType.ViewItem, "OrderInParameters.CurrencyName.ShortName != 'HUF'", TargetItems:="row_o_ListPriceHUF", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide row_ info when IsEditable=False OrderIn", AppearanceItemType.ViewItem, "IsEditable=False", TargetItems:="row_Products; row_QTT; row_o_ShortName;" _
|
||||
& "row_o_Description; row_o_QTT; row_o_Units; row_o_VAT; row_o_ListPriceHUF; row_o_ListPriceDEV; row_o_DiscountPercent", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide aGenerateStorageOutFromOrderIn when IsEditable=False", AppearanceItemType.Action, "IsEditable=False", TargetItems:="aGenerateStorageOutFromOrderIn", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide aGenerateStorageOutFromOrderInFIFO when IsEditable=False", AppearanceItemType.Action, "IsEditable=False", TargetItems:="aGenerateStorageOutFromOrderInFIFO", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide aGenerateStorageOutFromOrderInBack when IsEditable=False", AppearanceItemType.Action, "IsEditable=False", TargetItems:="aGenerateStorageOutFromOrderInBack", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide aProductFinder when IsEditable=False", AppearanceItemType.Action, "IsEditable=False", TargetItems:="aProductFinder", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Hide aGenerateOrderOutTempFromOrderIn when IsEditable=False", AppearanceItemType.Action, "IsEditable=False", TargetItems:="aGenerateOrderOutTempFromOrderIn", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("Disable ObjectCreated OrderInHeader", AppearanceItemType.ViewItem, "1=1", TargetItems:="ObjectCreated", Enabled:=False)>
|
||||
<Appearance("Disable UserCreated OrderInHeader", AppearanceItemType.ViewItem, "1=1", TargetItems:="UserCreated", Enabled:=False)>
|
||||
<Appearance("Hide row_APCSheetByProducts", AppearanceItemType.ViewItem, "OrderInParameters.IsAPCSheet<>True", TargetItems:="row_APCSheetByProducts", Visibility:=Editors.ViewItemVisibility.Hide)>
|
||||
<Appearance("OrderInHeader - Disable OfferOutHeader all times", AppearanceItemType.ViewItem, "1=1", TargetItems:="OfferOutHeader", Enabled:=False)>
|
||||
<DefaultProperty("DocumentNumber")>
|
||||
Public Class OrderInHeader
|
||||
Inherits BaseObject
|
||||
Private _OrderInParameters As OrderInParameters 'Bejövő megrendelés paraméterei
|
||||
Private _OfferOutHeader As OfferOutHeader 'Kimenő árajánlat kapcsolata
|
||||
Private _CustomersFrom As CustomersFrom 'Saját cég
|
||||
Private _Customers As Customers 'Ügyfél
|
||||
Private _CustomersRefNumber As String 'partner megrendelési referencia száma
|
||||
Private _DocumentNumber As String 'Sorszám
|
||||
Private _Contacts As Contacts 'Kapcsolat
|
||||
Private _DateCreated As Date 'Létrehozás dátuma
|
||||
Private _DateExecution As Date 'Végrehajtás dátuma
|
||||
Private _ObjectCreated As Date 'Az objektum létrejöttének időpontja
|
||||
Private _UserCreated As User
|
||||
Private _IsEditable As Boolean = True 'Végleges e?
|
||||
Private _IsStorno As Boolean = False 'Stornó e?
|
||||
Private _TotalBruttoHUF As Double = 0 'Teljes összeg bruttó HUF
|
||||
Private _TotalBruttoDEV As Double = 0 ' Teljes összeg bruttó DEV
|
||||
Private _PaymentOption As PaymentOption 'Fizetési opció
|
||||
Private _ShipmentOption As ShipmentOption 'Szállítási opció
|
||||
Private _QualityOption As QualityOption 'Minőségi opció
|
||||
|
||||
Private _PermissionAllowed As Boolean 'Engedélyzve, vagy sem.
|
||||
Private _WorkflowSystemSteps As WorkflowSystemSteps 'Folyamatlépések
|
||||
|
||||
'-- CRM miatt
|
||||
Private _CRM_Opportunities As CRM_Opportunities
|
||||
'-- Non persistent
|
||||
Private _row_Products As ProductSelect 'Termék, ami meg lett rendelve
|
||||
Private _row_QTT As Double 'Termék rendelt mennyisége
|
||||
Private _row_DiscountPercent As Double 'Kedvezmény %-ban !
|
||||
Private _row_APCSheetByProducts As APCSheetByProducts 'Termeltetési szerződés
|
||||
Private _row_ListPriceHUF As Double 'Értékesítési listaár
|
||||
Private _row_ListPriceDEV As Double 'Értékesítési listaár DEVIZA
|
||||
|
||||
'-- Non persistent for other rows
|
||||
Private _row_o_APCSheetByProducts As APCSheetByProducts 'Termeltetési szerződés
|
||||
Private _row_o_CustomsTariffs As CustomsTariffs 'SZJ szám
|
||||
Private _row_o_ShortName As String 'Megnevezés
|
||||
Private _row_o_Description As String 'Leírás
|
||||
Private _row_o_QTT As Double 'Mennyiség
|
||||
Private _row_o_Units As Units 'Mennyiségi egység
|
||||
Private _row_o_VAT As VAT 'ÁFA kód
|
||||
Private _row_o_ListPriceHUF As Double 'Termék listaára HUF
|
||||
Private _row_o_ListPriceDEV As Double 'Termék listaára DEV
|
||||
Private _row_o_DiscountPercent As Double 'Termék ár kedvezmény %-ban
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
|
||||
DateCreated = GetSQLTime(Session)
|
||||
DateExecution = GetSQLTime(Session)
|
||||
ObjectCreated = GetSQLTime(Session)
|
||||
Me.row_o_VAT = Session.FindObject(Of VAT)(CriteriaOperator.Parse("DefaultForBusinnes=True"))
|
||||
Me.row_o_Units = Session.FindObject(Of Units)(CriteriaOperator.Parse("DefaultForBusinnes=True"))
|
||||
End Sub
|
||||
Protected Overrides Sub OnSaving()
|
||||
MyBase.OnSaving()
|
||||
If IsDeleted = False Then
|
||||
If Session.IsNewObject(Me) Then
|
||||
ObjectCreated = GetSQLTime(Session)
|
||||
UserCreated = Session.GetObjectByKey(Of User)(Session.GetKeyValue(SecuritySystem.CurrentUser))
|
||||
End If
|
||||
If String.IsNullOrEmpty(DocumentNumber) Then
|
||||
DocumentNumber = OrderInParameters.NumberGenerator.GetNewNumber(OrderInParameters.NumberGenerator)
|
||||
End If
|
||||
|
||||
RecalculateHeaderTotalBrutto()
|
||||
|
||||
If Me.OrderInParameters IsNot Nothing Then
|
||||
If Me.ShipmentOption Is Nothing And Me.OrderInParameters.ShipmentOption IsNot Nothing Then
|
||||
Me.ShipmentOption = Me.OrderInParameters.ShipmentOption
|
||||
End If
|
||||
If Me.QualityOption Is Nothing And Me.OrderInParameters.QualityOption IsNot Nothing Then
|
||||
Me.QualityOption = Me.OrderInParameters.QualityOption
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
<ImmediatePostData(True), DataSourceCriteria("CustomersFrom='@This.CustomersFrom'")>
|
||||
Property OfferOutHeader As OfferOutHeader
|
||||
Get
|
||||
Return _OfferOutHeader
|
||||
End Get
|
||||
Set(value As OfferOutHeader)
|
||||
SetPropertyValue("OfferOutHeader", _OfferOutHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<RuleRequiredField("ROrderInHeader.OrderInParameters", DefaultContexts.Save)>
|
||||
<ImmediatePostData(True), DataSourceCriteria("CustomersFrom = '@This.CustomersFrom'")>
|
||||
Property OrderInParameters() As OrderInParameters
|
||||
Get
|
||||
Return _OrderInParameters
|
||||
End Get
|
||||
Set(ByVal value As OrderInParameters)
|
||||
SetPropertyValue("OrderInParameters", _OrderInParameters, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("OrderInHeader.CustomersFrom", DefaultContexts.Save)>
|
||||
Property CustomersFrom() As CustomersFrom
|
||||
Get
|
||||
Return _CustomersFrom
|
||||
End Get
|
||||
Set(ByVal value As CustomersFrom)
|
||||
SetPropertyValue("CustomersFrom", _CustomersFrom, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("OrderInHeader.Customers", DefaultContexts.Save)>
|
||||
<ImmediatePostData>
|
||||
Property Customers() As Customers
|
||||
Get
|
||||
Return _Customers
|
||||
End Get
|
||||
Set(ByVal value As Customers)
|
||||
SetPropertyValue("Customers", _Customers, value)
|
||||
If Not Session.IsObjectsSaving And Not Session.IsObjectsLoading Then
|
||||
If value IsNot Nothing Then
|
||||
If value.PaymentOption IsNot Nothing And Me.PaymentOption Is Nothing Then
|
||||
Me.PaymentOption = value.PaymentOption
|
||||
End If
|
||||
If value.ShipmentOption IsNot Nothing And Me.ShipmentOption Is Nothing Then
|
||||
Me.ShipmentOption = value.ShipmentOption
|
||||
End If
|
||||
If value.QualityOption IsNot Nothing And Me.QualityOption Is Nothing Then
|
||||
Me.QualityOption = value.QualityOption
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property CustomersRefNumber As String
|
||||
Get
|
||||
Return _CustomersRefNumber
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("CustomersRefNumber", _CustomersRefNumber, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonCloneable()>
|
||||
Property DocumentNumber() As String
|
||||
Get
|
||||
Return _DocumentNumber
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("DocumentNumber", _DocumentNumber, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("OrderInHeader.Contacts", DefaultContexts.Save)>
|
||||
<ImmediatePostData(True), DataSourceProperty("Customers.Contacts", DataSourcePropertyIsNullMode.CustomCriteria, "Oid=Oid")>
|
||||
Property Contacts() As Contacts
|
||||
Get
|
||||
Return _Contacts
|
||||
End Get
|
||||
Set(ByVal value As Contacts)
|
||||
SetPropertyValue("Contacts", _Contacts, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonCloneable()>
|
||||
Property DateCreated() As Date
|
||||
Get
|
||||
Return _DateCreated
|
||||
End Get
|
||||
Set(ByVal value As Date)
|
||||
SetPropertyValue("DateCreated", _DateCreated, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonCloneable()>
|
||||
Property DateExecution() As Date
|
||||
Get
|
||||
Return _DateExecution
|
||||
End Get
|
||||
Set(ByVal value As Date)
|
||||
SetPropertyValue("DateExecution", _DateExecution, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonCloneable()>
|
||||
Property ObjectCreated() As Date
|
||||
Get
|
||||
Return _ObjectCreated
|
||||
End Get
|
||||
Set(ByVal value As Date)
|
||||
SetPropertyValue("ObjectCreated", _ObjectCreated, 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
|
||||
Property IsEditable() As Boolean
|
||||
Get
|
||||
Return _IsEditable
|
||||
End Get
|
||||
Set(ByVal value As Boolean)
|
||||
SetPropertyValue("IsEditable", _IsEditable, value)
|
||||
End Set
|
||||
End Property
|
||||
Property IsStorno() As Boolean
|
||||
Get
|
||||
Return _IsStorno
|
||||
End Get
|
||||
Set(ByVal value As Boolean)
|
||||
SetPropertyValue("IsStorno", _IsStorno, value)
|
||||
End Set
|
||||
End Property
|
||||
Property TotalBruttoHUF As Double
|
||||
Get
|
||||
Return _TotalBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("TotalBruttoHUF", _TotalBruttoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property TotalBruttoDEV As Double
|
||||
Get
|
||||
Return _TotalBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("TotalBruttoDEV", _TotalBruttoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property PaymentOption As PaymentOption
|
||||
Get
|
||||
Return _PaymentOption
|
||||
End Get
|
||||
Set(value As PaymentOption)
|
||||
SetPropertyValue("PaymentOption", _PaymentOption, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ShipmentOption As ShipmentOption
|
||||
Get
|
||||
Return _ShipmentOption
|
||||
End Get
|
||||
Set(value As ShipmentOption)
|
||||
SetPropertyValue("ShipmentOption", _ShipmentOption, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QualityOption() As QualityOption
|
||||
Get
|
||||
Return _QualityOption
|
||||
End Get
|
||||
Set(ByVal value As QualityOption)
|
||||
SetPropertyValue("QualityOption", _QualityOption, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property PermissionAllowed As Boolean
|
||||
Get
|
||||
Return _PermissionAllowed
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("PermissionAllowed", _PermissionAllowed, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData(True), DataSourceCriteria("WorkflowSystem.CustomersFrom = '@This.OrderInParameters.WorkflowSystem'")>
|
||||
Property WorkflowSystemSteps As WorkflowSystemSteps
|
||||
Get
|
||||
Return _WorkflowSystemSteps
|
||||
End Get
|
||||
Set(value As WorkflowSystemSteps)
|
||||
SetPropertyValue("WorkflowSystemSteps", _WorkflowSystemSteps, value)
|
||||
End Set
|
||||
End Property
|
||||
'-- CRM miatt
|
||||
<Association("CRM_Opportunities-OrderInHeader", GetType(CRM_Opportunities))>
|
||||
Property CRM_Opportunities As CRM_Opportunities
|
||||
Get
|
||||
Return _CRM_Opportunities
|
||||
End Get
|
||||
Set(ByVal value As CRM_Opportunities)
|
||||
SetPropertyValue("CRM_Opportunities", _CRM_Opportunities, value)
|
||||
End Set
|
||||
End Property
|
||||
'-- Non persistent
|
||||
<NonPersistent()>
|
||||
<RuleRequiredField("OrderInHeader-row_Products", "aToTable_OrderIn")>
|
||||
<VisibleInListView(False)>
|
||||
Property row_Products As ProductSelect
|
||||
Get
|
||||
Return _row_Products
|
||||
End Get
|
||||
Set(ByVal value As ProductSelect)
|
||||
SetPropertyValue("row_Products", _row_Products, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
<RuleRange("OrderInHeader-row_QTT", "aToTable_OrderIn", 0.0001, Double.MaxValue)>
|
||||
<VisibleInListView(False)>
|
||||
Property row_QTT As Double
|
||||
Get
|
||||
Return _row_QTT
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("row_QTT", _row_QTT, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent, VisibleInListView(False), VisibleInLookupListView(False)>
|
||||
Property row_DiscountPercent As Double
|
||||
Get
|
||||
Return _row_DiscountPercent
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("row_DiscountPercent", _row_DiscountPercent, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent>
|
||||
<RuleRequiredField("OrderInHeader-row_APCSheetByProducts", "aToTable_OrderIn", TargetCriteria:="OrderInParameters.IsAPCSheet=True")>
|
||||
<ImmediatePostData(True), DataSourceCriteria("APCSheetHeader.Customers='@This.Customers' and APCSheetHeader.CustomersFrom='@This.CustomersFrom'")>
|
||||
Property row_APCSheetByProducts As APCSheetByProducts
|
||||
Get
|
||||
Return _row_APCSheetByProducts
|
||||
End Get
|
||||
Set(value As APCSheetByProducts)
|
||||
SetPropertyValue("row_APCSheetByProducts", _row_APCSheetByProducts, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent>
|
||||
Property row_ListPriceHUF As Double
|
||||
Get
|
||||
Return _row_ListPriceHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("row_ListPriceHUF", _row_ListPriceHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent>
|
||||
Property row_ListPriceDEV As Double
|
||||
Get
|
||||
Return _row_ListPriceDEV
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("row_ListPriceDEV", _row_ListPriceDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
'-- Non persistent for other rows
|
||||
<NonPersistent>
|
||||
<RuleRequiredField("OrderInHeader-row_o_APCSheetByProducts", "aToTable_OrderInOther_Context", TargetCriteria:="OrderInParameters.IsAPCSheet=True")>
|
||||
<ImmediatePostData(True), DataSourceCriteria("APCSheetHeader.Customers='@This.Customers' and APCSheetHeader.CustomersFrom='@This.CustomersFrom'")>
|
||||
Property row_o_APCSheetByProducts As APCSheetByProducts
|
||||
Get
|
||||
Return _row_o_APCSheetByProducts
|
||||
End Get
|
||||
Set(value As APCSheetByProducts)
|
||||
SetPropertyValue("row_o_APCSheetByProducts", _row_o_APCSheetByProducts, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
<RuleRequiredField("OrderInHeader-row_o_CustomsTariffs", "aToTable_OrderInOther_Context")>
|
||||
<VisibleInListView(False)>
|
||||
Property row_o_CustomsTariffs As CustomsTariffs
|
||||
Get
|
||||
Return _row_o_CustomsTariffs
|
||||
End Get
|
||||
Set(value As CustomsTariffs)
|
||||
SetPropertyValue("row_o_CustomsTariffs", _row_o_CustomsTariffs, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
<RuleRequiredField("OrderInHeader-row_o_ShortName", "aToTable_OrderInOther_Context")>
|
||||
<VisibleInListView(False)>
|
||||
Property row_o_ShortName As String
|
||||
Get
|
||||
Return _row_o_ShortName
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("row_o_ShortName", _row_o_ShortName, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
<RuleRequiredField("OrderInHeader-row_o_Description", "aToTable_OrderInOther_Context")>
|
||||
<VisibleInListView(False)>
|
||||
Property row_o_Description As String
|
||||
Get
|
||||
Return _row_o_Description
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("row_o_Description", _row_o_Description, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
<RuleValueComparison("OrderInHeader-row_o_QTT", "aToTable_OrderInOther_Context", ValueComparisonType.NotEquals, 0)>
|
||||
<VisibleInListView(False)>
|
||||
Property row_o_QTT As Double
|
||||
Get
|
||||
Return _row_o_QTT
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("row_o_QTT", _row_o_QTT, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
<RuleRequiredField("OrderInHeader-row_o_Units", "aToTable_OrderInOther_Context")>
|
||||
<VisibleInListView(False)>
|
||||
Property row_o_Units As Units
|
||||
Get
|
||||
Return _row_o_Units
|
||||
End Get
|
||||
Set(value As Units)
|
||||
SetPropertyValue("row_o_Units", _row_o_Units, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
<RuleRequiredField("OrderInHeader-row_o_VAT", "aToTable_OrderInOther_Context")>
|
||||
<VisibleInListView(False)>
|
||||
Property row_o_VAT As VAT
|
||||
Get
|
||||
Return _row_o_VAT
|
||||
End Get
|
||||
Set(value As VAT)
|
||||
SetPropertyValue("row_o_VAT", _row_o_VAT, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
<RuleRange("OrderInHeader-row_o_ListPriceHUF", "aToTable_OrderInOther_Context", 0.0001, Double.MaxValue, TargetCriteria:="OrderInParameters.CurrencyName.ShortName = 'HUF'")>
|
||||
<VisibleInListView(False)>
|
||||
Property row_o_ListPriceHUF As Double
|
||||
Get
|
||||
Return _row_o_ListPriceHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("row_o_ListPriceHUF", _row_o_ListPriceHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
<RuleRange("OrderInHeader-row_o_ListPriceDEV", "aToTable_OrderInOther_Context", 0.0001, Double.MaxValue, TargetCriteria:="OrderInParameters.CurrencyName.ShortName != 'HUF'")>
|
||||
<VisibleInListView(False)>
|
||||
Property row_o_ListPriceDEV As Double
|
||||
Get
|
||||
Return _row_o_ListPriceDEV
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("row_o_ListPriceDEV", _row_o_ListPriceDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
<RuleRange("OrderInHeader-row_o_DiscountPercent", "aToTable_OrderInOther_Context", 0, 99)>
|
||||
<VisibleInListView(False)>
|
||||
Property row_o_DiscountPercent As Double
|
||||
Get
|
||||
Return _row_o_DiscountPercent
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("row_o_DiscountPercent", _row_o_DiscountPercent, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'-- XPCollections
|
||||
<VisibleInListView(False)>
|
||||
<Association("OrderInHeader-OrderInHeaderVAT", GetType(OrderInHeaderVAT))>
|
||||
ReadOnly Property OrderInHeaderVAT As XPCollection(Of OrderInHeaderVAT)
|
||||
Get
|
||||
Return GetCollection(Of OrderInHeaderVAT)("OrderInHeaderVAT")
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False)>
|
||||
<Association("OrderInHeader-OrderInAcknowledgementHeader", GetType(OrderInAcknowledgementHeader))>
|
||||
ReadOnly Property OrderInAcknowledgementHeader As XPCollection(Of OrderInAcknowledgementHeader)
|
||||
Get
|
||||
Return GetCollection(Of OrderInAcknowledgementHeader)("OrderInAcknowledgementHeader")
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False)>
|
||||
ReadOnly Property OrderInTo As XPCollection(Of OrderInTo)
|
||||
Get
|
||||
Return New XPCollection(Of OrderInTo)(Session, CriteriaOperator.Parse("OrderInRows.OrderInHeader.Oid=?", Me.Oid))
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False)>
|
||||
<Association("OrderInHeader", GetType(OrderInRows))>
|
||||
ReadOnly Property OrderInRows() As XPCollection
|
||||
Get
|
||||
Return GetCollection("OrderInRows")
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False)>
|
||||
<Association("OrderInHeader-OrderInRowsOther", GetType(OrderInRowsOther))>
|
||||
ReadOnly Property OrderInRowsOther As XPCollection(Of OrderInRowsOther)
|
||||
Get
|
||||
Return GetCollection(Of OrderInRowsOther)("OrderInRowsOther")
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInDetailView(False), VisibleInListView(False), VisibleInLookupListView(False)>
|
||||
ReadOnly Property DeliveryNoteOutRows As XPCollection(Of DeliveryNoteOutRows)
|
||||
Get
|
||||
Return New XPCollection(Of DeliveryNoteOutRows)(Session, CriteriaOperator.Parse("StorageOutRowsInRows.StorageOutRows.OrderInRows.OrderInHeader=?", Me))
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)>
|
||||
ReadOnly Property InvoiceRows As XPCollection(Of InvoiceRows)
|
||||
Get
|
||||
Return New XPCollection(Of InvoiceRows)(Session, CriteriaOperator.Parse("(OrderInRows.OrderInHeader=? or OrderInRowsOther.OrderInHeader=?) and IsNull(InvoiceHeader.GCRecord)=True and IsNull(InvoiceHeader)=False", Me, Me))
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)>
|
||||
ReadOnly Property InvoiceAdvance As XPCollection(Of InvoiceHeader)
|
||||
Get
|
||||
Dim _Criteria As String = ""
|
||||
_Criteria = " IsEditable=False and DocumentNumber !='' and "
|
||||
_Criteria += " InvoiceType.InvoiceTypeBase In ('eEarnestofTender','eAdvancePayment') and "
|
||||
_Criteria += " Customers=? and CustomersFrom=? and IsNull(GCRecord)=True and "
|
||||
_Criteria += " TotalBruttoHUF > TotalAdvancedBruttoHUF "
|
||||
|
||||
Return New XPCollection(Of InvoiceHeader)(Session, CriteriaOperator.Parse(_Criteria, Customers, Me.CustomersFrom))
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)>
|
||||
ReadOnly Property StorageOutRowsInRows As XPCollection(Of StorageOutRowsInRows)
|
||||
Get
|
||||
Return New XPCollection(Of StorageOutRowsInRows)(Session, CriteriaOperator.Parse("StorageOutRows.OrderInRows.OrderInHeader=? and StorageOutRows.QTT<>0", Me))
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)>
|
||||
ReadOnly Property StorageMoveEvents As XPCollection(Of StorageMoveEvents)
|
||||
Get
|
||||
Return New XPCollection(Of StorageMoveEvents)(Session, CriteriaOperator.Parse("StorageOutRows.OrderInRows.OrderInHeader=?", Me))
|
||||
End Get
|
||||
End Property
|
||||
<Association("OrderInheader-OrderInheaderFileAttachment", GetType(OrderInHeaderFileAttachment)), VisibleInListView(False), VisibleInLookupListView(False)>
|
||||
ReadOnly Property OrderInHeaderFileAttachment As XPCollection(Of OrderInHeaderFileAttachment)
|
||||
Get
|
||||
Return GetCollection(Of OrderInHeaderFileAttachment)("OrderInHeaderFileAttachment")
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)>
|
||||
ReadOnly Property PCIDetail As XPCollection(Of PCIDetail)
|
||||
Get
|
||||
'// Partnerhez tartozó nyitott pénzügyi teljesítések előleghez !
|
||||
Dim _PCIDetail_Collection_Return As New XPCollection(Of PCIDetail)(Session, CriteriaOperator.Parse("1=2"))
|
||||
Dim _PCIGroup_Collection As XPCollection(Of PCIGroup)
|
||||
If Me.OrderInParameters IsNot Nothing Then
|
||||
If Me.OrderInParameters.CurrencyName_Invoice.ShortName = "HUF" Then
|
||||
_PCIGroup_Collection = New XPCollection(Of PCIGroup)(Session,
|
||||
CriteriaOperator.Parse(" CustomersFrom=? and Customers=? " +
|
||||
" and PartnerType=0 and CurrencyName=?" +
|
||||
" and BallanceHUF<0",
|
||||
Me.CustomersFrom, Me.Customers, Me.OrderInParameters.CurrencyName_Invoice))
|
||||
Else
|
||||
_PCIGroup_Collection = New XPCollection(Of PCIGroup)(Session,
|
||||
CriteriaOperator.Parse(" CustomersFrom=? and Customers=? " +
|
||||
" and PartnerType=0 and CurrencyName=?" +
|
||||
" and BallanceDEV<0",
|
||||
Me.CustomersFrom, Me.Customers, Me.OrderInParameters.CurrencyName_Invoice))
|
||||
End If
|
||||
Dim _PCIGroup As PCIGroup
|
||||
Dim _PCIDetail As PCIDetail
|
||||
For Each _PCIGroup In _PCIGroup_Collection
|
||||
Dim _PCIDetail_Collection As New XPCollection(Of PCIDetail)(Session, CriteriaOperator.Parse("PCIGroup=?", _PCIGroup))
|
||||
For Each _PCIDetail In _PCIDetail_Collection
|
||||
Select Case _PCIDetail.MainType
|
||||
Case "03-Cassa", "02-Bank"
|
||||
_PCIDetail_Collection_Return.Add(_PCIDetail)
|
||||
End Select
|
||||
|
||||
Next
|
||||
Next
|
||||
End If
|
||||
Return _PCIDetail_Collection_Return
|
||||
End Get
|
||||
End Property
|
||||
Sub RecalculateOrder(ByVal _OrderInHeader As OrderInHeader, ByVal _ocur As Xpo.XPObjectSpace)
|
||||
'-- A rutin újragenerálja a pénzügyi sorokat
|
||||
Dim _OrderInHeaderVAT As OrderInHeaderVAT
|
||||
|
||||
Dim i As Long = 1
|
||||
Dim j As Long = 1
|
||||
Dim _Exists As Boolean = False
|
||||
|
||||
_ocur.Delete(_OrderInHeader.OrderInHeaderVAT)
|
||||
Dim orderinrows = New XPQuery(Of OrderInRows)(_ocur.Session)
|
||||
Dim query = From orderinrow In orderinrows Where orderinrow.OrderInHeader.Oid = _OrderInHeader.Oid
|
||||
Group orderinrow By orderinrow.Products.VAT Into g = Group
|
||||
Select New With {Key .VAT = VAT,
|
||||
Key .AmountNettoHUF = g.Sum(Function(inv) (inv.ListPriceHUF - inv.DiscountPriceHUF) * inv.QTT),
|
||||
Key .AmountNettoDEV = g.Sum(Function(inv) (inv.ListPriceDEV - inv.DiscountPriceDEV) * inv.QTT),
|
||||
Key .S2 = g.Sum(Function(inv) inv.ListPriceDEV),
|
||||
Key .M1 = g.Max(Function(inv) inv.DiscountPriceHUF * inv.QTT)}
|
||||
For Each item In query
|
||||
_OrderInHeaderVAT = _ocur.CreateObject(Of OrderInHeaderVAT)()
|
||||
_OrderInHeaderVAT.OrderInHeader = _OrderInHeader
|
||||
_OrderInHeaderVAT.AmountNettoHUF = Math.Round(item.AmountNettoHUF, 0, MidpointRounding.AwayFromZero)
|
||||
_OrderInHeaderVAT.AmountVATHUF = 0
|
||||
_OrderInHeaderVAT.VAT = item.VAT
|
||||
If item.VAT IsNot Nothing Then
|
||||
_OrderInHeaderVAT.AmountVATHUF = Math.Round(item.VAT.KeyValue * _OrderInHeaderVAT.AmountNettoHUF, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
_OrderInHeaderVAT.AmountBruttoHUF = _OrderInHeaderVAT.AmountNettoHUF + _OrderInHeaderVAT.AmountVATHUF
|
||||
|
||||
_OrderInHeaderVAT.AmountNettoDEV = Math.Round(item.AmountNettoDEV, 2, MidpointRounding.AwayFromZero)
|
||||
_OrderInHeaderVAT.AmountVATDEV = 0
|
||||
If item.VAT IsNot Nothing Then
|
||||
_OrderInHeaderVAT.AmountVATDEV = Math.Round(item.VAT.KeyValue * _OrderInHeaderVAT.AmountNettoDEV, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
_OrderInHeaderVAT.AmountBruttoDEV = _OrderInHeaderVAT.AmountNettoDEV + _OrderInHeaderVAT.AmountVATDEV
|
||||
|
||||
_OrderInHeaderVAT.Save()
|
||||
_OrderInHeader.OrderInHeaderVAT.Add(_OrderInHeaderVAT)
|
||||
Next
|
||||
|
||||
Dim orderinrowsother = New XPQuery(Of OrderInRowsOther)(_ocur.Session)
|
||||
Dim query1 = From orderinrowo In orderinrowsother Where orderinrowo.OrderInHeader.Oid = _OrderInHeader.Oid
|
||||
Group orderinrowo By orderinrowo.VAT Into g = Group
|
||||
Select New With {Key .VAT = VAT,
|
||||
Key .AmountNettoHUF = g.Sum(Function(inv) (inv.ListPriceHUF - inv.DiscountPriceHUF) * inv.QTT),
|
||||
Key .AmountNettoDEV = g.Sum(Function(inv) (inv.ListPriceDEV - inv.DiscountPriceDEV) * inv.QTT),
|
||||
Key .S2 = g.Sum(Function(inv) inv.ListPriceDEV),
|
||||
Key .M1 = g.Max(Function(inv) inv.DiscountPriceHUF * inv.QTT)}
|
||||
For Each item In query1
|
||||
_OrderInHeaderVAT = _ocur.CreateObject(Of OrderInHeaderVAT)()
|
||||
_OrderInHeaderVAT.OrderInHeader = _OrderInHeader
|
||||
_OrderInHeaderVAT.AmountNettoHUF = Math.Round(item.AmountNettoHUF, 0, MidpointRounding.AwayFromZero)
|
||||
_OrderInHeaderVAT.AmountVATHUF = 0
|
||||
_OrderInHeaderVAT.VAT = item.VAT
|
||||
If item.VAT IsNot Nothing Then
|
||||
_OrderInHeaderVAT.AmountVATHUF = Math.Round(item.VAT.KeyValue * _OrderInHeaderVAT.AmountNettoHUF, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
_OrderInHeaderVAT.AmountBruttoHUF = _OrderInHeaderVAT.AmountNettoHUF + _OrderInHeaderVAT.AmountVATHUF
|
||||
|
||||
_OrderInHeaderVAT.AmountNettoDEV = Math.Round(item.AmountNettoDEV, 2, MidpointRounding.AwayFromZero)
|
||||
_OrderInHeaderVAT.AmountVATDEV = 0
|
||||
If item.VAT IsNot Nothing Then
|
||||
_OrderInHeaderVAT.AmountVATDEV = Math.Round(item.VAT.KeyValue * _OrderInHeaderVAT.AmountNettoDEV, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
_OrderInHeaderVAT.AmountBruttoDEV = _OrderInHeaderVAT.AmountNettoDEV + _OrderInHeaderVAT.AmountVATDEV
|
||||
|
||||
_OrderInHeaderVAT.Save()
|
||||
_OrderInHeader.OrderInHeaderVAT.Add(_OrderInHeaderVAT)
|
||||
Next
|
||||
|
||||
|
||||
Dim _TotalBruttoDEV As Double = 0
|
||||
Dim _TotalBruttoHUF As Double = 0
|
||||
|
||||
For Each _OrderInHeaderVAT In _OrderInHeader.OrderInHeaderVAT
|
||||
_TotalBruttoHUF += _OrderInHeaderVAT.AmountBruttoHUF
|
||||
_TotalBruttoDEV += _OrderInHeaderVAT.AmountBruttoDEV
|
||||
Next
|
||||
_OrderInHeader.TotalBruttoHUF = _TotalBruttoHUF
|
||||
_OrderInHeader.TotalBruttoDEV = _TotalBruttoDEV
|
||||
_OrderInHeader.Save()
|
||||
End Sub
|
||||
Function SubjectToApproval(_OrderInHeader As OrderInHeader, _ocur As Xpo.XPObjectSpace) As Boolean
|
||||
Dim _Approval As Boolean = False
|
||||
If _OrderInHeader.OrderInParameters.NeedPermission Then 'V-REND-0009-13
|
||||
Dim _PermissionDay As Long = _OrderInHeader.OrderInParameters.NeedPersmissionPaymentDay
|
||||
If _OrderInHeader.PaymentOption IsNot Nothing Then
|
||||
If _PaymentOption.PayMode <> ePayMode.InCash Then
|
||||
If _PaymentOption.PayDay > _PermissionDay Then _Approval = True
|
||||
|
||||
If Not _Approval Then
|
||||
Dim _VolumeByCustomersHUF As Double = _OrderInHeader.OrderInParameters.NeedPermissionVolumeByCustomersHUF
|
||||
Dim _CustomersHUF As Double = 0
|
||||
|
||||
Dim _OrderInHeader_Collection As New XPCollection(Of OrderInHeader)(_ocur.Session, CriteriaOperator.Parse("Customers.Oid=? AND IsEditable=True", _OrderInHeader.Customers.Oid))
|
||||
|
||||
For Each _OrderInHeaderAct As OrderInHeader In _OrderInHeader_Collection
|
||||
_OrderInHeaderAct.RecalculateOrder(_OrderInHeader, _ocur)
|
||||
_CustomersHUF += _OrderInHeader.TotalBruttoHUF
|
||||
Next
|
||||
|
||||
If _CustomersHUF > _VolumeByCustomersHUF Then _Approval = True
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
Return _Approval
|
||||
End Function
|
||||
|
||||
Public Sub RecalculateHeaderTotalBrutto()
|
||||
Dim _OrderInRows As OrderInRows
|
||||
Dim _VAT_DefaultForExternalEUNoVAT As VAT = Session.FindObject(Of VAT)(CriteriaOperator.Parse("DefaultForExternalEUNoVAT=True"))
|
||||
Dim _VAT_DefaultForBusinnes As VAT = Session.FindObject(Of VAT)(CriteriaOperator.Parse("DefaultForBusinnes=True"))
|
||||
Dim _VAT_DefaultForExternalOther As VAT = Session.FindObject(Of VAT)(CriteriaOperator.Parse("DefaultForExternalOther=True"))
|
||||
Dim _VAT_DefaultForInversVAT As VAT = Session.FindObject(Of VAT)(CriteriaOperator.Parse("DefaultForInversVAT=True"))
|
||||
|
||||
TotalBruttoDEV = 0
|
||||
TotalBruttoHUF = 0
|
||||
|
||||
For Each _OrderInRows In Me.OrderInRows
|
||||
|
||||
If Me.OrderInParameters IsNot Nothing Then
|
||||
Select Case Me.OrderInParameters.ExportMode
|
||||
Case eExportMode.eExternalEUNoVAT
|
||||
_OrderInRows.VAT = _VAT_DefaultForExternalEUNoVAT
|
||||
Case eExportMode.eExternalEUwithVAT
|
||||
_OrderInRows.VAT = _OrderInRows.Products.VAT
|
||||
Case eExportMode.eExternalOther
|
||||
_OrderInRows.VAT = _VAT_DefaultForExternalOther
|
||||
Case eExportMode.eInternalwithVAT
|
||||
_OrderInRows.VAT = _OrderInRows.Products.VAT
|
||||
Case eExportMode.eInversVAT
|
||||
_OrderInRows.VAT = _VAT_DefaultForInversVAT
|
||||
End Select
|
||||
_OrderInRows.RecalculateRows()
|
||||
_OrderInRows.Save()
|
||||
End If
|
||||
|
||||
If _OrderInRows.APCSheetByProducts IsNot Nothing Then
|
||||
_OrderInRows.RecalculateRows()
|
||||
_OrderInRows.Save()
|
||||
End If
|
||||
TotalBruttoDEV += _OrderInRows.SumPriceBruttoDEV
|
||||
TotalBruttoHUF += _OrderInRows.SumPriceBruttoHUF
|
||||
Next
|
||||
Dim _OrderInRowsOther As OrderInRowsOther
|
||||
For Each _OrderInRowsOther In Me.OrderInRowsOther
|
||||
|
||||
If Me.OrderInParameters IsNot Nothing Then
|
||||
Select Case Me.OrderInParameters.ExportMode
|
||||
Case eExportMode.eExternalEUNoVAT
|
||||
_OrderInRowsOther.VAT = _VAT_DefaultForExternalEUNoVAT
|
||||
Case eExportMode.eExternalEUwithVAT
|
||||
_OrderInRowsOther.VAT = _VAT_DefaultForBusinnes
|
||||
Case eExportMode.eExternalOther
|
||||
_OrderInRowsOther.VAT = _VAT_DefaultForExternalOther
|
||||
Case eExportMode.eInversVAT
|
||||
_OrderInRowsOther.VAT = _VAT_DefaultForInversVAT
|
||||
End Select
|
||||
_OrderInRowsOther.RecalculateRows()
|
||||
_OrderInRowsOther.Save()
|
||||
End If
|
||||
TotalBruttoDEV += _OrderInRowsOther.SumPriceBruttoDEV
|
||||
TotalBruttoHUF += _OrderInRowsOther.SumPriceBruttoHUF
|
||||
Next
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
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)> _
|
||||
Public Class OrderInHeaderFileAttachment
|
||||
Inherits FileAttachmentBase
|
||||
Private _FileType As String
|
||||
Private _OrderInHeader As OrderInHeader
|
||||
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
|
||||
<Association("OrderInheader-OrderInheaderFileAttachment", GetType(OrderInHeader))> _
|
||||
<Browsable(False)> _
|
||||
Property OrderInHeader As OrderInHeader
|
||||
Get
|
||||
Return _OrderInHeader
|
||||
End Get
|
||||
Set(value As OrderInHeader)
|
||||
SetPropertyValue("OrderInHeader", _OrderInHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property FileType As String
|
||||
Get
|
||||
Return _FileType
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("FileType", _FileType, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
|
||||
Imports DevExpress.Xpo
|
||||
Imports DevExpress.Data.Filtering
|
||||
|
||||
Imports DevExpress.ExpressApp.ConditionalAppearance
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.Persistent.Base
|
||||
Imports DevExpress.Persistent.BaseImpl
|
||||
Imports DevExpress.Persistent.Validation
|
||||
Imports System.Linq
|
||||
Imports System.Linq.Expressions
|
||||
|
||||
'-- Bejövő megrendelés ---------------------------------------------------------------------------------------------------
|
||||
<DefaultClassOptions()> _
|
||||
<NavigationItem(False), CreatableItem(False)> _
|
||||
Public Class OrderInHeaderVAT
|
||||
Inherits BaseObject
|
||||
Private _OrderInHeader As OrderInHeader
|
||||
Private _VAT As VAT
|
||||
Private _AmountNettoHUF As Double
|
||||
Private _AmountVATHUF As Double
|
||||
Private _AmountBruttoHUF As Double
|
||||
Private _AmountNettoDEV As Double
|
||||
Private _AmountVATDEV As Double
|
||||
Private _AmountBruttoDEV As Double
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
<Association("OrderInHeader-OrderInHeaderVAT", GetType(OrderInHeader))> _
|
||||
Property OrderInHeader As OrderInHeader
|
||||
Get
|
||||
Return _OrderInHeader
|
||||
End Get
|
||||
Set(ByVal value As OrderInHeader)
|
||||
SetPropertyValue("OrderInHeader", _OrderInHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property VAT As VAT
|
||||
Get
|
||||
Return _VAT
|
||||
End Get
|
||||
Set(ByVal value As VAT)
|
||||
SetPropertyValue("VAT", _VAT, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountNettoHUF As Double
|
||||
Get
|
||||
Return _AmountNettoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountNettoHUF", _AmountNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountVATHUF As Double
|
||||
Get
|
||||
Return _AmountVATHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountVATHUF", _AmountVATHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountBruttoHUF As Double
|
||||
Get
|
||||
Return _AmountBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountBruttoHUF", _AmountBruttoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountNettoDEV As Double
|
||||
Get
|
||||
Return _AmountNettoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountNettoDEV", _AmountNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountVATDEV As Double
|
||||
Get
|
||||
Return _AmountVATDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountVATDEV", _AmountVATDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AmountBruttoDEV As Double
|
||||
Get
|
||||
Return _AmountBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AmountBruttoDEV", _AmountBruttoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+353
@@ -0,0 +1,353 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
|
||||
Imports DevExpress.Xpo
|
||||
Imports DevExpress.Data.Filtering
|
||||
|
||||
Imports DevExpress.ExpressApp.ConditionalAppearance
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.Persistent.Base
|
||||
Imports DevExpress.Persistent.BaseImpl
|
||||
Imports DevExpress.Persistent.Validation
|
||||
Imports System.Linq
|
||||
Imports System.Linq.Expressions
|
||||
|
||||
'---------------------- Bejövő megrendelés ----------------------
|
||||
<DefaultClassOptions()> _
|
||||
<NavigationItem("BusinessStocks")> _
|
||||
Public Class OrderInParameters
|
||||
Inherits BaseObject
|
||||
Private _CustomersFrom As CustomersFrom ' -- Saját cég
|
||||
Private _ShortName As String ' -- Megnevezés
|
||||
Private _Description As String ' -- Leírás
|
||||
Private _NumberGenerator As NumberGenerator ' -- Sorszámgenerátor
|
||||
Private _NumberGeneratorAcknowledgement As NumberGenerator
|
||||
Private _ReportData As ReportData
|
||||
Private _ReportDataAcknowledgement As ReportData
|
||||
Private _CurrencyName As CurrencyName ' -- Elszámolás devizája
|
||||
Private _CurrencyName_Invoice As CurrencyName ' -- Számla devizája deviza
|
||||
Private _InvoiceType As InvoiceType 'Ha vevõi a szerzõdés akkor milyen a kimenõ számla tipusa
|
||||
Private _InvoiceTypeAdvanced As InvoiceType 'Ha vevõi a szerződés akkor milyen az előleg vagy foglaló számla tipusa
|
||||
Private _StorageMoveType As StorageMoveType 'Raktári mozgási paraméter (alapértelmezett)
|
||||
Private _DeliveryNoteOutType As DeliveryNoteOutType 'Kimenő szállítólevél tipusa (alapértelmezett)
|
||||
Private _IsAPCSheet As Boolean = False 'Termeltetési szerződéssel kapcsolni kell ?
|
||||
Private _ExportMode As eExportMode 'Belföldi, küldöldi, EU belfüldi ÁFA stb.
|
||||
Private _QualityOption As QualityOption
|
||||
Private _ShipmentOption As ShipmentOption
|
||||
Private _PaymentOption As PaymentOption
|
||||
Private _BankInformation As BankInformation
|
||||
Private _LiquidAssets As LiquidAssets 'Alapértelmezett pénztár, ha kell pénztári bizonylat is azonnal
|
||||
|
||||
Private _NeedPermission As Boolean 'Engedélyköteles-e a megrendelés
|
||||
Private _NeedPermissionToDeliveryNote As Boolean 'Kiszállításhoz kell-e engedély
|
||||
Private _NeedPermissionVolumeByCustomersHUF As Double 'Mennyi az ügyfél össz netto HUF rendelési állománya, ami felett engedély kell!
|
||||
Private _NeedPersmissionPaymentDay As Long 'Mennyi a max fizetési határidő
|
||||
Private _NeedPermissionHRPerson As HRPerson 'Ki engedélyezheti
|
||||
|
||||
Private _Controlling_Rows_Default As Controlling 'Bejövő megrendelési sorok alapértelmezett kontrolling száma, ha nem előleg !
|
||||
Private _Controlling_RowsOther_Default As Controlling 'Bejövő megrendelési egyéb sorok alapértelmezett kontrolling száma, ha nem előleg !
|
||||
Private _Controlling_InvoiceAdvance_Default As Controlling 'Bejövő megrendelési egyéb sorok alapértelmezett kontrolling száma, ha előleg !
|
||||
Private _CostPlace As CostPlace 'Alapértelmezett költséghely
|
||||
Private _CostHolder As CostHolder 'Alapértelmezett költségviselő
|
||||
|
||||
Private _WorkflowSystem As WorkflowSystem
|
||||
|
||||
Private _AdvanceShortNameIn As String 'Az előleg szövege
|
||||
Private _AdvanceDescriptionIn As String 'Az előleg leírása
|
||||
Private _AdvanceShortNameOut As String 'Az előleg beszámításának szövege
|
||||
Private _AdvanceDescriptionOut As String 'Az előleg beszámításának leírásas
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
|
||||
End Sub
|
||||
Property CustomersFrom As CustomersFrom
|
||||
Get
|
||||
Return _CustomersFrom
|
||||
End Get
|
||||
Set(ByVal value As CustomersFrom)
|
||||
SetPropertyValue("CustomersFrom", _CustomersFrom, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("OrderInParameters-ShortName", DefaultContexts.Save)> _
|
||||
Property ShortName() As String
|
||||
Get
|
||||
Return _ShortName
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("ShortName", _ShortName, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Description() As String
|
||||
Get
|
||||
Return _Description
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("Description", _Description, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("OrderInParameters-NumberGenerator", DefaultContexts.Save)> _
|
||||
Property NumberGenerator() As NumberGenerator
|
||||
Get
|
||||
Return _NumberGenerator
|
||||
End Get
|
||||
Set(ByVal value As NumberGenerator)
|
||||
SetPropertyValue("NumberGenerator", _NumberGenerator, value)
|
||||
End Set
|
||||
End Property
|
||||
Property NumberGeneratorAcknowledgement As NumberGenerator
|
||||
Get
|
||||
Return _NumberGeneratorAcknowledgement
|
||||
End Get
|
||||
Set(value As NumberGenerator)
|
||||
SetPropertyValue("NumberGeneratorAcknowledgement", _NumberGeneratorAcknowledgement, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ReportData As ReportData
|
||||
Get
|
||||
Return _ReportData
|
||||
End Get
|
||||
Set(ByVal value As ReportData)
|
||||
SetPropertyValue("ReportData", _ReportData, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ReportDataAcknowledgement As ReportData
|
||||
Get
|
||||
Return _ReportDataAcknowledgement
|
||||
End Get
|
||||
Set(value As ReportData)
|
||||
SetPropertyValue("ReportDataAcknowledgement", _ReportDataAcknowledgement, value)
|
||||
End Set
|
||||
End Property
|
||||
Property CurrencyName As CurrencyName
|
||||
Get
|
||||
Return _CurrencyName
|
||||
End Get
|
||||
Set(ByVal value As CurrencyName)
|
||||
SetPropertyValue("CurrencyName", _CurrencyName, value)
|
||||
End Set
|
||||
End Property
|
||||
Property CurrencyName_Invoice As CurrencyName
|
||||
Get
|
||||
Return _CurrencyName_Invoice
|
||||
End Get
|
||||
Set(value As CurrencyName)
|
||||
SetPropertyValue("CurrencyName_Invoice", _CurrencyName_Invoice, value)
|
||||
End Set
|
||||
End Property
|
||||
Property InvoiceType As InvoiceType
|
||||
Get
|
||||
Return _InvoiceType
|
||||
End Get
|
||||
Set(value As InvoiceType)
|
||||
SetPropertyValue("InvoiceType", _InvoiceType, value)
|
||||
End Set
|
||||
End Property
|
||||
Property InvoiceTypeAdvanced As InvoiceType
|
||||
Get
|
||||
Return _InvoiceTypeAdvanced
|
||||
End Get
|
||||
Set(value As InvoiceType)
|
||||
SetPropertyValue("InvoiceTypeAdvanced", _InvoiceTypeAdvanced, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData(True), DataSourceCriteria("MoveType=0 and MoveDirection=1")>
|
||||
Property StorageMoveType As StorageMoveType
|
||||
Get
|
||||
Return _StorageMoveType
|
||||
End Get
|
||||
Set(value As StorageMoveType)
|
||||
SetPropertyValue("StorageMoveType", _StorageMoveType, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DeliveryNoteOutType As DeliveryNoteOutType
|
||||
Get
|
||||
Return _DeliveryNoteOutType
|
||||
End Get
|
||||
Set(value As DeliveryNoteOutType)
|
||||
SetPropertyValue("DeliveryNoteOutType", _DeliveryNoteOutType, value)
|
||||
End Set
|
||||
End Property
|
||||
Property IsAPCSheet As Boolean
|
||||
Get
|
||||
Return _IsAPCSheet
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("IsAPCSheet", _IsAPCSheet, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ExportMode As eExportMode
|
||||
Get
|
||||
Return _ExportMode
|
||||
End Get
|
||||
Set(value As eExportMode)
|
||||
SetPropertyValue("ExportMode", _ExportMode, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QualityOption As QualityOption
|
||||
Get
|
||||
Return _QualityOption
|
||||
End Get
|
||||
Set(value As QualityOption)
|
||||
SetPropertyValue("QualityOption", _QualityOption, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ShipmentOption As ShipmentOption
|
||||
Get
|
||||
Return _ShipmentOption
|
||||
End Get
|
||||
Set(value As ShipmentOption)
|
||||
SetPropertyValue("ShipmentOption", _ShipmentOption, value)
|
||||
End Set
|
||||
End Property
|
||||
Property PaymentOption As PaymentOption
|
||||
Get
|
||||
Return _PaymentOption
|
||||
End Get
|
||||
Set(value As PaymentOption)
|
||||
SetPropertyValue("PaymentOption", _PaymentOption, value)
|
||||
End Set
|
||||
End Property
|
||||
Property BankInformation As BankInformation
|
||||
Get
|
||||
Return _BankInformation
|
||||
End Get
|
||||
Set(value As BankInformation)
|
||||
SetPropertyValue("BankInformation", _BankInformation, value)
|
||||
End Set
|
||||
End Property
|
||||
Property NeedPermission As Boolean
|
||||
Get
|
||||
Return _NeedPermission
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("NeedPermission", _NeedPermission, value)
|
||||
End Set
|
||||
End Property
|
||||
Property NeedPermissionToDeliveryNote As Boolean
|
||||
Get
|
||||
Return _NeedPermissionToDeliveryNote
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("NeedPermissionToDeliveryNote", _NeedPermissionToDeliveryNote, value)
|
||||
End Set
|
||||
End Property
|
||||
Property NeedPermissionVolumeByCustomersHUF As Double
|
||||
Get
|
||||
Return _NeedPermissionVolumeByCustomersHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("NeedPermissionVolumeByCustomersHUF", _NeedPermissionVolumeByCustomersHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property NeedPersmissionPaymentDay As Long
|
||||
Get
|
||||
Return _NeedPersmissionPaymentDay
|
||||
End Get
|
||||
Set(value As Long)
|
||||
SetPropertyValue("NeedPersmissionPaymentDay", _NeedPersmissionPaymentDay, value)
|
||||
End Set
|
||||
End Property
|
||||
Property NeedPermissionHRPerson As HRPerson
|
||||
Get
|
||||
Return _NeedPermissionHRPerson
|
||||
End Get
|
||||
Set(value As HRPerson)
|
||||
SetPropertyValue("NeedPermissionHRPerson", _NeedPermissionHRPerson, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Controlling_Rows_Default As Controlling
|
||||
Get
|
||||
Return _Controlling_Rows_Default
|
||||
End Get
|
||||
Set(value As Controlling)
|
||||
SetPropertyValue("Controlling_Rows_Default", _Controlling_Rows_Default, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Controlling_OtherRows_Default As Controlling
|
||||
Get
|
||||
Return _Controlling_RowsOther_Default
|
||||
End Get
|
||||
Set(value As Controlling)
|
||||
SetPropertyValue("Controlling_RowsOther_Default", _Controlling_RowsOther_Default, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Controlling_InvoiceAdvance_Default As Controlling
|
||||
Get
|
||||
Return _Controlling_InvoiceAdvance_Default
|
||||
End Get
|
||||
Set(value As Controlling)
|
||||
SetPropertyValue("Controlling_InvoiceAdvance_Default", _Controlling_InvoiceAdvance_Default, value)
|
||||
End Set
|
||||
End Property
|
||||
Property CostPlace As CostPlace
|
||||
Get
|
||||
Return _CostPlace
|
||||
End Get
|
||||
Set(value As CostPlace)
|
||||
SetPropertyValue("CostPlace", _CostPlace, value)
|
||||
End Set
|
||||
End Property
|
||||
Property CostHolder As CostHolder
|
||||
Get
|
||||
Return _CostHolder
|
||||
End Get
|
||||
Set(value As CostHolder)
|
||||
SetPropertyValue("CostHolder", _CostHolder, value)
|
||||
End Set
|
||||
End Property
|
||||
Property WorkflowSystem As WorkflowSystem
|
||||
Get
|
||||
Return _WorkflowSystem
|
||||
End Get
|
||||
Set(value As WorkflowSystem)
|
||||
SetPropertyValue("WorkflowSystem", _WorkflowSystem, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AdvanceShortNameIn As String
|
||||
Get
|
||||
Return _AdvanceShortNameIn
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("AdvanceShortNameIn", _AdvanceShortNameIn, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AdvanceDescriptionIn As String
|
||||
Get
|
||||
Return _AdvanceDescriptionIn
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("AdvanceDescriptionIn", _AdvanceDescriptionIn, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AdvanceShortNameOut As String
|
||||
Get
|
||||
Return _AdvanceShortNameOut
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("AdvanceShortNameOut", _AdvanceShortNameOut, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AdvanceDescriptionOut As String
|
||||
Get
|
||||
Return _AdvanceDescriptionOut
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("AdvanceDescriptionOut", _AdvanceDescriptionOut, value)
|
||||
End Set
|
||||
End Property
|
||||
<DataSourceCriteria("CustomerFrom = '@This.CustomersFrom' and LiquidAssetsType=0")>
|
||||
Property LiquidAssets As LiquidAssets
|
||||
Get
|
||||
Return _LiquidAssets
|
||||
End Get
|
||||
Set(value As LiquidAssets)
|
||||
SetPropertyValue("LiquidAssets", _LiquidAssets, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
End Class
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
Partial Class OrderInPrint
|
||||
|
||||
<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.aOrderInPrint = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
'
|
||||
'aOrderInPrint
|
||||
'
|
||||
Me.aOrderInPrint.Caption = "aOrder Print"
|
||||
Me.aOrderInPrint.Category = "RecordsNavigation"
|
||||
Me.aOrderInPrint.ConfirmationMessage = Nothing
|
||||
Me.aOrderInPrint.Id = "aOrderPrint"
|
||||
Me.aOrderInPrint.ImageName = Nothing
|
||||
Me.aOrderInPrint.Shortcut = Nothing
|
||||
Me.aOrderInPrint.Tag = Nothing
|
||||
Me.aOrderInPrint.TargetObjectsCriteria = Nothing
|
||||
Me.aOrderInPrint.TargetObjectType = GetType(Nuvolar.[Module].OrderInAcknowledgementHeader)
|
||||
Me.aOrderInPrint.TargetViewId = "OrderInHeader_OrderInAcknowledgementHeader_ListView"
|
||||
Me.aOrderInPrint.ToolTip = Nothing
|
||||
Me.aOrderInPrint.TypeOfView = Nothing
|
||||
|
||||
End Sub
|
||||
Friend WithEvents aOrderInPrint As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
|
||||
End Class
|
||||
+126
@@ -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="aOrderInPrint.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>
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
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.Data.Filtering
|
||||
Imports DevExpress.Persistent.BaseImpl
|
||||
|
||||
Public Class OrderInPrint
|
||||
Inherits DevExpress.ExpressApp.ViewController
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
'This call is required by the Component Designer.
|
||||
InitializeComponent()
|
||||
RegisterActions(components)
|
||||
End Sub
|
||||
Private Sub aOrderInPrint_Execute(ByVal sender As System.Object, ByVal e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aOrderInPrint.Execute
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ReportData As ReportData
|
||||
Dim _OrderInAcknowledgementHeader As OrderInAcknowledgementHeader = TryCast(View.SelectedObjects(0), OrderInAcknowledgementHeader)
|
||||
|
||||
If _OrderInAcknowledgementHeader IsNot Nothing Then
|
||||
_ReportData = _OrderInAcknowledgementHeader.OrderInHeader.OrderInParameters.ReportDataAcknowledgement
|
||||
If _ReportData IsNot Nothing Then
|
||||
_OrderInAcknowledgementHeader.RecalculateOrderInAcknowledgement(_OrderInAcknowledgementHeader, _ocur)
|
||||
_ocur.CommitChanges()
|
||||
Frame.GetController(Of Reports.ReportServiceController).ShowPreview(_ReportData, CriteriaOperator.Parse("OrderInAcknowledgementHeader.Oid=?", _OrderInAcknowledgementHeader.Oid), True)
|
||||
Else
|
||||
'------------TESZT MIATT!!!! -----------------------------
|
||||
Throw New Exception("*Nincs nyomtatvány beállítva!")
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
+517
@@ -0,0 +1,517 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
|
||||
Imports DevExpress.Xpo
|
||||
Imports DevExpress.Data.Filtering
|
||||
|
||||
Imports DevExpress.ExpressApp.ConditionalAppearance
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.Persistent.Base
|
||||
Imports DevExpress.Persistent.BaseImpl
|
||||
Imports DevExpress.Persistent.Validation
|
||||
Imports System.Linq
|
||||
Imports System.Linq.Expressions
|
||||
|
||||
'-- Bejövő megrendelés ---------------------------------------------------------------------------------------------------
|
||||
<DefaultClassOptions()> _
|
||||
<NavigationItem(False), CreatableItem(False)> _
|
||||
<Appearance("Hide aOrderIn_ChangeRows when IsEditable=False", AppearanceItemType.Action, "OrderInHeader.IsEditable=False", TargetItems:="aOrderIn_ChangeRows", visibility:=Editors.ViewItemVisibility.Hide)> _
|
||||
<DefaultProperty("DisplayName")> _
|
||||
Public Class OrderInRows
|
||||
Inherits BaseObject
|
||||
Private _OrderInHeader As OrderInHeader ' -- Bejövő megrendelés fejléc
|
||||
Private _OfferOutRows As OfferOutRows ' Kiemnő árajánlat sora
|
||||
Private _RowGroup1 As String 'Szöveges csoportosítás (nem kötelező)
|
||||
Private _RowGroup2 As String 'Szöveges másodlagos csoportosítás (nem kötelező)
|
||||
Private _RowIndex As Long ' -- Számla sorindex
|
||||
Private _Products As Products ' -- Termék
|
||||
Private _QTT As Double '-- Megrendelt mennyiség (amit tőlünk rendelt a vevő)
|
||||
Private _QTT_To As Double '-- Továbbrendelt mennyiség
|
||||
Private _QTT_Storaged_Will As Double '-- Kitárolásra foglalt mennyiség
|
||||
Private _QTT_Storaged As Double '-- Kiadott mennyiség
|
||||
Private _QTT_DeliveryNoted As Double '-- Kiszállítózott mennyiség
|
||||
Private _QTT_Invoiced As Double '-- Kiszámlázott mennyiség
|
||||
Private _QTT_Process As Double '-- Kézzel beírható mennyiség a végrehajtáshoz (pld. mennyi legyen kitárolva ...)
|
||||
|
||||
Private _DividedOriginal As Long '-- 0: nincs bontva 1: fő sor 2: bontott sor
|
||||
Private _DividedGUID As Guid '-- Az összekapcsoló GUID ami a bontáshoz kell
|
||||
|
||||
Private _ListPriceOriginalHUF As Double = 0
|
||||
|
||||
Private _ListPriceHUF As Double = 0 ' Egységár HUF (nettó !)
|
||||
Private _ListPriceDEV As Double = 0 ' Egységár DEV (Nettó !)
|
||||
Private _DiscountPriceHUF As Double = 0 'Kedvezmény összege HUF
|
||||
Private _DiscountPriceDEV As Double = 0 'Kedvezmény összege DEV
|
||||
Private _FinalPriceHUF As Double
|
||||
Private _FinalPriceDEV As Double
|
||||
Private _Description As String
|
||||
Private _DescriptionPrivate As String
|
||||
Private _QualityOption As QualityOption
|
||||
|
||||
Private _VAT As VAT 'ÁFA kód
|
||||
|
||||
Private _SumPriceNettoHUF As Double 'Netto sorösszess HUF
|
||||
Private _SumPriceNettoDEV As Double 'Netto sorösszes DEV
|
||||
Private _SumPriceVATHUF As Double 'ÁFA sorösszess HUF
|
||||
Private _SumPriceVATDEV As Double 'ÁFA sorösszes DEV
|
||||
Private _SumPriceBruttoHUF As Double 'Bruttó sorösszess HUF
|
||||
Private _SumPriceBruttoDEV As Double 'Bruttó sorösszes DEV
|
||||
|
||||
|
||||
'// Termeltetési szerződés összekapcsolása a bejövő megrendeléssel
|
||||
Private _APCSheetByProducts As APCSheetByProducts 'Termékfinanszírozás !!!
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Protected Overrides Sub OnSaving()
|
||||
MyBase.OnSaving()
|
||||
Me.RecalculateRows()
|
||||
QTT = Math.Round(QTT, 4, MidpointRounding.AwayFromZero)
|
||||
QTT_DeliveryNoted = Math.Round(QTT_DeliveryNoted, 4, MidpointRounding.AwayFromZero)
|
||||
QTT_Invoiced = Math.Round(QTT_Invoiced, 4, MidpointRounding.AwayFromZero)
|
||||
QTT_Process = Math.Round(QTT_Process, 4, MidpointRounding.AwayFromZero)
|
||||
QTT_Storaged = Math.Round(QTT_Storaged, 4, MidpointRounding.AwayFromZero)
|
||||
QTT_Storaged_Will = Math.Round(QTT_Storaged_Will, 4, MidpointRounding.AwayFromZero)
|
||||
End Sub
|
||||
Protected Overrides Sub OnSaved()
|
||||
MyBase.OnSaved()
|
||||
'//Termeltetési szerződési sor kalkulálása !!!
|
||||
If APCSheetByProducts IsNot Nothing Then
|
||||
APCSheetByProducts.FundingAmountUsedHUF = 0
|
||||
Dim _OrderInRows As OrderInRows
|
||||
Dim _OrderInRows_Collection As New XPCollection(Of OrderInRows)(Session, CriteriaOperator.Parse("APCSheetByProducts=?", APCSheetByProducts))
|
||||
For Each _OrderInRows In _OrderInRows_Collection
|
||||
APCSheetByProducts.FundingAmountUsedHUF += _OrderInRows.SumPriceBruttoHUF
|
||||
Next
|
||||
Dim _OrderInRowsOther As OrderInRowsOther
|
||||
Dim _OrderInRowsOther_Collection As New XPCollection(Of OrderInRowsOther)(Session, CriteriaOperator.Parse("APCSheetByProducts=?", APCSheetByProducts))
|
||||
For Each _OrderInRowsOther In _OrderInRowsOther_Collection
|
||||
APCSheetByProducts.FundingAmountUsedHUF += _OrderInRowsOther.SumPriceBruttoHUF
|
||||
Next
|
||||
APCSheetByProducts.FundingAmountAvailableHUF = APCSheetByProducts.FundingAmountHUF - APCSheetByProducts.FundingAmountUsedHUF
|
||||
|
||||
APCSheetByProducts.Save()
|
||||
Session.CommitTransaction()
|
||||
End If
|
||||
End Sub
|
||||
Protected Overrides Sub OnDeleted()
|
||||
MyBase.OnDeleted()
|
||||
|
||||
End Sub
|
||||
Public Sub AddRows(ByVal _p_OrderInHeader As OrderInHeader)
|
||||
' Sor hozzáadása a fejléchez, valamint árkalkuláció a sor termékére
|
||||
Me.OrderInHeader = _p_OrderInHeader
|
||||
Me.Products = _p_OrderInHeader.row_Products.Products
|
||||
Me.QTT = _p_OrderInHeader.row_QTT
|
||||
Me.QTT_Process = _p_OrderInHeader.row_QTT
|
||||
Me.APCSheetByProducts = _p_OrderInHeader.row_APCSheetByProducts
|
||||
Me.VAT = Me.Products.VAT
|
||||
If _p_OrderInHeader.OrderInRows.Count = 0 Then
|
||||
Me.RowIndex = 0
|
||||
Else
|
||||
Me.RowIndex = _p_OrderInHeader.OrderInRows.Count - 1
|
||||
End If
|
||||
|
||||
|
||||
' Vizsgáljuk. hogy van e árkalkulációja az ügyfélnek, ha van kalkulálunk ha nincs akkor a normál listaáron marad a termék
|
||||
If Me.OrderInHeader.Customers.Pricing IsNot Nothing Then
|
||||
If _p_OrderInHeader.OrderInParameters.CurrencyName.ShortName = "HUF" Then ' Ha a Deviza HUF
|
||||
Me.ListPriceHUF = Me.OrderInHeader.Customers.Pricing.GetCurrentPriceNettoHUF(_p_OrderInHeader.row_Products.Products, _p_OrderInHeader.row_QTT) ' A kedvezményt tartalmazó listaár HUF-ban
|
||||
Me.DiscountPriceHUF = 0 '_p_OrderInHeader.row_Products.Products.ListPriceOutHUF - Me.ListPriceHUF ' A kedvezmény összege HUF-ban
|
||||
Else ' Ha a deviza nem HUF
|
||||
Me.ListPriceDEV = Me.OrderInHeader.Customers.Pricing.GetCurrentPriceNettoDEV(_p_OrderInHeader.row_Products.Products, _p_OrderInHeader.row_QTT) ' A kedvezményt tartalmazó listaár DEV-ben
|
||||
Me.DiscountPriceDEV = 0 '_p_OrderInHeader.row_Products.Products.ListPriceOutDEV - Me.ListPriceDEV ' A kedvezmény összege DEV-ben
|
||||
End If
|
||||
Else ' Ha nincs árkalkuláció akkor a normál listaáron lesz a termék
|
||||
If _p_OrderInHeader.OrderInParameters.CurrencyName.ShortName = "HUF" Then
|
||||
Me.ListPriceHUF = Me.Products.ListPriceOutHUF
|
||||
Else
|
||||
Me.ListPriceDEV = Me.Products.ListPriceOutDEV
|
||||
End If
|
||||
End If
|
||||
If _p_OrderInHeader.row_o_ListPriceHUF > 0 Then
|
||||
Me.ListPriceHUF = _p_OrderInHeader.row_o_ListPriceHUF
|
||||
End If
|
||||
If _p_OrderInHeader.row_o_ListPriceDEV > 0 Then
|
||||
Me.ListPriceDEV = _p_OrderInHeader.row_o_ListPriceDEV
|
||||
End If
|
||||
|
||||
If _p_OrderInHeader.row_DiscountPercent > 0 Then
|
||||
Me.DiscountPriceHUF = Math.Round(Me.ListPriceHUF * ((_p_OrderInHeader.row_DiscountPercent / 100)), 0, MidpointRounding.AwayFromZero)
|
||||
Me.DiscountPriceDEV = Math.Round(Me.ListPriceDEV * ((_p_OrderInHeader.row_DiscountPercent / 100)), 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
Session.CommitTransaction()
|
||||
End Sub
|
||||
Public Sub RemoveRows(ByVal _p_OrderInHeader As OrderInHeader, ByVal _p_ocur As Xpo.XPObjectSpace)
|
||||
For Each _OrderInRows As OrderInRows In _p_OrderInHeader.OrderInRows
|
||||
If _OrderInRows.RowIndex > Me.RowIndex Then
|
||||
_OrderInRows.RowIndex -= 1
|
||||
End If
|
||||
Next
|
||||
End Sub
|
||||
|
||||
<Association("OrderInHeader", GetType(OrderInHeader))> _
|
||||
Property OrderInHeader() As OrderInHeader
|
||||
Get
|
||||
Return _OrderInHeader
|
||||
End Get
|
||||
Set(ByVal value As OrderInHeader)
|
||||
SetPropertyValue("OrderInHeader", _OrderInHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property OfferOutRows As OfferOutRows
|
||||
Get
|
||||
Return _OfferOutRows
|
||||
End Get
|
||||
Set(value As OfferOutRows)
|
||||
SetPropertyValue("OfferOutRows", _OfferOutRows, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowGroup1 As String
|
||||
Get
|
||||
Return _RowGroup1
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("RowGroup1", _RowGroup1, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowGroup2 As String
|
||||
Get
|
||||
Return _RowGroup2
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("RowGroup2", _RowGroup2, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowIndex() As Long
|
||||
Get
|
||||
Return _RowIndex
|
||||
End Get
|
||||
Set(ByVal value As Long)
|
||||
SetPropertyValue("RowIndex", _RowIndex, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("", DefaultContexts.Save)> _
|
||||
Property Products() As Products
|
||||
Get
|
||||
Return _Products
|
||||
End Get
|
||||
Set(ByVal value As Products)
|
||||
SetPropertyValue("Products", _Products, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT() As Double
|
||||
Get
|
||||
Return _QTT
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT", _QTT, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT_To() As Double
|
||||
Get
|
||||
Return _QTT_To
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_To", _QTT_To, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT_Storaged_Will As Double
|
||||
Get
|
||||
Return _QTT_Storaged_Will
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_Storaged_Will", _QTT_Storaged_Will, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT_Storaged() As Double
|
||||
Get
|
||||
Return _QTT_Storaged
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_Storaged", _QTT_Storaged, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT_DeliveryNoted() As Double
|
||||
Get
|
||||
Return _QTT_DeliveryNoted
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_DeliveryNoted", _QTT_DeliveryNoted, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT_Invoiced() As Double
|
||||
Get
|
||||
Return _QTT_Invoiced
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_Invoiced", _QTT_Invoiced, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRange("OrderInRows.QTT_Process_RangeRule", "OrderInRows_aGenerateStorageOutFromOrder_Context", 1, 999999999999)> _
|
||||
Property QTT_Process As Double
|
||||
Get
|
||||
Return _QTT_Process
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_Process", _QTT_Process, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceHUF As Double
|
||||
Get
|
||||
Return _ListPriceHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceHUF", _ListPriceHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceDEV As Double
|
||||
Get
|
||||
Return _ListPriceDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceDEV", _ListPriceDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DiscountPriceHUF() As Double
|
||||
Get
|
||||
Return _DiscountPriceHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("DiscountPriceHUF", _DiscountPriceHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DiscountPriceDEV() As Double
|
||||
Get
|
||||
Return _DiscountPriceDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("DiscountPriceDEV", _DiscountPriceDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
ReadOnly Property FinalPriceDEV() As Double
|
||||
Get
|
||||
Return ListPriceDEV - DiscountPriceDEV
|
||||
End Get
|
||||
End Property
|
||||
ReadOnly Property FinalPriceHUF() As Double
|
||||
Get
|
||||
Return ListPriceHUF - DiscountPriceHUF
|
||||
End Get
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property Description() As String
|
||||
Get
|
||||
Return _Description
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("Description", _Description, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property DescriptionPrivate As String
|
||||
Get
|
||||
Return _DescriptionPrivate
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("DescriptionPrivate", _DescriptionPrivate, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QualityOption As QualityOption
|
||||
Get
|
||||
Return _QualityOption
|
||||
End Get
|
||||
Set(value As QualityOption)
|
||||
SetPropertyValue("QualityOption", _QualityOption, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property VAT As VAT
|
||||
Get
|
||||
Return _VAT
|
||||
End Get
|
||||
Set(value As VAT)
|
||||
SetPropertyValue("VAT", _VAT, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceNettoHUF As Double
|
||||
Get
|
||||
Return _SumPriceNettoHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceNettoHUF", _SumPriceNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceNettoDEV As Double
|
||||
Get
|
||||
Return _SumPriceNettoDEV
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceNettoDEV", _SumPriceNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceVATHUF As Double
|
||||
Get
|
||||
Return _SumPriceVATHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceVATHUF", _SumPriceVATHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceVATDEV As Double
|
||||
Get
|
||||
Return _SumPriceVATDEV
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceVATDEV", _SumPriceVATDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceBruttoHUF As Double
|
||||
Get
|
||||
Return _SumPriceBruttoHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceBruttoHUF", _SumPriceBruttoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceBruttoDEV As Double
|
||||
Get
|
||||
Return _SumPriceBruttoDEV
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceBruttoDEV", _SumPriceBruttoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceOriginalHUF As Double
|
||||
Get
|
||||
Return _ListPriceOriginalHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("ListPriceOriginalHUF", _ListPriceOriginalHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
<VisibleInDetailView(False), VisibleInLookupListView(False), VisibleInListView(False)>
|
||||
Property DividedOriginal As Long
|
||||
Get
|
||||
Return _DividedOriginal
|
||||
End Get
|
||||
Set(value As Long)
|
||||
SetPropertyValue("DividedOriginal", _DividedOriginal, value)
|
||||
End Set
|
||||
End Property
|
||||
<VisibleInDetailView(False), VisibleInLookupListView(False), VisibleInListView(False)>
|
||||
Property DividedGUID As Guid
|
||||
Get
|
||||
Return _DividedGUID
|
||||
End Get
|
||||
Set(value As Guid)
|
||||
SetPropertyValue("DividedGUID", _DividedGUID, value)
|
||||
End Set
|
||||
End Property
|
||||
<VisibleInDetailView(False)>
|
||||
<VisibleInListView(False)> _
|
||||
<VisibleInLookupListView(False)> _
|
||||
ReadOnly Property DisplayName As String
|
||||
Get
|
||||
Dim _DisplayName As String = ""
|
||||
If Me.Products IsNot Nothing Then
|
||||
_DisplayName = Me.Products.ProductNumber.ToString & ", " & Me.Products.ShortName.ToString
|
||||
If OrderInHeader IsNot Nothing Then
|
||||
_DisplayName += ", " & OrderInHeader.DocumentNumber
|
||||
End If
|
||||
End If
|
||||
Return _DisplayName
|
||||
End Get
|
||||
End Property
|
||||
ReadOnly Property DiscountPercent As Double
|
||||
Get
|
||||
Dim _DiscountPercent As Double = 0
|
||||
If ListPriceHUF <> 0 Then
|
||||
_DiscountPercent = (DiscountPriceHUF / ListPriceHUF) * 100
|
||||
End If
|
||||
Return Math.Round(_DiscountPercent, 2, MidpointRounding.AwayFromZero)
|
||||
End Get
|
||||
End Property
|
||||
'// Termeltetési szerződés miatt
|
||||
Property APCSheetByProducts As APCSheetByProducts
|
||||
Get
|
||||
Return _APCSheetByProducts
|
||||
End Get
|
||||
Set(value As APCSheetByProducts)
|
||||
SetPropertyValue("APCSheetByProducts", _APCSheetByProducts, value)
|
||||
End Set
|
||||
End Property
|
||||
'--XPCollections
|
||||
<VisibleInListView(False)> _
|
||||
ReadOnly Property StorageComputed_Collection As XPCollection(Of StorageComputed)
|
||||
Get
|
||||
Dim _StorageComputed As XPCollection(Of StorageComputed)
|
||||
_StorageComputed = New XPCollection(Of StorageComputed)(Session, CriteriaOperator.Parse("Products=? AND QTTFree>0 and Storage.CustomersFrom=?", Products, Me.OrderInHeader.CustomersFrom))
|
||||
Return _StorageComputed
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False)> _
|
||||
ReadOnly Property StorageOutRowsInRows_Collection As XPCollection(Of StorageOutRowsInRows)
|
||||
Get
|
||||
Return New XPCollection(Of StorageOutRowsInRows)(Session, CriteriaOperator.Parse("StorageOutRows.OrderInRows.Oid=?", Me.Oid))
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInDetailView(False), VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property DeliveryNoteOutRows As XPCollection(Of DeliveryNoteOutRows)
|
||||
Get
|
||||
Return New XPCollection(Of DeliveryNoteOutRows)(Session, CriteriaOperator.Parse("StorageOutRowsInRows.StorageOutRows.OrderInRows=?", Me))
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Sub RecalculateRows()
|
||||
If Me.OrderInHeader Is Nothing Then Exit Sub
|
||||
Dim _VATValue As Double = 0
|
||||
If VAT IsNot Nothing Then
|
||||
_VATValue = VAT.KeyValue
|
||||
End If
|
||||
If Me.APCSheetByProducts IsNot Nothing Then
|
||||
Dim _InterestValue As Double = 0
|
||||
Dim _DifferentDay As Double = 0
|
||||
|
||||
_InterestValue = Me.APCSheetByProducts.APCSheetHeader.APCParameters.InterestValue
|
||||
_DifferentDay = DateDiff(DateInterval.Day, Me.OrderInHeader.DateExecution, Me.APCSheetByProducts.FundingDate)
|
||||
If _DifferentDay > 0 And _InterestValue > 0 Then
|
||||
If ListPriceOriginalHUF = 0 Then
|
||||
ListPriceOriginalHUF = ListPriceHUF
|
||||
End If
|
||||
ListPriceHUF = ListPriceOriginalHUF + Math.Round(_DifferentDay / 36000 * _InterestValue * ListPriceOriginalHUF, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End If
|
||||
|
||||
Me.SumPriceNettoHUF = Math.Round(FinalPriceHUF * QTT, 0, MidpointRounding.AwayFromZero)
|
||||
Me.SumPriceNettoDEV = Math.Round(FinalPriceDEV * QTT, 2, MidpointRounding.AwayFromZero)
|
||||
|
||||
Me.SumPriceVATHUF = Math.Round(Me.SumPriceNettoHUF * (_VATValue), 0, MidpointRounding.AwayFromZero)
|
||||
Me.SumPriceVATDEV = Math.Round(Me.SumPriceNettoDEV * (_VATValue), 2, MidpointRounding.AwayFromZero)
|
||||
|
||||
Me.SumPriceBruttoHUF = Me.SumPriceNettoHUF + Me.SumPriceVATHUF
|
||||
Me.SumPriceBruttoDEV = Me.SumPriceNettoDEV + Me.SumPriceVATDEV
|
||||
End Sub
|
||||
<Appearance("Hide DEV properties if HUF", "ViewItem", targetitems:="ListPriceDEV;DiscountPriceDEV;FinalPriceDEV", Context:="ListView", _
|
||||
visibility:=DevExpress.ExpressApp.Editors.ViewItemVisibility.Hide)> _
|
||||
Public Function RuleHUFMethod() As Boolean
|
||||
If Me.OrderInHeader Is Nothing Then
|
||||
Return False
|
||||
Else
|
||||
If Me.OrderInHeader.OrderInParameters Is Nothing Then
|
||||
Return False
|
||||
Else
|
||||
If Me.OrderInHeader.OrderInParameters.CurrencyName Is Nothing Then
|
||||
Else
|
||||
If Me.OrderInHeader.OrderInParameters.CurrencyName.ShortName = "HUF" Then
|
||||
Return True
|
||||
Else
|
||||
Return False
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
End Function
|
||||
End Class
|
||||
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
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), NonPersistent> _
|
||||
Public Class OrderInRowsAdvanceBallanceInfo 'Ez tartalmazza a nyitott elõlegegyenleggel rendelkezõ vevõk nyitott rendeléseit
|
||||
Inherits XPObject
|
||||
Private Shared myOid As Integer = 0
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
myOid += 1
|
||||
Oid = myOid
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
' Place here your initialization code.
|
||||
End Sub
|
||||
|
||||
Property Customers As Customers
|
||||
Property OrderInRows As OrderInRows 'Bejövõ megrendelési sor
|
||||
Property BallanceHUF_Advance As Double 'Elõlegegyenleg
|
||||
|
||||
ReadOnly Property DifferentHUF As Double
|
||||
Get
|
||||
Dim _Different As Double = 0
|
||||
If OrderInRows IsNot Nothing Then
|
||||
_Different = BallanceHUF_Advance - OrderInRows.SumPriceBruttoHUF
|
||||
Else
|
||||
_Different = BallanceHUF_Advance
|
||||
End If
|
||||
Return _Different
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
+457
@@ -0,0 +1,457 @@
|
||||
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)> _
|
||||
Public Class OrderInRowsOther 'Egyéb sorok
|
||||
Inherits BaseObject
|
||||
Private _OrderInHeader As OrderInHeader
|
||||
Private _OfferOutRows As OfferOutRows
|
||||
Private _RowIndex As Long = 0 'Számla sorindex
|
||||
Private _RowGroup1 As String 'Szöveges csoportosítás (nem kötelező)
|
||||
Private _RowGroup2 As String 'Szöveges másodlagos csoportosítás (nem kötelező)
|
||||
Private _ShortName As String 'Megnevezés
|
||||
Private _Description As String 'Leírás
|
||||
Private _ListPriceHUF As Double = 0 ' Egységár HUF (nettó !)
|
||||
Private _ListPriceDEV As Double = 0 ' Egységár DEV (Nettó !)
|
||||
Private _DiscountPriceHUF As Double = 0 'Kedvezmény összege HUF
|
||||
Private _DiscountPriceDEV As Double = 0 'Kedvezmény összege DEV
|
||||
Private _QTT As Double = 0 'Mennyiség
|
||||
Private _QTT_Invoiced As Double = 0 '-- Kiszámlázott mennyiség
|
||||
Private _QTT_Process As Double = 0 '-- Kézzel beírható mennyiség a végrehajtáshoz (pld. mennyi legyen kitárolva ...)
|
||||
Private _Units As Units ' Mennyiségi egység
|
||||
Private _VAT As VAT 'ÁFA
|
||||
Private _QualityOption As QualityOption 'Minőségi kondíció
|
||||
Private _UniqueObjects As UniqueObjects ' -- Egyedi azonosító
|
||||
Private _CostHolder As CostHolder ' -- Költség viselő
|
||||
Private _CostPlace As CostPlace ' -- Költség viselő
|
||||
Private _JobNumberObjects As JobNumberObjects ' -- Project
|
||||
Private _CustomsTariffs As CustomsTariffs 'SZJ szám
|
||||
'//Összesítések miatt
|
||||
|
||||
Private _ListPriceOriginalHUF As Double = 0
|
||||
|
||||
Private _SumPriceNettoHUF As Double 'Netto sorösszess HUF
|
||||
Private _SumPriceNettoDEV As Double 'Netto sorösszes DEV
|
||||
Private _SumPriceVATHUF As Double 'ÁFA sorösszess HUF
|
||||
Private _SumPriceVATDEV As Double 'ÁFA sorösszes DEV
|
||||
Private _SumPriceBruttoHUF As Double 'Bruttó sorösszess HUF
|
||||
Private _SumPriceBruttoDEV As Double 'Bruttó sorösszes DEV
|
||||
'// Termeltetési szerződés összekapcsolása a bejövő megrendeléssel
|
||||
Private _APCSheetByProducts As APCSheetByProducts 'Termékfinanszírozás !!!
|
||||
|
||||
'// Munka !!
|
||||
Private _WorkState As WorkState 'Munkafolyamatokat tartalmazó szabad bázis
|
||||
Private _WorkStateGroup As String 'Sorrendiséget, csoportosítást meghatározó mező
|
||||
Private _WorkStateExpiration As Date 'Határidő
|
||||
Private _WorkStateStatus As DevExpress.Persistent.Base.General.TaskStatus
|
||||
|
||||
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
|
||||
Protected Overrides Sub OnSaving()
|
||||
MyBase.OnSaving()
|
||||
Me.RecalculateRows()
|
||||
End Sub
|
||||
Protected Overrides Sub OnSaved()
|
||||
MyBase.OnSaved()
|
||||
If APCSheetByProducts IsNot Nothing Then
|
||||
APCSheetByProducts.FundingAmountUsedHUF = 0
|
||||
Dim _OrderInRows As OrderInRows
|
||||
Dim _OrderInRows_Collection As New XPCollection(Of OrderInRows)(Session, CriteriaOperator.Parse("APCSheetByProducts=?", APCSheetByProducts))
|
||||
For Each _OrderInRows In _OrderInRows_Collection
|
||||
APCSheetByProducts.FundingAmountUsedHUF += _OrderInRows.SumPriceBruttoHUF
|
||||
Next
|
||||
Dim _OrderInRowsOther As OrderInRowsOther
|
||||
Dim _OrderInRowsOther_Collection As New XPCollection(Of OrderInRowsOther)(Session, CriteriaOperator.Parse("APCSheetByProducts=?", APCSheetByProducts))
|
||||
For Each _OrderInRowsOther In _OrderInRowsOther_Collection
|
||||
APCSheetByProducts.FundingAmountUsedHUF += _OrderInRowsOther.SumPriceBruttoHUF
|
||||
Next
|
||||
APCSheetByProducts.FundingAmountAvailableHUF = APCSheetByProducts.FundingAmountHUF - APCSheetByProducts.FundingAmountUsedHUF
|
||||
APCSheetByProducts.Save()
|
||||
Session.CommitTransaction()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
<Association("OrderInHeader-OrderInRowsOther", GetType(OrderInHeader))> _
|
||||
Property OrderInHeader As OrderInHeader
|
||||
Get
|
||||
Return _OrderInHeader
|
||||
End Get
|
||||
Set(value As OrderInHeader)
|
||||
SetPropertyValue("OrderInHeader", _OrderInHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property OfferOutRows As OfferOutRows
|
||||
Get
|
||||
Return _OfferOutRows
|
||||
End Get
|
||||
Set(value As OfferOutRows)
|
||||
SetPropertyValue("OfferOutRows", _OfferOutRows, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowIndex() As Long
|
||||
Get
|
||||
Return _RowIndex
|
||||
End Get
|
||||
Set(ByVal value As Long)
|
||||
SetPropertyValue("RowIndex", _RowIndex, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowGroup1 As String
|
||||
Get
|
||||
Return _RowGroup1
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("RowGroup1", _RowGroup1, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowGroup2 As String
|
||||
Get
|
||||
Return _RowGroup2
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("RowGroup2", _RowGroup2, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("OrderInRowsOther-ShortName", DefaultContexts.Save)> _
|
||||
Property ShortName() As String
|
||||
Get
|
||||
Return _ShortName
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("ShortName", _ShortName, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Description() As String
|
||||
Get
|
||||
Return _Description
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("Description", _Description, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceHUF() As Double
|
||||
Get
|
||||
Return _ListPriceHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceHUF", _ListPriceHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceDEV() As Double
|
||||
Get
|
||||
Return _ListPriceDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceDEV", _ListPriceDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DiscountPriceHUF() As Double
|
||||
Get
|
||||
Return _DiscountPriceHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("DiscountPriceHUF", _DiscountPriceHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DiscountPriceDEV() As Double
|
||||
Get
|
||||
Return _DiscountPriceDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("DiscountPriceDEV", _DiscountPriceDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("OrderInRowsOther-QTT", DefaultContexts.Save)> _
|
||||
Property QTT() As Double
|
||||
Get
|
||||
Return _QTT
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT", _QTT, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRange("OrderInRowsOther.QTT_Process_RangeRule", "OrderInRows_aGenerateStorageOutFromOrder_Context", 1, 999999999999)> _
|
||||
Property QTT_Process As Double
|
||||
Get
|
||||
Return _QTT_Process
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_Process", _QTT_Process, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT_Invoiced() As Double
|
||||
Get
|
||||
Return _QTT_Invoiced
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_Invoiced", _QTT_Invoiced, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("OrderInRowsOther-Units", DefaultContexts.Save)> _
|
||||
Property Units() As Units
|
||||
Get
|
||||
Return _Units
|
||||
End Get
|
||||
Set(ByVal value As Units)
|
||||
SetPropertyValue("Units", _Units, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("OrderInRowsOther-VAT", DefaultContexts.Save)> _
|
||||
Property VAT() As VAT
|
||||
Get
|
||||
Return _VAT
|
||||
End Get
|
||||
Set(ByVal value As VAT)
|
||||
SetPropertyValue("VAT", _VAT, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QualityOption() As QualityOption
|
||||
Get
|
||||
Return _QualityOption
|
||||
End Get
|
||||
Set(ByVal value As QualityOption)
|
||||
SetPropertyValue("QualityOption", _QualityOption, value)
|
||||
End Set
|
||||
End Property
|
||||
Property UniqueObjects As UniqueObjects
|
||||
Get
|
||||
Return _UniqueObjects
|
||||
End Get
|
||||
Set(ByVal value As UniqueObjects)
|
||||
SetPropertyValue("UniqueObjects", _UniqueObjects, value)
|
||||
End Set
|
||||
End Property
|
||||
Property CostHolder As CostHolder
|
||||
Get
|
||||
Return _CostHolder
|
||||
End Get
|
||||
Set(ByVal value As CostHolder)
|
||||
SetPropertyValue("CostHolder", _CostHolder, value)
|
||||
End Set
|
||||
End Property
|
||||
Property CostPlace As CostPlace
|
||||
Get
|
||||
Return _CostPlace
|
||||
End Get
|
||||
Set(ByVal value As CostPlace)
|
||||
SetPropertyValue("CostPlace", _CostPlace, value)
|
||||
End Set
|
||||
End Property
|
||||
Property JobNumberObjects As JobNumberObjects
|
||||
Get
|
||||
Return _JobNumberObjects
|
||||
End Get
|
||||
Set(ByVal value As JobNumberObjects)
|
||||
SetPropertyValue("JobNumberObjects", _JobNumberObjects, value)
|
||||
End Set
|
||||
End Property
|
||||
Property CustomsTariffs As CustomsTariffs
|
||||
Get
|
||||
Return _CustomsTariffs
|
||||
End Get
|
||||
Set(value As CustomsTariffs)
|
||||
SetPropertyValue("CustomsTariffs", _CustomsTariffs, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property SumPriceNettoHUF As Double
|
||||
Get
|
||||
Return _SumPriceNettoHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceNettoHUF", _SumPriceNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceNettoDEV As Double
|
||||
Get
|
||||
Return _SumPriceNettoDEV
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceNettoDEV", _SumPriceNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceVATHUF As Double
|
||||
Get
|
||||
Return _SumPriceVATHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceVATHUF", _SumPriceVATHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceVATDEV As Double
|
||||
Get
|
||||
Return _SumPriceVATDEV
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceVATDEV", _SumPriceVATDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceBruttoHUF As Double
|
||||
Get
|
||||
Return _SumPriceBruttoHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceBruttoHUF", _SumPriceBruttoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SumPriceBruttoDEV As Double
|
||||
Get
|
||||
Return _SumPriceBruttoDEV
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("SumPriceBruttoDEV", _SumPriceBruttoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property ListPriceOriginalHUF As Double
|
||||
Get
|
||||
Return _ListPriceOriginalHUF
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("ListPriceOriginalHUF", _ListPriceOriginalHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
ReadOnly Property FinalPriceDEV() As Double
|
||||
Get
|
||||
Return ListPriceDEV - DiscountPriceDEV
|
||||
End Get
|
||||
End Property
|
||||
ReadOnly Property FinalPriceHUF() As Double
|
||||
Get
|
||||
Return ListPriceHUF - DiscountPriceHUF
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'// Munkafolyamat miatt
|
||||
Property WorkState As WorkState
|
||||
Get
|
||||
Return _WorkState
|
||||
End Get
|
||||
Set(value As WorkState)
|
||||
SetPropertyValue("WorkState", _WorkState, value)
|
||||
End Set
|
||||
End Property
|
||||
Property WorkStateGroup As String
|
||||
Get
|
||||
Return _WorkStateGroup
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("WorkStateGroup", _WorkStateGroup, value)
|
||||
End Set
|
||||
End Property
|
||||
Property WorkStateExpiration As Date
|
||||
Get
|
||||
Return _WorkStateExpiration
|
||||
End Get
|
||||
Set(value As Date)
|
||||
SetPropertyValue("WorkStateExpiration", _WorkStateExpiration, value)
|
||||
End Set
|
||||
End Property
|
||||
Property WorkStateStatus As DevExpress.Persistent.Base.General.TaskStatus
|
||||
Get
|
||||
Return _WorkStateStatus
|
||||
End Get
|
||||
Set(value As DevExpress.Persistent.Base.General.TaskStatus)
|
||||
SetPropertyValue("WorkStateStatus", _WorkStateStatus, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'// Termeltetési szerződés miatt
|
||||
Property APCSheetByProducts As APCSheetByProducts
|
||||
Get
|
||||
Return _APCSheetByProducts
|
||||
End Get
|
||||
Set(value As APCSheetByProducts)
|
||||
SetPropertyValue("APCSheetByProducts", _APCSheetByProducts, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Sub AddRows(ByVal _p_OrderInHeader As OrderInHeader)
|
||||
' Sor hozzáadása a fejléchez
|
||||
|
||||
Me.OrderInHeader = _p_OrderInHeader
|
||||
Me.CustomsTariffs = _p_OrderInHeader.row_o_CustomsTariffs
|
||||
Me.ShortName = _p_OrderInHeader.row_o_ShortName
|
||||
Me.QTT = _p_OrderInHeader.row_o_QTT
|
||||
Me.Description = _p_OrderInHeader.row_o_Description
|
||||
Me.ListPriceDEV = _p_OrderInHeader.row_o_ListPriceDEV
|
||||
Me.ListPriceHUF = _p_OrderInHeader.row_o_ListPriceHUF
|
||||
Me.Units = _p_OrderInHeader.row_o_Units
|
||||
Me.VAT = _p_OrderInHeader.row_o_VAT
|
||||
Me.DiscountPriceDEV = Math.Round(((_p_OrderInHeader.row_o_DiscountPercent / 100) * Me.ListPriceDEV), 2, MidpointRounding.AwayFromZero)
|
||||
Me.DiscountPriceHUF = Math.Round(((_p_OrderInHeader.row_o_DiscountPercent / 100) * Me.ListPriceHUF), 2, MidpointRounding.AwayFromZero)
|
||||
Me.APCSheetByProducts = _p_OrderInHeader.row_o_APCSheetByProducts
|
||||
|
||||
If _p_OrderInHeader.OrderInRowsOther.Count = 0 Then
|
||||
Me.RowIndex = 0
|
||||
Else
|
||||
Me.RowIndex = _p_OrderInHeader.OrderInRowsOther.Count - 1
|
||||
End If
|
||||
|
||||
Me.Save()
|
||||
End Sub
|
||||
Public Sub RemoveRows(ByVal _p_OrderInHeader As OrderInHeader)
|
||||
If _p_OrderInHeader.IsEditable = True Then
|
||||
|
||||
For Each _OrderInRowsOther As OrderInRowsOther In _p_OrderInHeader.OrderInRowsOther
|
||||
If _OrderInRowsOther.RowIndex > Me.RowIndex Then
|
||||
_OrderInRowsOther.RowIndex -= 1
|
||||
End If
|
||||
Next
|
||||
|
||||
' Me.Delete()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Sub RecalculateRows()
|
||||
If Me.OrderInHeader Is Nothing Then Exit Sub
|
||||
Dim _VATValue As Double = 0
|
||||
If VAT IsNot Nothing Then
|
||||
_VATValue = VAT.KeyValue
|
||||
End If
|
||||
If Me.APCSheetByProducts IsNot Nothing Then
|
||||
Dim _InterestValue As Double = 0
|
||||
Dim _DifferentDay As Double = 0
|
||||
|
||||
_InterestValue = Me.APCSheetByProducts.APCSheetHeader.APCParameters.InterestValue
|
||||
_DifferentDay = DateDiff(DateInterval.Day, Me.OrderInHeader.DateExecution, Me.APCSheetByProducts.FundingDate)
|
||||
If _DifferentDay > 0 And _InterestValue > 0 Then
|
||||
If ListPriceOriginalHUF = 0 Then
|
||||
ListPriceOriginalHUF = ListPriceHUF
|
||||
End If
|
||||
ListPriceHUF = ListPriceOriginalHUF + Math.Round(_DifferentDay / 36000 * _InterestValue * ListPriceOriginalHUF, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End If
|
||||
|
||||
Me.SumPriceNettoHUF = Math.Round(FinalPriceHUF * QTT, 0, MidpointRounding.AwayFromZero)
|
||||
Me.SumPriceNettoDEV = Math.Round(FinalPriceDEV * QTT, 2, MidpointRounding.AwayFromZero)
|
||||
|
||||
Me.SumPriceVATHUF = Math.Round(Me.SumPriceNettoHUF * (_VATValue), 0, MidpointRounding.AwayFromZero)
|
||||
Me.SumPriceVATDEV = Math.Round(Me.SumPriceNettoDEV * (_VATValue), 2, MidpointRounding.AwayFromZero)
|
||||
|
||||
Me.SumPriceBruttoHUF = Me.SumPriceNettoHUF + Me.SumPriceVATHUF
|
||||
Me.SumPriceBruttoDEV = Me.SumPriceNettoDEV + Me.SumPriceVATDEV
|
||||
End Sub
|
||||
End Class
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
Partial Class OrderInRowsOtherVC
|
||||
|
||||
<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.aToTable_OrderInOther = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aToTableD_OrderInOther = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aDown_OrderInOther = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aUp_OrderInOther = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aInsertServicesToOrderIn = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
'
|
||||
'aToTable_OrderInOther
|
||||
'
|
||||
Me.aToTable_OrderInOther.Caption = "Add row"
|
||||
Me.aToTable_OrderInOther.Category = "aToTable_OrderInOther"
|
||||
Me.aToTable_OrderInOther.ConfirmationMessage = Nothing
|
||||
Me.aToTable_OrderInOther.Id = "aToTable_OrderInOther"
|
||||
Me.aToTable_OrderInOther.ImageName = "table_add"
|
||||
Me.aToTable_OrderInOther.Shortcut = Nothing
|
||||
Me.aToTable_OrderInOther.Tag = Nothing
|
||||
Me.aToTable_OrderInOther.TargetObjectsCriteria = Nothing
|
||||
Me.aToTable_OrderInOther.TargetViewId = "OrderInHeader_DetailView"
|
||||
Me.aToTable_OrderInOther.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aToTable_OrderInOther.ToolTip = Nothing
|
||||
Me.aToTable_OrderInOther.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aToTableD_OrderInOther
|
||||
'
|
||||
Me.aToTableD_OrderInOther.Caption = "Delete row"
|
||||
Me.aToTableD_OrderInOther.Category = "aToTableD_OrderInOther"
|
||||
Me.aToTableD_OrderInOther.ConfirmationMessage = Nothing
|
||||
Me.aToTableD_OrderInOther.Id = "aToTableD_OrderInOther"
|
||||
Me.aToTableD_OrderInOther.ImageName = "table_delete"
|
||||
Me.aToTableD_OrderInOther.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aToTableD_OrderInOther.Shortcut = Nothing
|
||||
Me.aToTableD_OrderInOther.Tag = Nothing
|
||||
Me.aToTableD_OrderInOther.TargetObjectsCriteria = Nothing
|
||||
Me.aToTableD_OrderInOther.TargetViewId = "OrderInHeader_DetailView"
|
||||
Me.aToTableD_OrderInOther.ToolTip = Nothing
|
||||
Me.aToTableD_OrderInOther.TypeOfView = Nothing
|
||||
'
|
||||
'aDown_OrderInOther
|
||||
'
|
||||
Me.aDown_OrderInOther.Caption = "Down"
|
||||
Me.aDown_OrderInOther.Category = "RecordsNavigation"
|
||||
Me.aDown_OrderInOther.ConfirmationMessage = Nothing
|
||||
Me.aDown_OrderInOther.Id = "aDown_OrderInOther"
|
||||
Me.aDown_OrderInOther.ImageName = "arrow_down_green"
|
||||
Me.aDown_OrderInOther.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aDown_OrderInOther.Shortcut = Nothing
|
||||
Me.aDown_OrderInOther.Tag = Nothing
|
||||
Me.aDown_OrderInOther.TargetObjectsCriteria = Nothing
|
||||
Me.aDown_OrderInOther.TargetViewId = "OrderInHeader_OrderInRowsOther_ListView"
|
||||
Me.aDown_OrderInOther.ToolTip = Nothing
|
||||
Me.aDown_OrderInOther.TypeOfView = Nothing
|
||||
'
|
||||
'aUp_OrderInOther
|
||||
'
|
||||
Me.aUp_OrderInOther.Caption = "Up"
|
||||
Me.aUp_OrderInOther.Category = "RecordsNavigation"
|
||||
Me.aUp_OrderInOther.ConfirmationMessage = Nothing
|
||||
Me.aUp_OrderInOther.Id = "aUp_OrderInOther"
|
||||
Me.aUp_OrderInOther.ImageName = "arrow_up_green"
|
||||
Me.aUp_OrderInOther.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aUp_OrderInOther.Shortcut = Nothing
|
||||
Me.aUp_OrderInOther.Tag = Nothing
|
||||
Me.aUp_OrderInOther.TargetObjectsCriteria = Nothing
|
||||
Me.aUp_OrderInOther.TargetViewId = "OrderInHeader_OrderInRowsOther_ListView"
|
||||
Me.aUp_OrderInOther.ToolTip = Nothing
|
||||
Me.aUp_OrderInOther.TypeOfView = Nothing
|
||||
'
|
||||
'aInsertServicesToOrderIn
|
||||
'
|
||||
Me.aInsertServicesToOrderIn.AcceptButtonCaption = Nothing
|
||||
Me.aInsertServicesToOrderIn.CancelButtonCaption = Nothing
|
||||
Me.aInsertServicesToOrderIn.Caption = "aInsert Services To Order In"
|
||||
Me.aInsertServicesToOrderIn.ConfirmationMessage = Nothing
|
||||
Me.aInsertServicesToOrderIn.Id = "aInsertServicesToOrderIn"
|
||||
Me.aInsertServicesToOrderIn.ImageName = Nothing
|
||||
Me.aInsertServicesToOrderIn.Shortcut = Nothing
|
||||
Me.aInsertServicesToOrderIn.Tag = Nothing
|
||||
Me.aInsertServicesToOrderIn.TargetObjectsCriteria = Nothing
|
||||
Me.aInsertServicesToOrderIn.TargetObjectType = GetType(Nuvolar.[Module].OrderInRowsOther)
|
||||
Me.aInsertServicesToOrderIn.TargetViewId = ""
|
||||
Me.aInsertServicesToOrderIn.ToolTip = Nothing
|
||||
Me.aInsertServicesToOrderIn.TypeOfView = GetType(DevExpress.ExpressApp.View)
|
||||
|
||||
End Sub
|
||||
Friend WithEvents aToTable_OrderInOther As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aToTableD_OrderInOther As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aDown_OrderInOther As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aUp_OrderInOther As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aInsertServicesToOrderIn As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
|
||||
End Class
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
<?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="aToTable_OrderInOther.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 134</value>
|
||||
</metadata>
|
||||
<metadata name="aToTableD_OrderInOther.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 173</value>
|
||||
</metadata>
|
||||
<metadata name="aDown_OrderInOther.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 95</value>
|
||||
</metadata>
|
||||
<metadata name="aUp_OrderInOther.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aInsertServicesToOrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>211, 290</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+195
@@ -0,0 +1,195 @@
|
||||
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.Editors
|
||||
|
||||
Public Class OrderInRowsOtherVC
|
||||
Inherits DevExpress.ExpressApp.ViewController
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
InitializeComponent()
|
||||
RegisterActions(components)
|
||||
End Sub
|
||||
Protected Overrides Sub OnActivated()
|
||||
MyBase.OnActivated()
|
||||
|
||||
If View.Id = "OrderInHeader_OrderInRowsOther_ListView" Then
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.CloneObject.CloneObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController)().Active.SetItemValue("", False)
|
||||
End If
|
||||
|
||||
End Sub
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
|
||||
If View.Id = "OrderInHeader_OrderInRowsOther_ListView" Then
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.CloneObject.CloneObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController)().Active.SetItemValue("", True)
|
||||
End If
|
||||
End Sub
|
||||
Private Sub aToTable_OrderInOther_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aToTable_OrderInOther.Execute
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInHeader As OrderInHeader = CType(View.SelectedObjects(0), OrderInHeader)
|
||||
|
||||
If _OrderInHeader IsNot Nothing Then
|
||||
|
||||
Dim _OrderInRowsOther As OrderInRowsOther = New OrderInRowsOther(_ocur.Session)
|
||||
_OrderInRowsOther.AddRows(_OrderInHeader)
|
||||
' _OrderInHeader.Save()
|
||||
_ocur.CommitChanges()
|
||||
|
||||
Dim ItemToFocus As ViewItem = TryCast(View, DetailView).FindItem("row_o_ShortName")
|
||||
If ItemToFocus IsNot Nothing Then
|
||||
Dim ItemControl As Object
|
||||
ItemControl = ItemToFocus.Control
|
||||
ItemControl.Focus()
|
||||
End If
|
||||
|
||||
_OrderInHeader.row_o_Description = ""
|
||||
_OrderInHeader.row_o_DiscountPercent = 0
|
||||
_OrderInHeader.row_o_ListPriceDEV = 0
|
||||
_OrderInHeader.row_o_ListPriceHUF = 0
|
||||
_OrderInHeader.row_o_QTT = 0
|
||||
_OrderInHeader.row_o_ShortName = ""
|
||||
_OrderInHeader.row_o_Units = Nothing
|
||||
_OrderInHeader.row_o_VAT = Nothing
|
||||
|
||||
View.Refresh()
|
||||
End If
|
||||
End Sub
|
||||
Private Sub aToTableD_OrderInOther_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aToTableD_OrderInOther.Execute
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInRowsOther As OrderInRowsOther
|
||||
Dim _OrderInHeader As OrderInHeader = TryCast(View.SelectedObjects(0), OrderInHeader)
|
||||
Dim _OrderInRowsOther_Del_Collection As New ArrayList 'Sz
|
||||
Dim _OrderInRowsOther_ListEditor As ListPropertyEditor
|
||||
|
||||
_OrderInRowsOther_ListEditor = TryCast(View, DetailView).FindItem("OrderInRowsOther")
|
||||
For Each _OrderInRowsOther In _OrderInRowsOther_ListEditor.ListView.SelectedObjects
|
||||
If _OrderInRowsOther.QTT_Invoiced = 0 Then
|
||||
_OrderInRowsOther.RemoveRows(_OrderInHeader)
|
||||
_OrderInRowsOther_Del_Collection.Add(_OrderInRowsOther)
|
||||
|
||||
End If
|
||||
Next
|
||||
_ocur.Delete(_OrderInRowsOther_Del_Collection)
|
||||
_OrderInHeader.Save()
|
||||
_ocur.CommitChanges()
|
||||
View.Refresh()
|
||||
End Sub
|
||||
|
||||
Private Sub aUp_OrderInOther_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aUp_OrderInOther.Execute
|
||||
' A kiválaszott sort egy sorral feljebb helyezi
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInHeader As OrderInHeader = TryCast(e.SelectedObjects(0), OrderInRowsOther).OrderInHeader
|
||||
Dim _OrderInRowsOther_Selected As OrderInRowsOther = TryCast(e.SelectedObjects(0), OrderInRowsOther)
|
||||
Dim _OrderInRowsOther_Minus As OrderInRowsOther
|
||||
Dim _OrderInRowsOther As OrderInRowsOther
|
||||
|
||||
If _OrderInRowsOther_Selected.RowIndex > 0 Then
|
||||
For Each _OrderInRowsOther In _OrderInHeader.OrderInRowsOther
|
||||
If _OrderInRowsOther.RowIndex = _OrderInRowsOther_Selected.RowIndex - 1 Then
|
||||
_OrderInRowsOther_Minus = _OrderInRowsOther
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
|
||||
If _OrderInRowsOther_Minus IsNot Nothing Then
|
||||
_OrderInRowsOther_Selected.RowIndex -= 1
|
||||
_OrderInRowsOther_Minus.RowIndex += 1
|
||||
End If
|
||||
_OrderInRowsOther_Minus.Save()
|
||||
_OrderInRowsOther_Selected.Save()
|
||||
_ocur.CommitChanges()
|
||||
View.Refresh()
|
||||
End If
|
||||
End Sub
|
||||
Private Sub aDown_OrderInOther_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aDown_OrderInOther.Execute
|
||||
' A kiválaszott sort egy sorral lejebb helyezi
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInHeader As OrderInHeader = TryCast(e.SelectedObjects(0), OrderInRowsOther).OrderInHeader
|
||||
Dim _OrderInRowsOther_Selected As OrderInRowsOther = TryCast(e.SelectedObjects(0), OrderInRowsOther)
|
||||
Dim _OrderInRowsOther_Plus As OrderInRowsOther
|
||||
Dim _OrderInrowsOther As OrderInRowsOther
|
||||
|
||||
If _OrderInRowsOther_Selected.RowIndex < _OrderInHeader.OrderInRowsOther.Count - 1 Then
|
||||
For Each _OrderInrowsOther In _OrderInHeader.OrderInRowsOther
|
||||
If _OrderInrowsOther.RowIndex = _OrderInRowsOther_Selected.RowIndex + 1 Then
|
||||
_OrderInRowsOther_Plus = _OrderInrowsOther
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
|
||||
If _OrderInRowsOther_Plus IsNot Nothing Then
|
||||
_OrderInRowsOther_Selected.RowIndex += 1
|
||||
_OrderInRowsOther_Plus.RowIndex -= 1
|
||||
End If
|
||||
_OrderInRowsOther_Plus.Save()
|
||||
_OrderInRowsOther_Selected.Save()
|
||||
_ocur.CommitChanges()
|
||||
View.Refresh()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub aInsertServicesToOrderIn_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aInsertServicesToOrderIn.CustomizePopupWindowParams
|
||||
' Az akció a szolgáltatások listview-ját hozza fel.
|
||||
Dim _OrderInHeader As OrderInHeader = TryCast(TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject, OrderInHeader)
|
||||
|
||||
If _OrderInHeader.IsEditable Then
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _CollectionSource As CollectionSource = New CollectionSource(_onew, GetType(Services))
|
||||
|
||||
e.View = Application.CreateListView("Services_ListView_Browse", _CollectionSource, False)
|
||||
Else
|
||||
'----------TESZT MIATT-----------------------------------------
|
||||
Throw New Exception("*A kimenõ ajánlat végleges vagy stornó!")
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub aInsertServicesToOrderIn_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aInsertServicesToOrderIn.Execute
|
||||
'A popup-on kiválasztott szolgáltatásokból létrehoz kimenõ árajánlati sorokat
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInHeader As OrderInHeader = TryCast(TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject, OrderInHeader)
|
||||
Dim _Services As Services
|
||||
Dim _OrderInRowsOther_New As OrderInRowsOther
|
||||
|
||||
For Each _Services In e.PopupWindow.View.SelectedObjects
|
||||
_OrderInRowsOther_New = _ocur.CreateObject(Of OrderInRowsOther)()
|
||||
|
||||
_OrderInRowsOther_New.OrderInHeader = _OrderInHeader
|
||||
_OrderInRowsOther_New.ShortName = _Services.ShortName
|
||||
_OrderInRowsOther_New.CustomsTariffs = _ocur.GetObject(_Services.CustomsTariffs)
|
||||
_OrderInRowsOther_New.Description = _Services.Description
|
||||
_OrderInRowsOther_New.ListPriceDEV = _Services.ListPriceDEV
|
||||
_OrderInRowsOther_New.ListPriceHUF = _Services.ListPriceHUF
|
||||
_OrderInRowsOther_New.Units = _ocur.GetObject(_Services.Units)
|
||||
_OrderInRowsOther_New.VAT = _ocur.GetObject(_Services.VAT)
|
||||
_OrderInRowsOther_New.QTT = 1
|
||||
_OrderInRowsOther_New.RowGroup1 = _Services.RowGroup1
|
||||
_OrderInRowsOther_New.RowGroup2 = _Services.RowGroup2
|
||||
|
||||
'Indexelés
|
||||
If _OrderInHeader.OrderInRowsOther.Count = 0 Then
|
||||
_OrderInRowsOther_New.RowIndex = 0
|
||||
Else
|
||||
_OrderInRowsOther_New.RowIndex = _OrderInHeader.OrderInRowsOther.Count - 1
|
||||
End If
|
||||
|
||||
_OrderInRowsOther_New.Save()
|
||||
Next
|
||||
_ocur.CommitChanges()
|
||||
End Sub
|
||||
End Class
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
Partial Class OrderInRowsVC
|
||||
|
||||
<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.aMoveOrderInRowsToOtherOrderInHeader = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_ChangeQTT = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
'
|
||||
'aMoveOrderInRowsToOtherOrderInHeader
|
||||
'
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.AcceptButtonCaption = Nothing
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.CancelButtonCaption = Nothing
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.Caption = "aMove Order In Rows To Other Order In Header"
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.ConfirmationMessage = Nothing
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.Id = "aMoveOrderInRowsToOtherOrderInHeader"
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.ImageName = Nothing
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireMultipleObjects
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.Shortcut = Nothing
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.Tag = Nothing
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.TargetObjectsCriteria = Nothing
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.TargetObjectType = GetType(Nuvolar.[Module].OrderInRows)
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.TargetViewId = Nothing
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.ToolTip = Nothing
|
||||
Me.aMoveOrderInRowsToOtherOrderInHeader.TypeOfView = Nothing
|
||||
'
|
||||
'aMoveOrderInRowsOtherToOtherOrderInHeader
|
||||
'
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.AcceptButtonCaption = Nothing
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.CancelButtonCaption = Nothing
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.Caption = "aMove Order In Rows Other To Other Order In Header"
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.ConfirmationMessage = Nothing
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.Id = "aMoveOrderInRowsOtherToOtherOrderInHeader"
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.ImageName = Nothing
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireMultipleObjects
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.Shortcut = Nothing
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.Tag = Nothing
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.TargetObjectsCriteria = Nothing
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.TargetObjectType = GetType(Nuvolar.[Module].OrderInRowsOther)
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.TargetViewId = Nothing
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.ToolTip = Nothing
|
||||
Me.aMoveOrderInRowsOtherToOtherOrderInHeader.TypeOfView = Nothing
|
||||
'
|
||||
'aORI_ChangeQTT
|
||||
'
|
||||
Me.aORI_ChangeQTT.AcceptButtonCaption = Nothing
|
||||
Me.aORI_ChangeQTT.CancelButtonCaption = Nothing
|
||||
Me.aORI_ChangeQTT.Caption = "aORI_ChangeQTT"
|
||||
Me.aORI_ChangeQTT.ConfirmationMessage = Nothing
|
||||
Me.aORI_ChangeQTT.Id = "aORI_ChangeQTT"
|
||||
Me.aORI_ChangeQTT.ImageName = Nothing
|
||||
Me.aORI_ChangeQTT.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aORI_ChangeQTT.Shortcut = Nothing
|
||||
Me.aORI_ChangeQTT.Tag = Nothing
|
||||
Me.aORI_ChangeQTT.TargetObjectsCriteria = "QTT_Storaged_Will=0"
|
||||
Me.aORI_ChangeQTT.TargetObjectType = GetType(Nuvolar.[Module].OrderInRows)
|
||||
Me.aORI_ChangeQTT.TargetViewId = "OrderInHeader_OrderInRows_ListView"
|
||||
Me.aORI_ChangeQTT.TargetViewType = DevExpress.ExpressApp.ViewType.ListView
|
||||
Me.aORI_ChangeQTT.ToolTip = Nothing
|
||||
Me.aORI_ChangeQTT.TypeOfView = GetType(DevExpress.ExpressApp.ListView)
|
||||
|
||||
End Sub
|
||||
Friend WithEvents aMoveOrderInRowsToOtherOrderInHeader As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aMoveOrderInRowsOtherToOtherOrderInHeader As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_ChangeQTT As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
|
||||
End Class
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
<?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="aMoveOrderInRowsToOtherOrderInHeader.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 95</value>
|
||||
</metadata>
|
||||
<metadata name="aMoveOrderInRowsOtherToOtherOrderInHeader.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_ChangeQTT.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>59, 166</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
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.Data.Filtering
|
||||
Imports DevExpress.ExpressApp.Utils
|
||||
Imports DevExpress.ExpressApp.SystemModule
|
||||
Imports System.Linq
|
||||
Imports System.Linq.Expressions
|
||||
Imports DevExpress.Xpo
|
||||
|
||||
Public Class OrderInRowsVC
|
||||
Inherits DevExpress.ExpressApp.ViewController
|
||||
Public Event InitWork(ByVal _Minimum As Long, ByVal _Step As Long, ByVal _Maximum As Long)
|
||||
Public Event DoWork()
|
||||
Public Event FinalWork
|
||||
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 = "ORI_ChangeQTT_PopUp_DetailView" Then
|
||||
AddHandler Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DialogController)().AcceptAction.Executing, AddressOf ORI_ChangeQTT_PopUp_DetailView_AcceptAction_Executing
|
||||
End If
|
||||
|
||||
If View.Id = "OrderInRowsAdvanceBallanceInfo_ListView" Then
|
||||
|
||||
AddHandler Frame.GetController(Of RefreshController).RefreshAction.Executed, AddressOf OrderInRowsAdvanceBallanceInfo_ListView_RefreshAction_Executed
|
||||
Frame.GetController(Of RefreshController).RefreshAction.DoExecute()
|
||||
|
||||
End If
|
||||
End Sub
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
If View.Id = "ORI_ChangeQTT_PopUp_DetailView" Then
|
||||
RemoveHandler Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DialogController)().AcceptAction.Executing, AddressOf ORI_ChangeQTT_PopUp_DetailView_AcceptAction_Executing
|
||||
End If
|
||||
End Sub
|
||||
Private Sub aMoveOrderInRowsToOtherOrderInHeader_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aMoveOrderInRowsToOtherOrderInHeader.CustomizePopupWindowParams
|
||||
Try
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _OrderInRows As OrderInRows = TryCast(View.SelectedObjects(0), OrderInRows)
|
||||
Dim _OrderInHeader_Collectionsource As New CollectionSource(_onew, GetType(OrderInHeader))
|
||||
|
||||
_OrderInHeader_Collectionsource.BeginUpdateCriteria()
|
||||
_OrderInHeader_Collectionsource.Criteria.Add("Criteria", CriteriaOperator.Parse("CustomersFrom=? AND IsEditable=True AND IsStorno=False and Oid !=?", _onew.GetObject(_OrderInRows.OrderInHeader.CustomersFrom), _OrderInRows.OrderInHeader.Oid))
|
||||
_OrderInHeader_Collectionsource.EndUpdateCriteria()
|
||||
|
||||
e.View = Application.CreateListView("OrderInHeader_ListView_Select", _OrderInHeader_Collectionsource, True)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, "Hiba!")
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aMoveOrderInRowsToOtherOrderInHeader_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aMoveOrderInRowsToOtherOrderInHeader.Execute
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInHeader_New As OrderInHeader = _ocur.GetObject(TryCast(e.PopupWindow.View.SelectedObjects(0), OrderInHeader))
|
||||
If _OrderInHeader_New Is Nothing Then Throw New Exception("*Nem lett kiválasztva az új bejövõ megrendelés!")
|
||||
For Each _OrderInRows As OrderInRows In View.SelectedObjects
|
||||
_OrderInRows.OrderInHeader = _OrderInHeader_New
|
||||
_OrderInRows.RowIndex = _OrderInHeader_New.OrderInRows.Count
|
||||
Next
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, "Hiba!")
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aMoveOrderInRowsOtherToOtherOrderInHeader_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aMoveOrderInRowsOtherToOtherOrderInHeader.CustomizePopupWindowParams
|
||||
Try
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _OrderInRowsOther As OrderInRowsOther = TryCast(View.SelectedObjects(0), OrderInRowsOther)
|
||||
Dim _OrderInHeader_Collectionsource As New CollectionSource(_onew, GetType(OrderInHeader))
|
||||
|
||||
_OrderInHeader_Collectionsource.BeginUpdateCriteria()
|
||||
_OrderInHeader_Collectionsource.Criteria.Add("Criteria", CriteriaOperator.Parse("CustomersFrom=? AND IsEditable=True AND IsStorno=False and Oid !=?", _onew.GetObject(_OrderInRowsOther.OrderInHeader.CustomersFrom), _OrderInRowsOther.OrderInHeader.Oid))
|
||||
_OrderInHeader_Collectionsource.EndUpdateCriteria()
|
||||
|
||||
e.View = Application.CreateListView("OrderInHeader_ListView_Select", _OrderInHeader_Collectionsource, True)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, "Hiba!")
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aMoveOrderInRowsOtherToOtherOrderInHeader_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aMoveOrderInRowsOtherToOtherOrderInHeader.Execute
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInHeader_New As OrderInHeader = _ocur.GetObject(TryCast(e.PopupWindow.View.SelectedObjects(0), OrderInHeader))
|
||||
If _OrderInHeader_New Is Nothing Then Throw New Exception("*Nem lett kiválasztva az új bejövõ megrendelés!")
|
||||
For Each _OrderInRowsOther As OrderInRowsOther In View.SelectedObjects
|
||||
_OrderInRowsOther.OrderInHeader = _OrderInHeader_New
|
||||
_OrderInRowsOther.RowIndex = _OrderInHeader_New.OrderInRowsOther.Count
|
||||
Next
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, "Hiba!")
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub aORI_ChangeQTT_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aORI_ChangeQTT.CustomizePopupWindowParams
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _OrderInRows As OrderInRows = TryCast(View.SelectedObjects(0), OrderInRows)
|
||||
Dim _ORI_ChangeQTT_PopUp As New ORI_ChangeQTT_PopUp(_onew.Session)
|
||||
|
||||
With _ORI_ChangeQTT_PopUp
|
||||
.QTT = _OrderInRows.QTT
|
||||
.QTT_Storaged = _OrderInRows.QTT_Storaged
|
||||
.QTT_Storaged_Will = _OrderInRows.QTT_Storaged_Will
|
||||
.OrderInRows = _onew.GetObject(_OrderInRows)
|
||||
End With
|
||||
|
||||
e.View = Application.CreateDetailView(_onew, "ORI_ChangeQTT_PopUp_DetailView", False, _ORI_ChangeQTT_PopUp)
|
||||
End Sub
|
||||
Private Sub aORI_ChangeQTT_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aORI_ChangeQTT.Execute
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ORI_ChangeQTT_PopUp As ORI_ChangeQTT_PopUp = TryCast(e.PopupWindow.View.SelectedObjects(0), ORI_ChangeQTT_PopUp)
|
||||
Dim _OrderInRows As OrderInRows = TryCast(View.SelectedObjects(0), OrderInRows)
|
||||
_OrderInRows.QTT = _ORI_ChangeQTT_PopUp.QTT
|
||||
_ocur.CommitChanges()
|
||||
End Sub
|
||||
Private Sub ORI_ChangeQTT_PopUp_DetailView_AcceptAction_Executing(sender As Object, e As CancelEventArgs)
|
||||
Try
|
||||
Dim _ORI_ChangeQTT_PopUp As ORI_ChangeQTT_PopUp = TryCast(View.SelectedObjects(0), ORI_ChangeQTT_PopUp)
|
||||
If _ORI_ChangeQTT_PopUp IsNot Nothing Then
|
||||
If _ORI_ChangeQTT_PopUp.QTT < _ORI_ChangeQTT_PopUp.QTT_Storaged Then
|
||||
e.Cancel = True
|
||||
Throw New Exception("*A rendelt mennyiség kisebb, mint a már kitárolt mennyiség!")
|
||||
End If
|
||||
End If
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub OrderInRowsAdvanceBallanceInfo_ListView_RefreshAction_Executed(sender As Object, e As ActionBaseEventArgs)
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _OrderInRowsAdvanceBallanceInfo As OrderInRowsAdvanceBallanceInfo
|
||||
Dim _InvoiceRows_XPQuery As New XPQuery(Of InvoiceRows)(_ocur.Session)
|
||||
|
||||
Dim query1 = From _InvoiceRows In _InvoiceRows_XPQuery
|
||||
Where String.IsNullOrEmpty(_InvoiceRows.InvoiceHeader.DocumentNumber) = False And
|
||||
_InvoiceRows.InvoiceHeader.IsEditable = False And
|
||||
_InvoiceRows.ShortName.ToUpper.Contains("ELÕLEG") And
|
||||
_InvoiceRows.InvoiceHeader IsNot Nothing
|
||||
Group _InvoiceRows By _InvoiceRows.InvoiceHeader.Customers Into g = Group
|
||||
Select New With {.Customers = Customers,
|
||||
.BallanceHUF_Advance = g.Sum(Function(inv) inv.SumPriceBruttoHUF)}
|
||||
|
||||
|
||||
RaiseEvent InitWork(1, 1, query1.Count)
|
||||
For Each item In query1
|
||||
RaiseEvent DoWork()
|
||||
If Math.Abs(Math.Round(item.BallanceHUF_Advance, 0, MidpointRounding.AwayFromZero)) > 100 Then
|
||||
_OrderInRowsAdvanceBallanceInfo = _ocur.CreateObject(Of OrderInRowsAdvanceBallanceInfo)()
|
||||
_OrderInRowsAdvanceBallanceInfo.Customers = item.Customers
|
||||
_OrderInRowsAdvanceBallanceInfo.BallanceHUF_Advance = item.BallanceHUF_Advance
|
||||
TryCast(View, ListView).CollectionSource.Add(_OrderInRowsAdvanceBallanceInfo)
|
||||
|
||||
Dim _OrderInRows_Collection As New XPCollection(Of OrderInRows)(_ocur.Session, CriteriaOperator.Parse("IsNull(OrderInHeader.GCRecord)=True and IsNull(GCRecord)=True and OrderInHeader.Customers=? and OrderInHeader.IsEditable=True and IsNull(OrderInHeader)=False", item.Customers))
|
||||
Dim _OrderInRows As OrderInRows
|
||||
|
||||
For Each _OrderInRows In _OrderInRows_Collection
|
||||
_OrderInRowsAdvanceBallanceInfo = _ocur.CreateObject(Of OrderInRowsAdvanceBallanceInfo)()
|
||||
_OrderInRowsAdvanceBallanceInfo.Customers = item.Customers
|
||||
_OrderInRowsAdvanceBallanceInfo.BallanceHUF_Advance = 0
|
||||
_OrderInRowsAdvanceBallanceInfo.OrderInRows = _OrderInRows
|
||||
TryCast(View, ListView).CollectionSource.Add(_OrderInRowsAdvanceBallanceInfo)
|
||||
Next
|
||||
End If
|
||||
Next
|
||||
RaiseEvent FinalWork
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
Generated
+555
@@ -0,0 +1,555 @@
|
||||
Partial Class OrderInVC
|
||||
|
||||
<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.aFinalizeOrderIn = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aStornoOrderIn = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aToTable_OrderIn = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aToTableD_OrderIn = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aUp_OrderIn = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aDown_OrderIn = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aGenerateStorageOutFromOrderIn = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aGenerateInvoicefromOrderIn = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aReCalculatePricing_OrderInRows = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aRecalculateOrder = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aGenerateOrderOutTempFromOrderIn = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aGenerateStorageOutFromOrderInFIFO = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aBackToEdit_OrderInHeader = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aProductFinder = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_Storno_Invoice = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_Storno_DeliveryNoteOut = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_Storno_StorageOut = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aORI_Create_DeliveryInvoice = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_Create_Delivery = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_Create_Invoice = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aGenerateStorageOutFromOrderInBack = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aOrderIn_InvoiceRowFinalize = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_Invoice_Popup_Description = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_Invoice_Popup_DescriptionHeader = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_OrderToSetCustomerOrder = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_OrderToIncoming = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aOrderIn_ChangeRows = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aOrderInOther_ChangeRows = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aOrderInStorageOutDeliveryNoteOut = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aOrderIn_RecalculateDEV = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aOrderInInvoiceAdvanceAsk = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aOrderInInvoiceAdvance = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_DeleteInvoiceProforma = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aGenerateInvoiceFromOrderInFinal = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_RegenerateValues = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aORI_RecalculateTotalBrutto = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
'
|
||||
'aFinalizeOrderIn
|
||||
'
|
||||
Me.aFinalizeOrderIn.Caption = "aFinalize Order In"
|
||||
Me.aFinalizeOrderIn.Category = "ObjectsCreation"
|
||||
Me.aFinalizeOrderIn.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aFinalizeOrderIn.Id = "aFinalizeOrderIn"
|
||||
Me.aFinalizeOrderIn.TargetViewId = ""
|
||||
Me.aFinalizeOrderIn.ToolTip = Nothing
|
||||
'
|
||||
'aStornoOrderIn
|
||||
'
|
||||
Me.aStornoOrderIn.Caption = "aStorno Order In"
|
||||
Me.aStornoOrderIn.Category = "Edit"
|
||||
Me.aStornoOrderIn.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aStornoOrderIn.Id = "aStornoOrderIn"
|
||||
Me.aStornoOrderIn.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aStornoOrderIn.TargetViewId = ""
|
||||
Me.aStornoOrderIn.ToolTip = Nothing
|
||||
'
|
||||
'aToTable_OrderIn
|
||||
'
|
||||
Me.aToTable_OrderIn.Caption = "Add row"
|
||||
Me.aToTable_OrderIn.Category = "aToTable_OrderIn"
|
||||
Me.aToTable_OrderIn.ConfirmationMessage = Nothing
|
||||
Me.aToTable_OrderIn.Id = "aToTable_OrderIn"
|
||||
Me.aToTable_OrderIn.TargetViewId = ""
|
||||
Me.aToTable_OrderIn.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aToTable_OrderIn.ToolTip = Nothing
|
||||
Me.aToTable_OrderIn.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aToTableD_OrderIn
|
||||
'
|
||||
Me.aToTableD_OrderIn.Caption = "Delete row"
|
||||
Me.aToTableD_OrderIn.Category = "aToTableD_OrderIn"
|
||||
Me.aToTableD_OrderIn.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aToTableD_OrderIn.Id = "aToTableD_OrderIn"
|
||||
Me.aToTableD_OrderIn.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aToTableD_OrderIn.TargetViewId = ""
|
||||
Me.aToTableD_OrderIn.ToolTip = Nothing
|
||||
'
|
||||
'aUp_OrderIn
|
||||
'
|
||||
Me.aUp_OrderIn.Caption = "Up"
|
||||
Me.aUp_OrderIn.Category = "RecordsNavigation"
|
||||
Me.aUp_OrderIn.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aUp_OrderIn.Id = "aUp_OrderIn"
|
||||
Me.aUp_OrderIn.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aUp_OrderIn.ToolTip = Nothing
|
||||
'
|
||||
'aDown_OrderIn
|
||||
'
|
||||
Me.aDown_OrderIn.Caption = "Down"
|
||||
Me.aDown_OrderIn.Category = "RecordsNavigation"
|
||||
Me.aDown_OrderIn.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aDown_OrderIn.Id = "aDown_OrderIn"
|
||||
Me.aDown_OrderIn.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aDown_OrderIn.ToolTip = Nothing
|
||||
'
|
||||
'aGenerateStorageOutFromOrderIn
|
||||
'
|
||||
Me.aGenerateStorageOutFromOrderIn.AcceptButtonCaption = Nothing
|
||||
Me.aGenerateStorageOutFromOrderIn.CancelButtonCaption = Nothing
|
||||
Me.aGenerateStorageOutFromOrderIn.Caption = "Create Storage Out Header From Selected Rows"
|
||||
Me.aGenerateStorageOutFromOrderIn.Category = "aGenerateStorageOutFromOrderIn"
|
||||
Me.aGenerateStorageOutFromOrderIn.ConfirmationMessage = Nothing
|
||||
Me.aGenerateStorageOutFromOrderIn.Id = "aGenerateStorageOutFromOrderIn"
|
||||
Me.aGenerateStorageOutFromOrderIn.TargetViewId = ""
|
||||
Me.aGenerateStorageOutFromOrderIn.ToolTip = Nothing
|
||||
'
|
||||
'aGenerateInvoicefromOrderIn
|
||||
'
|
||||
Me.aGenerateInvoicefromOrderIn.AcceptButtonCaption = Nothing
|
||||
Me.aGenerateInvoicefromOrderIn.CancelButtonCaption = Nothing
|
||||
Me.aGenerateInvoicefromOrderIn.Caption = "Create invoices"
|
||||
Me.aGenerateInvoicefromOrderIn.Category = "ObjectsCreation"
|
||||
Me.aGenerateInvoicefromOrderIn.ConfirmationMessage = Nothing
|
||||
Me.aGenerateInvoicefromOrderIn.Id = "aGenerateInvoicefromOrderIn"
|
||||
Me.aGenerateInvoicefromOrderIn.ImageName = "document_lock"
|
||||
Me.aGenerateInvoicefromOrderIn.TargetViewId = "OrderInHeader_DetailView"
|
||||
Me.aGenerateInvoicefromOrderIn.ToolTip = Nothing
|
||||
'
|
||||
'aReCalculatePricing_OrderInRows
|
||||
'
|
||||
Me.aReCalculatePricing_OrderInRows.Caption = "Recalculate pricing"
|
||||
Me.aReCalculatePricing_OrderInRows.Category = ""
|
||||
Me.aReCalculatePricing_OrderInRows.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aReCalculatePricing_OrderInRows.Id = "aReCalculatePricing_OrderInRows"
|
||||
Me.aReCalculatePricing_OrderInRows.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aReCalculatePricing_OrderInRows.TargetViewId = "OrderInHeader_OrderInRows_ListView"
|
||||
Me.aReCalculatePricing_OrderInRows.ToolTip = Nothing
|
||||
'
|
||||
'aRecalculateOrder
|
||||
'
|
||||
Me.aRecalculateOrder.Caption = "Recalculate Order"
|
||||
Me.aRecalculateOrder.Category = "aRecalculateOrder"
|
||||
Me.aRecalculateOrder.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aRecalculateOrder.Id = "aRecalculateOrder"
|
||||
Me.aRecalculateOrder.ImageName = "Action_refresh"
|
||||
Me.aRecalculateOrder.TargetViewId = "OrderInHeader_DetailView"
|
||||
Me.aRecalculateOrder.ToolTip = Nothing
|
||||
'
|
||||
'aGenerateOrderOutTempFromOrderIn
|
||||
'
|
||||
Me.aGenerateOrderOutTempFromOrderIn.Caption = "Generate order out"
|
||||
Me.aGenerateOrderOutTempFromOrderIn.Category = "aGenerateOrderOutTempFromOrderIn"
|
||||
Me.aGenerateOrderOutTempFromOrderIn.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aGenerateOrderOutTempFromOrderIn.Id = "aGenerateOrderOutTempFromOrderIn"
|
||||
Me.aGenerateOrderOutTempFromOrderIn.TargetViewId = "OrderInHeader_DetailView"
|
||||
Me.aGenerateOrderOutTempFromOrderIn.ToolTip = Nothing
|
||||
'
|
||||
'aGenerateStorageOutFromOrderInFIFO
|
||||
'
|
||||
Me.aGenerateStorageOutFromOrderInFIFO.AcceptButtonCaption = Nothing
|
||||
Me.aGenerateStorageOutFromOrderInFIFO.CancelButtonCaption = Nothing
|
||||
Me.aGenerateStorageOutFromOrderInFIFO.Caption = "Create Storage Out"
|
||||
Me.aGenerateStorageOutFromOrderInFIFO.Category = "aGenerateStorageOutFromOrderInFIFO"
|
||||
Me.aGenerateStorageOutFromOrderInFIFO.ConfirmationMessage = Nothing
|
||||
Me.aGenerateStorageOutFromOrderInFIFO.Id = "aGenerateStorageOutFromOrderInFIFO"
|
||||
Me.aGenerateStorageOutFromOrderInFIFO.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aGenerateStorageOutFromOrderInFIFO.TargetViewId = ""
|
||||
Me.aGenerateStorageOutFromOrderInFIFO.ToolTip = Nothing
|
||||
'
|
||||
'aBackToEdit_OrderInHeader
|
||||
'
|
||||
Me.aBackToEdit_OrderInHeader.Caption = "Back to edit OrderInHeader"
|
||||
Me.aBackToEdit_OrderInHeader.Category = "Edit"
|
||||
Me.aBackToEdit_OrderInHeader.ConfirmationMessage = "Do you want to execute?"
|
||||
Me.aBackToEdit_OrderInHeader.Id = "aBackToEdit_OrderInHeader"
|
||||
Me.aBackToEdit_OrderInHeader.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aBackToEdit_OrderInHeader.TargetViewId = ""
|
||||
Me.aBackToEdit_OrderInHeader.ToolTip = Nothing
|
||||
'
|
||||
'aProductFinder
|
||||
'
|
||||
Me.aProductFinder.AcceptButtonCaption = Nothing
|
||||
Me.aProductFinder.CancelButtonCaption = Nothing
|
||||
Me.aProductFinder.Caption = "aProduct Finder"
|
||||
Me.aProductFinder.Category = "aProductFinder"
|
||||
Me.aProductFinder.ConfirmationMessage = Nothing
|
||||
Me.aProductFinder.Id = "aProductFinder"
|
||||
Me.aProductFinder.ToolTip = Nothing
|
||||
'
|
||||
'aORI_Storno_Invoice
|
||||
'
|
||||
Me.aORI_Storno_Invoice.AcceptButtonCaption = Nothing
|
||||
Me.aORI_Storno_Invoice.CancelButtonCaption = Nothing
|
||||
Me.aORI_Storno_Invoice.Caption = "aORI_Storno_Invoice"
|
||||
Me.aORI_Storno_Invoice.Category = "aORI_Storno_Invoice"
|
||||
Me.aORI_Storno_Invoice.ConfirmationMessage = Nothing
|
||||
Me.aORI_Storno_Invoice.Id = "aORI_Storno_Invoice"
|
||||
Me.aORI_Storno_Invoice.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aORI_Storno_Invoice.ToolTip = Nothing
|
||||
'
|
||||
'aORI_Storno_DeliveryNoteOut
|
||||
'
|
||||
Me.aORI_Storno_DeliveryNoteOut.AcceptButtonCaption = Nothing
|
||||
Me.aORI_Storno_DeliveryNoteOut.CancelButtonCaption = Nothing
|
||||
Me.aORI_Storno_DeliveryNoteOut.Caption = "aORI_Storno_DeliveryNoteOut"
|
||||
Me.aORI_Storno_DeliveryNoteOut.Category = "aORI_Storno_DeliveryNoteOut"
|
||||
Me.aORI_Storno_DeliveryNoteOut.ConfirmationMessage = Nothing
|
||||
Me.aORI_Storno_DeliveryNoteOut.Id = "aORI_Storno_DeliveryNoteOut"
|
||||
Me.aORI_Storno_DeliveryNoteOut.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aORI_Storno_DeliveryNoteOut.ToolTip = Nothing
|
||||
'
|
||||
'aORI_Storno_StorageOut
|
||||
'
|
||||
Me.aORI_Storno_StorageOut.Caption = "aORI_Storno_StorageOut"
|
||||
Me.aORI_Storno_StorageOut.Category = "aORI_Storno_StorageOut"
|
||||
Me.aORI_Storno_StorageOut.ConfirmationMessage = Nothing
|
||||
Me.aORI_Storno_StorageOut.Id = "aORI_Storno_StorageOut"
|
||||
Me.aORI_Storno_StorageOut.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aORI_Storno_StorageOut.ToolTip = Nothing
|
||||
'
|
||||
'aORI_Create_DeliveryInvoice
|
||||
'
|
||||
Me.aORI_Create_DeliveryInvoice.AcceptButtonCaption = Nothing
|
||||
Me.aORI_Create_DeliveryInvoice.CancelButtonCaption = Nothing
|
||||
Me.aORI_Create_DeliveryInvoice.Caption = "aORI_Create_DeliveryInvoice"
|
||||
Me.aORI_Create_DeliveryInvoice.Category = "aORI_Create_DeliveryInvoice"
|
||||
Me.aORI_Create_DeliveryInvoice.ConfirmationMessage = Nothing
|
||||
Me.aORI_Create_DeliveryInvoice.Id = "aORI_Create_DeliveryInvoice"
|
||||
Me.aORI_Create_DeliveryInvoice.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aORI_Create_DeliveryInvoice.ToolTip = Nothing
|
||||
'
|
||||
'aORI_Create_Delivery
|
||||
'
|
||||
Me.aORI_Create_Delivery.AcceptButtonCaption = Nothing
|
||||
Me.aORI_Create_Delivery.CancelButtonCaption = Nothing
|
||||
Me.aORI_Create_Delivery.Caption = "aORI_Create_Delivery"
|
||||
Me.aORI_Create_Delivery.Category = "aORI_Create_Delivery"
|
||||
Me.aORI_Create_Delivery.ConfirmationMessage = Nothing
|
||||
Me.aORI_Create_Delivery.Id = "aORI_Create_Delivery"
|
||||
Me.aORI_Create_Delivery.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aORI_Create_Delivery.ToolTip = Nothing
|
||||
'
|
||||
'aORI_Create_Invoice
|
||||
'
|
||||
Me.aORI_Create_Invoice.AcceptButtonCaption = Nothing
|
||||
Me.aORI_Create_Invoice.CancelButtonCaption = Nothing
|
||||
Me.aORI_Create_Invoice.Caption = "aORI_Create_Invoice"
|
||||
Me.aORI_Create_Invoice.Category = "aORI_Create_Invoice"
|
||||
Me.aORI_Create_Invoice.ConfirmationMessage = Nothing
|
||||
Me.aORI_Create_Invoice.Id = "aORI_Create_Invoice"
|
||||
Me.aORI_Create_Invoice.ToolTip = Nothing
|
||||
'
|
||||
'aGenerateStorageOutFromOrderInBack
|
||||
'
|
||||
Me.aGenerateStorageOutFromOrderInBack.AcceptButtonCaption = Nothing
|
||||
Me.aGenerateStorageOutFromOrderInBack.CancelButtonCaption = Nothing
|
||||
Me.aGenerateStorageOutFromOrderInBack.Caption = "aGenerate Storage Out From Order In Back"
|
||||
Me.aGenerateStorageOutFromOrderInBack.Category = "aGenerateStorageOutFromOrderInBack"
|
||||
Me.aGenerateStorageOutFromOrderInBack.ConfirmationMessage = Nothing
|
||||
Me.aGenerateStorageOutFromOrderInBack.Id = "aGenerateStorageOutFromOrderInBack"
|
||||
Me.aGenerateStorageOutFromOrderInBack.ToolTip = Nothing
|
||||
'
|
||||
'aOrderIn_InvoiceRowFinalize
|
||||
'
|
||||
Me.aOrderIn_InvoiceRowFinalize.AcceptButtonCaption = Nothing
|
||||
Me.aOrderIn_InvoiceRowFinalize.CancelButtonCaption = Nothing
|
||||
Me.aOrderIn_InvoiceRowFinalize.Caption = "aOrderIn_InvoiceRowFinalize"
|
||||
Me.aOrderIn_InvoiceRowFinalize.Category = "aOrderIn_InvoiceRowFinalize"
|
||||
Me.aOrderIn_InvoiceRowFinalize.ConfirmationMessage = Nothing
|
||||
Me.aOrderIn_InvoiceRowFinalize.Id = "aOrderIn_InvoiceRowFinalize"
|
||||
Me.aOrderIn_InvoiceRowFinalize.ToolTip = Nothing
|
||||
'
|
||||
'aORI_Invoice_Popup_Description
|
||||
'
|
||||
Me.aORI_Invoice_Popup_Description.AcceptButtonCaption = Nothing
|
||||
Me.aORI_Invoice_Popup_Description.CancelButtonCaption = Nothing
|
||||
Me.aORI_Invoice_Popup_Description.Caption = "aORI_Invoice_Popup_Description"
|
||||
Me.aORI_Invoice_Popup_Description.Category = "aORI_Invoice_Popup_Description"
|
||||
Me.aORI_Invoice_Popup_Description.ConfirmationMessage = Nothing
|
||||
Me.aORI_Invoice_Popup_Description.Id = "aORI_Invoice_Popup_Description"
|
||||
Me.aORI_Invoice_Popup_Description.ToolTip = Nothing
|
||||
'
|
||||
'aORI_Invoice_Popup_DescriptionHeader
|
||||
'
|
||||
Me.aORI_Invoice_Popup_DescriptionHeader.AcceptButtonCaption = Nothing
|
||||
Me.aORI_Invoice_Popup_DescriptionHeader.CancelButtonCaption = Nothing
|
||||
Me.aORI_Invoice_Popup_DescriptionHeader.Caption = "aORI_Invoice_Popup_DescriptionHeader"
|
||||
Me.aORI_Invoice_Popup_DescriptionHeader.Category = "aORI_Invoice_Popup_DescriptionHeader"
|
||||
Me.aORI_Invoice_Popup_DescriptionHeader.ConfirmationMessage = Nothing
|
||||
Me.aORI_Invoice_Popup_DescriptionHeader.Id = "aORI_Invoice_Popup_DescriptionHeader"
|
||||
Me.aORI_Invoice_Popup_DescriptionHeader.ToolTip = Nothing
|
||||
'
|
||||
'aORI_OrderToSetCustomerOrder
|
||||
'
|
||||
Me.aORI_OrderToSetCustomerOrder.AcceptButtonCaption = Nothing
|
||||
Me.aORI_OrderToSetCustomerOrder.CancelButtonCaption = Nothing
|
||||
Me.aORI_OrderToSetCustomerOrder.Caption = "aORI_OrderToSetCustomerOrder"
|
||||
Me.aORI_OrderToSetCustomerOrder.Category = "aORI_OrderToSetCustomerOrder"
|
||||
Me.aORI_OrderToSetCustomerOrder.ConfirmationMessage = Nothing
|
||||
Me.aORI_OrderToSetCustomerOrder.Id = "aORI_OrderToSetCustomerOrder"
|
||||
Me.aORI_OrderToSetCustomerOrder.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireMultipleObjects
|
||||
Me.aORI_OrderToSetCustomerOrder.TargetViewId = ""
|
||||
Me.aORI_OrderToSetCustomerOrder.ToolTip = Nothing
|
||||
'
|
||||
'aORI_OrderToIncoming
|
||||
'
|
||||
Me.aORI_OrderToIncoming.AcceptButtonCaption = Nothing
|
||||
Me.aORI_OrderToIncoming.CancelButtonCaption = Nothing
|
||||
Me.aORI_OrderToIncoming.Caption = "aORI_OrderToIncoming"
|
||||
Me.aORI_OrderToIncoming.Category = "aORI_OrderToIncoming"
|
||||
Me.aORI_OrderToIncoming.ConfirmationMessage = Nothing
|
||||
Me.aORI_OrderToIncoming.Id = "aORI_OrderToIncoming"
|
||||
Me.aORI_OrderToIncoming.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireSingleObject
|
||||
Me.aORI_OrderToIncoming.TargetViewId = ""
|
||||
Me.aORI_OrderToIncoming.ToolTip = Nothing
|
||||
'
|
||||
'aOrderIn_ChangeRows
|
||||
'
|
||||
Me.aOrderIn_ChangeRows.AcceptButtonCaption = Nothing
|
||||
Me.aOrderIn_ChangeRows.CancelButtonCaption = Nothing
|
||||
Me.aOrderIn_ChangeRows.Caption = "Change data in selected rows"
|
||||
Me.aOrderIn_ChangeRows.ConfirmationMessage = Nothing
|
||||
Me.aOrderIn_ChangeRows.Id = "aOrderIn_ChangeRows"
|
||||
Me.aOrderIn_ChangeRows.ImageName = "Action_EditModel"
|
||||
Me.aOrderIn_ChangeRows.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireMultipleObjects
|
||||
Me.aOrderIn_ChangeRows.TargetObjectType = GetType(Nuvolar.[Module].OrderInRows)
|
||||
Me.aOrderIn_ChangeRows.ToolTip = Nothing
|
||||
'
|
||||
'aOrderInOther_ChangeRows
|
||||
'
|
||||
Me.aOrderInOther_ChangeRows.AcceptButtonCaption = Nothing
|
||||
Me.aOrderInOther_ChangeRows.CancelButtonCaption = Nothing
|
||||
Me.aOrderInOther_ChangeRows.Caption = "Change data in selected rows"
|
||||
Me.aOrderInOther_ChangeRows.ConfirmationMessage = Nothing
|
||||
Me.aOrderInOther_ChangeRows.Id = "aOrderInOther_ChangeRows"
|
||||
Me.aOrderInOther_ChangeRows.ImageName = "Action_EditModel"
|
||||
Me.aOrderInOther_ChangeRows.SelectionDependencyType = DevExpress.ExpressApp.Actions.SelectionDependencyType.RequireMultipleObjects
|
||||
Me.aOrderInOther_ChangeRows.TargetObjectType = GetType(Nuvolar.[Module].OrderInRowsOther)
|
||||
Me.aOrderInOther_ChangeRows.ToolTip = Nothing
|
||||
'
|
||||
'aOrderInStorageOutDeliveryNoteOut
|
||||
'
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.AcceptButtonCaption = Nothing
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.CancelButtonCaption = Nothing
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.Caption = "aOrderInStorageOutDeliveryNoteOut"
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.Category = "aOrderInStorageOutDeliveryNoteOut"
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.ConfirmationMessage = Nothing
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.Id = "aOrderInStorageOutDeliveryNoteOut"
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.TargetObjectType = GetType(Nuvolar.[Module].OrderInHeader)
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.TargetViewId = ""
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.ToolTip = Nothing
|
||||
Me.aOrderInStorageOutDeliveryNoteOut.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aOrderInStorageOutDeliveryNoteOutInvoice
|
||||
'
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.AcceptButtonCaption = Nothing
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.CancelButtonCaption = Nothing
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.Caption = "aOrderInStorageOutDeliveryNoteOutInvoice"
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.Category = "aOrderInStorageOutDeliveryNoteOutInvoice"
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.ConfirmationMessage = Nothing
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.Id = "aOrderInStorageOutDeliveryNoteOutInvoice"
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.TargetObjectType = GetType(Nuvolar.[Module].OrderInHeader)
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.TargetViewId = ""
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.ToolTip = Nothing
|
||||
Me.aOrderInStorageOutDeliveryNoteOutInvoice.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aOrderIn_RecalculateDEV
|
||||
'
|
||||
Me.aOrderIn_RecalculateDEV.AcceptButtonCaption = Nothing
|
||||
Me.aOrderIn_RecalculateDEV.CancelButtonCaption = Nothing
|
||||
Me.aOrderIn_RecalculateDEV.Caption = "aOrderIn_RecalculateDEV"
|
||||
Me.aOrderIn_RecalculateDEV.ConfirmationMessage = Nothing
|
||||
Me.aOrderIn_RecalculateDEV.Id = "aOrderIn_RecalculateDEV"
|
||||
Me.aOrderIn_RecalculateDEV.TargetObjectType = GetType(Nuvolar.[Module].OrderInHeader)
|
||||
Me.aOrderIn_RecalculateDEV.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aOrderIn_RecalculateDEV.ToolTip = Nothing
|
||||
Me.aOrderIn_RecalculateDEV.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aOrderInInvoiceAdvanceAsk
|
||||
'
|
||||
Me.aOrderInInvoiceAdvanceAsk.AcceptButtonCaption = Nothing
|
||||
Me.aOrderInInvoiceAdvanceAsk.CancelButtonCaption = Nothing
|
||||
Me.aOrderInInvoiceAdvanceAsk.Caption = "aOrder In Invoice Advance Ask"
|
||||
Me.aOrderInInvoiceAdvanceAsk.Category = "ObjectsCreation"
|
||||
Me.aOrderInInvoiceAdvanceAsk.ConfirmationMessage = Nothing
|
||||
Me.aOrderInInvoiceAdvanceAsk.Id = "aOrderInInvoiceAdvanceAsk"
|
||||
Me.aOrderInInvoiceAdvanceAsk.TargetObjectType = GetType(Nuvolar.[Module].OrderInHeader)
|
||||
Me.aOrderInInvoiceAdvanceAsk.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aOrderInInvoiceAdvanceAsk.ToolTip = Nothing
|
||||
Me.aOrderInInvoiceAdvanceAsk.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aOrderInInvoiceAdvance
|
||||
'
|
||||
Me.aOrderInInvoiceAdvance.AcceptButtonCaption = Nothing
|
||||
Me.aOrderInInvoiceAdvance.CancelButtonCaption = Nothing
|
||||
Me.aOrderInInvoiceAdvance.Caption = "aOrder In Invoice Advance"
|
||||
Me.aOrderInInvoiceAdvance.Category = "aOrderInInvoiceAdvance"
|
||||
Me.aOrderInInvoiceAdvance.ConfirmationMessage = Nothing
|
||||
Me.aOrderInInvoiceAdvance.Id = "aOrderInInvoiceAdvance"
|
||||
Me.aOrderInInvoiceAdvance.TargetObjectType = GetType(Nuvolar.[Module].OrderInHeader)
|
||||
Me.aOrderInInvoiceAdvance.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aOrderInInvoiceAdvance.ToolTip = Nothing
|
||||
Me.aOrderInInvoiceAdvance.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aORI_DeleteInvoiceProforma
|
||||
'
|
||||
Me.aORI_DeleteInvoiceProforma.Caption = "aORI_DeleteInvoiceProforma"
|
||||
Me.aORI_DeleteInvoiceProforma.Category = "aORI_DeleteInvoiceProforma"
|
||||
Me.aORI_DeleteInvoiceProforma.ConfirmationMessage = "Do you want to execute ?"
|
||||
Me.aORI_DeleteInvoiceProforma.Id = "aORI_DeleteInvoiceProforma"
|
||||
Me.aORI_DeleteInvoiceProforma.TargetObjectType = GetType(Nuvolar.[Module].OrderInHeader)
|
||||
Me.aORI_DeleteInvoiceProforma.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aORI_DeleteInvoiceProforma.ToolTip = Nothing
|
||||
Me.aORI_DeleteInvoiceProforma.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aGenerateInvoiceFromOrderInFinal
|
||||
'
|
||||
Me.aGenerateInvoiceFromOrderInFinal.AcceptButtonCaption = Nothing
|
||||
Me.aGenerateInvoiceFromOrderInFinal.CancelButtonCaption = Nothing
|
||||
Me.aGenerateInvoiceFromOrderInFinal.Caption = "Create final invoice"
|
||||
Me.aGenerateInvoiceFromOrderInFinal.Category = "aGenerateInvoiceFromOrderInFinal"
|
||||
Me.aGenerateInvoiceFromOrderInFinal.ConfirmationMessage = Nothing
|
||||
Me.aGenerateInvoiceFromOrderInFinal.Id = "aGenerateInvoiceFromOrderInFinal"
|
||||
Me.aGenerateInvoiceFromOrderInFinal.ImageName = "document_lock"
|
||||
Me.aGenerateInvoiceFromOrderInFinal.TargetObjectType = GetType(Nuvolar.[Module].OrderInHeader)
|
||||
Me.aGenerateInvoiceFromOrderInFinal.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aGenerateInvoiceFromOrderInFinal.ToolTip = Nothing
|
||||
Me.aGenerateInvoiceFromOrderInFinal.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aORI_RegenerateValues
|
||||
'
|
||||
Me.aORI_RegenerateValues.AcceptButtonCaption = Nothing
|
||||
Me.aORI_RegenerateValues.CancelButtonCaption = Nothing
|
||||
Me.aORI_RegenerateValues.Caption = "aORI_RegenerateValues"
|
||||
Me.aORI_RegenerateValues.Category = "RecordEdit"
|
||||
Me.aORI_RegenerateValues.ConfirmationMessage = Nothing
|
||||
Me.aORI_RegenerateValues.Id = "aORI_RegenerateValues"
|
||||
Me.aORI_RegenerateValues.TargetObjectType = GetType(Nuvolar.[Module].OrderInHeader)
|
||||
Me.aORI_RegenerateValues.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aORI_RegenerateValues.ToolTip = Nothing
|
||||
Me.aORI_RegenerateValues.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aORI_RecalculateTotalBrutto
|
||||
'
|
||||
Me.aORI_RecalculateTotalBrutto.Caption = "aORI_RecalculateTotalBrutto"
|
||||
Me.aORI_RecalculateTotalBrutto.Category = "aORI_RecalculateTotalBrutto"
|
||||
Me.aORI_RecalculateTotalBrutto.ConfirmationMessage = Nothing
|
||||
Me.aORI_RecalculateTotalBrutto.Id = "aORI_RecalculateTotalBrutto"
|
||||
Me.aORI_RecalculateTotalBrutto.TargetObjectType = GetType(Nuvolar.[Module].OrderInHeader)
|
||||
Me.aORI_RecalculateTotalBrutto.TargetViewType = DevExpress.ExpressApp.ViewType.ListView
|
||||
Me.aORI_RecalculateTotalBrutto.ToolTip = Nothing
|
||||
Me.aORI_RecalculateTotalBrutto.TypeOfView = GetType(DevExpress.ExpressApp.ListView)
|
||||
'
|
||||
'OrderInVC
|
||||
'
|
||||
Me.Actions.Add(Me.aFinalizeOrderIn)
|
||||
Me.Actions.Add(Me.aStornoOrderIn)
|
||||
Me.Actions.Add(Me.aToTable_OrderIn)
|
||||
Me.Actions.Add(Me.aToTableD_OrderIn)
|
||||
Me.Actions.Add(Me.aUp_OrderIn)
|
||||
Me.Actions.Add(Me.aDown_OrderIn)
|
||||
Me.Actions.Add(Me.aGenerateStorageOutFromOrderIn)
|
||||
Me.Actions.Add(Me.aGenerateInvoicefromOrderIn)
|
||||
Me.Actions.Add(Me.aReCalculatePricing_OrderInRows)
|
||||
Me.Actions.Add(Me.aRecalculateOrder)
|
||||
Me.Actions.Add(Me.aGenerateOrderOutTempFromOrderIn)
|
||||
Me.Actions.Add(Me.aGenerateStorageOutFromOrderInFIFO)
|
||||
Me.Actions.Add(Me.aBackToEdit_OrderInHeader)
|
||||
Me.Actions.Add(Me.aProductFinder)
|
||||
Me.Actions.Add(Me.aORI_Storno_Invoice)
|
||||
Me.Actions.Add(Me.aORI_Storno_DeliveryNoteOut)
|
||||
Me.Actions.Add(Me.aORI_Storno_StorageOut)
|
||||
Me.Actions.Add(Me.aORI_Create_DeliveryInvoice)
|
||||
Me.Actions.Add(Me.aORI_Create_Delivery)
|
||||
Me.Actions.Add(Me.aORI_Create_Invoice)
|
||||
Me.Actions.Add(Me.aGenerateStorageOutFromOrderInBack)
|
||||
Me.Actions.Add(Me.aOrderIn_InvoiceRowFinalize)
|
||||
Me.Actions.Add(Me.aORI_Invoice_Popup_Description)
|
||||
Me.Actions.Add(Me.aORI_Invoice_Popup_DescriptionHeader)
|
||||
Me.Actions.Add(Me.aORI_OrderToSetCustomerOrder)
|
||||
Me.Actions.Add(Me.aORI_OrderToIncoming)
|
||||
Me.Actions.Add(Me.aOrderIn_ChangeRows)
|
||||
Me.Actions.Add(Me.aOrderInOther_ChangeRows)
|
||||
Me.Actions.Add(Me.aOrderInStorageOutDeliveryNoteOut)
|
||||
Me.Actions.Add(Me.aOrderInStorageOutDeliveryNoteOutInvoice)
|
||||
Me.Actions.Add(Me.aOrderIn_RecalculateDEV)
|
||||
Me.Actions.Add(Me.aOrderInInvoiceAdvanceAsk)
|
||||
Me.Actions.Add(Me.aOrderInInvoiceAdvance)
|
||||
Me.Actions.Add(Me.aORI_DeleteInvoiceProforma)
|
||||
Me.Actions.Add(Me.aGenerateInvoiceFromOrderInFinal)
|
||||
Me.Actions.Add(Me.aORI_RegenerateValues)
|
||||
Me.Actions.Add(Me.aORI_RecalculateTotalBrutto)
|
||||
|
||||
End Sub
|
||||
Friend WithEvents aFinalizeOrderIn As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aStornoOrderIn As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aToTable_OrderIn As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aToTableD_OrderIn As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aUp_OrderIn As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aDown_OrderIn As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aGenerateStorageOutFromOrderIn As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aGenerateInvoicefromOrderIn As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aReCalculatePricing_OrderInRows As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aRecalculateOrder As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aGenerateOrderOutTempFromOrderIn As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aGenerateStorageOutFromOrderInFIFO As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aBackToEdit_OrderInHeader As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aProductFinder As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aOrderIn_ChangeRows As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aOrderInOther_ChangeRows As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aOrderInStorageOutDeliveryNoteOut As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aOrderInStorageOutDeliveryNoteOutInvoice As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_Storno_Invoice As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_Storno_DeliveryNoteOut As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_Storno_StorageOut As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aORI_Create_DeliveryInvoice As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_Create_Delivery As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_Create_Invoice As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aGenerateStorageOutFromOrderInBack As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aOrderIn_RecalculateDEV As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aOrderIn_InvoiceRowFinalize As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_Invoice_Popup_Description As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_Invoice_Popup_DescriptionHeader As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_OrderToSetCustomerOrder As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_OrderToIncoming As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aOrderInInvoiceAdvanceAsk As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aOrderInInvoiceAdvance As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_DeleteInvoiceProforma As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aGenerateInvoiceFromOrderInFinal As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_RegenerateValues As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aORI_RecalculateTotalBrutto As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
|
||||
End Class
|
||||
+234
@@ -0,0 +1,234 @@
|
||||
<?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="aFinalizeOrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>404, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aStornoOrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>544, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aToTable_OrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>1129, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aToTableD_OrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aUp_OrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>174, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aDown_OrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>499, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aGenerateStorageOutFromOrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>825, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aGenerateInvoicefromOrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>1065, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aReCalculatePricing_OrderInRows.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>310, 95</value>
|
||||
</metadata>
|
||||
<metadata name="aRecalculateOrder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>798, 95</value>
|
||||
</metadata>
|
||||
<metadata name="aGenerateOrderOutTempFromOrderIn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>1156, 95</value>
|
||||
</metadata>
|
||||
<metadata name="aGenerateStorageOutFromOrderInFIFO.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>196, 134</value>
|
||||
</metadata>
|
||||
<metadata name="aBackToEdit_OrderInHeader.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>636, 134</value>
|
||||
</metadata>
|
||||
<metadata name="aProductFinder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>840, 134</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_Storno_Invoice.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>974, 134</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_Storno_DeliveryNoteOut.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 173</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_Storno_StorageOut.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>502, 173</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_Create_DeliveryInvoice.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>689, 173</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_Create_Delivery.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>1125, 173</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_Create_Invoice.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>490, 212</value>
|
||||
</metadata>
|
||||
<metadata name="aGenerateStorageOutFromOrderInBack.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>224, 212</value>
|
||||
</metadata>
|
||||
<metadata name="aOrderIn_InvoiceRowFinalize.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 212</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_Invoice_Popup_Description.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>895, 173</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_Invoice_Popup_DescriptionHeader.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>233, 173</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_OrderToSetCustomerOrder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>1137, 134</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_OrderToIncoming.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 134</value>
|
||||
</metadata>
|
||||
<metadata name="aOrderIn_ChangeRows.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>461, 134</value>
|
||||
</metadata>
|
||||
<metadata name="aOrderInOther_ChangeRows.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>949, 95</value>
|
||||
</metadata>
|
||||
<metadata name="aOrderInStorageOutDeliveryNoteOut.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>544, 95</value>
|
||||
</metadata>
|
||||
<metadata name="aOrderInStorageOutDeliveryNoteOutInvoice.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 95</value>
|
||||
</metadata>
|
||||
<metadata name="aOrderIn_RecalculateDEV.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>636, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aOrderInInvoiceAdvanceAsk.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>295, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aOrderInInvoiceAdvance.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>1277, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_DeleteInvoiceProforma.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>921, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aGenerateInvoiceFromOrderInFinal.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>680, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_RegenerateValues.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>223, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aORI_RecalculateTotalBrutto.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>
|
||||
+4688
File diff suppressed because it is too large
Load Diff
+78
@@ -0,0 +1,78 @@
|
||||
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)> _
|
||||
<NonPersistent()> _
|
||||
<Appearance("ORI_ChangeQTT_PopUp - Disable QTT_Storaged_Will;QTT_Storaged all time", AppearanceItemType.ViewItem, "1=1", TargetItems:="QTT_Storaged_Will;QTT_Storaged", Enabled:=False)> _
|
||||
<Appearance("ORI_ChangeQTT_PopUp - Hide OrderInRows all time", TargetItems:="OrderInRows", Criteria:="1=1", Enabled:=False, Context:="DetailView")> _
|
||||
Public Class ORI_ChangeQTT_PopUp
|
||||
Inherits BaseObject
|
||||
|
||||
Private _QTT As Double
|
||||
Private _QTT_Storaged_Will As Double '-- Kitárolásra foglalt mennyiség
|
||||
Private _QTT_Storaged As Double '-- Kiadott mennyiség
|
||||
Private _OrderInRows As OrderInRows
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
Property QTT() As Double
|
||||
Get
|
||||
Return _QTT
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT", _QTT, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT_Storaged_Will As Double
|
||||
Get
|
||||
Return _QTT_Storaged_Will
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_Storaged_Will", _QTT_Storaged_Will, value)
|
||||
End Set
|
||||
End Property
|
||||
Property OrderInRows As OrderInRows
|
||||
Get
|
||||
Return _OrderInRows
|
||||
End Get
|
||||
Set(value As OrderInRows)
|
||||
SetPropertyValue("OrderInRows", _OrderInRows, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT_Storaged() As Double
|
||||
Get
|
||||
Return _QTT_Storaged
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_Storaged", _QTT_Storaged, value)
|
||||
End Set
|
||||
End Property
|
||||
ReadOnly Property AuditDataItemPersistent_Collection As XPCollection(Of AuditDataItemPersistent)
|
||||
Get
|
||||
If OrderInRows IsNot Nothing Then
|
||||
Dim _AuditDataItemPersistent_Return_Collection As XPCollection(Of AuditDataItemPersistent)
|
||||
_AuditDataItemPersistent_Return_Collection = AuditedObjectWeakReference.GetAuditTrail(Session, OrderInRows)
|
||||
|
||||
Return _AuditDataItemPersistent_Return_Collection
|
||||
Else
|
||||
Return Nothing
|
||||
End If
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
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)> _
|
||||
<NonPersistent()> _
|
||||
Public Class ORI_Invoice_Description_PopUp
|
||||
Inherits BaseObject
|
||||
|
||||
Private _Description As String
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
<Size(-1)> _
|
||||
Property Description As String
|
||||
Get
|
||||
Return _Description
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("Description", _Description, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+452
@@ -0,0 +1,452 @@
|
||||
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
|
||||
Imports DevExpress.ExpressApp.Editors
|
||||
|
||||
Public Enum eInvoiceStrategy
|
||||
eInvoiceAdvanceAsk = 0 'Elõleg bekérõ
|
||||
eInvoiceAdvance = 2 'Elõlegszámla
|
||||
eInvoice = 3 'Próbaszámla vagy számla
|
||||
eDeliveryNoteOutAndInvoice = 4 'Kiszállítás + számla
|
||||
eStorageOutAndDeliveryNoteOutAndInvoice = 5 'Kitárolás + kiszállítás + számla
|
||||
eDeliveryNoteOut = 6 'Kiszállítás
|
||||
eStorageOutAndDeliveryNoteOut = 7 'Kitárolás + kiszállítás
|
||||
eInvoiceFinal = 8 'Csak végszámla készítése
|
||||
End Enum
|
||||
<DefaultClassOptions()> _
|
||||
<NonPersistent()> _
|
||||
<NavigationItem(False), CreatableItem(False)> _
|
||||
<Appearance("ORI_Invoice_Popup - AlertMessage",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="AlertMessage=''",
|
||||
context:="DetailView",
|
||||
targetitems:="AlertMessage",
|
||||
visibility:=ViewItemVisibility.Hide)> _
|
||||
<Appearance("ORI_Invoice_Popup - InvoiceStrategy in ('eInvoice','eInvoiceAdvanceAsk','eInvoiceAdvance')",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="InvoiceStrategy in ('eInvoice','eInvoiceAdvanceAsk','eInvoiceAdvance','eInvoiceFinal')",
|
||||
context:="DetailView",
|
||||
targetitems:="TransportAddress;Storage;StorageMoveType;DeliveryNoteOutType;IsAPCSheet;InvoiceStrategy;ShipmentOption",
|
||||
visibility:=ViewItemVisibility.Hide)> _
|
||||
<Appearance("ORI_Invoice_Popup - InvoiceStrategy='eInvoiceAdvanceAsk'",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="InvoiceStrategy in ('eInvoiceAdvanceAsk')",
|
||||
context:="DetailView",
|
||||
targetitems:="IsLiquidAssets;LiquidAssets;IsFinalInvoice",
|
||||
visibility:=ViewItemVisibility.Hide)> _
|
||||
<Appearance("ORI_Invoice_Popup - InvoiceStrategy='eInvoiceAdvance'",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="InvoiceStrategy in ('eInvoiceAdvance')",
|
||||
context:="DetailView",
|
||||
targetitems:="InvoiceStrategy;ShipmentOption;Storage;StorageMoveType;DeliveryNoteOutType;QualityOption;" + _
|
||||
"TransportAddress;LiquidAssets;IsLiquidAssets;IsFinalInvoice;PriceMode;IsAPCSheet",
|
||||
visibility:=ViewItemVisibility.Hide)> _
|
||||
<Appearance("ORI_Invoice_Popup - InvoiceStrategy='eInvoiceAdvance' - Enable",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="InvoiceStrategy in ('eInvoiceAdvance')",
|
||||
context:="DetailView",
|
||||
targetitems:="DateExecution,PaymentOption;BankInformation;DatePayment;DateCreated",
|
||||
enabled:=False)> _
|
||||
<Appearance("ORI_Invoice_Popup - CurrencyName='HUF'",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="CurrencyName.ShortName='HUF'",
|
||||
context:="DetailView",
|
||||
targetitems:="CurrencyRate;PriceMode",
|
||||
visibility:=ViewItemVisibility.Hide)> _
|
||||
<Appearance("ORI_Invoice_Popup - PaymentOption.PayMode != 'InCash'",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="PaymentOption.PayMode != 'InCash'",
|
||||
context:="DetailView",
|
||||
targetitems:="IsLiquidAssets;LiquidAssets",
|
||||
visibility:=ViewItemVisibility.Hide)> _
|
||||
<Appearance("ORI_Invoice_Popup - PaymentOption.PayMode != 'InTransfer'",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="PaymentOption.PayMode != 'InTransfer'",
|
||||
context:="DetailView",
|
||||
targetitems:="BankInformation",
|
||||
visibility:=ViewItemVisibility.Hide)> _
|
||||
<Appearance("ORI_Invoice_Popup - IsLiquidAssets",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="IsLiquidAssets != True",
|
||||
context:="DetailView",
|
||||
targetitems:="LiquidAssets",
|
||||
visibility:=ViewItemVisibility.Hide)> _
|
||||
<Appearance("ORI_Invoice_Popup - IsAPCSheet",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="IsAPCSheet = True",
|
||||
context:="DetailView",
|
||||
targetitems:="DatePayment;PaymentOption",
|
||||
enabled:=False)> _
|
||||
<Appearance("ORI_Invoice_Popup - InvoiceAdvance",
|
||||
appearanceitemtype:="ViewItem",
|
||||
criteria:="InvoiceStrategy <> 8",
|
||||
context:="DetailView",
|
||||
targetitems:="InvoiceAdvance",
|
||||
visibility:=ViewItemVisibility.Hide)> _
|
||||
Public Class ORI_Invoice_Popup
|
||||
Inherits BaseObject
|
||||
|
||||
Private _InvoiceStrategy As eInvoiceStrategy
|
||||
Private _InvoiceType As InvoiceType
|
||||
Private _CustomersFrom As CustomersFrom 'Saját cég
|
||||
Private _Customers As Customers 'Ügyfél
|
||||
Private _DateCreated As Date 'Kiállítás dátuma
|
||||
Private _DateExecution As Date 'Teljesítés dátuma
|
||||
Private _DatePayment As Date 'Fizetési határidõ
|
||||
Private _Description As String 'Számlán, szállítólevelen szereplõ megjegyzés
|
||||
Private _Description_Header As String 'Számlán, szállítólevelen szereplõ fejléc megjegyzés
|
||||
Private _PaymentOption As PaymentOption 'Fizetési opció (ebbõl automatikusan DatePayment és Date Execution)
|
||||
Private _ShipmentOption As ShipmentOption 'Szállítási kondíció
|
||||
Private _CurrencyName As CurrencyName 'Deviza
|
||||
Private _CurrencyRate As Double = 0 'Árfolyam, ha a deviza nem HUF egyébként 1
|
||||
Private _BankInformation As BankInformation ' A fejlécben megjelenõ számlaszám
|
||||
Private _Storage As Storage 'Raktár a Kitárolás+szállítólevél action-hoz
|
||||
Private _StorageMoveType As StorageMoveType
|
||||
Private _DeliveryNoteOutType As DeliveryNoteOutType
|
||||
Private _QualityOption As QualityOption ' Minõségi opció
|
||||
Private _TransportAddress As Address ' -- Szállítási cím
|
||||
Private _LiquidAssets As LiquidAssets 'Ha kp, akkor ebbe a pénztárba generálja le abevételi pénztárbizonylatot.
|
||||
Private _IsLiquidAssets As Boolean 'Készûl-e pénztárbizonylat?
|
||||
Private _IsFinalInvoice As Boolean 'Egybõl végszámla legyen-e? ha igen akkor lehet csak pénztárbizonylatot csinálni és ekkor kell GLCassa is!
|
||||
Private _PriceMode As ePriceMode 'DEV HUF regenerálás módja
|
||||
Private _IsAPCSheet As Boolean 'Termeltetési szerzõdéssel kapcsolatos-e
|
||||
Private _AlertMessage As String 'Figyelmeztetõ szöveg, ha valami nem jó
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
IsFinalInvoice = False
|
||||
IsLiquidAssets = False
|
||||
IsAPCSheet = False
|
||||
CurrencyRate = 1
|
||||
AlertMessage = ""
|
||||
End Sub
|
||||
|
||||
Property InvoiceStrategy As eInvoiceStrategy
|
||||
Get
|
||||
Return _InvoiceStrategy
|
||||
End Get
|
||||
Set(value As eInvoiceStrategy)
|
||||
SetPropertyValue("InvoiceStrategy", _InvoiceStrategy, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData(True), DataSourceCriteria("CustomersFrom='@This.CustomersFrom' and InvoiceTypeBase in (2,3)")>
|
||||
<RuleRequiredField("ORI_Invoice_Popup - InvoiceType", DefaultContexts.Save)>
|
||||
Property InvoiceType() As InvoiceType
|
||||
Get
|
||||
Return _InvoiceType
|
||||
End Get
|
||||
Set(ByVal value As InvoiceType)
|
||||
SetPropertyValue("InvoiceType", _InvoiceType, value)
|
||||
End Set
|
||||
End Property
|
||||
Property CustomersFrom() As CustomersFrom
|
||||
Get
|
||||
Return _CustomersFrom
|
||||
End Get
|
||||
Set(ByVal value As CustomersFrom)
|
||||
SetPropertyValue("CustomersFrom", _CustomersFrom, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Customers() As Customers
|
||||
Get
|
||||
Return _Customers
|
||||
End Get
|
||||
Set(ByVal value As Customers)
|
||||
SetPropertyValue("Customers", _Customers, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DateCreated() As Date
|
||||
Get
|
||||
Return _DateCreated
|
||||
End Get
|
||||
Set(ByVal value As Date)
|
||||
SetPropertyValue("DateCreated", _DateCreated, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData()>
|
||||
Property DateExecution() As Date
|
||||
Get
|
||||
Return _DateExecution
|
||||
End Get
|
||||
Set(ByVal value As Date)
|
||||
SetPropertyValue("DateExecution", _DateExecution, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False And Me.PaymentOption IsNot Nothing Then
|
||||
If Me.PaymentOption.DatePaymentMode = eDatePaymentMode.eDateExecution Then
|
||||
Me.DatePayment = Me.DateExecution.AddDays(Me.PaymentOption.PayDay)
|
||||
End If
|
||||
End If
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False And Me.DateExecution = Nothing Then
|
||||
Me.DatePayment = Nothing
|
||||
End If
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
If CurrencyName IsNot Nothing Then
|
||||
If CurrencyName.ShortName <> "HUF" Then
|
||||
Dim _CurrencyRate_MNB_Collection = New XPCollection(Of CurrencyRate)(Session, CriteriaOperator.Parse("CurrencyName=? and IsMNB=True and GetDate(DateValid)<=?",
|
||||
CurrencyName, value.Date))
|
||||
_CurrencyRate_MNB_Collection.Sorting.Add(New SortProperty("DateValid", DB.SortingDirection.Descending))
|
||||
If _CurrencyRate_MNB_Collection.Count > 0 Then
|
||||
For Each _CurrencyRate_MNB In _CurrencyRate_MNB_Collection
|
||||
If _CurrencyRate_MNB.DateValid.Date = _DateExecution.Date Then
|
||||
CurrencyRate = _CurrencyRate_MNB.RateAverage
|
||||
Exit For
|
||||
End If
|
||||
Exit For
|
||||
Next
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("ORI_Invoice_Popup - 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
|
||||
<Size(-1)>
|
||||
Property Description As String
|
||||
Get
|
||||
Return _Description
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("Description", _Description, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)>
|
||||
Property Description_Header As String
|
||||
Get
|
||||
Return _Description_Header
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("Description_Header", _Description_Header, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData()>
|
||||
<RuleRequiredField("ORI_Invoice_Popup - PaymentOption", DefaultContexts.Save)>
|
||||
Property PaymentOption() As PaymentOption
|
||||
Get
|
||||
Return _PaymentOption
|
||||
End Get
|
||||
Set(ByVal value As PaymentOption)
|
||||
SetPropertyValue("PaymentOption", _PaymentOption, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
If Me.DateExecution > #1/1/1900# And Me.PaymentOption IsNot Nothing Then
|
||||
If IsAPCSheet = False Then
|
||||
If value.DatePaymentMode = eDatePaymentMode.eDateCreated Then
|
||||
Me.DatePayment = Me.DateCreated.AddDays(Me.PaymentOption.PayDay)
|
||||
Else
|
||||
Me.DatePayment = Me.DateExecution.AddDays(Me.PaymentOption.PayDay)
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
If value IsNot Nothing Then
|
||||
If value.PayMode = ePayMode.InCash Then
|
||||
Me.DateExecution = GetSQLTime(Session)
|
||||
Me.DatePayment = GetSQLTime(Session)
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("ORI_Invoice_Popup - ShipmentOption", DefaultContexts.Save,
|
||||
TargetCriteria:="InvoiceStrategy in ('eDeliveryNoteOutAndInvoice','eStorageOutAndDeliveryNoteOutAndInvoice','eDeliveryNoteOut')")>
|
||||
Property ShipmentOption() As ShipmentOption
|
||||
Get
|
||||
Return _ShipmentOption
|
||||
End Get
|
||||
Set(ByVal value As ShipmentOption)
|
||||
SetPropertyValue("ShipmentOption", _ShipmentOption, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData(True)>
|
||||
Property CurrencyName() As CurrencyName
|
||||
Get
|
||||
Return _CurrencyName
|
||||
End Get
|
||||
Set(ByVal value As CurrencyName)
|
||||
SetPropertyValue("CurrencyName", _CurrencyName, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRange("ORI_Invoice_Popup - CurrencyRate", DefaultContexts.Save, 1.01, Double.MaxValue, TargetCriteria:="CurrencyName.ShortName <> 'HUF'")>
|
||||
Property CurrencyRate() As Double
|
||||
Get
|
||||
Return _CurrencyRate
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("CurrencyRate", _CurrencyRate, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData(True), DataSourceCriteria("LiquidAssests.CustomerFrom = '@This.CustomersFrom'")>
|
||||
<RuleRequiredField("ORI_Invoice_Popup - BankInformation", DefaultContexts.Save,
|
||||
TargetCriteria:="PaymentOption.PayMode in ('InTransfer') and InvoiceStrategy !='eInvoiceAdvance'")>
|
||||
Property BankInformation As BankInformation
|
||||
Get
|
||||
Return _BankInformation
|
||||
End Get
|
||||
Set(ByVal value As BankInformation)
|
||||
SetPropertyValue("CustomerBankAccounts", _BankInformation, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Storage As Storage
|
||||
Get
|
||||
Return _Storage
|
||||
End Get
|
||||
Set(value As Storage)
|
||||
SetPropertyValue("Storage", _Storage, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<ImmediatePostData(True), DataSourceCriteria("MoveType = 0 and MoveDirection=1")>
|
||||
<RuleRequiredField("ORI_Invoice_Popup - StorageMoveType", DefaultContexts.Save,
|
||||
TargetCriteria:="InvoiceStrategy in ('eStorageOutAndDeliveryNoteOut','eStorageOutAndDeliveryNoteOutAndInvoice')")>
|
||||
Property StorageMoveType As StorageMoveType
|
||||
Get
|
||||
Return _StorageMoveType
|
||||
End Get
|
||||
Set(value As StorageMoveType)
|
||||
SetPropertyValue("StorageMoveType", _StorageMoveType, value)
|
||||
If Not Session.IsObjectsLoading And Not Session.IsObjectsSaving Then
|
||||
If value IsNot Nothing Then
|
||||
Storage = value.Storage 'MoveType
|
||||
End If
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("ORI_Invoice_Popup - DeliveryNoteOutType", DefaultContexts.Save,
|
||||
TargetCriteria:="InvoiceStrategy in ('eStorageOutAndDeliveryNoteOut','eStorageOutAndDeliveryNoteOutAndInvoice','eDeliveryNoteOut')")>
|
||||
Property DeliveryNoteOutType As DeliveryNoteOutType
|
||||
Get
|
||||
Return _DeliveryNoteOutType
|
||||
End Get
|
||||
Set(value As DeliveryNoteOutType)
|
||||
SetPropertyValue("DeliveryNoteOutType", _DeliveryNoteOutType, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QualityOption() As QualityOption
|
||||
Get
|
||||
Return _QualityOption
|
||||
End Get
|
||||
Set(ByVal value As QualityOption)
|
||||
SetPropertyValue("QualityOption", _QualityOption, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("ORI_Invoice_Popup.TransportAddress", DefaultContexts.Save,
|
||||
TargetCriteria:="InvoiceStrategy in ('eStorageOutAndDeliveryNoteOut','eStorageOutAndDeliveryNoteOutAndInvoice','eDeliveryNoteOut')")>
|
||||
Property TransportAddress As Address
|
||||
Get
|
||||
Return _TransportAddress
|
||||
End Get
|
||||
Set(value As Address)
|
||||
SetPropertyValue("TransportAddress", _TransportAddress, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData(True), DataSourceCriteria("CurrencyName='@This.CurrencyName' and LiquidAssetsType in ('NormalCheckout','CurrencyCheckout') and CustomerFrom = '@This.CustomersFrom'")>
|
||||
Property LiquidAssets As LiquidAssets
|
||||
Get
|
||||
Return _LiquidAssets
|
||||
End Get
|
||||
Set(value As LiquidAssets)
|
||||
SetPropertyValue("LiquidAssets", _LiquidAssets, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData()>
|
||||
Property IsLiquidAssets As Boolean
|
||||
Get
|
||||
Return _IsLiquidAssets
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("IsLiquidAssets", _IsLiquidAssets, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData()> _
|
||||
Property IsFinalInvoice As Boolean
|
||||
Get
|
||||
Return _IsFinalInvoice
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("IsFinalInvoice", _IsFinalInvoice, value)
|
||||
End Set
|
||||
End Property
|
||||
Property PriceMode As ePriceMode
|
||||
Get
|
||||
Return _PriceMode
|
||||
End Get
|
||||
Set(value As ePriceMode)
|
||||
SetPropertyValue("PriceMode", _PriceMode, value)
|
||||
End Set
|
||||
End Property
|
||||
Property IsAPCSheet As Boolean
|
||||
Get
|
||||
Return _IsAPCSheet
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("IsAPCSheet", _IsAPCSheet, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property AlertMessage As String
|
||||
Get
|
||||
Return _AlertMessage
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("AlertMessage", _AlertMessage, value)
|
||||
End Set
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property InvoiceAdvance As XPCollection(Of InvoiceHeader)
|
||||
Get
|
||||
'Dim _InvoiceHeader_Collection_Return As New XPCollection(Of InvoiceHeader)(Session, CriteriaOperator.Parse("1=2"))
|
||||
'Dim _InvoiceHeader_Collection As New XPCollection(Of InvoiceHeader)(Session, CriteriaOperator.Parse("IsEditable=False and DocumentNumber !='' and InvoiceType.InvoiceTypeBase in ('eEarnestofTender','eAdvancePayment') and Customers=? and CustomersFrom=?", Customers, Me.CustomersFrom))
|
||||
'Dim _InvoiceHeader As InvoiceHeader
|
||||
'Dim _InvoiceRows_Advance As InvoiceRows
|
||||
'Dim _InvoiceRows As InvoiceRows
|
||||
'Dim _Need As Boolean = False
|
||||
'For Each _InvoiceHeader In _InvoiceHeader_Collection
|
||||
' _Need = True
|
||||
|
||||
' For Each _InvoiceRows In _InvoiceHeader.InvoiceRows
|
||||
' _InvoiceRows_Advance = Session.FindObject(Of InvoiceRows)(CriteriaOperator.Parse("InvoiceHeader.IsStorno=False and InvoiceRowsAdvance.Oid=? and isnull(InvoiceHeader.GCRecord)=True and IsNull(GCRecord)=True and InvoiceHeader.DocumentNumber !='' and InvoiceHeader.IsEditable=False", _InvoiceRows.Oid))
|
||||
' If _InvoiceRows_Advance IsNot Nothing Then
|
||||
' If _InvoiceRows_Advance.IsDeleted = False Then
|
||||
' _Need = False
|
||||
' Exit For
|
||||
' End If
|
||||
|
||||
' End If
|
||||
' Next
|
||||
|
||||
' If _Need Then
|
||||
' _InvoiceHeader_Collection_Return.Add(_InvoiceHeader)
|
||||
' End If
|
||||
'Next
|
||||
|
||||
'Return _InvoiceHeader_Collection_Return
|
||||
Dim _Criteria As String = ""
|
||||
_Criteria = " IsEditable=False and DocumentNumber !='' and "
|
||||
_Criteria += " InvoiceType.InvoiceTypeBase In ('eEarnestofTender','eAdvancePayment') and "
|
||||
_Criteria += " Customers=? and CustomersFrom=? and IsNull(GCRecord)=True and "
|
||||
_Criteria += " TotalBruttoHUF > TotalAdvancedBruttoHUF "
|
||||
|
||||
Dim _InvoiceHeader_Collection_Return = New XPCollection(Of InvoiceHeader)(Session, CriteriaOperator.Parse(_Criteria, Customers, Me.CustomersFrom))
|
||||
For Each _i In _InvoiceHeader_Collection_Return
|
||||
_i.TotalAdvancedWill = _i.TotalBruttoHUF - _i.TotalAdvancedBruttoHUF
|
||||
Next
|
||||
|
||||
Return _InvoiceHeader_Collection_Return
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
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
|
||||
|
||||
Public Enum eORIStornoDeliveryNoteOutType
|
||||
eStornoDeliveryNoteOut = 0
|
||||
eStornoDeliveryNoteOutStorageOut = 1
|
||||
End Enum
|
||||
|
||||
<DefaultClassOptions()> _
|
||||
<CreatableItem(False)> _
|
||||
<NavigationItem(False)> _
|
||||
<NonPersistent()> _
|
||||
Public Class ORI_Storno_DeliveryNoteOut_PopUp
|
||||
Inherits BaseObject
|
||||
|
||||
Private _ORIStornoDeliveryNoteOutType As eORIStornoDeliveryNoteOutType
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
Property ORIStornoDeliveryNoteOutType As eORIStornoDeliveryNoteOutType
|
||||
Get
|
||||
Return _ORIStornoDeliveryNoteOutType
|
||||
End Get
|
||||
Set(value As eORIStornoDeliveryNoteOutType)
|
||||
SetPropertyValue("ORIStornoDeliveryNoteOutType", _ORIStornoDeliveryNoteOutType, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
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
|
||||
|
||||
Public Enum eORIStornoInvoiceType
|
||||
eStornoInvoice = 0
|
||||
eStornoInvoiceDelivery = 1
|
||||
eStornoInvoiceDeliveryStorageOut = 2
|
||||
End Enum
|
||||
|
||||
<DefaultClassOptions()> _
|
||||
<CreatableItem(False)> _
|
||||
<NavigationItem(False)> _
|
||||
<NonPersistent()> _
|
||||
Public Class ORI_Storno_Invoice_PopUp
|
||||
Inherits BaseObject
|
||||
|
||||
Private _ORIStornoInvoiceType As eORIStornoInvoiceType
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
Property ORIStornoInvoiceType As eORIStornoInvoiceType
|
||||
Get
|
||||
Return _ORIStornoInvoiceType
|
||||
End Get
|
||||
Set(value As eORIStornoInvoiceType)
|
||||
SetPropertyValue("ORIStornoInvoiceType", _ORIStornoInvoiceType, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
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
|
||||
|
||||
<NavigationItem(False), CreatableItem(False)> _
|
||||
<Appearance("Hide CurrencyName and CustomersFrom", AppearanceItemType.LayoutItem, "1=1", TargetItems:="CurrencyName;CustomersFrom", visibility:=Editors.ViewItemVisibility.Hide)> _
|
||||
<DefaultClassOptions()> _
|
||||
Public Class OrderInHeaderFromOfferOutRowsHeader
|
||||
Inherits BaseObject
|
||||
Private _OrderInParameters As OrderInParameters ' Bejövő megrendelési paraméter
|
||||
Private _CurrencyName As CurrencyName ' Deviza (a popup-on nem látszik, háttérben kell)
|
||||
Private _CustomersFrom As CustomersFrom ' Saját cég (a popup-on nem látszik, háttérben kell)
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
<RuleRequiredField("OrderInHeaderFromOfferOutRowsHeader-OrderInParameters", DefaultContexts.Save)>
|
||||
<ImmediatePostData(True), DataSourceCriteria("CustomersFrom='@This.CustomersFrom' AND CurrencyName='@This.CurrencyName'")>
|
||||
Property OrderInParameters As OrderInParameters
|
||||
Get
|
||||
Return _OrderInParameters
|
||||
End Get
|
||||
Set(value As OrderInParameters)
|
||||
SetPropertyValue("OrderInParameters", _OrderInParameters, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("OrderInHeaderFromOfferOutRowsHeader-CurrencyName", DefaultContexts.Save)> _
|
||||
Property CurrencyName As CurrencyName
|
||||
Get
|
||||
Return _CurrencyName
|
||||
End Get
|
||||
Set(value As CurrencyName)
|
||||
SetPropertyValue("CurrencyName", _CurrencyName, value)
|
||||
End Set
|
||||
End Property
|
||||
Property CustomersFrom As CustomersFrom
|
||||
Get
|
||||
Return _CustomersFrom
|
||||
End Get
|
||||
Set(value As CustomersFrom)
|
||||
SetPropertyValue("CustomersFrom", _CustomersFrom, value)
|
||||
End Set
|
||||
End Property
|
||||
<VisibleInListView(False)> _
|
||||
<Association("OrderInHeaderFromOfferOutRowsHeader-OrderInHeaderFromOfferOutRowsRows", GetType(OrderInHeaderFromOfferOutRowsRows))> _
|
||||
ReadOnly Property OrderInHeaderFromOfferOutRowsRows As XPCollection(Of OrderInHeaderFromOfferOutRowsRows)
|
||||
Get
|
||||
Return GetCollection(Of OrderInHeaderFromOfferOutRowsRows)("OrderInHeaderFromOfferOutRowsRows")
|
||||
|
||||
End Get
|
||||
End Property
|
||||
|
||||
End Class
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
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
|
||||
|
||||
<NavigationItem(False), CreatableItem(False)> _
|
||||
<DefaultClassOptions()> _
|
||||
Public Class OrderInHeaderFromOfferOutRowsRows
|
||||
Inherits BaseObject
|
||||
|
||||
Private _QTT_Process As Double '-- Kézzel beírható mennyiség a végrehajtáshoz (pld. mennyi legyen kitárolva ...)
|
||||
Private _OfferOutRows As OfferOutRows ' Kimenő ajánlati sor
|
||||
Private _OrderInHeaderFromOfferOutRowsHeader As OrderInHeaderFromOfferOutRowsHeader ' Átmeneti objektum a bejövő megrendelés létrehozásához
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
<RuleRange("OrderInHeaderFromOfferOutRowsRows-QTT_Process", DefaultContexts.Save, 0.0001, Double.MaxValue)> _
|
||||
Property QTT_Process As Double
|
||||
Get
|
||||
Return _QTT_Process
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("QTT_Process", _QTT_Process, value)
|
||||
End Set
|
||||
End Property
|
||||
Property OfferOutRows As OfferOutRows
|
||||
Get
|
||||
Return _OfferOutRows
|
||||
End Get
|
||||
Set(value As OfferOutRows)
|
||||
SetPropertyValue("OfferOutRows", _OfferOutRows, value)
|
||||
End Set
|
||||
End Property
|
||||
<Association("OrderInHeaderFromOfferOutRowsHeader-OrderInHeaderFromOfferOutRowsRows", GetType(OrderInHeaderFromOfferOutRowsHeader))> _
|
||||
Property OrderInHeaderFromOfferOutRowsHeader As OrderInHeaderFromOfferOutRowsHeader
|
||||
Get
|
||||
Return _OrderInHeaderFromOfferOutRowsHeader
|
||||
End Get
|
||||
Set(value As OrderInHeaderFromOfferOutRowsHeader)
|
||||
SetPropertyValue("OrderInHeaderFromOfferOutRowsHeader", _OrderInHeaderFromOfferOutRowsHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
|
||||
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
|
||||
|
||||
Public Enum eRegeneratorErrorType
|
||||
eNotSet = 0
|
||||
eInvoiceError = 1
|
||||
eDeliveryError = 2
|
||||
eStorageError = 3
|
||||
End Enum
|
||||
<DefaultClassOptions()> _
|
||||
<NonPersistent()> _
|
||||
<CreatableItem(False)> _
|
||||
<NavigationItem(False)> _
|
||||
Public Class OrderInRegenerator_PopUp
|
||||
Inherits BaseObject
|
||||
|
||||
Private _ResultString As String
|
||||
Private _RowIndex As Long
|
||||
Private _RegeneratorErrorType As eRegeneratorErrorType
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
RegeneratorErrorType = 0
|
||||
End Sub
|
||||
|
||||
Property RowIndex As Long
|
||||
Get
|
||||
Return _RowIndex
|
||||
End Get
|
||||
Set(value As Long)
|
||||
SetPropertyValue("RowIndex", _RowIndex, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(255)> _
|
||||
Property ResultString As String
|
||||
Get
|
||||
Return _ResultString
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("ResultString", _ResultString, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RegeneratorErrorType As eRegeneratorErrorType
|
||||
Get
|
||||
Return _RegeneratorErrorType
|
||||
End Get
|
||||
Set(value As eRegeneratorErrorType)
|
||||
SetPropertyValue("RegeneratorErrorType", _RegeneratorErrorType, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
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.Persistent.Base.General
|
||||
|
||||
<DefaultClassOptions()> _
|
||||
<NavigationItem(False), CreatableItem(False)> _
|
||||
<NonPersistent()> _
|
||||
Public Class OrderInRowsOther_ChangeGroup
|
||||
Inherits BaseObject
|
||||
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 VAT As VAT
|
||||
Property Change_VAT As Boolean = False
|
||||
Property Units As Units
|
||||
Property Change_Units As Boolean = False
|
||||
Property RowGroup1 As String
|
||||
Property Change_RowGroup1 As Boolean = False
|
||||
Property RowGroup2 As String
|
||||
Property Change_RowGroup2 As Boolean = False
|
||||
Property QualityOption As QualityOption
|
||||
Property Change_QualityOption As Boolean = False
|
||||
Property FinalPricePercent As Double '%-osan a meglévõ értéket növeli (+ és - lehet !!!)
|
||||
Property Change_FinalPricePercent As Boolean = False
|
||||
Property ShortName As String
|
||||
Property Change_ShortName As Boolean = False
|
||||
Property Description As String
|
||||
Property Change_Description As Boolean = False
|
||||
|
||||
Property WorkState As WorkState
|
||||
Property Change_WorkState As Boolean = False
|
||||
Property WorkStateGroup As String
|
||||
Property Change_WorkStateGroup As Boolean = False
|
||||
Property WorkStateExpiration As Date
|
||||
Property Change_WorkStateExpiration As Boolean = False
|
||||
Property WorkStateStatus As TaskStatus
|
||||
Property Change_WorkStateStatus As Boolean = False
|
||||
End Class
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
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)> _
|
||||
<NonPersistent()> _
|
||||
Public Class OrderInRows_ChangeGroup
|
||||
Inherits BaseObject
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
Property RowGroup1 As String
|
||||
Property Change_RowGroup1 As Boolean = False
|
||||
Property RowGroup2 As String
|
||||
Property Change_RowGroup2 As Boolean = False
|
||||
Property QualityOption As QualityOption
|
||||
Property Change_QualityOption As Boolean = False
|
||||
Property FinalPricePercent As Double '%-osan a meglévõ értéket növeli (+ és - lehet !!!)
|
||||
Property Change_FinalPricePercent As Boolean = False
|
||||
Property Description As String
|
||||
Property Change_Description As Boolean = False
|
||||
Property DiscountPercent As Double
|
||||
Property Change_DiscountPercent As Boolean = False
|
||||
End Class
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
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)> _
|
||||
<NonPersistent()> _
|
||||
Public Class StorageOutFromOrderInFIFO_PopUp
|
||||
Inherits BaseObject
|
||||
|
||||
Private _Products As Products
|
||||
Private _QTT_Full As Double
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
<ImmediatePostData()> _
|
||||
Property Products As Products
|
||||
Get
|
||||
Return _Products
|
||||
End Get
|
||||
Set(value As Products)
|
||||
SetPropertyValue("Products", _Products, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT_Full As Double
|
||||
Get
|
||||
Return _QTT_Full
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("QTT_Full", _QTT_Full, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'--------Readonly--------------
|
||||
ReadOnly Property StorageInRows As XPCollection(Of StorageInRows)
|
||||
Get
|
||||
If Products IsNot Nothing Then
|
||||
Return New XPCollection(Of StorageInRows)(Session, CriteriaOperator.Parse("Products=?", Products))
|
||||
Else
|
||||
Return Nothing
|
||||
End If
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
Reference in New Issue
Block a user