Public EventCancelled As Boolean ' Event cancelled
Public CancelMessage As String ' Cancel message
' Row Type
Public RowType As Integer
Public CssClass As String = "" ' CSS class
Public CssStyle As String = "" ' CSS style
Public RowClientEvents As String = "" ' Row client events
' Row Attribute
Public ReadOnly Property RowAttributes() As String
Get
Dim sAtt As String = ""
If ew_NotEmpty(CssStyle) Then
sAtt = sAtt & " style=""" & CssStyle.Trim() & """"
End If
If ew_NotEmpty(CssClass) Then
sAtt = sAtt & " class=""" & CssClass.Trim() & """"
End If
If m_Export = "" Then
If ew_NotEmpty(RowClientEvents) Then
sAtt = sAtt & " " & RowClientEvents.Trim()
End If
End If
Return sAtt
End Get
End Property
' Export
Private m_Export As String
Public Property Export() As String
Get
Return m_Export
End Get
Set(ByVal Value As String)
m_Export = Value
End Set
End Property
' Export Original Value
Public ExportOriginalValue As Boolean = EW_EXPORT_ORIGINAL_VALUE
' Export All
Public ExportAll As Boolean = EW_EXPORT_ALL
' Send Email
Public SendEmail As Boolean
' Custom Inner Html
Public TableCustomInnerHtml As Object
'
' Field objects
'
Public Function FieldByName(Name As String) As Object
If Name = "empID" Then Return empID
If Name = "empPayrollNumber" Then Return empPayrollNumber
If Name = "empName" Then Return empName
If Name = "empFirstName" Then Return empFirstName
If Name = "empLastName" Then Return empLastName
If Name = "empAddress" Then Return empAddress
If Name = "empCity" Then Return empCity
If Name = "empState" Then Return empState
If Name = "empZIP" Then Return empZIP
If Name = "empPhone" Then Return empPhone
If Name = "empEmail" Then Return empEmail
If Name = "empUserPass" Then Return empUserPass
Return Nothing
End Function
' empID
Private m_empID As cField
Public ReadOnly Property empID() As cField
Get
If m_empID Is Nothing Then m_empID = New cField("viewEmployees", "x_empID", "empID", "tblEmployees.empID", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_empID
End Get
End Property
' empPayrollNumber
Private m_empPayrollNumber As cField
Public ReadOnly Property empPayrollNumber() As cField
Get
If m_empPayrollNumber Is Nothing Then m_empPayrollNumber = New cField("viewEmployees", "x_empPayrollNumber", "empPayrollNumber", "tblEmployees.empPayrollNumber", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_empPayrollNumber
End Get
End Property
' empUsername
Private m_empUsername As cField
Public ReadOnly Property empUsername() As cField
Get
If m_empUsername Is Nothing Then m_empUsername = New cField("viewEmployees", "x_empUsername", "empUsername", "tblEmployees.empUsername", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empUsername
End Get
End Property
' empName
Private m_empName As cField
Public ReadOnly Property empName() As cField
Get
If m_empName Is Nothing Then m_empName = New cField("viewEmployees", "x_empName", "empName", "tblEmployees.empName", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empName
End Get
End Property
' empFirstName
Private m_empFirstName As cField
Public ReadOnly Property empFirstName() As cField
Get
If m_empFirstName Is Nothing Then m_empFirstName = New cField("viewEmployees", "x_empFirstName", "empFirstName", "tblEmployees.empFirstName", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empFirstName
End Get
End Property
' empLastName
Private m_empLastName As cField
Public ReadOnly Property empLastName() As cField
Get
If m_empLastName Is Nothing Then m_empLastName = New cField("viewEmployees", "x_empLastName", "empLastName", "tblEmployees.empLastName", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empLastName
End Get
End Property
' empAddress
Private m_empAddress As cField
Public ReadOnly Property empAddress() As cField
Get
If m_empAddress Is Nothing Then m_empAddress = New cField("viewEmployees", "x_empAddress", "empAddress", "tblEmployees.empAddress", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empAddress
End Get
End Property
' empCity
Private m_empCity As cField
Public ReadOnly Property empCity() As cField
Get
If m_empCity Is Nothing Then m_empCity = New cField("viewEmployees", "x_empCity", "empCity", "tblEmployees.empCity", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empCity
End Get
End Property
' empState
Private m_empState As cField
Public ReadOnly Property empState() As cField
Get
If m_empState Is Nothing Then m_empState = New cField("viewEmployees", "x_empState", "empState", "tblEmployees.empState", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empState
End Get
End Property
' empZIP
Private m_empZIP As cField
Public ReadOnly Property empZIP() As cField
Get
If m_empZIP Is Nothing Then m_empZIP = New cField("viewEmployees", "x_empZIP", "empZIP", "tblEmployees.empZIP", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empZIP
End Get
End Property
' empPhone
Private m_empPhone As cField
Public ReadOnly Property empPhone() As cField
Get
If m_empPhone Is Nothing Then m_empPhone = New cField("viewEmployees", "x_empPhone", "empPhone", "tblEmployees.empPhone", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empPhone
End Get
End Property
' empEmail
Private m_empEmail As cField
Public ReadOnly Property empEmail() As cField
Get
If m_empEmail Is Nothing Then m_empEmail = New cField("viewEmployees", "x_empEmail", "empEmail", "tblEmployees.empEmail", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empEmail
End Get
End Property
' empUserPass
Private m_empUserPass As cField
Public ReadOnly Property empUserPass() As cField
Get
If m_empUserPass Is Nothing Then m_empUserPass = New cField("viewEmployees", "x_empUserPass", "empUserPass", "tblEmployees.empUserPass", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_empUserPass
End Get
End Property
' Table level events
' Recordset Selecting event
Public Sub Recordset_Selecting(ByRef filter As String)