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 = "ID" Then Return ID
If Name = "tscStatus" Then Return tscStatus
If Name = "tscIsActive" Then Return tscIsActive
Return Nothing
End Function
' ID
Private m_ID As cField
Public ReadOnly Property ID() As cField
Get
If m_ID Is Nothing Then m_ID = New cField("tblEmployeeStatus", "x_ID", "ID", "[ID]", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_ID
End Get
End Property
' tscStatus
Private m_tscStatus As cField
Public ReadOnly Property tscStatus() As cField
Get
If m_tscStatus Is Nothing Then m_tscStatus = New cField("tblEmployeeStatus", "x_tscStatus", "tscStatus", "[tscStatus]", 202, OleDbType.VarWChar, EW_DATATYPE_STRING, 0)
Return m_tscStatus
End Get
End Property
' tscIsActive
Private m_tscIsActive As cField
Public ReadOnly Property tscIsActive() As cField
Get
If m_tscIsActive Is Nothing Then m_tscIsActive = New cField("tblEmployeeStatus", "x_tscIsActive", "tscIsActive", "[tscIsActive]", 11, OleDbType.Boolean, EW_DATATYPE_BOOLEAN, 0)
Return m_tscIsActive
End Get
End Property
' Table level events
' Recordset Selecting event
Public Sub Recordset_Selecting(ByRef filter As String)