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 = "schSchID" Then Return schSchID
If Name = "schDate" Then Return schDate
If Name = "schEvtID" Then Return schEvtID
If Name = "schPartsID" Then Return schPartsID
If Name = "schCallTime" Then Return schCallTime
If Name = "schStartTime" Then Return schStartTime
If Name = "schEndTime" Then Return schEndTime
If Name = "schOutTime" Then Return schOutTime
If Name = "schLocID" Then Return schLocID
If Name = "schEmpID" Then Return schEmpID
If Name = "schPosID" Then Return schPosID
If Name = "schTypID" Then Return schTypID
If Name = "schNotes" Then Return schNotes
If Name = "schActualStart" Then Return schActualStart
If Name = "schActualEnd" Then Return schActualEnd
If Name = "schDateCreated" Then Return schDateCreated
If Name = "schStatus" Then Return schStatus
If Name = "schDayOfWeek" Then Return schDayOfWeek
Return Nothing
End Function
' schSchID
Private m_schSchID As cField
Public ReadOnly Property schSchID() As cField
Get
If m_schSchID Is Nothing Then m_schSchID = New cField("viewClockInOut", "x_schSchID", "schSchID", "tblSchedule.schSchID", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_schSchID
End Get
End Property
' schDate
Private m_schDate As cField
Public ReadOnly Property schDate() As cField
Get
If m_schDate Is Nothing Then m_schDate = New cField("viewClockInOut", "x_schDate", "schDate", "tblSchedule.schDate", 7, OleDbType.Date, EW_DATATYPE_DATE, 6)
Return m_schDate
End Get
End Property
' schEvtID
Private m_schEvtID As cField
Public ReadOnly Property schEvtID() As cField
Get
If m_schEvtID Is Nothing Then m_schEvtID = New cField("viewClockInOut", "x_schEvtID", "schEvtID", "tblSchedule.schEvtID", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_schEvtID
End Get
End Property
' schPartsID
Private m_schPartsID As cField
Public ReadOnly Property schPartsID() As cField
Get
If m_schPartsID Is Nothing Then m_schPartsID = New cField("viewClockInOut", "x_schPartsID", "schPartsID", "tblSchedule.schPartsID", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_schPartsID
End Get
End Property
' schCallTime
Private m_schCallTime As cField
Public ReadOnly Property schCallTime() As cField
Get
If m_schCallTime Is Nothing Then m_schCallTime = New cField("viewClockInOut", "x_schCallTime", "schCallTime", "tblSchedule.schCallTime", 7, OleDbType.Date, EW_DATATYPE_DATE, 4)
Return m_schCallTime
End Get
End Property
' schStartTime
Private m_schStartTime As cField
Public ReadOnly Property schStartTime() As cField
Get
If m_schStartTime Is Nothing Then m_schStartTime = New cField("viewClockInOut", "x_schStartTime", "schStartTime", "tblSchedule.schStartTime", 7, OleDbType.Date, EW_DATATYPE_DATE, 4)
Return m_schStartTime
End Get
End Property
' schEndTime
Private m_schEndTime As cField
Public ReadOnly Property schEndTime() As cField
Get
If m_schEndTime Is Nothing Then m_schEndTime = New cField("viewClockInOut", "x_schEndTime", "schEndTime", "tblSchedule.schEndTime", 7, OleDbType.Date, EW_DATATYPE_DATE, 4)
Return m_schEndTime
End Get
End Property
' schOutTime
Private m_schOutTime As cField
Public ReadOnly Property schOutTime() As cField
Get
If m_schOutTime Is Nothing Then m_schOutTime = New cField("viewClockInOut", "x_schOutTime", "schOutTime", "tblSchedule.schOutTime", 7, OleDbType.Date, EW_DATATYPE_DATE, 4)
Return m_schOutTime
End Get
End Property
' schLocID
Private m_schLocID As cField
Public ReadOnly Property schLocID() As cField
Get
If m_schLocID Is Nothing Then m_schLocID = New cField("viewClockInOut", "x_schLocID", "schLocID", "tblSchedule.schLocID", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_schLocID
End Get
End Property
' schEmpID
Private m_schEmpID As cField
Public ReadOnly Property schEmpID() As cField
Get
If m_schEmpID Is Nothing Then m_schEmpID = New cField("viewClockInOut", "x_schEmpID", "schEmpID", "tblSchedule.schEmpID", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_schEmpID
End Get
End Property
' schPosID
Private m_schPosID As cField
Public ReadOnly Property schPosID() As cField
Get
If m_schPosID Is Nothing Then m_schPosID = New cField("viewClockInOut", "x_schPosID", "schPosID", "tblSchedule.schPosID", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_schPosID
End Get
End Property
' schTypID
Private m_schTypID As cField
Public ReadOnly Property schTypID() As cField
Get
If m_schTypID Is Nothing Then m_schTypID = New cField("viewClockInOut", "x_schTypID", "schTypID", "tblSchedule.schTypID", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_schTypID
End Get
End Property
' schNotes
Private m_schNotes As cField
Public ReadOnly Property schNotes() As cField
Get
If m_schNotes Is Nothing Then m_schNotes = New cField("viewClockInOut", "x_schNotes", "schNotes", "tblSchedule.schNotes", 203, OleDbType.LongVarWChar, EW_DATATYPE_MEMO, 0)
Return m_schNotes
End Get
End Property
' schActualStart
Private m_schActualStart As cField
Public ReadOnly Property schActualStart() As cField
Get
If m_schActualStart Is Nothing Then m_schActualStart = New cField("viewClockInOut", "x_schActualStart", "schActualStart", "tblSchedule.schActualStart", 7, OleDbType.Date, EW_DATATYPE_DATE, 4)
Return m_schActualStart
End Get
End Property
' schActualEnd
Private m_schActualEnd As cField
Public ReadOnly Property schActualEnd() As cField
Get
If m_schActualEnd Is Nothing Then m_schActualEnd = New cField("viewClockInOut", "x_schActualEnd", "schActualEnd", "tblSchedule.schActualEnd", 7, OleDbType.Date, EW_DATATYPE_DATE, 4)
Return m_schActualEnd
End Get
End Property
' schDateCreated
Private m_schDateCreated As cField
Public ReadOnly Property schDateCreated() As cField
Get
If m_schDateCreated Is Nothing Then m_schDateCreated = New cField("viewClockInOut", "x_schDateCreated", "schDateCreated", "tblSchedule.schDateCreated", 7, OleDbType.Date, EW_DATATYPE_DATE, 6)
Return m_schDateCreated
End Get
End Property
' schStatus
Private m_schStatus As cField
Public ReadOnly Property schStatus() As cField
Get
If m_schStatus Is Nothing Then m_schStatus = New cField("viewClockInOut", "x_schStatus", "schStatus", "tblSchedule.schStatus", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_schStatus
End Get
End Property
' schDayOfWeek
Private m_schDayOfWeek As cField
Public ReadOnly Property schDayOfWeek() As cField
Get
If m_schDayOfWeek Is Nothing Then m_schDayOfWeek = New cField("tblSchedule", "x_schDayOfWeek", "schDayOfWeek", "[schDayOfWeek]", 3, OleDbType.Integer, EW_DATATYPE_NUMBER, 0)
Return m_schDayOfWeek
End Get
End Property
' Table level events
' Recordset Selecting event
Public Sub Recordset_Selecting(ByRef filter As String)