Reconfigure for GIT
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
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 ImmovablesPriceListRowsType
|
||||
Apartments = 0
|
||||
Offices = 1
|
||||
Garages = 2
|
||||
Containers = 3
|
||||
End Enum
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
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("RealEstateStocks")> _
|
||||
<Appearance("Disable UserCreated", AppearanceItemType.ViewItem, "1=1", TargetItems:="UserCreated", Enabled:=False)> _
|
||||
<Appearance("Disable DateCreated", AppearanceItemType.ViewItem, "1=1", TargetItems:="DateCreated", Enabled:=False)> _
|
||||
Public Class ImmovablesPriceListHeader
|
||||
Inherits BaseObject
|
||||
|
||||
Private _ImmovablesGroups As ImmovablesGroups
|
||||
Private _UserCreated As User
|
||||
Private _DateCreated As Date
|
||||
Private _DueDate As Date 'Ajánlat érvényessége
|
||||
Private _DocumentBody As String ' RichText
|
||||
Private _IsActive As Boolean '
|
||||
Private _ShortName As String '
|
||||
Private _Description As String '
|
||||
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()
|
||||
If DueDate = "#12:00:00 AM#" Then
|
||||
DueDate = GetSQLTime(Session)
|
||||
DueDate = DueDate.AddDays(30)
|
||||
End If
|
||||
End Sub
|
||||
Protected Overrides Sub OnSaving()
|
||||
MyBase.OnSaving()
|
||||
If Session.IsNewObject(Me) Then
|
||||
DateCreated = GetSQLTime(Session)
|
||||
UserCreated = Session.GetObjectByKey(Of User)(Session.GetKeyValue(SecuritySystem.CurrentUser))
|
||||
End If
|
||||
End Sub
|
||||
<ImmediatePostData()> _
|
||||
Property ImmovablesGroups As ImmovablesGroups
|
||||
Get
|
||||
Return _ImmovablesGroups
|
||||
End Get
|
||||
Set(value As ImmovablesGroups)
|
||||
SetPropertyValue("ImmovablesGroups", _ImmovablesGroups, value)
|
||||
If Not Session.IsObjectsLoading And Not Session.IsObjectsSaving Then
|
||||
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
<NonCloneable> _
|
||||
Property UserCreated As User
|
||||
Get
|
||||
Return _UserCreated
|
||||
End Get
|
||||
Set(ByVal value As User)
|
||||
SetPropertyValue("UserCreated", _UserCreated, 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
|
||||
Property DueDate As Date
|
||||
Get
|
||||
Return _DueDate
|
||||
End Get
|
||||
Set(ByVal value As Date)
|
||||
SetPropertyValue("DueDate", _DueDate, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property DocumentBody As String
|
||||
Get
|
||||
Return _DocumentBody
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("DocumentBody", _DocumentBody, value)
|
||||
End Set
|
||||
End Property
|
||||
Property IsActive As Boolean
|
||||
Get
|
||||
Return _IsActive
|
||||
End Get
|
||||
Set(ByVal value As Boolean)
|
||||
SetPropertyValue("IsActive", _IsActive, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ShortName As String
|
||||
Get
|
||||
Return _ShortName
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("ShortName", _ShortName, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property Desctiption As String
|
||||
Get
|
||||
Return _Description
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
SetPropertyValue("Description", _Description, value)
|
||||
End Set
|
||||
End Property
|
||||
<VisibleInListView(False)> _
|
||||
<Association("ImmovablesPriceListHeader-ImmovablesPriceListRowsA", GetType(ImmovablesPriceListRowsA))> _
|
||||
ReadOnly Property ImmovablesPriceListRowsA As XPCollection(Of ImmovablesPriceListRowsA)
|
||||
Get
|
||||
Return GetCollection(Of ImmovablesPriceListRowsA)("ImmovablesPriceListRowsA")
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False)> _
|
||||
<Association("ImmovablesPriceListHeader-ImmovablesPriceListRowsO", GetType(ImmovablesPriceListRowsO))> _
|
||||
ReadOnly Property ImmovablesPriceListRowsO As XPCollection(Of ImmovablesPriceListRowsO)
|
||||
Get
|
||||
Return GetCollection(Of ImmovablesPriceListRowsO)("ImmovablesPriceListRowsO")
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False)> _
|
||||
<Association("ImmovablesPriceListHeader-ImmovablesPriceListRowsC", GetType(ImmovablesPriceListRowsC))> _
|
||||
ReadOnly Property ImmovablesPriceListRowsC As XPCollection(Of ImmovablesPriceListRowsC)
|
||||
Get
|
||||
Return GetCollection(Of ImmovablesPriceListRowsC)("ImmovablesPriceListRowsC")
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False)> _
|
||||
<Association("ImmovablesPriceListHeader-ImmovablesPriceListRowsG", GetType(ImmovablesPriceListRowsG))> _
|
||||
ReadOnly Property ImmovablesPriceListRowsG As XPCollection(Of ImmovablesPriceListRowsG)
|
||||
Get
|
||||
Return GetCollection(Of ImmovablesPriceListRowsG)("ImmovablesPriceListRowsG")
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
+254
@@ -0,0 +1,254 @@
|
||||
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 ImmovablesPriceListRowsA
|
||||
Inherits BaseObject
|
||||
Private _Apartments As Apartments
|
||||
Private _ImmovablesPriceListHeader As ImmovablesPriceListHeader
|
||||
Private _RowType As ImmovablesPriceListRowsType
|
||||
|
||||
'Értékesítési árak
|
||||
Private _ListPriceBruttoDEV As Double 'InLine edit
|
||||
Private _ListPriceBruttoHUF As Double 'InLine edit
|
||||
Private _ListPriceNettoDEV As Double ' math.round(ListBriceBruttoDEV/1.25,2,wawyfromzero)
|
||||
Private _ListPriceNettoHUF As Double ' math.round(ListBriceBruttoHUF/1.25,0,wawyfromzero)
|
||||
'--
|
||||
|
||||
'Bérlési árak
|
||||
Private _ListPriceBruttoDEVRent As Double 'InLine edit
|
||||
Private _ListPriceBruttoHUFRent As Double 'InLine edit
|
||||
Private _ListPriceNettoDEVRent As Double
|
||||
Private _ListPriceNettoHUFRent As Double
|
||||
'--
|
||||
|
||||
' Értékesítési nm árak
|
||||
Private _AreaListPriceBruttoDEV As Double 'AreaNettoForSale !!! Ezt kell használni az osztáshoz !
|
||||
Private _AreaListPriceBruttoHUF As Double
|
||||
Private _AreaListPriceNettoDEV As Double
|
||||
Private _AreaListPriceNettoHUF As Double
|
||||
'--
|
||||
|
||||
'Bérleti nm árak
|
||||
Private _AreaListPriceBruttoDEVRent As Double
|
||||
Private _AreaListPriceBruttoHUFRent As Double
|
||||
Private _AreaListPriceNettoDEVRent As Double
|
||||
Private _AreaListPriceNettoHUFRent As Double
|
||||
'--
|
||||
Private _NoteRow As String
|
||||
|
||||
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 Apartments As Apartments
|
||||
Get
|
||||
Return _Apartments
|
||||
End Get
|
||||
Set(value As Apartments)
|
||||
SetPropertyValue("Apartments", _Apartments, value)
|
||||
If Not Session.IsObjectsLoading And Not Session.IsObjectsSaving And value IsNot Nothing Then
|
||||
'Me.AreaListPriceBruttoDEV = value.a
|
||||
Me.AreaListPriceBruttoDEVRent = value.PriceAreaBruttoDEVRent
|
||||
'Me.AreaListPriceBruttoHUF = value.PriceAreaBruttoHUFRent
|
||||
Me.AreaListPriceBruttoHUFRent = value.PriceAreaBruttoHUFRent
|
||||
Me.AreaListPriceNettoDEV = value.AreaPriceNettoDEV
|
||||
Me.AreaListPriceNettoDEVRent = value.PriceAreaNettoDEVRent
|
||||
Me.AreaListPriceNettoHUF = value.AreaPriceNettoHUF
|
||||
Me.AreaListPriceNettoHUFRent = value.PriceAreaNettoHUFRent
|
||||
Me.ListPriceBruttoDEV = value.PriceBruttoDEV
|
||||
Me.ListPriceBruttoDEVRent = value.PriceBruttoDEVRent
|
||||
Me.ListPriceBruttoHUF = value.PriceBruttoHUF
|
||||
Me.ListPriceBruttoHUFRent = value.PriceBruttoHUFRent
|
||||
Me.ListPriceNettoDEV = value.PriceNettoDEV
|
||||
Me.ListPriceNettoDEVRent = value.PriceNettoDEVRent
|
||||
Me.ListPriceNettoHUF = value.PriceNettoHUF
|
||||
Me.ListPriceNettoHUFRent = value.PriceNettoHUFRent
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
<Association("ImmovablesPriceListHeader-ImmovablesPriceListRowsA", GetType(ImmovablesPriceListHeader))> _
|
||||
Property ImmovablesPriceListHeader As ImmovablesPriceListHeader
|
||||
Get
|
||||
Return _ImmovablesPriceListHeader
|
||||
End Get
|
||||
Set(ByVal value As ImmovablesPriceListHeader)
|
||||
SetPropertyValue("ImmovablesPriceListHeader", _ImmovablesPriceListHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoDEV As Double
|
||||
Get
|
||||
Return _ListPriceBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoDEV", _ListPriceBruttoDEV, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoDEV = Math.Round(ListPriceBruttoDEV / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceBruttoDEV = Math.Round((value / Me.Apartments.AreaNettoForSale), 2, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceNettoDEV = Math.Round(AreaListPriceBruttoDEV / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoHUF As Double
|
||||
Get
|
||||
Return _ListPriceBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoHUF", _ListPriceBruttoHUF, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoHUF = Math.Round(ListPriceBruttoHUF / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceBruttoHUF = Math.Round((value / Me.Apartments.AreaNettoForSale), 0, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceNettoHUF = Math.Round(AreaListPriceBruttoHUF / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoDEV As Double
|
||||
Get
|
||||
Return _ListPriceNettoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoDEV", _ListPriceNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoHUF As Double
|
||||
Get
|
||||
Return _ListPriceNettoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoHUF", _ListPriceNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoDEVRent As Double
|
||||
Get
|
||||
Return _ListPriceBruttoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoDEVRent", _ListPriceBruttoDEVRent, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoDEVRent = Math.Round(ListPriceBruttoDEVRent / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceBruttoDEVRent = Math.Round((value / Me.Apartments.AreaNettoForSale), 2, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceNettoDEVRent = Math.Round(AreaListPriceBruttoDEVRent / Me.Apartments.AreaNettoForSale, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoHUFRent As Double
|
||||
Get
|
||||
Return _ListPriceBruttoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoHUFRent", _ListPriceBruttoHUFRent, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoHUFRent = Math.Round(ListPriceBruttoHUFRent / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceBruttoHUFRent = Math.Round((value / Me.Apartments.AreaNettoForSale), 0, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceNettoHUFRent = Math.Round(AreaListPriceBruttoHUFRent / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoDEVRent As Double
|
||||
Get
|
||||
Return _ListPriceNettoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoDEVRent", _ListPriceNettoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoHUFRent As Double
|
||||
Get
|
||||
Return _ListPriceNettoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoHUFRent", _ListPriceNettoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoDEV As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoDEV", _AreaListPriceBruttoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoHUF As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoHUF", _AreaListPriceBruttoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoDEV As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoDEV", _AreaListPriceNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoHUF As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoHUF", _AreaListPriceNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoDEVRent As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoDEVRent", _AreaListPriceBruttoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoHUFRent As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoHUFRent", _AreaListPriceBruttoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoDEVRent As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoDEVRent", _AreaListPriceNettoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoHUFRent As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoHUFRent", _AreaListPriceNettoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(255)>
|
||||
Property NoteRow As String
|
||||
Get
|
||||
Return _NoteRow
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("NoteRow", _NoteRow, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+244
@@ -0,0 +1,244 @@
|
||||
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 ImmovablesPriceListRowsC
|
||||
Inherits BaseObject
|
||||
Private _Container As Container
|
||||
Private _ImmovablesPriceListHeader As ImmovablesPriceListHeader
|
||||
Private _RowType As ImmovablesPriceListRowsType
|
||||
|
||||
'Értékesítési árak
|
||||
Private _ListPriceBruttoDEV As Double
|
||||
Private _ListPriceBruttoHUF As Double
|
||||
Private _ListPriceNettoDEV As Double
|
||||
Private _ListPriceNettoHUF As Double
|
||||
'--
|
||||
|
||||
'Bérlési árak
|
||||
Private _ListPriceBruttoDEVRent As Double
|
||||
Private _ListPriceBruttoHUFRent As Double
|
||||
Private _ListPriceNettoDEVRent As Double
|
||||
Private _ListPriceNettoHUFRent As Double
|
||||
'--
|
||||
' Értékesítési nm árak
|
||||
Private _AreaListPriceBruttoDEV As Double 'AreaNettoForSale !!! Ezt kell használni az osztáshoz !
|
||||
Private _AreaListPriceBruttoHUF As Double
|
||||
Private _AreaListPriceNettoDEV As Double
|
||||
Private _AreaListPriceNettoHUF As Double
|
||||
'--
|
||||
|
||||
'Bérleti nm árak
|
||||
Private _AreaListPriceBruttoDEVRent As Double
|
||||
Private _AreaListPriceBruttoHUFRent As Double
|
||||
Private _AreaListPriceNettoDEVRent As Double
|
||||
Private _AreaListPriceNettoHUFRent As Double
|
||||
'--
|
||||
Private _NoteRow As String
|
||||
|
||||
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 Container As Container
|
||||
Get
|
||||
Return _Container
|
||||
End Get
|
||||
Set(value As Container)
|
||||
SetPropertyValue("Container", _Container, value)
|
||||
If Not Session.IsObjectsLoading And Not Session.IsObjectsSaving And value IsNot Nothing Then
|
||||
Me.ListPriceBruttoDEV = value.PriceBruttoDEV
|
||||
Me.ListPriceBruttoDEVRent = value.PriceBruttoDEVRent
|
||||
Me.ListPriceBruttoHUF = value.PriceBruttoHUF
|
||||
Me.ListPriceBruttoHUFRent = value.PriceBruttoHUFRent
|
||||
Me.ListPriceNettoDEV = value.PriceNettoDEV
|
||||
Me.ListPriceNettoDEVRent = value.PriceNettoDEVRent
|
||||
Me.ListPriceNettoHUF = value.PriceNettoHUF
|
||||
Me.ListPriceNettoHUFRent = value.PriceNettoHUFRent
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
<Association("ImmovablesPriceListHeader-ImmovablesPriceListRowsC", GetType(ImmovablesPriceListHeader))> _
|
||||
Property ImmovablesPriceListHeader As ImmovablesPriceListHeader
|
||||
Get
|
||||
Return _ImmovablesPriceListHeader
|
||||
End Get
|
||||
Set(ByVal value As ImmovablesPriceListHeader)
|
||||
SetPropertyValue("ImmovablesPriceListHeader", _ImmovablesPriceListHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoDEV As Double
|
||||
Get
|
||||
Return _ListPriceBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoDEV", _ListPriceBruttoDEV, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoDEV = Math.Round(ListPriceBruttoDEV / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceBruttoDEV = Math.Round((value / Me.Container.AreaNetto), 2, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceNettoDEV = Math.Round(AreaListPriceBruttoDEV / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoHUF As Double
|
||||
Get
|
||||
Return _ListPriceBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoHUF", _ListPriceBruttoHUF, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoHUF = Math.Round(ListPriceBruttoHUF / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceBruttoHUF = Math.Round((value / Me.Container.AreaNetto), 0, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceNettoHUF = Math.Round(AreaListPriceBruttoHUF / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoDEV As Double
|
||||
Get
|
||||
Return _ListPriceNettoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoDEV", _ListPriceNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoHUF As Double
|
||||
Get
|
||||
Return _ListPriceNettoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoHUF", _ListPriceNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoDEVRent As Double
|
||||
Get
|
||||
Return _ListPriceBruttoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoDEVRent", _ListPriceBruttoDEVRent, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoDEVRent = Math.Round(ListPriceBruttoDEVRent / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceBruttoDEVRent = Math.Round((value / Me.Container.AreaNetto), 2, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceNettoDEVRent = Math.Round(AreaListPriceBruttoDEVRent / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoHUFRent As Double
|
||||
Get
|
||||
Return _ListPriceBruttoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoHUFRent", _ListPriceBruttoHUFRent, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoHUFRent = Math.Round(ListPriceBruttoHUFRent / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceBruttoHUFRent = Math.Round((value / Me.Container.AreaNetto), 0, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceNettoHUFRent = Math.Round(AreaListPriceBruttoHUFRent / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoDEVRent As Double
|
||||
Get
|
||||
Return _ListPriceNettoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoDEVRent", _ListPriceNettoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoHUFRent As Double
|
||||
Get
|
||||
Return _ListPriceNettoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoHUFRent", _ListPriceNettoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoDEV As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoDEV", _AreaListPriceBruttoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoHUF As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoHUF", _AreaListPriceBruttoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoDEV As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoDEV", _AreaListPriceNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoHUF As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoHUF", _AreaListPriceNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoDEVRent As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoDEVRent", _AreaListPriceBruttoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoHUFRent As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoHUFRent", _AreaListPriceBruttoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoDEVRent As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoDEVRent", _AreaListPriceNettoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoHUFRent As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoHUFRent", _AreaListPriceNettoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property NoteRow As String
|
||||
Get
|
||||
Return _NoteRow
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("NoteRow", _NoteRow, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+244
@@ -0,0 +1,244 @@
|
||||
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 ImmovablesPriceListRowsG
|
||||
Inherits BaseObject
|
||||
Private _Garages As Garages
|
||||
Private _ImmovablesPriceListHeader As ImmovablesPriceListHeader
|
||||
Private _RowType As ImmovablesPriceListRowsType
|
||||
|
||||
'Értékesítési árak
|
||||
Private _ListPriceBruttoDEV As Double
|
||||
Private _ListPriceBruttoHUF As Double
|
||||
Private _ListPriceNettoDEV As Double
|
||||
Private _ListPriceNettoHUF As Double
|
||||
'--
|
||||
|
||||
'Bérlési árak
|
||||
Private _ListPriceBruttoDEVRent As Double
|
||||
Private _ListPriceBruttoHUFRent As Double
|
||||
Private _ListPriceNettoDEVRent As Double
|
||||
Private _ListPriceNettoHUFRent As Double
|
||||
'--
|
||||
' Értékesítési nm árak
|
||||
Private _AreaListPriceBruttoDEV As Double 'AreaNettoForSale !!! Ezt kell használni az osztáshoz !
|
||||
Private _AreaListPriceBruttoHUF As Double
|
||||
Private _AreaListPriceNettoDEV As Double
|
||||
Private _AreaListPriceNettoHUF As Double
|
||||
'--
|
||||
|
||||
'Bérleti nm árak
|
||||
Private _AreaListPriceBruttoDEVRent As Double
|
||||
Private _AreaListPriceBruttoHUFRent As Double
|
||||
Private _AreaListPriceNettoDEVRent As Double
|
||||
Private _AreaListPriceNettoHUFRent As Double
|
||||
|
||||
Private _NoteRow As String
|
||||
|
||||
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 Garages As Garages
|
||||
Get
|
||||
Return _Garages
|
||||
End Get
|
||||
Set(value As Garages)
|
||||
SetPropertyValue("Garages", _Garages, value)
|
||||
If Not Session.IsObjectsSaving And Not Session.IsObjectsLoading And value IsNot Nothing Then
|
||||
Me.ListPriceBruttoDEV = value.PriceBruttoDEV
|
||||
Me.ListPriceBruttoDEVRent = value.PriceBruttoDEVRent
|
||||
Me.ListPriceBruttoHUF = value.PriceBruttoHUF
|
||||
Me.ListPriceBruttoHUFRent = value.PriceBruttoHUFRent
|
||||
Me.ListPriceNettoDEV = value.PriceNettoDEV
|
||||
Me.ListPriceNettoDEVRent = value.PriceNettoDEVRent
|
||||
Me.ListPriceNettoHUF = value.PriceNettoHUF
|
||||
Me.ListPriceNettoHUFRent = value.PriceNettoHUFRent
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
<Association("ImmovablesPriceListHeader-ImmovablesPriceListRowsG", GetType(ImmovablesPriceListHeader))> _
|
||||
Property ImmovablesPriceListHeader As ImmovablesPriceListHeader
|
||||
Get
|
||||
Return _ImmovablesPriceListHeader
|
||||
End Get
|
||||
Set(ByVal value As ImmovablesPriceListHeader)
|
||||
SetPropertyValue("ImmovablesPriceListHeader", _ImmovablesPriceListHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoDEV As Double
|
||||
Get
|
||||
Return _ListPriceBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoDEV", _ListPriceBruttoDEV, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoDEV = Math.Round(ListPriceBruttoDEV / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceBruttoDEV = Math.Round((value / Me.Garages.AreaNetto), 2, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceNettoDEV = Math.Round(AreaListPriceBruttoDEV / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoHUF As Double
|
||||
Get
|
||||
Return _ListPriceBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoHUF", _ListPriceBruttoHUF, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoHUF = Math.Round(ListPriceBruttoHUF / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceBruttoHUF = Math.Round((value / Me.Garages.AreaNetto), 0, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceNettoHUF = Math.Round(AreaListPriceBruttoHUF / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoDEV As Double
|
||||
Get
|
||||
Return _ListPriceNettoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoDEV", _ListPriceNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoHUF As Double
|
||||
Get
|
||||
Return _ListPriceNettoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoHUF", _ListPriceNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoDEVRent As Double
|
||||
Get
|
||||
Return _ListPriceBruttoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoDEVRent", _ListPriceBruttoDEVRent, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoDEVRent = Math.Round(ListPriceBruttoDEVRent / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceBruttoDEVRent = Math.Round((value / Me.Garages.AreaNetto), 2, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceNettoDEVRent = Math.Round(AreaListPriceBruttoDEVRent / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoHUFRent As Double
|
||||
Get
|
||||
Return _ListPriceBruttoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoHUFRent", _ListPriceBruttoHUFRent, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoHUFRent = Math.Round(ListPriceBruttoHUFRent / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceBruttoHUFRent = Math.Round((value / Me.Garages.AreaNetto), 0, MidpointRounding.AwayFromZero)
|
||||
'AreaListPriceNettoHUFRent = Math.Round(AreaListPriceBruttoHUFRent / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoDEVRent As Double
|
||||
Get
|
||||
Return _ListPriceNettoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoDEVRent", _ListPriceNettoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoHUFRent As Double
|
||||
Get
|
||||
Return _ListPriceNettoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoHUFRent", _ListPriceNettoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoDEV As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoDEV", _AreaListPriceBruttoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoHUF As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoHUF", _AreaListPriceBruttoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoDEV As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoDEV", _AreaListPriceNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoHUF As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoHUF", _AreaListPriceNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoDEVRent As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoDEVRent", _AreaListPriceBruttoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoHUFRent As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoHUFRent", _AreaListPriceBruttoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoDEVRent As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoDEVRent", _AreaListPriceNettoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoHUFRent As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoHUFRent", _AreaListPriceNettoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property NoteRow As String
|
||||
Get
|
||||
Return _NoteRow
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("NoteRow", _NoteRow, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+254
@@ -0,0 +1,254 @@
|
||||
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 ImmovablesPriceListRowsO
|
||||
Inherits BaseObject
|
||||
Private _Offices As Offices
|
||||
Private _ImmovablesPriceListHeader As ImmovablesPriceListHeader
|
||||
Private _RowType As ImmovablesPriceListRowsType
|
||||
|
||||
'Értékesítési árak
|
||||
Private _ListPriceBruttoDEV As Double
|
||||
Private _ListPriceBruttoHUF As Double
|
||||
Private _ListPriceNettoDEV As Double
|
||||
Private _ListPriceNettoHUF As Double
|
||||
'--
|
||||
|
||||
'Bérlési árak
|
||||
Private _ListPriceBruttoDEVRent As Double
|
||||
Private _ListPriceBruttoHUFRent As Double
|
||||
Private _ListPriceNettoDEVRent As Double
|
||||
Private _ListPriceNettoHUFRent As Double
|
||||
'--
|
||||
|
||||
' Értékesítési nm árak
|
||||
Private _AreaListPriceBruttoDEV As Double
|
||||
Private _AreaListPriceBruttoHUF As Double
|
||||
Private _AreaListPriceNettoDEV As Double
|
||||
Private _AreaListPriceNettoHUF As Double
|
||||
'--
|
||||
|
||||
'Bérleti nm árak
|
||||
Private _AreaListPriceBruttoDEVRent As Double
|
||||
Private _AreaListPriceBruttoHUFRent As Double
|
||||
Private _AreaListPriceNettoDEVRent As Double
|
||||
Private _AreaListPriceNettoHUFRent As Double
|
||||
'--
|
||||
Private _NoteRow As String
|
||||
|
||||
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 Offices As Offices
|
||||
Get
|
||||
Return _Offices
|
||||
End Get
|
||||
Set(value As Offices)
|
||||
SetPropertyValue("Offices", _Offices, value)
|
||||
If Not Session.IsObjectsLoading And Not Session.IsObjectsSaving And value IsNot Nothing Then
|
||||
'Me.AreaListPriceBruttoDEV = value.AreaPriceNettoDEV
|
||||
Me.AreaListPriceBruttoDEVRent = value.PriceAreaBruttoDEVRent
|
||||
'Me.AreaListPriceBruttoHUF = value.PriceAreaBruttoHUFRent
|
||||
Me.AreaListPriceBruttoHUFRent = value.PriceAreaBruttoHUFRent
|
||||
Me.AreaListPriceNettoDEV = value.AreaPriceNettoDEV
|
||||
Me.AreaListPriceNettoDEVRent = value.PriceAreaNettoDEVRent
|
||||
Me.AreaListPriceNettoHUF = value.AreaPriceNettoHUF
|
||||
Me.AreaListPriceNettoHUFRent = value.PriceAreaNettoHUFRent
|
||||
Me.ListPriceBruttoDEV = value.PriceBruttoDEV
|
||||
Me.ListPriceBruttoDEVRent = value.PriceBruttoDEVRent
|
||||
Me.ListPriceBruttoHUF = value.PriceBruttoHUF
|
||||
Me.ListPriceBruttoHUFRent = value.PriceBruttoHUFRent
|
||||
Me.ListPriceNettoDEV = value.PriceNettoDEV
|
||||
Me.ListPriceNettoDEVRent = value.PriceNettoDEVRent
|
||||
Me.ListPriceNettoHUF = value.PriceNettoHUF
|
||||
Me.ListPriceNettoHUFRent = value.PriceNettoHUFRent
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
<Association("ImmovablesPriceListHeader-ImmovablesPriceListRowsO", GetType(ImmovablesPriceListHeader))> _
|
||||
Property ImmovablesPriceListHeader As ImmovablesPriceListHeader
|
||||
Get
|
||||
Return _ImmovablesPriceListHeader
|
||||
End Get
|
||||
Set(ByVal value As ImmovablesPriceListHeader)
|
||||
SetPropertyValue("ImmovablesPriceListHeader", _ImmovablesPriceListHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoDEV As Double
|
||||
Get
|
||||
Return _ListPriceBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoDEV", _ListPriceBruttoDEV, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoDEV = Math.Round(ListPriceBruttoDEV / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceBruttoDEV = Math.Round((value / Me.Offices.AreaNettoForSale), 2, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceNettoDEV = Math.Round(AreaListPriceBruttoDEV / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoHUF As Double
|
||||
Get
|
||||
Return _ListPriceBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoHUF", _ListPriceBruttoHUF, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoHUF = Math.Round(ListPriceBruttoHUF / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceBruttoHUF = Math.Round((value / Me.Offices.AreaNettoForSale), 0, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceNettoHUF = Math.Round(AreaListPriceBruttoHUF / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoDEV As Double
|
||||
Get
|
||||
Return _ListPriceNettoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoDEV", _ListPriceNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoHUF As Double
|
||||
Get
|
||||
Return _ListPriceNettoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoHUF", _ListPriceNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoDEVRent As Double
|
||||
Get
|
||||
Return _ListPriceBruttoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoDEVRent", _ListPriceBruttoDEVRent, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoDEVRent = Math.Round(ListPriceBruttoDEVRent / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceBruttoDEVRent = Math.Round((value / Me.Offices.AreaNettoForSale), 2, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceNettoDEVRent = Math.Round(AreaListPriceBruttoDEVRent / 1.25, 2, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceBruttoHUFRent As Double
|
||||
Get
|
||||
Return _ListPriceBruttoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceBruttoHUFRent", _ListPriceBruttoHUFRent, value)
|
||||
If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then
|
||||
ListPriceNettoHUFRent = Math.Round(ListPriceBruttoHUFRent / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceBruttoHUFRent = Math.Round((value / Me.Offices.AreaNettoForSale), 0, MidpointRounding.AwayFromZero)
|
||||
AreaListPriceNettoHUFRent = Math.Round(AreaListPriceBruttoHUFRent / 1.25, 0, MidpointRounding.AwayFromZero)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoDEVRent As Double
|
||||
Get
|
||||
Return _ListPriceNettoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoDEVRent", _ListPriceNettoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ListPriceNettoHUFRent As Double
|
||||
Get
|
||||
Return _ListPriceNettoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("ListPriceNettoHUFRent", _ListPriceNettoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoDEV As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoDEV", _AreaListPriceBruttoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoHUF As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoHUF", _AreaListPriceBruttoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoDEV As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoDEV
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoDEV", _AreaListPriceNettoDEV, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoHUF As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoHUF
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoHUF", _AreaListPriceNettoHUF, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoDEVRent As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoDEVRent", _AreaListPriceBruttoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceBruttoHUFRent As Double
|
||||
Get
|
||||
Return _AreaListPriceBruttoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceBruttoHUFRent", _AreaListPriceBruttoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoDEVRent As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoDEVRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoDEVRent", _AreaListPriceNettoDEVRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property AreaListPriceNettoHUFRent As Double
|
||||
Get
|
||||
Return _AreaListPriceNettoHUFRent
|
||||
End Get
|
||||
Set(ByVal value As Double)
|
||||
SetPropertyValue("AreaListPriceNettoHUFRent", _AreaListPriceNettoHUFRent, value)
|
||||
End Set
|
||||
End Property
|
||||
Property NoteRow As String
|
||||
Get
|
||||
Return _NoteRow
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("NoteRow", _NoteRow, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
End Class
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
Partial Class ImmovablesPriceListVC
|
||||
|
||||
<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.aGenerateIPriceList = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
'
|
||||
'aGenerateIPriceList
|
||||
'
|
||||
Me.aGenerateIPriceList.Caption = "Run query"
|
||||
Me.aGenerateIPriceList.Category = "View"
|
||||
Me.aGenerateIPriceList.ConfirmationMessage = Nothing
|
||||
Me.aGenerateIPriceList.Id = "aGenerateIPriceList"
|
||||
Me.aGenerateIPriceList.ImageName = "stopwatch_run"
|
||||
Me.aGenerateIPriceList.Shortcut = Nothing
|
||||
Me.aGenerateIPriceList.Tag = Nothing
|
||||
Me.aGenerateIPriceList.TargetObjectsCriteria = Nothing
|
||||
Me.aGenerateIPriceList.TargetViewId = "ImmovablesPriceListHeader_DetailView"
|
||||
Me.aGenerateIPriceList.ToolTip = Nothing
|
||||
Me.aGenerateIPriceList.TypeOfView = Nothing
|
||||
|
||||
End Sub
|
||||
Friend WithEvents aGenerateIPriceList 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="aGenerateIPriceList.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
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.SystemModule
|
||||
Imports DevExpress.Xpo
|
||||
Imports DevExpress.ExpressApp.Filtering
|
||||
Imports DevExpress.Data.Filtering
|
||||
Imports DevExpress.ExpressApp.CloneObject
|
||||
|
||||
Public Class ImmovablesPriceListVC
|
||||
Inherits DevExpress.ExpressApp.ViewController
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
|
||||
'This call is required by the Component Designer.
|
||||
InitializeComponent()
|
||||
RegisterActions(components)
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub OnActivated()
|
||||
MyBase.OnActivated()
|
||||
If View.Id = "ImmovablesPriceListHeader_ImmovablesPriceListRowsA_ListView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "ImmovablesPriceListHeader_ImmovablesPriceListRowsC_ListView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "ImmovablesPriceListHeader_ImmovablesPriceListRowsG_ListView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "ImmovablesPriceListHeader_ImmovablesPriceListRowsO_ListView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", False)
|
||||
End If
|
||||
End Sub
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
If View.Id = "ImmovablesPriceListHeader_ImmovablesPriceListRowsA_ListView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "ImmovablesPriceListHeader_ImmovablesPriceListRowsC_ListView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "ImmovablesPriceListHeader_ImmovablesPriceListRowsG_ListView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "ImmovablesPriceListHeader_ImmovablesPriceListRowsO_ListView" Then
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", True)
|
||||
End If
|
||||
End Sub
|
||||
Private Sub aGenerateIPriceList_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aGenerateIPriceList.Execute
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _uow As UnitOfWork = New UnitOfWork(_ocur.Session.DataLayer)
|
||||
Dim _ImmovablesPriceListHeader = _uow.GetObjectByKey(Of ImmovablesPriceListHeader)(TryCast(View.SelectedObjects(0), ImmovablesPriceListHeader).Oid)
|
||||
|
||||
Dim _ApartmentsCollection_DEL As New XPCollection(_uow, GetType(ImmovablesPriceListRowsA), CriteriaOperator.Parse("ImmovablesPriceListHeader=?", _ImmovablesPriceListHeader))
|
||||
Dim _OfficesCollection_DEL As New XPCollection(_uow, GetType(ImmovablesPriceListRowsO), CriteriaOperator.Parse("ImmovablesPriceListHeader=?", _ImmovablesPriceListHeader))
|
||||
Dim _GaragesCollection_DEL As New XPCollection(_uow, GetType(ImmovablesPriceListRowsG), CriteriaOperator.Parse("ImmovablesPriceListHeader=?", _ImmovablesPriceListHeader))
|
||||
Dim _ContainerCollection_DEL As New XPCollection(_uow, GetType(ImmovablesPriceListRowsC), CriteriaOperator.Parse("ImmovablesPriceListHeader=?", _ImmovablesPriceListHeader))
|
||||
|
||||
_uow.Delete(_ApartmentsCollection_DEL)
|
||||
_uow.Delete(_OfficesCollection_DEL)
|
||||
_uow.Delete(_GaragesCollection_DEL)
|
||||
_uow.Delete(_ContainerCollection_DEL)
|
||||
_uow.CommitChanges()
|
||||
|
||||
Dim _ApartmentsCollection As New XPCollection(_uow, GetType(Apartments), CriteriaOperator.Parse("(CanForSale=True Or CanForRent = True) and ImmovableGroups=?", _ImmovablesPriceListHeader.ImmovablesGroups))
|
||||
Dim _OfficesCollection As New XPCollection(_uow, GetType(Offices), CriteriaOperator.Parse("(CanForSale=True Or CanForRent = True) and ImmovableGroups=?", _ImmovablesPriceListHeader.ImmovablesGroups))
|
||||
Dim _GaragesCollection As New XPCollection(_uow, GetType(Garages), CriteriaOperator.Parse("(CanForSale=True Or CanForRent = True) and ImmovableGroups=?", _ImmovablesPriceListHeader.ImmovablesGroups))
|
||||
Dim _ContainerCollection As New XPCollection(_uow, GetType(Container), CriteriaOperator.Parse("(CanForSale=True Or CanForRent = True) and ImmovableGroups=?", _ImmovablesPriceListHeader.ImmovablesGroups))
|
||||
|
||||
Dim _ImmovablesPriceListRowsA As ImmovablesPriceListRowsA
|
||||
Dim _ImmovablesPriceListRowsO As ImmovablesPriceListRowsO
|
||||
Dim _ImmovablesPriceListRowsG As ImmovablesPriceListRowsG
|
||||
Dim _ImmovablesPriceListRowsC As ImmovablesPriceListRowsC
|
||||
|
||||
For Each _Apartments As Apartments In _ApartmentsCollection
|
||||
_ImmovablesPriceListRowsA = New ImmovablesPriceListRowsA(_uow)
|
||||
_ImmovablesPriceListRowsA.ImmovablesPriceListHeader = _ImmovablesPriceListHeader
|
||||
_ImmovablesPriceListRowsA.Apartments = _Apartments
|
||||
_ImmovablesPriceListRowsA.Save()
|
||||
Next
|
||||
|
||||
For Each _Offices As Offices In _OfficesCollection
|
||||
_ImmovablesPriceListRowsO = New ImmovablesPriceListRowsO(_uow)
|
||||
_ImmovablesPriceListRowsO.ImmovablesPriceListHeader = _ImmovablesPriceListHeader
|
||||
_ImmovablesPriceListRowsO.Offices = _Offices
|
||||
_ImmovablesPriceListRowsO.Save()
|
||||
Next
|
||||
|
||||
For Each _Garages As Garages In _GaragesCollection
|
||||
_ImmovablesPriceListRowsG = New ImmovablesPriceListRowsG(_uow)
|
||||
_ImmovablesPriceListRowsG.ImmovablesPriceListHeader = _ImmovablesPriceListHeader
|
||||
_ImmovablesPriceListRowsG.Garages = _Garages
|
||||
_ImmovablesPriceListRowsG.Save()
|
||||
Next
|
||||
|
||||
For Each _Container As Container In _ContainerCollection
|
||||
_ImmovablesPriceListRowsC = New ImmovablesPriceListRowsC(_uow)
|
||||
_ImmovablesPriceListRowsC.ImmovablesPriceListHeader = _ImmovablesPriceListHeader
|
||||
_ImmovablesPriceListRowsC.Container = _Container
|
||||
_ImmovablesPriceListRowsC.Save()
|
||||
Next
|
||||
_uow.CommitChanges()
|
||||
If Frame.GetController(Of RefreshController).RefreshAction.Enabled Then
|
||||
Frame.GetController(Of RefreshController).RefreshAction.DoExecute()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
Reference in New Issue
Block a user