First create solution
This commit is contained in:
+65
@@ -0,0 +1,65 @@
|
||||
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()> _
|
||||
<NavigationItem(False)> _
|
||||
<CreatableItem(False)> _
|
||||
Public Class Installation_ChangeGroups_PopUp
|
||||
Inherits BaseObject
|
||||
|
||||
Private _RowGroup1 As String 'Szöveges csoportosítás (nem kötelezõ)
|
||||
Private _Change_RowGroup1 As Boolean
|
||||
Private _RowGroup2 As String 'Szöveges másodlagos csoportosítás (nem kötelezõ)
|
||||
Private _Change_RowGroup2 As Boolean
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
Change_RowGroup1 = True
|
||||
Change_RowGroup2 = True
|
||||
End Sub
|
||||
|
||||
Property RowGroup1 As String
|
||||
Get
|
||||
Return _RowGroup1
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("RowGroup1", _RowGroup1, value)
|
||||
End Set
|
||||
End Property
|
||||
Property RowGroup2 As String
|
||||
Get
|
||||
Return _RowGroup2
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("RowGroup2", _RowGroup2, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Change_RowGroup1 As Boolean
|
||||
Get
|
||||
Return _Change_RowGroup1
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("Change_RowGroup1", _Change_RowGroup1, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Change_RowGroup2 As Boolean
|
||||
Get
|
||||
Return _Change_RowGroup2
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("Change_RowGroup2", _Change_RowGroup2, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,132 @@
|
||||
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 ePriceMode
|
||||
eDEVToHUF = 0
|
||||
eHUFToDEV = 1
|
||||
End Enum
|
||||
<DefaultClassOptions()> _
|
||||
<NavigationItem(False), CreatableItem(False)> _
|
||||
Public Class ModifyProductsParameters
|
||||
Inherits BaseObject
|
||||
|
||||
Private _CurrencyRate As Double
|
||||
Private _CurrencyName As CurrencyName
|
||||
Private _ProductType As eProductType
|
||||
Private _IsProductType As Boolean = False
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
CurrencyName = Session.FindObject(Of CurrencyName)(Session.ParseCriteria("ShortName='HUF'"))
|
||||
End Sub
|
||||
|
||||
<NonPersistent()> Property Parameter_01 As String
|
||||
<NonPersistent()> Property Parameter_02 As String
|
||||
<NonPersistent()> Property Parameter_03 As String
|
||||
<NonPersistent()> Property Parameter_04 As String
|
||||
<NonPersistent()> Property Parameter_05 As String
|
||||
<NonPersistent()> Property Parameter_06 As String
|
||||
<NonPersistent()> Property Parameter_07 As String
|
||||
<NonPersistent()> Property Parameter_08 As String
|
||||
<NonPersistent()> Property Parameter_09 As String
|
||||
<NonPersistent()> Property Parameter_10 As String
|
||||
<NonPersistent()> Property IsParameter_01 As Boolean = False
|
||||
<NonPersistent()> Property IsParameter_02 As Boolean = False
|
||||
<NonPersistent()> Property IsParameter_03 As Boolean = False
|
||||
<NonPersistent()> Property IsParameter_04 As Boolean = False
|
||||
<NonPersistent()> Property IsParameter_05 As Boolean = False
|
||||
<NonPersistent()> Property IsParameter_06 As Boolean = False
|
||||
<NonPersistent()> Property IsParameter_07 As Boolean = False
|
||||
<NonPersistent()> Property IsParameter_08 As Boolean = False
|
||||
<NonPersistent()> Property IsParameter_09 As Boolean = False
|
||||
<NonPersistent()> Property IsParameter_10 As Boolean = False
|
||||
<NonPersistent()> Property IsCurrencyName As Boolean = False
|
||||
<NonPersistent()> Property IsCustomsTariffs As Boolean = False
|
||||
<NonPersistent()> Property IsCountryFrom As Boolean = False
|
||||
<NonPersistent()> Property IsCustomersOrder1 As Boolean = False
|
||||
<NonPersistent()> Property IsCustomersOrder2 As Boolean = False
|
||||
<NonPersistent()> Property IsCustomersOrder3 As Boolean = False
|
||||
<NonPersistent()> Property ProductsGroups As ProductsGroups
|
||||
<NonPersistent()> Property IsUnits As Boolean = False
|
||||
<NonPersistent()> Property IsVAT As Boolean = False
|
||||
<NonPersistent()> Property CustomersOrder1 As CustomersOrder
|
||||
<NonPersistent()> Property CustomersOrder2 As CustomersOrder
|
||||
<NonPersistent()> Property CustomersOrder3 As CustomersOrder
|
||||
<NonPersistent()> Property Units As Units
|
||||
<NonPersistent()> Property VAT As VAT
|
||||
<NonPersistent()> Property CustomsTariffs As CustomsTariffs
|
||||
<NonPersistent()> Property CountryFrom As Country
|
||||
<NonPersistent()> Property IsListPriceHUF As Boolean = False 'Listaár módosuljon ?
|
||||
<NonPersistent()> Property IsListPriceDEV As Boolean = False 'Listaár módosuljon ?
|
||||
<NonPersistent()> Property ListPricePercent As Double = 0 'Listaár %-kal módosul ? termékár változás
|
||||
<NonPersistent()> Property IsListPriceRegenerate As Boolean = False 'Listaár újraszámolódjon ? valuta váltás
|
||||
<NonPersistent()> Property PriceMode As ePriceMode = ePriceMode.eDEVToHUF
|
||||
<NonPersistent()> Property IsProducer As Boolean = False
|
||||
<NonPersistent()> Property Producer As Customers
|
||||
<NonPersistent()> Property IsDecimalIn As Boolean
|
||||
<NonPersistent()> Property IsDecimalOut As Boolean
|
||||
<NonPersistent()> Property DecimalIn As Double
|
||||
<NonPersistent()> Property DecimalOut As Double
|
||||
|
||||
|
||||
<NonPersistent()>
|
||||
<ImmediatePostData(True)> _
|
||||
Property CurrencyName As CurrencyName
|
||||
Get
|
||||
Return _CurrencyName
|
||||
End Get
|
||||
Set(value As CurrencyName)
|
||||
SetPropertyValue("CurrencyName", _CurrencyName, value)
|
||||
If Not Session.IsObjectsSaving And Not Session.IsObjectsLoading And value.ShortName <> "HUF" Then
|
||||
Dim _CurrencyRate As CurrencyRate = Session.FindObject(Of CurrencyRate)(Session.ParseCriteria("IsMNB=? AND GetDate(DateValid)=? AND CurrencyName=?", True, GetSQLTime(Session).Date, value))
|
||||
If _CurrencyRate Is Nothing Then
|
||||
_CurrencyRate = Session.FindObject(Of CurrencyRate)(Session.ParseCriteria("IsMNB=? AND GetDate(DateValid)=?", True, GetSQLTime(Session).Date.AddDays(-1)))
|
||||
If _CurrencyRate IsNot Nothing Then
|
||||
CurrencyRate = _CurrencyRate.RateAverage
|
||||
End If
|
||||
Else
|
||||
If _CurrencyRate IsNot Nothing Then
|
||||
CurrencyRate = _CurrencyRate.RateAverage
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
Property CurrencyRate As Double
|
||||
Get
|
||||
Return _CurrencyRate
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("CurrencyRate", _CurrencyRate, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()>
|
||||
Property ProductType As eProductType
|
||||
Get
|
||||
Return _ProductType
|
||||
End Get
|
||||
Set(value As eProductType)
|
||||
SetPropertyValue("ProductType", _ProductType, value)
|
||||
End Set
|
||||
End Property
|
||||
<NonPersistent()> _
|
||||
Property IsProductType As Boolean
|
||||
Get
|
||||
Return _IsProductType
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("IsProductType", _IsProductType, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,84 @@
|
||||
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 ProductFinder
|
||||
Inherits BaseObject
|
||||
Private _MasterKey As Guid
|
||||
Private _Products As Products
|
||||
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
|
||||
<Browsable(False)> _
|
||||
Property MasterKey As Guid
|
||||
Get
|
||||
Return _MasterKey
|
||||
End Get
|
||||
Set(value As Guid)
|
||||
SetPropertyValue("MasterKey", _MasterKey, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData(), Browsable(False)>
|
||||
Property Products As Products
|
||||
Get
|
||||
Return _Products
|
||||
End Get
|
||||
Set(value As Products)
|
||||
SetPropertyValue("Products", _Products, value)
|
||||
If Session.IsObjectsSaving = False And Session.IsObjectsLoading = False Then
|
||||
Dim c As XPCollection(Of ProductFinderInfo)
|
||||
c = Me.ProductFinderInfo
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property ProductSelect As XPCollection(Of ProductSelect)
|
||||
Get
|
||||
Return New XPCollection(Of ProductSelect)(Session)
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property ProductSelected As XPCollection(Of ProductSelected)
|
||||
Get
|
||||
Return New XPCollection(Of ProductSelected)(Session, CriteriaOperator.Parse("MasterKey=?", Me.MasterKey))
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property StorageOutCirculation As XPCollection(Of StorageOutCirculation)
|
||||
Get
|
||||
Return New XPCollection(Of StorageOutCirculation)(Session, CriteriaOperator.Parse("1=2"))
|
||||
End Get
|
||||
End Property
|
||||
ReadOnly Property StorageComputedInfo As XPCollection(Of StorageComputedInfo)
|
||||
Get
|
||||
Return New XPCollection(Of StorageComputedInfo)(Session, CriteriaOperator.Parse("1=2"))
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property ProductFinderInfo As XPCollection(Of ProductFinderInfo)
|
||||
Get
|
||||
Return New XPCollection(Of ProductFinderInfo)(Session, CriteriaOperator.Parse("1=2"))
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,52 @@
|
||||
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 ProductFinderFIFO
|
||||
Inherits BaseObject
|
||||
Private _MasterKey As Guid
|
||||
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
|
||||
<Browsable(False)> _
|
||||
Property MasterKey As Guid
|
||||
Get
|
||||
Return _MasterKey
|
||||
End Get
|
||||
Set(value As Guid)
|
||||
SetPropertyValue("MasterKey", _MasterKey, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
ReadOnly Property StorageInRows As XPCollection(Of StorageInRows)
|
||||
Get
|
||||
Return New XPCollection(Of StorageInRows)(Session, CriteriaOperator.Parse(""))
|
||||
End Get
|
||||
End Property
|
||||
ReadOnly Property ProductSelectedFIFO As XPCollection(Of ProductSelectedFIFO)
|
||||
Get
|
||||
Return New XPCollection(Of ProductSelectedFIFO)(Session, CriteriaOperator.Parse("MasterKey=?", Me.MasterKey))
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,46 @@
|
||||
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()> _
|
||||
<CreatableItem(False)> _
|
||||
<NavigationItem(False)> _
|
||||
<Appearance("Set PropertyName Font style", AppearanceItemType:="ViewItem", FontStyle:=Drawing.FontStyle.Bold, TargetItems:="PropertyName")> _
|
||||
Public Class ProductFinderInfo
|
||||
Inherits BaseObject
|
||||
Private _PropertyName As String
|
||||
Private _InfoString As String
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
Property PropertyName As String
|
||||
Get
|
||||
Return _PropertyName
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("PropertyName", _PropertyName, value)
|
||||
End Set
|
||||
End Property
|
||||
<Size(-1)> _
|
||||
Property InfoString As String
|
||||
Get
|
||||
Return _InfoString
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("InfoString", _InfoString, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
Partial Class ProductFinderVC
|
||||
|
||||
<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.aToTableProductFinder = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
Me.aToTableD_ProductFinder = New DevExpress.ExpressApp.Actions.SimpleAction(Me.components)
|
||||
'
|
||||
'aToTableProductFinder
|
||||
'
|
||||
Me.aToTableProductFinder.Caption = "aTo Table Product Finder"
|
||||
Me.aToTableProductFinder.Category = "aToTableProductFinder"
|
||||
Me.aToTableProductFinder.ConfirmationMessage = Nothing
|
||||
Me.aToTableProductFinder.Id = "aToTableProductFinder"
|
||||
Me.aToTableProductFinder.ImageName = Nothing
|
||||
Me.aToTableProductFinder.Shortcut = "Add"
|
||||
Me.aToTableProductFinder.Tag = Nothing
|
||||
Me.aToTableProductFinder.TargetObjectsCriteria = Nothing
|
||||
Me.aToTableProductFinder.TargetObjectType = GetType(Nuvolar.[Module].ProductFinder)
|
||||
Me.aToTableProductFinder.TargetViewId = Nothing
|
||||
Me.aToTableProductFinder.ToolTip = Nothing
|
||||
Me.aToTableProductFinder.TypeOfView = Nothing
|
||||
'
|
||||
'aToTableD_ProductFinder
|
||||
'
|
||||
Me.aToTableD_ProductFinder.Caption = "aToTableD_ProductFinder"
|
||||
Me.aToTableD_ProductFinder.Category = "aToTableD_ProductFinder"
|
||||
Me.aToTableD_ProductFinder.ConfirmationMessage = "Do you want to execute command ?"
|
||||
Me.aToTableD_ProductFinder.Id = "aToTableD_ProductFinder"
|
||||
Me.aToTableD_ProductFinder.ImageName = Nothing
|
||||
Me.aToTableD_ProductFinder.Shortcut = "Subtract"
|
||||
Me.aToTableD_ProductFinder.Tag = Nothing
|
||||
Me.aToTableD_ProductFinder.TargetObjectsCriteria = Nothing
|
||||
Me.aToTableD_ProductFinder.TargetObjectType = GetType(Nuvolar.[Module].ProductFinder)
|
||||
Me.aToTableD_ProductFinder.TargetViewId = Nothing
|
||||
Me.aToTableD_ProductFinder.ToolTip = Nothing
|
||||
Me.aToTableD_ProductFinder.TypeOfView = Nothing
|
||||
|
||||
End Sub
|
||||
Friend WithEvents aToTableProductFinder As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
Friend WithEvents aToTableD_ProductFinder As DevExpress.ExpressApp.Actions.SimpleAction
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,129 @@
|
||||
<?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="aToTableProductFinder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="aToTableD_ProductFinder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>195, 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,126 @@
|
||||
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.ExpressApp.CloneObject
|
||||
Imports DevExpress.Xpo
|
||||
Imports DevExpress.ExpressApp.Editors
|
||||
Imports DevExpress.Data.Filtering
|
||||
|
||||
Public Class ProductFinderVC
|
||||
Inherits DevExpress.ExpressApp.ViewController
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
|
||||
'This call is required by the Component Designer.
|
||||
InitializeComponent()
|
||||
RegisterActions(components)
|
||||
|
||||
End Sub
|
||||
Protected Overrides Sub OnActivated()
|
||||
MyBase.OnActivated()
|
||||
|
||||
Frame.GetController(Of ProductFinderVC).aToTableProductFinder.Active.SetItemValue("", False)
|
||||
|
||||
If View.Id = "ProductFinder_DetailView" Then
|
||||
Frame.GetController(Of ProductFinderVC).aToTableProductFinder.Active.SetItemValue("", True)
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of ListViewProcessCurrentObjectController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of ModificationsController).Active.SetItemValue("", False)
|
||||
|
||||
End If
|
||||
If View.Id = "ProductFinder_ProductSelect_ListView" Then
|
||||
Frame.GetController(Of ListViewProcessCurrentObjectController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "ProductFinder_ProductSelected_ListView" Then
|
||||
Frame.GetController(Of ListViewProcessCurrentObjectController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", False)
|
||||
End If
|
||||
If View.Id = "ProductFinder_StorageOutCirculation_ListView" Then
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of ListViewProcessCurrentObjectController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", False)
|
||||
|
||||
End If
|
||||
If View.Id = "ProductFinder_ProductFinderInfo_ListView" Then
|
||||
Frame.GetController(Of NewObjectViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of ListViewProcessCurrentObjectController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of LinkUnlinkController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of CloneObjectViewController).Active.SetItemValue("", False)
|
||||
|
||||
End If
|
||||
End Sub
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub aToTableProductFinder_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aToTableProductFinder.Execute
|
||||
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
|
||||
|
||||
Dim _ProductSelect_ListPropertyEditor As ListPropertyEditor = TryCast(View, DetailView).FindItem("ProductSelect")
|
||||
Dim _ProductSelected_ListPropertyEditor As ListPropertyEditor = TryCast(View, DetailView).FindItem("ProductSelected")
|
||||
|
||||
Dim _ProductFinder As ProductFinder = TryCast(View.SelectedObjects(0), ProductFinder)
|
||||
Dim _ProductSelect As ProductSelect
|
||||
Dim _ProductSelected As ProductSelected
|
||||
|
||||
Dim _IsExists As Boolean = False
|
||||
|
||||
If _ProductSelect_ListPropertyEditor IsNot Nothing Then
|
||||
For Each _ProductSelect In _ProductSelect_ListPropertyEditor.ListView.SelectedObjects
|
||||
If _ProductSelected_ListPropertyEditor IsNot Nothing Then
|
||||
_IsExists = False
|
||||
For Each _ProductSelected In _ProductSelected_ListPropertyEditor.ListView.CollectionSource.List
|
||||
If _ProductSelected.Products Is _ProductSelect.Products Then
|
||||
_IsExists = True
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
|
||||
If _IsExists Then
|
||||
_ProductSelected.QTT += 1
|
||||
Else
|
||||
_ProductSelected = _ocur.CreateObject(Of ProductSelected)()
|
||||
_ProductSelected.MasterKey = _ProductFinder.MasterKey
|
||||
_ProductSelected.Products = _ProductSelect.Products
|
||||
_ProductSelected.QTT = 1
|
||||
_ProductSelected_ListPropertyEditor.ListView.CollectionSource.Add(_ProductSelected)
|
||||
End If
|
||||
_ocur.CommitChanges()
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
|
||||
End Sub
|
||||
Private Sub aToTableD_ProductFinder_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aToTableD_ProductFinder.Execute
|
||||
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
|
||||
Dim _ProductSelected_ListPropertyEditor As ListPropertyEditor = TryCast(View, DetailView).FindItem("ProductSelected")
|
||||
Dim _ProductFinder As ProductFinder = TryCast(View.SelectedObjects(0), ProductFinder)
|
||||
Dim _ProductSelected_Collection As New XPCollection(Of ProductSelected)(_onew.Session, CriteriaOperator.Parse("1=2"))
|
||||
Dim _ProductSelected As ProductSelected
|
||||
If _ProductSelected_ListPropertyEditor IsNot Nothing Then
|
||||
For Each _ProductSelected In _ProductSelected_ListPropertyEditor.ListView.SelectedObjects
|
||||
_ProductSelected_Collection.Add(_onew.GetObject(_ProductSelected))
|
||||
Next
|
||||
_onew.Delete(_ProductSelected_Collection)
|
||||
_onew.CommitChanges()
|
||||
_ProductSelected_ListPropertyEditor.ListView.CollectionSource.Reload()
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
@@ -0,0 +1,60 @@
|
||||
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 ProductFinderVariable
|
||||
Inherits BaseObject
|
||||
Private _MasterKey As Guid
|
||||
Private _Products As Products
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
<Browsable(False)> _
|
||||
Property MasterKey As Guid
|
||||
Get
|
||||
Return _MasterKey
|
||||
End Get
|
||||
Set(value As Guid)
|
||||
SetPropertyValue("MasterKey", _MasterKey, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData(), Browsable(False)>
|
||||
Property Products As Products
|
||||
Get
|
||||
Return _Products
|
||||
End Get
|
||||
Set(value As Products)
|
||||
SetPropertyValue("Products", _Products, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property ProductSelectOriginal As XPCollection(Of ProductSelect)
|
||||
Get
|
||||
If Me.Products IsNot Nothing Then
|
||||
Return New XPCollection(Of ProductSelect)(Session, CriteriaOperator.Parse("Products=?", Me.Products))
|
||||
Else
|
||||
Return Nothing
|
||||
End If
|
||||
End Get
|
||||
End Property
|
||||
<VisibleInListView(False), VisibleInLookupListView(False)> _
|
||||
ReadOnly Property ProductSelectVariables As XPCollection(Of ProductSelect)
|
||||
Get
|
||||
Return New XPCollection(Of ProductSelect)(Session)
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
@@ -0,0 +1,68 @@
|
||||
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 ProductSelected
|
||||
Inherits BaseObject
|
||||
Private _MasterKey As Guid 'PopUP master key
|
||||
Private _Products As Products
|
||||
Private _QTT As Double
|
||||
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()
|
||||
' Place here your initialization code.
|
||||
End Sub
|
||||
|
||||
<Browsable(False)> _
|
||||
Property MasterKey As Guid
|
||||
Get
|
||||
Return _MasterKey
|
||||
End Get
|
||||
Set(value As Guid)
|
||||
SetPropertyValue("MasterKey", _MasterKey, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Products As Products
|
||||
Get
|
||||
Return _Products
|
||||
End Get
|
||||
Set(value As Products)
|
||||
SetPropertyValue("Products", _Products, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT As Double
|
||||
Get
|
||||
Return _QTT
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("QTT", _QTT, value)
|
||||
End Set
|
||||
End Property
|
||||
Property 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,68 @@
|
||||
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 ProductSelectedFIFO
|
||||
Inherits BaseObject
|
||||
Private _MasterKey As Guid
|
||||
Private _StorageInRows As StorageInRows
|
||||
Private _QTT As Double
|
||||
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()
|
||||
' Place here your initialization code.
|
||||
End Sub
|
||||
|
||||
<Browsable(False)> _
|
||||
Property MasterKey As Guid
|
||||
Get
|
||||
Return _MasterKey
|
||||
End Get
|
||||
Set(value As Guid)
|
||||
SetPropertyValue("MasterKey", _MasterKey, value)
|
||||
End Set
|
||||
End Property
|
||||
Property StorageInRows As StorageInRows
|
||||
Get
|
||||
Return _StorageInRows
|
||||
End Get
|
||||
Set(value As StorageInRows)
|
||||
SetPropertyValue("StorageInRows", _StorageInRows, value)
|
||||
End Set
|
||||
End Property
|
||||
Property QTT As Double
|
||||
Get
|
||||
Return _QTT
|
||||
End Get
|
||||
Set(value As Double)
|
||||
SetPropertyValue("QTT", _QTT, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Description As String
|
||||
Get
|
||||
Return _Description
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("Description", _Description, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
|
||||
Imports DevExpress.Xpo
|
||||
Imports DevExpress.Data.Filtering
|
||||
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.Persistent.Base
|
||||
Imports DevExpress.Persistent.BaseImpl
|
||||
Imports DevExpress.Persistent.Validation
|
||||
Imports System.Linq
|
||||
Imports DevExpress.ExpressApp.Editors
|
||||
Imports DevExpress.ExpressApp.Utils
|
||||
|
||||
<DefaultClassOptions()> _
|
||||
<NonPersistent()>
|
||||
<CreatableItem(False)> _
|
||||
<NavigationItem(False)> _
|
||||
Public Class ProductsGant_CreateCustomersReport_PopUp
|
||||
Inherits BaseObject
|
||||
|
||||
Private _Customers As Customers
|
||||
Private _CustomersFrom As CustomersFrom
|
||||
Private _Products As Products
|
||||
Private _ProductsGantRows As ProductsGantRows
|
||||
Private _DateExecution As Date
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
<VisibleInDetailView(False)> _
|
||||
<VisibleInListView(False)> _
|
||||
Property Customers As Customers
|
||||
Get
|
||||
Return _Customers
|
||||
End Get
|
||||
Set(value As Customers)
|
||||
SetPropertyValue("Customers", _Customers, value)
|
||||
End Set
|
||||
End Property
|
||||
<VisibleInDetailView(False)> _
|
||||
<VisibleInListView(False)> _
|
||||
Property CustomersFrom As CustomersFrom
|
||||
Get
|
||||
Return _CustomersFrom
|
||||
End Get
|
||||
Set(value As CustomersFrom)
|
||||
SetPropertyValue("CustomersFrom", _CustomersFrom, value)
|
||||
End Set
|
||||
End Property
|
||||
<VisibleInDetailView(False)> _
|
||||
<VisibleInListView(False)> _
|
||||
Property Products As Products
|
||||
Get
|
||||
Return _Products
|
||||
End Get
|
||||
Set(value As Products)
|
||||
SetPropertyValue("Products", _Products, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ProductsGantRows As ProductsGantRows
|
||||
Get
|
||||
Return _ProductsGantRows
|
||||
End Get
|
||||
Set(value As ProductsGantRows)
|
||||
SetPropertyValue("ProductsGantRows", _ProductsGantRows, value)
|
||||
End Set
|
||||
End Property
|
||||
<ImmediatePostData()> _
|
||||
Property DateExecution As Date
|
||||
Get
|
||||
Return _DateExecution
|
||||
End Get
|
||||
Set(value As Date)
|
||||
SetPropertyValue("DateExecution", _DateExecution, value)
|
||||
If Not Session.IsObjectsSaving And Not Session.IsObjectsLoading Then
|
||||
' ProductsGantCustomersReport.Reload()
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
|
||||
ReadOnly Property ProductsGantCustomersReport As XPCollection(Of ProductsGantCustomersReport)
|
||||
Get
|
||||
Dim _ProductsGantCustomersReport_Collection As New XPCollection(Of ProductsGantCustomersReport)(Session, CriteriaOperator.Parse("1=2"))
|
||||
|
||||
Dim InvoiceRowsXPQ As New XPQuery(Of InvoiceRows)(Session)
|
||||
Dim IRXPQ = From _InvoiceRowsXPQ In InvoiceRowsXPQ
|
||||
Where _InvoiceRowsXPQ.OrderInRows IsNot Nothing And
|
||||
_InvoiceRowsXPQ.OrderInRows.Products IsNot Nothing And
|
||||
_InvoiceRowsXPQ.InvoiceHeader.IsStorno = False And
|
||||
_InvoiceRowsXPQ.InvoiceHeader.CustomersFrom.Oid = CustomersFrom.Oid And
|
||||
_InvoiceRowsXPQ.InvoiceHeader.Customers.Oid = Customers.Oid
|
||||
Group _InvoiceRowsXPQ By _InvoiceRowsXPQ.OrderInRows.Products Into g = Group _
|
||||
Select New With {Key .Products = Products}
|
||||
|
||||
|
||||
If IRXPQ.Count > 0 Then
|
||||
For Each _IRXPQ_Item In IRXPQ
|
||||
Dim _ProductsGantCustomersReport As New ProductsGantCustomersReport(Session)
|
||||
With _ProductsGantCustomersReport
|
||||
.Customers = Customers
|
||||
.Products = _IRXPQ_Item.Products
|
||||
.DateExecution = DateExecution.Date
|
||||
End With
|
||||
|
||||
_ProductsGantCustomersReport_Collection.Add(_ProductsGantCustomersReport)
|
||||
|
||||
Next
|
||||
End If
|
||||
|
||||
Dim _ProductsGantCustomersReport_Existing_Collection As New XPCollection(Of ProductsGantCustomersReport) _
|
||||
(Session, CriteriaOperator.Parse("Customers=? AND Products=? AND GetDate(DateExecution)=?", Customers, Products, DateExecution.Date))
|
||||
|
||||
If _ProductsGantCustomersReport_Existing_Collection.Count > 0 Then
|
||||
For Each _ProductsGantCustomersReport As ProductsGantCustomersReport In _ProductsGantCustomersReport_Existing_Collection
|
||||
_ProductsGantCustomersReport_Collection.Add(_ProductsGantCustomersReport)
|
||||
Next
|
||||
End If
|
||||
|
||||
Return _ProductsGantCustomersReport_Collection
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
|
||||
Imports DevExpress.Xpo
|
||||
Imports DevExpress.Data.Filtering
|
||||
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.Persistent.Base
|
||||
Imports DevExpress.Persistent.BaseImpl
|
||||
Imports DevExpress.Persistent.Validation
|
||||
|
||||
<DefaultClassOptions()> _
|
||||
<NavigationItem(False)> _
|
||||
<CreatableItem(False)> _
|
||||
<NonPersistent()> _
|
||||
Public Class ProductsGant_SetGantItemColumn_PopUp
|
||||
Inherits BaseObject
|
||||
|
||||
Private _ColumnCaption As String
|
||||
Private _IsGroupColumn As Boolean
|
||||
Private _GroupIndex As Long
|
||||
Private _IsVisable As Boolean
|
||||
Private _Index As Long
|
||||
Private _Width As Long
|
||||
Private _ColumnID As String
|
||||
|
||||
Public Sub New(ByVal session As Session)
|
||||
MyBase.New(session)
|
||||
End Sub
|
||||
Public Overrides Sub AfterConstruction()
|
||||
MyBase.AfterConstruction()
|
||||
End Sub
|
||||
|
||||
Property ColumnCaption As String
|
||||
Get
|
||||
Return _ColumnCaption
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("ColumnCaption", _ColumnCaption, value)
|
||||
End Set
|
||||
End Property
|
||||
Property IsGroupColumn As Boolean
|
||||
Get
|
||||
Return _IsGroupColumn
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("IsGroupColumn", _IsGroupColumn, value)
|
||||
End Set
|
||||
End Property
|
||||
Property GroupIndex As Long
|
||||
Get
|
||||
Return _GroupIndex
|
||||
End Get
|
||||
Set(value As Long)
|
||||
SetPropertyValue("GroupIndex", _GroupIndex, value)
|
||||
End Set
|
||||
End Property
|
||||
Property IsVisable As Boolean
|
||||
Get
|
||||
Return _IsVisable
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
SetPropertyValue("IsVisable", _IsVisable, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Index As Long
|
||||
Get
|
||||
Return _Index
|
||||
End Get
|
||||
Set(value As Long)
|
||||
SetPropertyValue("Index", _Index, value)
|
||||
End Set
|
||||
End Property
|
||||
Property Width As Long
|
||||
Get
|
||||
Return _Width
|
||||
End Get
|
||||
Set(value As Long)
|
||||
SetPropertyValue("Width", _Width, value)
|
||||
End Set
|
||||
End Property
|
||||
Property ColumnID As String
|
||||
Get
|
||||
Return _ColumnID
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("ColumnID", _ColumnID, 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()> _
|
||||
<CreatableItem(False)> _
|
||||
<NavigationItem(False)> _
|
||||
Public Class StorageComputedInfo
|
||||
Inherits BaseObject
|
||||
Private _InfoString 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 InfoString As String
|
||||
Get
|
||||
Return _InfoString
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetPropertyValue("InfoString", _InfoString, value)
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
Reference in New Issue
Block a user