First create solution
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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()> _
|
||||
<NonPersistent()> _
|
||||
<CreatableItem(False)> _
|
||||
<NavigationItem(False)> _
|
||||
Public Class ProjectNewEvents
|
||||
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
|
||||
@@ -0,0 +1,50 @@
|
||||
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 ProjectBar
|
||||
Inherits BaseObject
|
||||
Private _ProjectRows As ProjectRows
|
||||
Private _DateStart As Date
|
||||
Private _DateEnd As Date
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
Property ProjectRows As ProjectRows
|
||||
Get
|
||||
Return _ProjectRows
|
||||
End Get
|
||||
Set(value As ProjectRows)
|
||||
SetPropertyValue("ProjectRows", _ProjectRows, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DateStart As Date
|
||||
Get
|
||||
Return _DateStart
|
||||
End Get
|
||||
Set(value As Date)
|
||||
SetPropertyValue("DateStart", _DateStart, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DateEnd As Date
|
||||
Get
|
||||
Return _DateEnd
|
||||
End Get
|
||||
Set(value As Date)
|
||||
SetPropertyValue("DateEnd", _DateEnd, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -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
|
||||
|
||||
<DefaultClassOptions(), NavigationItem(False), CreatableItem(False)> _
|
||||
Public Class ProjectContacts
|
||||
Inherits BaseObject
|
||||
Private _ProjectHeader As ProjectHeader
|
||||
Private _Contacts As Contacts
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
<Association("ProjectHeader-ProjectContacts", GetType(ProjectHeader)), VisibleInListView(False)> _
|
||||
Property ProjectHeader As ProjectHeader
|
||||
Get
|
||||
Return _ProjectHeader
|
||||
End Get
|
||||
Set(value As ProjectHeader)
|
||||
SetPropertyValue("ProjectHeader", _ProjectHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Contacts As Contacts
|
||||
Get
|
||||
Return _Contacts
|
||||
End Get
|
||||
Set(value As Contacts)
|
||||
SetPropertyValue("Contacts", _Contacts, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -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
|
||||
|
||||
<DefaultClassOptions(), NavigationItem(False), CreatableItem(False)> _
|
||||
Public Class ProjectCustomers
|
||||
Inherits BaseObject
|
||||
Private _ProjectHeader As ProjectHeader
|
||||
Private _Customers As Customers
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
<Association("ProjectHeader-ProjectCustomers", GetType(ProjectHeader)), VisibleInListView(False)> _
|
||||
Property ProjectHeader As ProjectHeader
|
||||
Get
|
||||
Return _ProjectHeader
|
||||
End Get
|
||||
Set(value As ProjectHeader)
|
||||
SetPropertyValue("ProjectHeader", _ProjectHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Customers As Customers
|
||||
Get
|
||||
Return _Customers
|
||||
End Get
|
||||
Set(value As Customers)
|
||||
SetPropertyValue("Customers", _Customers, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,43 @@
|
||||
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 ProjectHRPerson
|
||||
Inherits BaseObject
|
||||
|
||||
Private _ProjectHeader As ProjectHeader
|
||||
Private _HRPerson As HRPerson
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
<Association("ProjectHeader-ProjectHRPerson", GetType(ProjectHRPerson)), VisibleInListView(False)> _
|
||||
Property ProjectHeader As ProjectHeader
|
||||
Get
|
||||
Return _ProjectHeader
|
||||
End Get
|
||||
Set(value As ProjectHeader)
|
||||
SetPropertyValue("ProjectHeader", _ProjectHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property HRPerson As HRPerson
|
||||
Get
|
||||
Return _HRPerson
|
||||
End Get
|
||||
Set(value As HRPerson)
|
||||
SetPropertyValue("HRPerson", _HRPerson, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,145 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
|
||||
Imports DevExpress.Xpo
|
||||
Imports DevExpress.Data.Filtering
|
||||
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.Persistent.Base
|
||||
Imports DevExpress.Persistent.BaseImpl
|
||||
Imports DevExpress.Persistent.Validation
|
||||
|
||||
Imports DevExpress.ExpressApp.ConditionalAppearance
|
||||
<DefaultClassOptions(), NavigationItem(False), CreatableItem(False)> _
|
||||
<Appearance("Hide detail action when DocumentNumber is empty", AppearanceItemType:="Action", criteria:="isnull(DocumentNumber)=True or DocumentNumber=''", targetitems:="aProjectDeleteRow;aProjectAddRow;aProjectEditRow", visibility:=Editors.ViewItemVisibility.Hide)> _
|
||||
Public Class ProjectHeader
|
||||
Inherits BaseObject
|
||||
|
||||
Private _JobNumberObjects As JobNumberObjects
|
||||
Private _ProjectType As ProjectType
|
||||
Private _DocumentNumber As String
|
||||
Private _CustomersFrom As CustomersFrom
|
||||
Private _G2antt As String
|
||||
Private _GanttChart As String
|
||||
Private _ShortName As String
|
||||
Private _Description As String
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
Protected Overrides Sub OnSaving()
|
||||
MyBase.OnSaving()
|
||||
If DocumentNumber = "" Then
|
||||
DocumentNumber = Me.ProjectType.NumberGenerator.GetNewNumber(Me.ProjectType.NumberGenerator)
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Property JobNumberObjects As JobNumberObjects
|
||||
Get
|
||||
Return _JobNumberObjects
|
||||
End Get
|
||||
Set(value As JobNumberObjects)
|
||||
SetPropertyValue("JobNumberObjects", _JobNumberObjects, value)
|
||||
End Set
|
||||
End Property
|
||||
<RuleRequiredField("ProjectHeader-ProjectType", DefaultContexts.Save)>
|
||||
<ImmediatePostData(True), DataSourceCriteria("CustomersFrom='@This.CustomersFrom'")>
|
||||
Property ProjectType As ProjectType
|
||||
Get
|
||||
Return _ProjectType
|
||||
End Get
|
||||
Set(value As ProjectType)
|
||||
SetPropertyValue("ProjectType", _ProjectType, 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 CustomersFrom As CustomersFrom
|
||||
Get
|
||||
Return _CustomersFrom
|
||||
End Get
|
||||
Set(value As CustomersFrom)
|
||||
SetPropertyValue("CustomersFrom", _CustomersFrom, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property G2antt As String
|
||||
Get
|
||||
Return _G2antt
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("G2antt", _G2antt, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property GanttChart As String
|
||||
Get
|
||||
Return _GanttChart
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("GanttChart", _GanttChart, 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
|
||||
|
||||
ReadOnly Property ProjectRows As XPCollection(Of ProjectRows)
|
||||
Get
|
||||
Return New XPCollection(Of ProjectRows)(Session, CriteriaOperator.Parse("ProjectHeader=?", Me))
|
||||
End Get
|
||||
End Property
|
||||
<Association("ProjectHeader-ProjectQuestion", GetType(ProjectQuestion)), VisibleInListView(False)> _
|
||||
ReadOnly Property ProjectQuestion As XPCollection(Of ProjectQuestion)
|
||||
Get
|
||||
Return GetCollection(Of ProjectQuestion)("ProjectQuestion")
|
||||
End Get
|
||||
End Property
|
||||
<Association("ProjectHeader-ProjectHRPerson", GetType(ProjectHRPerson)), VisibleInListView(False)> _
|
||||
ReadOnly Property ProjectHRPerson As XPCollection(Of ProjectHRPerson)
|
||||
Get
|
||||
Return GetCollection(Of ProjectHRPerson)("ProjectHRPerson")
|
||||
End Get
|
||||
End Property
|
||||
<Association("ProjectHeader-ProjectSubcontractor", GetType(ProjectSubcontractor)), VisibleInListView(False)> _
|
||||
ReadOnly Property ProjectSubcontractor As XPCollection(Of ProjectSubcontractor)
|
||||
Get
|
||||
Return GetCollection(Of ProjectSubcontractor)("ProjectSubcontractor")
|
||||
End Get
|
||||
End Property
|
||||
<Association("ProjectHeader-ProjectCustomers", GetType(ProjectCustomers)), VisibleInListView(False)> _
|
||||
ReadOnly Property ProjectCustomers As XPCollection(Of ProjectCustomers)
|
||||
Get
|
||||
Return GetCollection(Of ProjectCustomers)("ProjectCustomers")
|
||||
End Get
|
||||
End Property
|
||||
<Association("ProjectHeader-ProjectContacts", GetType(ProjectContacts)), VisibleInListView(False)> _
|
||||
ReadOnly Property ProjectContacts As XPCollection(Of ProjectContacts)
|
||||
Get
|
||||
Return GetCollection(Of ProjectContacts)("ProjectContacts")
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,45 @@
|
||||
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()> _
|
||||
<CreatableItem(False)> _
|
||||
<NavigationItem(False)> _
|
||||
Public Class ProjectQuestion
|
||||
Inherits BaseObject
|
||||
|
||||
Private _ProjectHeader As ProjectHeader
|
||||
Private _Question As Question
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
<Association("ProjectHeader-ProjectQuestion", GetType(ProjectHeader)), VisibleInListView(False)> _
|
||||
Property ProjectHeader As ProjectHeader
|
||||
Get
|
||||
Return _ProjectHeader
|
||||
End Get
|
||||
Set(value As ProjectHeader)
|
||||
SetPropertyValue("ProjectHeader", _ProjectHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Question As Question
|
||||
Get
|
||||
Return _Question
|
||||
End Get
|
||||
Set(value As Question)
|
||||
SetPropertyValue("Question", _Question, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,212 @@
|
||||
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
|
||||
|
||||
Public Enum eProjectBarType
|
||||
eDeadline = 0
|
||||
eProjectSummary = 1
|
||||
eSummary = 2
|
||||
eMilestone = 3
|
||||
eProgress = 4
|
||||
eSplit = 5
|
||||
eTask = 6
|
||||
End Enum
|
||||
Public Enum eTaskDuty
|
||||
eNotSet = -1
|
||||
ePartnerTask = 0 'Partner feladata
|
||||
eSubcontractorTask = 1 'Alvállalkozó feladata
|
||||
eMyTask = 2 'A mi feladatunk
|
||||
End Enum
|
||||
<DefaultClassOptions()> _
|
||||
<NavigationItem(False)> _
|
||||
<CreatableItem(False)> _
|
||||
<Appearance("ProjectRows - Disable RowPos all time", AppearanceItemType.ViewItem, "1=1", TargetItems:="RowPos", Enabled:=False)> _
|
||||
Public Class ProjectRows
|
||||
Inherits BaseObject
|
||||
Private _ProjectRows As ProjectRows 'Melyik hierarchiára mutat
|
||||
Private _ProjectHeader As ProjectHeader 'Melyik projecthez tartozik
|
||||
Private _RowPos As String '1,1.1,1.1.1 ez a hierarchia, automatikusan adható legyen, mint a fk. számlaszámok
|
||||
Private _TaskName As String 'Feladat megnevezése
|
||||
Private _DateStart As Date ' Kezdete
|
||||
Private _DateEnd As Date 'Vége
|
||||
Private _ProjectBarType As eProjectBarType 'Bar tipus
|
||||
Private _AlertPeriod As AlertPeriod 'Figyelmeztetés a lejárat elõtt és után
|
||||
Private _TaskDuty As eTaskDuty ' Kinek a felelõssége
|
||||
Private _Description As String 'Egyéb megjegyzés ehhez a feladathoz
|
||||
Private _PercentCompleted As Double '? százalékban van elkészülve
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
Protected Overrides Sub OnSaving()
|
||||
MyBase.OnSaving()
|
||||
If String.IsNullOrEmpty(RowPos) Then
|
||||
Dim _ProjectRows_Collection As New XPCollection(Of ProjectRows)(PersistentCriteriaEvaluationBehavior.InTransaction, _
|
||||
Session, CriteriaOperator.Parse("ProjectHeader=? AND IsNull(ProjectRows)=True", ProjectHeader))
|
||||
If _ProjectRows_Collection.Count = 0 Then
|
||||
RowPos = "1" + ProjectHeader.ProjectType.SeparatorChar
|
||||
Else
|
||||
RowPos = (_ProjectRows_Collection.Count).ToString + ProjectHeader.ProjectType.SeparatorChar
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
<ImmediatePostData(True), DataSourceCriteria("ProjectHeader='@This.ProjectHeader' and Oid<>'@This.Oid'")>
|
||||
Property ProjectRows As ProjectRows
|
||||
Get
|
||||
Return _ProjectRows
|
||||
End Get
|
||||
Set(value As ProjectRows)
|
||||
SetPropertyValue("ProjectRows", _ProjectRows, value)
|
||||
If Not Session.IsObjectsLoading And Not Session.IsObjectsSaving Then
|
||||
Dim _ProjectRows_Collection As New XPCollection(Of ProjectRows)(Session, CriteriaOperator.Parse("ProjectHeader=? AND ProjectRows=?", ProjectHeader, value))
|
||||
If value Is Nothing Then
|
||||
RowPos = Nothing
|
||||
Else
|
||||
If _ProjectRows_Collection.Count = 0 Then
|
||||
RowPos = value.RowPos + "1" + ProjectHeader.ProjectType.SeparatorChar
|
||||
Else
|
||||
RowPos = value.RowPos + (_ProjectRows_Collection.Count + 1).ToString + ProjectHeader.ProjectType.SeparatorChar
|
||||
End If
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
End Set
|
||||
End Property
|
||||
Property ProjectHeader As ProjectHeader
|
||||
Get
|
||||
Return _ProjectHeader
|
||||
End Get
|
||||
Set(value As ProjectHeader)
|
||||
SetPropertyValue("ProjectHeader", _ProjectHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowPos As String
|
||||
Get
|
||||
Return _RowPos
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("RowPos", _RowPos, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(255)> _
|
||||
Property TaskName As String
|
||||
Get
|
||||
Return _TaskName
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("TaskName", _TaskName, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DateStart As Date
|
||||
Get
|
||||
Return _DateStart
|
||||
End Get
|
||||
Set(value As Date)
|
||||
SetPropertyValue("DateStart", _DateStart, value)
|
||||
End Set
|
||||
End Property
|
||||
Property DateEnd As Date
|
||||
Get
|
||||
Return _DateEnd
|
||||
End Get
|
||||
Set(value As Date)
|
||||
SetPropertyValue("DateEnd", _DateEnd, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ProjectBarType As eProjectBarType
|
||||
Get
|
||||
Return _ProjectBarType
|
||||
End Get
|
||||
Set(value As eProjectBarType)
|
||||
SetPropertyValue("ProjectBarType", _ProjectBarType, value)
|
||||
End Set
|
||||
End Property
|
||||
ReadOnly Property SumDay As Long
|
||||
Get
|
||||
Return DateDiff(DateInterval.Day, Me.DateStart, Me.DateEnd)
|
||||
End Get
|
||||
End Property
|
||||
Property AlertPeriod As AlertPeriod
|
||||
Get
|
||||
Return _AlertPeriod
|
||||
End Get
|
||||
Set(value As AlertPeriod)
|
||||
SetPropertyValue("AlertPeriod", _AlertPeriod, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData> _
|
||||
Property TaskDuty As eTaskDuty
|
||||
Get
|
||||
Return _TaskDuty
|
||||
End Get
|
||||
Set(value As eTaskDuty)
|
||||
SetPropertyValue("TaskDuty", _TaskDuty, 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 PercentCompleted As Double
|
||||
Get
|
||||
Return _PercentCompleted
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("PercentCompleted", _PercentCompleted, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'-------ReadOnly----------------
|
||||
<Browsable(False)> _
|
||||
ReadOnly Property ProjectRows_Child As XPCollection(Of ProjectRows)
|
||||
Get
|
||||
Dim _ProjectRows_Collection As New XPCollection(Of ProjectRows)(Session, CriteriaOperator.Parse("ProjectRows=?", Me))
|
||||
If _ProjectRows_Collection Is Nothing Then
|
||||
Return Nothing
|
||||
Else
|
||||
Return _ProjectRows_Collection
|
||||
End If
|
||||
End Get
|
||||
End Property
|
||||
<Association("ProjectRows-ProjectRowsCustomers", GetType(ProjectRowsCustomers)), VisibleInListView(False)> _
|
||||
ReadOnly Property ProjectRowsCustomers As XPCollection(Of ProjectRowsCustomers)
|
||||
Get
|
||||
Return GetCollection(Of ProjectRowsCustomers)("ProjectRowsCustomers")
|
||||
End Get
|
||||
End Property
|
||||
<Association("ProjectRows-ProjectRowsContacts", GetType(ProjectRowsContacts)), VisibleInListView(False)> _
|
||||
ReadOnly Property ProjectRowsContacts As XPCollection(Of ProjectRowsContacts)
|
||||
Get
|
||||
Return GetCollection(Of ProjectRowsContacts)("ProjectRowsContacts")
|
||||
End Get
|
||||
End Property
|
||||
<Association("ProjectRows-ProjectRowsHRPerson", GetType(ProjectRowsHRPerson)), VisibleInListView(False)> _
|
||||
ReadOnly Property ProjectRowsHRPerson As XPCollection(Of ProjectRowsHRPerson)
|
||||
Get
|
||||
Return GetCollection(Of ProjectRowsHRPerson)("ProjectRowsHRPerson")
|
||||
End Get
|
||||
End Property
|
||||
<Association("ProjectRows-ProjectRowsSubcontractor", GetType(ProjectRowsSubcontractor)), VisibleInListView(False)> _
|
||||
ReadOnly Property ProjectRowsSubcontractor As XPCollection(Of ProjectRowsSubcontractor)
|
||||
Get
|
||||
Return GetCollection(Of ProjectRowsSubcontractor)("ProjectRowsSubcontractor")
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
@@ -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)> _
|
||||
Public Class ProjectRowsContacts
|
||||
Inherits BaseObject
|
||||
Private _ProjectRows As ProjectRows
|
||||
Private _Contacts As Contacts
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
<Association("ProjectRows-ProjectRowsContacts", GetType(ProjectRowsContacts)), VisibleInListView(False)> _
|
||||
Property ProjectRows As ProjectRows
|
||||
Get
|
||||
Return _ProjectRows
|
||||
End Get
|
||||
Set(value As ProjectRows)
|
||||
SetPropertyValue("ProjectRows", _ProjectRows, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Contacts As Contacts
|
||||
Get
|
||||
Return _Contacts
|
||||
End Get
|
||||
Set(value As Contacts)
|
||||
SetPropertyValue("Contacts", _Contacts, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -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)> _
|
||||
Public Class ProjectRowsCustomers
|
||||
Inherits BaseObject
|
||||
Private _ProjectRows As ProjectRows
|
||||
Private _Customers As Customers
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
<Association("ProjectRows-ProjectRowsCustomers", GetType(ProjectRowsCustomers)), VisibleInListView(False)> _
|
||||
Property ProjectRows As ProjectRows
|
||||
Get
|
||||
Return _ProjectRows
|
||||
End Get
|
||||
Set(value As ProjectRows)
|
||||
SetPropertyValue("ProjectRows", _ProjectRows, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Customers As Customers
|
||||
Get
|
||||
Return _Customers
|
||||
End Get
|
||||
Set(value As Customers)
|
||||
SetPropertyValue("Customers", _Customers, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,43 @@
|
||||
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 ProjectRowsHRPerson
|
||||
Inherits BaseObject
|
||||
|
||||
Private _ProjectRows As ProjectRows
|
||||
Private _HRPerson As HRPerson
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
<Association("ProjectRows-ProjectRowsHRPerson", GetType(ProjectRowsHRPerson)), VisibleInListView(False)> _
|
||||
Property ProjectRows As ProjectRows
|
||||
Get
|
||||
Return _ProjectRows
|
||||
End Get
|
||||
Set(value As ProjectRows)
|
||||
SetPropertyValue("ProjectRows", _ProjectRows, value)
|
||||
End Set
|
||||
End Property
|
||||
Property HRPerson As HRPerson
|
||||
Get
|
||||
Return _HRPerson
|
||||
End Get
|
||||
Set(value As HRPerson)
|
||||
SetPropertyValue("HRPerson", _HRPerson, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -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
|
||||
|
||||
<DefaultClassOptions(), NavigationItem(False), CreatableItem(False)> _
|
||||
Public Class ProjectRowsSubcontractor
|
||||
Inherits BaseObject
|
||||
Private _ProjectRows As ProjectRows
|
||||
Private _Subcontractor As Subcontractor
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
<Association("ProjectRows-ProjectRowsSubcontractor", GetType(ProjectRowsSubcontractor)), VisibleInListView(False)> _
|
||||
Property ProjectRows As ProjectRows
|
||||
Get
|
||||
Return _ProjectRows
|
||||
End Get
|
||||
Set(value As ProjectRows)
|
||||
SetPropertyValue("ProjectRows", _ProjectRows, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Subcontractor As Subcontractor
|
||||
Get
|
||||
Return _Subcontractor
|
||||
End Get
|
||||
Set(value As Subcontractor)
|
||||
SetPropertyValue("Subcontractor", _Subcontractor, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,43 @@
|
||||
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 ProjectSubcontractor
|
||||
Inherits BaseObject
|
||||
|
||||
Private _ProjectHeader As ProjectHeader
|
||||
Private _Subcontractor As Subcontractor
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
<Association("ProjectHeader-ProjectSubcontractor", GetType(ProjectHeader)), VisibleInListView(False)> _
|
||||
Property ProjectHeader As ProjectHeader
|
||||
Get
|
||||
Return _ProjectHeader
|
||||
End Get
|
||||
Set(value As ProjectHeader)
|
||||
SetPropertyValue("ProjectHeader", _ProjectHeader, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Subcontractor As Subcontractor
|
||||
Get
|
||||
Return _Subcontractor
|
||||
End Get
|
||||
Set(value As Subcontractor)
|
||||
SetPropertyValue("Subcontractor", _Subcontractor, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,109 @@
|
||||
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.Drawing
|
||||
|
||||
<DefaultClassOptions(), NavigationItem(False), CreatableItem(False)> _
|
||||
Public Class ProjectType
|
||||
Inherits BaseObject
|
||||
|
||||
Private _CustomersFrom As CustomersFrom
|
||||
Private _ShortName As String
|
||||
Private _NumberGenerator As NumberGenerator
|
||||
Private _SeparatorChar As String
|
||||
|
||||
<Persistent("DutyColorNotSet")> Private _DutyColorNotSet As Int32
|
||||
<Persistent("DutyColorPartnerTask")> Private _DutyColorPartnerTask As Int32
|
||||
<Persistent("DutyColorMyTask")> Private _DutyColorMyTask As Int32
|
||||
<Persistent("DutyColorSubcontractorTask")> Private _DutyColorSubcontractorTask As Int32
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
SeparatorChar = "."
|
||||
End Sub
|
||||
|
||||
Property CustomersFrom As CustomersFrom
|
||||
Get
|
||||
Return _CustomersFrom
|
||||
End Get
|
||||
Set(value As CustomersFrom)
|
||||
SetPropertyValue("CustomersFrom", _CustomersFrom, 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
|
||||
Property NumberGenerator As NumberGenerator
|
||||
Get
|
||||
Return _NumberGenerator
|
||||
End Get
|
||||
Set(value As NumberGenerator)
|
||||
SetPropertyValue("NumberGenerator", _NumberGenerator, value)
|
||||
End Set
|
||||
End Property
|
||||
Property SeparatorChar As String
|
||||
Get
|
||||
Return _SeparatorChar
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("SeparatorChar", _SeparatorChar, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<NonPersistent()> _
|
||||
Public Property DutyColorPartnerTask_NP() As Color
|
||||
Get
|
||||
Return Color.FromArgb(_DutyColorPartnerTask)
|
||||
End Get
|
||||
Set(ByVal value As Color)
|
||||
_DutyColorPartnerTask = value.ToArgb()
|
||||
OnChanged("DutyColorPartnerTask")
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()> _
|
||||
Public Property DutyColorNotSet_NP() As Color
|
||||
Get
|
||||
Return Color.FromArgb(_DutyColorNotSet)
|
||||
End Get
|
||||
Set(ByVal value As Color)
|
||||
_DutyColorNotSet = value.ToArgb()
|
||||
OnChanged("DutyColorNotSet")
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()> _
|
||||
Public Property DutyColorMyTask_NP() As Color
|
||||
Get
|
||||
Return Color.FromArgb(_DutyColorMyTask)
|
||||
End Get
|
||||
Set(ByVal value As Color)
|
||||
_DutyColorMyTask = value.ToArgb()
|
||||
OnChanged("DutyColorMyTask")
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()> _
|
||||
Public Property DutyColorSubcontractorTask_NP() As Color
|
||||
Get
|
||||
Return Color.FromArgb(_DutyColorSubcontractorTask)
|
||||
End Get
|
||||
Set(ByVal value As Color)
|
||||
_DutyColorSubcontractorTask = value.ToArgb()
|
||||
OnChanged("DutyColorSubcontractorTask")
|
||||
End Set
|
||||
End Property
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,257 @@
|
||||
Partial Class ProjectVC
|
||||
|
||||
<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.aProjectAddRow = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aProjectEditRow = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aProjectDeleteRow = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aProjectRefreshG2antt = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aProjectRowsHRPerson_AddHRPerson = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aProjectHRPerson_AddHRPerson = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aProjectSubcontractor_AddSubcontractor = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aProjectCustomers_AddRowsCustomers = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aProjectCustomers_AddRowsContacts = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
Me.aProjectRowsCustomers_AddRowsContacts = New DevExpress.ExpressApp.Actions.PopupWindowShowAction(Me.components)
|
||||
'
|
||||
'aProjectAddRow
|
||||
'
|
||||
Me.aProjectAddRow.Caption = "aProject Add Row"
|
||||
Me.aProjectAddRow.Category = "aProjectAddRow"
|
||||
Me.aProjectAddRow.ConfirmationMessage = Nothing
|
||||
Me.aProjectAddRow.Id = "aProjectAddRow"
|
||||
Me.aProjectAddRow.ImageName = Nothing
|
||||
Me.aProjectAddRow.Shortcut = Nothing
|
||||
Me.aProjectAddRow.Tag = Nothing
|
||||
Me.aProjectAddRow.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectAddRow.TargetObjectType = GetType(Nuvolar.[Module].ProjectHeader)
|
||||
Me.aProjectAddRow.TargetViewId = Nothing
|
||||
Me.aProjectAddRow.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aProjectAddRow.ToolTip = Nothing
|
||||
Me.aProjectAddRow.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aProjectEditRow
|
||||
'
|
||||
Me.aProjectEditRow.Caption = "aProject Edit Row"
|
||||
Me.aProjectEditRow.Category = "aProjectEditRow"
|
||||
Me.aProjectEditRow.ConfirmationMessage = Nothing
|
||||
Me.aProjectEditRow.Id = "aProjectEditRow"
|
||||
Me.aProjectEditRow.ImageName = Nothing
|
||||
Me.aProjectEditRow.Shortcut = Nothing
|
||||
Me.aProjectEditRow.Tag = Nothing
|
||||
Me.aProjectEditRow.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectEditRow.TargetObjectType = GetType(Nuvolar.[Module].ProjectHeader)
|
||||
Me.aProjectEditRow.TargetViewId = Nothing
|
||||
Me.aProjectEditRow.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aProjectEditRow.ToolTip = Nothing
|
||||
Me.aProjectEditRow.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aProjectDeleteRow
|
||||
'
|
||||
Me.aProjectDeleteRow.Caption = "aProject Delete Row"
|
||||
Me.aProjectDeleteRow.Category = "aProjectDeleteRow"
|
||||
Me.aProjectDeleteRow.ConfirmationMessage = Nothing
|
||||
Me.aProjectDeleteRow.Id = "aProjectDeleteRow"
|
||||
Me.aProjectDeleteRow.ImageName = Nothing
|
||||
Me.aProjectDeleteRow.Shortcut = Nothing
|
||||
Me.aProjectDeleteRow.Tag = Nothing
|
||||
Me.aProjectDeleteRow.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectDeleteRow.TargetObjectType = GetType(Nuvolar.[Module].ProjectHeader)
|
||||
Me.aProjectDeleteRow.TargetViewId = Nothing
|
||||
Me.aProjectDeleteRow.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aProjectDeleteRow.ToolTip = Nothing
|
||||
Me.aProjectDeleteRow.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aProjectRefreshG2antt
|
||||
'
|
||||
Me.aProjectRefreshG2antt.Caption = "aProject Refresh G2antt"
|
||||
Me.aProjectRefreshG2antt.Category = "aProjectRefreshG2antt"
|
||||
Me.aProjectRefreshG2antt.ConfirmationMessage = Nothing
|
||||
Me.aProjectRefreshG2antt.Id = "aProjectRefreshG2antt"
|
||||
Me.aProjectRefreshG2antt.ImageName = Nothing
|
||||
Me.aProjectRefreshG2antt.Shortcut = Nothing
|
||||
Me.aProjectRefreshG2antt.Tag = Nothing
|
||||
Me.aProjectRefreshG2antt.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectRefreshG2antt.TargetObjectType = GetType(Nuvolar.[Module].ProjectHeader)
|
||||
Me.aProjectRefreshG2antt.TargetViewId = Nothing
|
||||
Me.aProjectRefreshG2antt.TargetViewType = DevExpress.ExpressApp.ViewType.DetailView
|
||||
Me.aProjectRefreshG2antt.ToolTip = Nothing
|
||||
Me.aProjectRefreshG2antt.TypeOfView = GetType(DevExpress.ExpressApp.DetailView)
|
||||
'
|
||||
'aProjectRowsHRPerson_AddHRPerson
|
||||
'
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.AcceptButtonCaption = Nothing
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.CancelButtonCaption = Nothing
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.Caption = "aProjectRowsHRPerson_AddHRPerson"
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.Category = "ObjectsCreation"
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.ConfirmationMessage = Nothing
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.Id = "aProjectRowsHRPerson_AddHRPerson"
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.ImageName = Nothing
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.Shortcut = Nothing
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.Tag = Nothing
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.TargetObjectType = GetType(Nuvolar.[Module].ProjectRowsHRPerson)
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.TargetViewId = ""
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.ToolTip = Nothing
|
||||
Me.aProjectRowsHRPerson_AddHRPerson.TypeOfView = Nothing
|
||||
'
|
||||
'aProjectRowsSubcontractor_AddSubcontractor
|
||||
'
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.AcceptButtonCaption = Nothing
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.CancelButtonCaption = Nothing
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.Caption = "aProjectRowsSubcontractor_AddSubcontractor"
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.Category = "ObjectsCreation"
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.ConfirmationMessage = Nothing
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.Id = "aProjectRowsSubcontractor_AddSubcontractor"
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.ImageName = Nothing
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.Shortcut = Nothing
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.Tag = Nothing
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.TargetObjectType = GetType(Nuvolar.[Module].ProjectRowsSubcontractor)
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.TargetViewId = ""
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.ToolTip = Nothing
|
||||
Me.aProjectRowsSubcontractor_AddSubcontractor.TypeOfView = Nothing
|
||||
'
|
||||
'aProjectRowsCustomers_AddRowsCustomers
|
||||
'
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.AcceptButtonCaption = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.CancelButtonCaption = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.Caption = "aProjectRowsCustomers_AddRowsCustomers"
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.Category = "ObjectsCreation"
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.ConfirmationMessage = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.Id = "aProjectRowsCustomers_AddRowsCustomers"
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.ImageName = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.Shortcut = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.Tag = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.TargetObjectType = GetType(Nuvolar.[Module].ProjectRowsCustomers)
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.TargetViewId = ""
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.ToolTip = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsCustomers.TypeOfView = Nothing
|
||||
'
|
||||
'aProjectHRPerson_AddHRPerson
|
||||
'
|
||||
Me.aProjectHRPerson_AddHRPerson.AcceptButtonCaption = Nothing
|
||||
Me.aProjectHRPerson_AddHRPerson.CancelButtonCaption = Nothing
|
||||
Me.aProjectHRPerson_AddHRPerson.Caption = "aProjectHRPerson_AddHRPerson"
|
||||
Me.aProjectHRPerson_AddHRPerson.Category = "ObjectsCreation"
|
||||
Me.aProjectHRPerson_AddHRPerson.ConfirmationMessage = Nothing
|
||||
Me.aProjectHRPerson_AddHRPerson.Id = "aProjectHRPerson_AddHRPerson"
|
||||
Me.aProjectHRPerson_AddHRPerson.ImageName = Nothing
|
||||
Me.aProjectHRPerson_AddHRPerson.Shortcut = Nothing
|
||||
Me.aProjectHRPerson_AddHRPerson.Tag = Nothing
|
||||
Me.aProjectHRPerson_AddHRPerson.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectHRPerson_AddHRPerson.TargetObjectType = GetType(Nuvolar.[Module].ProjectHRPerson)
|
||||
Me.aProjectHRPerson_AddHRPerson.TargetViewId = ""
|
||||
Me.aProjectHRPerson_AddHRPerson.ToolTip = Nothing
|
||||
Me.aProjectHRPerson_AddHRPerson.TypeOfView = Nothing
|
||||
'
|
||||
'aProjectSubcontractor_AddSubcontractor
|
||||
'
|
||||
Me.aProjectSubcontractor_AddSubcontractor.AcceptButtonCaption = Nothing
|
||||
Me.aProjectSubcontractor_AddSubcontractor.CancelButtonCaption = Nothing
|
||||
Me.aProjectSubcontractor_AddSubcontractor.Caption = "aProjectSubcontractor_AddSubcontractor"
|
||||
Me.aProjectSubcontractor_AddSubcontractor.Category = "ObjectsCreation"
|
||||
Me.aProjectSubcontractor_AddSubcontractor.ConfirmationMessage = Nothing
|
||||
Me.aProjectSubcontractor_AddSubcontractor.Id = "aProjectSubcontractor_AddSubcontractor"
|
||||
Me.aProjectSubcontractor_AddSubcontractor.ImageName = Nothing
|
||||
Me.aProjectSubcontractor_AddSubcontractor.Shortcut = Nothing
|
||||
Me.aProjectSubcontractor_AddSubcontractor.Tag = Nothing
|
||||
Me.aProjectSubcontractor_AddSubcontractor.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectSubcontractor_AddSubcontractor.TargetObjectType = GetType(Nuvolar.[Module].ProjectSubcontractor)
|
||||
Me.aProjectSubcontractor_AddSubcontractor.TargetViewId = ""
|
||||
Me.aProjectSubcontractor_AddSubcontractor.ToolTip = Nothing
|
||||
Me.aProjectSubcontractor_AddSubcontractor.TypeOfView = Nothing
|
||||
'
|
||||
'aProjectCustomers_AddRowsCustomers
|
||||
'
|
||||
Me.aProjectCustomers_AddRowsCustomers.AcceptButtonCaption = Nothing
|
||||
Me.aProjectCustomers_AddRowsCustomers.CancelButtonCaption = Nothing
|
||||
Me.aProjectCustomers_AddRowsCustomers.Caption = "aProjectCustomers_AddRowsCustomers"
|
||||
Me.aProjectCustomers_AddRowsCustomers.Category = "ObjectsCreation"
|
||||
Me.aProjectCustomers_AddRowsCustomers.ConfirmationMessage = Nothing
|
||||
Me.aProjectCustomers_AddRowsCustomers.Id = "aProjectCustomers_AddRowsCustomers"
|
||||
Me.aProjectCustomers_AddRowsCustomers.ImageName = Nothing
|
||||
Me.aProjectCustomers_AddRowsCustomers.Shortcut = Nothing
|
||||
Me.aProjectCustomers_AddRowsCustomers.Tag = Nothing
|
||||
Me.aProjectCustomers_AddRowsCustomers.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectCustomers_AddRowsCustomers.TargetObjectType = GetType(Nuvolar.[Module].ProjectCustomers)
|
||||
Me.aProjectCustomers_AddRowsCustomers.TargetViewId = ""
|
||||
Me.aProjectCustomers_AddRowsCustomers.ToolTip = Nothing
|
||||
Me.aProjectCustomers_AddRowsCustomers.TypeOfView = Nothing
|
||||
'
|
||||
'aProjectCustomers_AddRowsContacts
|
||||
'
|
||||
Me.aProjectCustomers_AddRowsContacts.AcceptButtonCaption = Nothing
|
||||
Me.aProjectCustomers_AddRowsContacts.CancelButtonCaption = Nothing
|
||||
Me.aProjectCustomers_AddRowsContacts.Caption = "aProjectCustomers_AddRowsContacts"
|
||||
Me.aProjectCustomers_AddRowsContacts.Category = "ObjectsCreation"
|
||||
Me.aProjectCustomers_AddRowsContacts.ConfirmationMessage = Nothing
|
||||
Me.aProjectCustomers_AddRowsContacts.Id = "aProjectCustomers_AddRowsContacts"
|
||||
Me.aProjectCustomers_AddRowsContacts.ImageName = Nothing
|
||||
Me.aProjectCustomers_AddRowsContacts.Shortcut = Nothing
|
||||
Me.aProjectCustomers_AddRowsContacts.Tag = Nothing
|
||||
Me.aProjectCustomers_AddRowsContacts.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectCustomers_AddRowsContacts.TargetObjectType = GetType(Nuvolar.[Module].ProjectContacts)
|
||||
Me.aProjectCustomers_AddRowsContacts.TargetViewId = ""
|
||||
Me.aProjectCustomers_AddRowsContacts.ToolTip = Nothing
|
||||
Me.aProjectCustomers_AddRowsContacts.TypeOfView = Nothing
|
||||
'
|
||||
'aProjectRowsCustomers_AddRowsContacts
|
||||
'
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.AcceptButtonCaption = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.CancelButtonCaption = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.Caption = "aProjectRowsCustomers_AddRowsContacts"
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.Category = "ObjectsCreation"
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.ConfirmationMessage = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.Id = "aProjectRowsCustomers_AddRowsContacts"
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.ImageName = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.Shortcut = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.Tag = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.TargetObjectsCriteria = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.TargetObjectType = GetType(Nuvolar.[Module].ProjectRowsContacts)
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.TargetViewId = ""
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.ToolTip = Nothing
|
||||
Me.aProjectRowsCustomers_AddRowsContacts.TypeOfView = Nothing
|
||||
|
||||
End Sub
|
||||
Protected WithEvents aProjectAddRow As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Protected WithEvents aProjectEditRow As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Protected WithEvents aProjectDeleteRow As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Protected WithEvents aProjectRefreshG2antt As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aProjectRowsHRPerson_AddHRPerson As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aProjectRowsSubcontractor_AddSubcontractor As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aProjectRowsCustomers_AddRowsCustomers As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aProjectHRPerson_AddHRPerson As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aProjectSubcontractor_AddSubcontractor As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aProjectCustomers_AddRowsCustomers As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aProjectCustomers_AddRowsContacts As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
Friend WithEvents aProjectRowsCustomers_AddRowsContacts As DevExpress.ExpressApp.Actions.PopupWindowShowAction
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,159 @@
|
||||
<?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="aProjectAddRow.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 290</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectEditRow.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 446</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectDeleteRow.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 407</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectRefreshG2antt.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 368</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectRowsHRPerson_AddHRPerson.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 329</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectRowsSubcontractor_AddSubcontractor.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 212</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectRowsCustomers_AddRowsCustomers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 251</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectHRPerson_AddHRPerson.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 173</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectSubcontractor_AddSubcontractor.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 134</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectCustomers_AddRowsCustomers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 95</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectCustomers_AddRowsContacts.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<metadata name="aProjectRowsCustomers_AddRowsContacts.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>600, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -0,0 +1,424 @@
|
||||
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.Data.Filtering
|
||||
Imports DevExpress.Persistent.BaseImpl
|
||||
Imports DevExpress.ExpressApp.Utils
|
||||
|
||||
Public Class ProjectVC
|
||||
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 = "ProjectHeader_ProjectHRPerson_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "ProjectHeader_ProjectSubcontractor_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "ProjectHeader_ProjectCustomers_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "ProjectRows_ProjectRowsCustomers_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "ProjectRows_ProjectRowsHRPerson_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "ProjectRows_ProjectRowsSubcontractor_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", False)
|
||||
End If
|
||||
End Sub
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
If View.Id = "ProjectHeader_ProjectHRPerson_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "ProjectHeader_ProjectSubcontractor_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "ProjectHeader_ProjectCustomers_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "ProjectRows_ProjectRowsCustomers_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "ProjectRows_ProjectRowsHRPerson_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", True)
|
||||
End If
|
||||
If View.Id = "ProjectRows_ProjectRowsSubcontractor_ListView" Then
|
||||
Frame.GetController(Of LinkUnlinkController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController)().Active.SetItemValue("", True)
|
||||
Frame.GetController(Of CloneObject.CloneObjectViewController).Active.SetItemValue("", True)
|
||||
End If
|
||||
End Sub
|
||||
Overridable Sub aProjectEditRow_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aProjectEditRow.Execute
|
||||
End Sub
|
||||
Overridable Sub aProjectAddRow_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aProjectAddRow.Execute
|
||||
End Sub
|
||||
Overridable Sub aProjectDeleteRow_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aProjectDeleteRow.Execute
|
||||
End Sub
|
||||
Private Sub aProjectRowsHRPerson_AddHRPerson_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aProjectRowsHRPerson_AddHRPerson.CustomizePopupWindowParams
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _HRPerson_CollectionSource As New CollectionSource(_onew, GetType(HRPerson))
|
||||
|
||||
e.View = Application.CreateListView("HRPerson_ListView", _HRPerson_CollectionSource, False)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectRowsHRPerson_AddHRPerson_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aProjectRowsHRPerson_AddHRPerson.Execute
|
||||
Try
|
||||
If e.PopupWindow.View.SelectedObjects.Count = 0 Then Throw New Exception("*Nem lett kiválasztva egyetlen sor sem!")
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ProjectRows As ProjectRows = TryCast(TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject, ProjectRows)
|
||||
If _ProjectRows Is Nothing Then Throw New Exception("*Váratlan hiba történt, a folyamat megszakadt!")
|
||||
For Each _HRPerson As HRPerson In e.PopupWindow.View.SelectedObjects
|
||||
Dim _ProjectRowsHRPerson As New ProjectRowsHRPerson(_ocur.Session)
|
||||
With (_ProjectRowsHRPerson)
|
||||
.ProjectRows = _ocur.GetObjectByKey(Of ProjectRows)(_ProjectRows.Oid)
|
||||
.HRPerson = _ocur.GetObjectByKey(Of HRPerson)(_HRPerson.Oid)
|
||||
End With
|
||||
Next
|
||||
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectRowsSubcontractor_AddSubcontractor_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aProjectRowsSubcontractor_AddSubcontractor.CustomizePopupWindowParams
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _Subcontractor_CollectionSource As New CollectionSource(_onew, GetType(Subcontractor))
|
||||
Dim _User_Collection As New XPCollection(Of User)(_onew.Session)
|
||||
Dim _Filter As String = "Oid in("
|
||||
For Each _User As User In _User_Collection
|
||||
Dim _Contacts As Contacts = _onew.FindObject(Of Contacts)(CriteriaOperator.Parse("User=?", _User))
|
||||
If _Contacts IsNot Nothing Then
|
||||
If _Contacts.Customers IsNot Nothing Then
|
||||
Dim _Subcontractor As Subcontractor = _onew.FindObject(Of Subcontractor)(CriteriaOperator.Parse("Customers=?", _Contacts.Customers))
|
||||
If _Subcontractor IsNot Nothing Then
|
||||
_Filter += "'" + _Subcontractor.Oid.ToString + "',"
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
_Filter = _Filter.Remove(_Filter.Length - 1, 1)
|
||||
_Filter += ")"
|
||||
_Subcontractor_CollectionSource.BeginUpdateCriteria()
|
||||
_Subcontractor_CollectionSource.Criteria.Clear()
|
||||
If _Filter.Length > 8 Then
|
||||
_Subcontractor_CollectionSource.Criteria.Add("1", CriteriaOperator.Parse(_Filter))
|
||||
Else
|
||||
_Subcontractor_CollectionSource.Criteria.Add("1", CriteriaOperator.Parse("1=2"))
|
||||
End If
|
||||
|
||||
e.View = Application.CreateListView("Subcontractor_ListView", _Subcontractor_CollectionSource, False)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectRowsSubcontractor_AddSubcontractor_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aProjectRowsSubcontractor_AddSubcontractor.Execute
|
||||
Try
|
||||
If e.PopupWindow.View.SelectedObjects.Count = 0 Then Throw New Exception("*Nem lett kiválasztva egyetlen sor sem!")
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ProjectRows As ProjectRows = TryCast(TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject, ProjectRows)
|
||||
If _ProjectRows Is Nothing Then Throw New Exception("*Váratlan hiba történt, a folyamat megszakadt!")
|
||||
For Each _Subcontractor As Subcontractor In e.PopupWindow.View.SelectedObjects
|
||||
Dim _ProjectRowsSubcontractor As New ProjectRowsSubcontractor(_ocur.Session)
|
||||
With (_ProjectRowsSubcontractor)
|
||||
.ProjectRows = _ocur.GetObjectByKey(Of ProjectRows)(_ProjectRows.Oid)
|
||||
.Subcontractor = _ocur.GetObjectByKey(Of Subcontractor)(_Subcontractor.Oid)
|
||||
End With
|
||||
Next
|
||||
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectRowsCustomers_AddRowsCustomers_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aProjectRowsCustomers_AddRowsCustomers.CustomizePopupWindowParams
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _Customers_CollectionSource As New CollectionSource(_onew, GetType(Customers))
|
||||
Dim _User_Collection As New XPCollection(Of User)(_onew.Session)
|
||||
Dim _Filter As String = "Oid in("
|
||||
For Each _User As User In _User_Collection
|
||||
Dim _Contacts As Contacts = _onew.FindObject(Of Contacts)(CriteriaOperator.Parse("User=?", _User))
|
||||
If _Contacts IsNot Nothing Then
|
||||
If _Contacts.Customers IsNot Nothing Then
|
||||
_Filter += "'" + _Contacts.Customers.Oid.ToString + "',"
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
_Filter = _Filter.Remove(_Filter.Length - 1, 1)
|
||||
_Filter += ")"
|
||||
|
||||
_Customers_CollectionSource.BeginUpdateCriteria()
|
||||
_Customers_CollectionSource.Criteria.Clear()
|
||||
If _Filter.Length > 8 Then
|
||||
_Customers_CollectionSource.Criteria.Add("1", CriteriaOperator.Parse(_Filter))
|
||||
Else
|
||||
_Customers_CollectionSource.Criteria.Add("1", CriteriaOperator.Parse("1=2"))
|
||||
End If
|
||||
_Customers_CollectionSource.EndUpdateCriteria()
|
||||
|
||||
e.View = Application.CreateListView("Customers_ListView", _Customers_CollectionSource, False)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectRowsCustomers_AddRowsCustomers_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aProjectRowsCustomers_AddRowsCustomers.Execute
|
||||
Try
|
||||
If e.PopupWindow.View.SelectedObjects.Count = 0 Then Throw New Exception("*Nem lett kiválasztva egyetlen sor sem!")
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ProjectRows As ProjectRows = TryCast(TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject, ProjectRows)
|
||||
If _ProjectRows Is Nothing Then Throw New Exception("*Váratlan hiba történt, a folyamat megszakadt!")
|
||||
For Each _Customers As Customers In e.PopupWindow.View.SelectedObjects
|
||||
Dim _ProjectRowsCustomers As New ProjectRowsCustomers(_ocur.Session)
|
||||
With (_ProjectRowsCustomers)
|
||||
.ProjectRows = _ocur.GetObjectByKey(Of ProjectRows)(_ProjectRows.Oid)
|
||||
.Customers = _ocur.GetObjectByKey(Of Customers)(_Customers.Oid)
|
||||
End With
|
||||
Next
|
||||
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectHRPerson_AddHRPerson_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aProjectHRPerson_AddHRPerson.CustomizePopupWindowParams
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _HRPerson_CollectionSource As New CollectionSource(_onew, GetType(HRPerson))
|
||||
|
||||
e.View = Application.CreateListView("HRPerson_ListView", _HRPerson_CollectionSource, False)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectHRPerson_AddHRPerson_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aProjectHRPerson_AddHRPerson.Execute
|
||||
Try
|
||||
If e.PopupWindow.View.SelectedObjects.Count = 0 Then Throw New Exception("*Nem lett kiválasztva egyetlen sor sem!")
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ProjectHeader As ProjectHeader = TryCast(TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject, ProjectHeader)
|
||||
If _ProjectHeader Is Nothing Then Throw New Exception("*Váratlan hiba történt, a folyamat megszakadt!")
|
||||
For Each _HRPerson As HRPerson In e.PopupWindow.View.SelectedObjects
|
||||
Dim _ProjectHRPerson As New ProjectHRPerson(_ocur.Session)
|
||||
With (_ProjectHRPerson)
|
||||
.ProjectHeader = _ProjectHeader
|
||||
.HRPerson = _ocur.GetObjectByKey(Of HRPerson)(_HRPerson.Oid)
|
||||
End With
|
||||
Next
|
||||
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectCustomers_AddRowsCustomers_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aProjectCustomers_AddRowsCustomers.CustomizePopupWindowParams
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _Customers_CollectionSource As New CollectionSource(_onew, GetType(Customers))
|
||||
Dim _User_Collection As New XPCollection(Of User)(_onew.Session)
|
||||
Dim _Filter As String = "Oid in("
|
||||
For Each _User As User In _User_Collection
|
||||
Dim _Contacts As Contacts = _onew.FindObject(Of Contacts)(CriteriaOperator.Parse("User=?", _User))
|
||||
If _Contacts IsNot Nothing Then
|
||||
If _Contacts.Customers IsNot Nothing Then
|
||||
_Filter += "'" + _Contacts.Customers.Oid.ToString + "',"
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
_Filter = _Filter.Remove(_Filter.Length - 1, 1)
|
||||
_Filter += ")"
|
||||
|
||||
_Customers_CollectionSource.BeginUpdateCriteria()
|
||||
_Customers_CollectionSource.Criteria.Clear()
|
||||
If _Filter.Length > 8 Then
|
||||
_Customers_CollectionSource.Criteria.Add("1", CriteriaOperator.Parse(_Filter))
|
||||
Else
|
||||
_Customers_CollectionSource.Criteria.Add("1", CriteriaOperator.Parse("1=2"))
|
||||
End If
|
||||
_Customers_CollectionSource.EndUpdateCriteria()
|
||||
|
||||
e.View = Application.CreateListView("Customers_ListView", _Customers_CollectionSource, False)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectCustomers_AddRowsCustomers_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aProjectCustomers_AddRowsCustomers.Execute
|
||||
Try
|
||||
If e.PopupWindow.View.SelectedObjects.Count = 0 Then Throw New Exception("*Nem lett kiválasztva egyetlen sor sem!")
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ProjectHeader As ProjectHeader = TryCast(TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject, ProjectHeader)
|
||||
If _ProjectHeader Is Nothing Then Throw New Exception("*Váratlan hiba történt, a folyamat megszakadt!")
|
||||
For Each _Customers As Customers In e.PopupWindow.View.SelectedObjects
|
||||
Dim _ProjectCustomers As New ProjectCustomers(_ocur.Session)
|
||||
With (_ProjectCustomers)
|
||||
.ProjectHeader = _ProjectHeader
|
||||
.Customers = _ocur.GetObjectByKey(Of Customers)(_Customers.Oid)
|
||||
End With
|
||||
Next
|
||||
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectSubcontractor_AddSubcontractor_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aProjectSubcontractor_AddSubcontractor.CustomizePopupWindowParams
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _Subcontractor_CollectionSource As New CollectionSource(_onew, GetType(Subcontractor))
|
||||
Dim _User_Collection As New XPCollection(Of User)(_onew.Session)
|
||||
Dim _Filter As String = "Oid in("
|
||||
For Each _User As User In _User_Collection
|
||||
Dim _Contacts As Contacts = _onew.FindObject(Of Contacts)(CriteriaOperator.Parse("User=?", _User))
|
||||
If _Contacts IsNot Nothing Then
|
||||
If _Contacts.Customers IsNot Nothing Then
|
||||
Dim _Subcontractor As Subcontractor = _onew.FindObject(Of Subcontractor)(CriteriaOperator.Parse("Customers=?", _Contacts.Customers))
|
||||
If _Subcontractor IsNot Nothing Then
|
||||
_Filter += "'" + _Subcontractor.Oid.ToString + "',"
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
_Filter = _Filter.Remove(_Filter.Length - 1, 1)
|
||||
_Filter += ")"
|
||||
_Subcontractor_CollectionSource.BeginUpdateCriteria()
|
||||
_Subcontractor_CollectionSource.Criteria.Clear()
|
||||
If _Filter.Length > 8 Then
|
||||
_Subcontractor_CollectionSource.Criteria.Add("1", CriteriaOperator.Parse(_Filter))
|
||||
Else
|
||||
_Subcontractor_CollectionSource.Criteria.Add("1", CriteriaOperator.Parse("1=2"))
|
||||
End If
|
||||
|
||||
e.View = Application.CreateListView("Subcontractor_ListView", _Subcontractor_CollectionSource, False)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectSubcontractor_AddSubcontractor_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aProjectSubcontractor_AddSubcontractor.Execute
|
||||
Try
|
||||
If e.PopupWindow.View.SelectedObjects.Count = 0 Then Throw New Exception("*Nem lett kiválasztva egyetlen sor sem!")
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ProjectHeader As ProjectHeader = TryCast(TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject, ProjectHeader)
|
||||
If _ProjectHeader Is Nothing Then Throw New Exception("*Váratlan hiba történt, a folyamat megszakadt!")
|
||||
For Each _Subcontractor As Subcontractor In e.PopupWindow.View.SelectedObjects
|
||||
Dim _ProjectSubcontractor As New ProjectSubcontractor(_ocur.Session)
|
||||
With (_ProjectSubcontractor)
|
||||
.ProjectHeader = _ProjectHeader
|
||||
.Subcontractor = _ocur.GetObjectByKey(Of Subcontractor)(_Subcontractor.Oid)
|
||||
End With
|
||||
Next
|
||||
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, String.Format(CaptionHelper.GetLocalizedText("Exceptions\NuvolarExceptions", "MsgBoxCheckItAgain")))
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub aProjectCustomers_AddRowsContacts_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aProjectCustomers_AddRowsContacts.CustomizePopupWindowParams
|
||||
Try
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _Contacts_CollectionSource As New CollectionSource(_onew, GetType(Contacts))
|
||||
|
||||
e.View = Application.CreateListView("Contacts_ListView", _Contacts_CollectionSource, False)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, "Hiba!")
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectCustomers_AddRowsContacts_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aProjectCustomers_AddRowsContacts.Execute
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ProjectHeader As ProjectHeader = TryCast(TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject, ProjectHeader)
|
||||
If _ProjectHeader Is Nothing Then Throw New Exception("*Váratlan hiba történt, a folyamat megszakadt!")
|
||||
|
||||
For Each _Contacts As Contacts In e.PopupWindow.View.SelectedObjects
|
||||
Dim _ProjectContacts As New ProjectContacts(_ocur.Session)
|
||||
With _ProjectContacts
|
||||
.ProjectHeader = _ProjectHeader
|
||||
.Contacts = _ocur.GetObject(_Contacts)
|
||||
End With
|
||||
Next
|
||||
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, "Hiba!")
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectRowsCustomers_AddRowsContacts_CustomizePopupWindowParams(sender As Object, e As CustomizePopupWindowParamsEventArgs) Handles aProjectRowsCustomers_AddRowsContacts.CustomizePopupWindowParams
|
||||
Try
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _Contacts_CollectionSource As New CollectionSource(_onew, GetType(Contacts))
|
||||
|
||||
e.View = Application.CreateListView("Contacts_ListView", _Contacts_CollectionSource, False)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, "Hiba!")
|
||||
End Try
|
||||
End Sub
|
||||
Private Sub aProjectRowsCustomers_AddRowsContacts_Execute(sender As Object, e As PopupWindowShowActionExecuteEventArgs) Handles aProjectRowsCustomers_AddRowsContacts.Execute
|
||||
Try
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
Dim _ProjectRows As ProjectRows = TryCast(TryCast(TryCast(View, ListView).CollectionSource, PropertyCollectionSource).MasterObject, ProjectRows)
|
||||
If _ProjectRows Is Nothing Then Throw New Exception("*Váratlan hiba történt, a folyamat megszakadt!")
|
||||
|
||||
For Each _Contacts As Contacts In e.PopupWindow.View.SelectedObjects
|
||||
Dim _ProjectRowsContacts As New ProjectRowsContacts(_ocur.Session)
|
||||
With _ProjectRowsContacts
|
||||
.ProjectRows = _ProjectRows
|
||||
.Contacts = _ocur.GetObject(_Contacts)
|
||||
End With
|
||||
Next
|
||||
|
||||
_ocur.CommitChanges()
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.OkOnly + MsgBoxStyle.Critical, "Hiba!")
|
||||
End Try
|
||||
End Sub
|
||||
End Class
|
||||
Reference in New Issue
Block a user