' This class is "generated" and will be overwritten. ' Your customizations should be made in PersonalSalaryRecord.vb Imports System.Data.SqlTypes Imports BaseClasses Imports BaseClasses.Data Imports BaseClasses.Data.SqlProvider Namespace Persons.Business ''' ''' The generated superclass for the class. ''' ''' ''' This class is not intended to be instantiated directly. To obtain an instance of this class, ''' use the methods of the class. ''' ''' ''' Public Class BasePersonalSalaryRecord Inherits PrimaryKeyRecord Public Shared Shadows ReadOnly TableUtils As PersonalSalaryTable = PersonalSalaryTable.Instance ' Constructors Protected Sub New() MyBase.New(TableUtils) End Sub Protected Sub New(ByVal record As PrimaryKeyRecord) MyBase.New(record, TableUtils) End Sub 'Evaluates Initialize when->Inserting record formulas specified at the data access layer Public Overridable Sub PersonalSalaryRecord_InsertingRecord(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles Me.InsertingRecord 'Apply Initialize->Inserting record formula only if validation is successful. Dim PersonalSalaryRec As PersonalSalaryRecord = CType(sender,PersonalSalaryRecord) Validate_Inserting() If Not PersonalSalaryRec Is Nothing AndAlso Not PersonalSalaryRec.IsReadOnly Then End If End Sub 'Evaluates Initialize when->Updating record formulas specified at the data access layer Public Overridable Sub PersonalSalaryRecord_UpdatingRecord(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles Me.UpdatingRecord 'Apply Initialize->Updating record formula only if validation is successful. Dim PersonalSalaryRec As PersonalSalaryRecord = CType(sender,PersonalSalaryRecord) Validate_Updating() If Not PersonalSalaryRec Is Nothing AndAlso Not PersonalSalaryRec.IsReadOnly Then End If End Sub 'Evaluates Initialize when->Reading record formulas specified at the data access layer Public Overridable Sub PersonalSalaryRecord_ReadRecord(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.ReadRecord 'Apply Initialize->Reading record formula only if validation is successful. Dim PersonalSalaryRec As PersonalSalaryRecord = CType(sender,PersonalSalaryRecord) If Not PersonalSalaryRec Is Nothing AndAlso Not PersonalSalaryRec.IsReadOnly Then End If End Sub 'Evaluates Validate when->Inserting formulas specified at the data access layer Public Overridable Sub Validate_Inserting () Dim fullValidationMessage As String = "" Dim validationMessage As String = "" dim formula as String = "" If validationMessage <> "" AndAlso validationMessage.ToLower() <> "true" Then fullValidationMessage &= validationMessage & vbCrLf End If If fullValidationMessage <> "" Then Throw New Exception(fullValidationMessage) End If End Sub 'Evaluates Validate when->Updating formulas specified at the data access layer Public Overridable Sub Validate_Updating () Dim fullValidationMessage As String = "" Dim validationMessage As String = "" dim formula as String = "" If validationMessage <> "" AndAlso validationMessage.ToLower() <> "true" Then fullValidationMessage &= validationMessage & vbCrLf End If If fullValidationMessage <> "" Then Throw New Exception(fullValidationMessage) End If End Sub Public Overridable Function EvaluateFormula(ByVal formula As String, Optional ByVal dataSourceForEvaluate As BaseClasses.Data.BaseRecord = Nothing, Optional ByVal format As String = Nothing) As String Dim e As Data.BaseFormulaEvaluator = New Data.BaseFormulaEvaluator() ' All variables referred to in the formula are expected to be ' properties of the DataSource. For example, referring to ' UnitPrice as a variable will refer to DataSource.UnitPrice e.DataSource = dataSourceForEvaluate Dim resultObj As Object = e.Evaluate(formula) If resultObj Is Nothing Then Return "" End If Return resultObj.ToString() End Function #Region "Convenience methods to get/set values of fields" ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.id field. ''' Public Function Getid0Value() As ColumnValue Return Me.GetValue(TableUtils.id0Column) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.id field. ''' Public Function Getid0FieldValue() As Int32 Return CType(Me.GetValue(TableUtils.id0Column).ToInt32(), Int32) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.PersonalId field. ''' Public Function GetPersonalIdValue() As ColumnValue Return Me.GetValue(TableUtils.PersonalIdColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.PersonalId field. ''' Public Function GetPersonalIdFieldValue() As String Return CType(Me.GetValue(TableUtils.PersonalIdColumn).ToString(), String) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.PersonalId field. ''' Public Sub SetPersonalIdFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.PersonalIdColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.PersonalId field. ''' Public Sub SetPersonalIdFieldValue(ByVal val As String) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.PersonalIdColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryDate field. ''' Public Function GetSalaryDateValue() As ColumnValue Return Me.GetValue(TableUtils.SalaryDateColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryDate field. ''' Public Function GetSalaryDateFieldValue() As DateTime Return CType(Me.GetValue(TableUtils.SalaryDateColumn).ToDateTime(), DateTime) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryDate field. ''' Public Sub SetSalaryDateFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.SalaryDateColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryDate field. ''' Public Sub SetSalaryDateFieldValue(ByVal val As String) Me.SetString(val, TableUtils.SalaryDateColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryDate field. ''' Public Sub SetSalaryDateFieldValue(ByVal val As DateTime) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryDateColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryRank field. ''' Public Function GetSalaryRankValue() As ColumnValue Return Me.GetValue(TableUtils.SalaryRankColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryRank field. ''' Public Function GetSalaryRankFieldValue() As String Return CType(Me.GetValue(TableUtils.SalaryRankColumn).ToString(), String) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryRank field. ''' Public Sub SetSalaryRankFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.SalaryRankColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryRank field. ''' Public Sub SetSalaryRankFieldValue(ByVal val As String) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryRankColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryStep field. ''' Public Function GetSalaryStepValue() As ColumnValue Return Me.GetValue(TableUtils.SalaryStepColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryStep field. ''' Public Function GetSalaryStepFieldValue() As Double Return CType(Me.GetValue(TableUtils.SalaryStepColumn).ToDouble(), Double) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryStep field. ''' Public Sub SetSalaryStepFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.SalaryStepColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryStep field. ''' Public Sub SetSalaryStepFieldValue(ByVal val As String) Me.SetString(val, TableUtils.SalaryStepColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryStep field. ''' Public Sub SetSalaryStepFieldValue(ByVal val As Double) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryStepColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryStep field. ''' Public Sub SetSalaryStepFieldValue(ByVal val As Decimal) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryStepColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryStep field. ''' Public Sub SetSalaryStepFieldValue(ByVal val As Int64) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryStepColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryYear field. ''' Public Function GetSalaryYearValue() As ColumnValue Return Me.GetValue(TableUtils.SalaryYearColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryYear field. ''' Public Function GetSalaryYearFieldValue() As String Return CType(Me.GetValue(TableUtils.SalaryYearColumn).ToString(), String) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryYear field. ''' Public Sub SetSalaryYearFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.SalaryYearColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryYear field. ''' Public Sub SetSalaryYearFieldValue(ByVal val As String) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryYearColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryRound field. ''' Public Function GetSalaryRoundValue() As ColumnValue Return Me.GetValue(TableUtils.SalaryRoundColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryRound field. ''' Public Function GetSalaryRoundFieldValue() As Decimal Return CType(Me.GetValue(TableUtils.SalaryRoundColumn).ToDecimal(), Decimal) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryRound field. ''' Public Sub SetSalaryRoundFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.SalaryRoundColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryRound field. ''' Public Sub SetSalaryRoundFieldValue(ByVal val As String) Me.SetString(val, TableUtils.SalaryRoundColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryRound field. ''' Public Sub SetSalaryRoundFieldValue(ByVal val As Double) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryRoundColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryRound field. ''' Public Sub SetSalaryRoundFieldValue(ByVal val As Decimal) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryRoundColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryRound field. ''' Public Sub SetSalaryRoundFieldValue(ByVal val As Int64) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryRoundColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryAmout field. ''' Public Function GetSalaryAmoutValue() As ColumnValue Return Me.GetValue(TableUtils.SalaryAmoutColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryAmout field. ''' Public Function GetSalaryAmoutFieldValue() As Decimal Return CType(Me.GetValue(TableUtils.SalaryAmoutColumn).ToDecimal(), Decimal) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryAmout field. ''' Public Sub SetSalaryAmoutFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.SalaryAmoutColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryAmout field. ''' Public Sub SetSalaryAmoutFieldValue(ByVal val As String) Me.SetString(val, TableUtils.SalaryAmoutColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryAmout field. ''' Public Sub SetSalaryAmoutFieldValue(ByVal val As Double) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryAmoutColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryAmout field. ''' Public Sub SetSalaryAmoutFieldValue(ByVal val As Decimal) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryAmoutColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryAmout field. ''' Public Sub SetSalaryAmoutFieldValue(ByVal val As Int64) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryAmoutColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryExtra_NotUsed field. ''' Public Function GetSalaryExtra_NotUsedValue() As ColumnValue Return Me.GetValue(TableUtils.SalaryExtra_NotUsedColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryExtra_NotUsed field. ''' Public Function GetSalaryExtra_NotUsedFieldValue() As String Return CType(Me.GetValue(TableUtils.SalaryExtra_NotUsedColumn).ToString(), String) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryExtra_NotUsed field. ''' Public Sub SetSalaryExtra_NotUsedFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.SalaryExtra_NotUsedColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryExtra_NotUsed field. ''' Public Sub SetSalaryExtra_NotUsedFieldValue(ByVal val As String) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryExtra_NotUsedColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryPlus field. ''' Public Function GetSalaryPlusValue() As ColumnValue Return Me.GetValue(TableUtils.SalaryPlusColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryPlus field. ''' Public Function GetSalaryPlusFieldValue() As Decimal Return CType(Me.GetValue(TableUtils.SalaryPlusColumn).ToDecimal(), Decimal) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryPlus field. ''' Public Sub SetSalaryPlusFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.SalaryPlusColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryPlus field. ''' Public Sub SetSalaryPlusFieldValue(ByVal val As String) Me.SetString(val, TableUtils.SalaryPlusColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryPlus field. ''' Public Sub SetSalaryPlusFieldValue(ByVal val As Double) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryPlusColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryPlus field. ''' Public Sub SetSalaryPlusFieldValue(ByVal val As Decimal) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryPlusColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryPlus field. ''' Public Sub SetSalaryPlusFieldValue(ByVal val As Int64) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryPlusColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.PositionSalary field. ''' Public Function GetPositionSalaryValue() As ColumnValue Return Me.GetValue(TableUtils.PositionSalaryColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.PositionSalary field. ''' Public Function GetPositionSalaryFieldValue() As Decimal Return CType(Me.GetValue(TableUtils.PositionSalaryColumn).ToDecimal(), Decimal) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.PositionSalary field. ''' Public Sub SetPositionSalaryFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.PositionSalaryColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.PositionSalary field. ''' Public Sub SetPositionSalaryFieldValue(ByVal val As String) Me.SetString(val, TableUtils.PositionSalaryColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.PositionSalary field. ''' Public Sub SetPositionSalaryFieldValue(ByVal val As Double) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.PositionSalaryColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.PositionSalary field. ''' Public Sub SetPositionSalaryFieldValue(ByVal val As Decimal) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.PositionSalaryColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.PositionSalary field. ''' Public Sub SetPositionSalaryFieldValue(ByVal val As Int64) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.PositionSalaryColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryCommand field. ''' Public Function GetSalaryCommandValue() As ColumnValue Return Me.GetValue(TableUtils.SalaryCommandColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.SalaryCommand field. ''' Public Function GetSalaryCommandFieldValue() As String Return CType(Me.GetValue(TableUtils.SalaryCommandColumn).ToString(), String) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryCommand field. ''' Public Sub SetSalaryCommandFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.SalaryCommandColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.SalaryCommand field. ''' Public Sub SetSalaryCommandFieldValue(ByVal val As String) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryCommandColumn) End Sub ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.CommandDate field. ''' Public Function GetCommandDateValue() As ColumnValue Return Me.GetValue(TableUtils.CommandDateColumn) End Function ''' ''' This is a convenience method that provides direct access to the value of the record's PersonalSalary_.CommandDate field. ''' Public Function GetCommandDateFieldValue() As DateTime Return CType(Me.GetValue(TableUtils.CommandDateColumn).ToDateTime(), DateTime) End Function ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.CommandDate field. ''' Public Sub SetCommandDateFieldValue(ByVal val As ColumnValue) Me.SetValue(val, TableUtils.CommandDateColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.CommandDate field. ''' Public Sub SetCommandDateFieldValue(ByVal val As String) Me.SetString(val, TableUtils.CommandDateColumn) End Sub ''' ''' This is a convenience method that allows direct modification of the value of the record's PersonalSalary_.CommandDate field. ''' Public Sub SetCommandDateFieldValue(ByVal val As DateTime) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.CommandDateColumn) End Sub #End Region #Region "Convenience methods to get field names" ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.id field. ''' Public Property id0() As Int32 Get Return CType(Me.GetValue(TableUtils.id0Column).ToInt32(), Int32) End Get Set (ByVal val As Int32) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.id0Column) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property id0Specified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.id0Column) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property id0Default() As String Get Return TableUtils.id0Column.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.PersonalId field. ''' Public Property PersonalId() As String Get Return CType(Me.GetValue(TableUtils.PersonalIdColumn).ToString(), String) End Get Set (ByVal Value As String) Me.SetString(value, TableUtils.PersonalIdColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property PersonalIdSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.PersonalIdColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property PersonalIdDefault() As String Get Return TableUtils.PersonalIdColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.SalaryDate field. ''' Public Property SalaryDate() As DateTime Get Return CType(Me.GetValue(TableUtils.SalaryDateColumn).ToDateTime(), DateTime) End Get Set (ByVal val As DateTime) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryDateColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property SalaryDateSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.SalaryDateColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property SalaryDateDefault() As String Get Return TableUtils.SalaryDateColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.SalaryRank field. ''' Public Property SalaryRank() As String Get Return CType(Me.GetValue(TableUtils.SalaryRankColumn).ToString(), String) End Get Set (ByVal Value As String) Me.SetString(value, TableUtils.SalaryRankColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property SalaryRankSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.SalaryRankColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property SalaryRankDefault() As String Get Return TableUtils.SalaryRankColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.SalaryStep field. ''' Public Property SalaryStep() As Double Get Return CType(Me.GetValue(TableUtils.SalaryStepColumn).ToDouble(), Double) End Get Set (ByVal val As Double) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryStepColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property SalaryStepSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.SalaryStepColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property SalaryStepDefault() As String Get Return TableUtils.SalaryStepColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.SalaryYear field. ''' Public Property SalaryYear() As String Get Return CType(Me.GetValue(TableUtils.SalaryYearColumn).ToString(), String) End Get Set (ByVal Value As String) Me.SetString(value, TableUtils.SalaryYearColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property SalaryYearSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.SalaryYearColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property SalaryYearDefault() As String Get Return TableUtils.SalaryYearColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.SalaryRound field. ''' Public Property SalaryRound() As Decimal Get Return CType(Me.GetValue(TableUtils.SalaryRoundColumn).ToDecimal(), Decimal) End Get Set (ByVal val As Decimal) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryRoundColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property SalaryRoundSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.SalaryRoundColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property SalaryRoundDefault() As String Get Return TableUtils.SalaryRoundColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.SalaryAmout field. ''' Public Property SalaryAmout() As Decimal Get Return CType(Me.GetValue(TableUtils.SalaryAmoutColumn).ToDecimal(), Decimal) End Get Set (ByVal val As Decimal) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryAmoutColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property SalaryAmoutSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.SalaryAmoutColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property SalaryAmoutDefault() As String Get Return TableUtils.SalaryAmoutColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.SalaryExtra_NotUsed field. ''' Public Property SalaryExtra_NotUsed() As String Get Return CType(Me.GetValue(TableUtils.SalaryExtra_NotUsedColumn).ToString(), String) End Get Set (ByVal Value As String) Me.SetString(value, TableUtils.SalaryExtra_NotUsedColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property SalaryExtra_NotUsedSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.SalaryExtra_NotUsedColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property SalaryExtra_NotUsedDefault() As String Get Return TableUtils.SalaryExtra_NotUsedColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.SalaryPlus field. ''' Public Property SalaryPlus() As Decimal Get Return CType(Me.GetValue(TableUtils.SalaryPlusColumn).ToDecimal(), Decimal) End Get Set (ByVal val As Decimal) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.SalaryPlusColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property SalaryPlusSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.SalaryPlusColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property SalaryPlusDefault() As String Get Return TableUtils.SalaryPlusColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.PositionSalary field. ''' Public Property PositionSalary() As Decimal Get Return CType(Me.GetValue(TableUtils.PositionSalaryColumn).ToDecimal(), Decimal) End Get Set (ByVal val As Decimal) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.PositionSalaryColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property PositionSalarySpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.PositionSalaryColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property PositionSalaryDefault() As String Get Return TableUtils.PositionSalaryColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.SalaryCommand field. ''' Public Property SalaryCommand() As String Get Return CType(Me.GetValue(TableUtils.SalaryCommandColumn).ToString(), String) End Get Set (ByVal Value As String) Me.SetString(value, TableUtils.SalaryCommandColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property SalaryCommandSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.SalaryCommandColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property SalaryCommandDefault() As String Get Return TableUtils.SalaryCommandColumn.DefaultValue End Get End Property ''' ''' This is a convenience property that provides direct access to the value of the record's PersonalSalary_.CommandDate field. ''' Public Property CommandDate() As DateTime Get Return CType(Me.GetValue(TableUtils.CommandDateColumn).ToDateTime(), DateTime) End Get Set (ByVal val As DateTime) Dim colValue As ColumnValue = New ColumnValue(val) Me.SetValue(colValue, TableUtils.CommandDateColumn) End Set End Property ''' ''' This is a convenience method that can be used to determine that the column is set. ''' Public ReadOnly Property CommandDateSpecified() As Boolean Get Dim val As ColumnValue = Me.GetValue(TableUtils.CommandDateColumn) If val Is Nothing OrElse val.IsNull Then Return False End If Return True End Get End Property ''' ''' This is a convenience method that can be used to get the default value of a column. ''' Public ReadOnly Property CommandDateDefault() As String Get Return TableUtils.CommandDateColumn.DefaultValue End Get End Property #End Region End Class End Namespace