08-12-2022
This commit is contained in:
7
ECM.JobRunner.Windows/Models/Jobs/HistoryItem.vb
Normal file
7
ECM.JobRunner.Windows/Models/Jobs/HistoryItem.vb
Normal file
@@ -0,0 +1,7 @@
|
||||
Public Class HistoryItem
|
||||
Public Property JobName As String
|
||||
Public Property CreatedAt As DateTime
|
||||
Public Property Successful As Boolean
|
||||
Public Property ErrorMessage As String
|
||||
Public Property Message As String
|
||||
End Class
|
||||
20
ECM.JobRunner.Windows/Models/Jobs/JobDefinition.vb
Normal file
20
ECM.JobRunner.Windows/Models/Jobs/JobDefinition.vb
Normal file
@@ -0,0 +1,20 @@
|
||||
Imports System.ComponentModel.DataAnnotations
|
||||
|
||||
Public Class JobDefinition
|
||||
<Required>
|
||||
Public Id As Integer = -1
|
||||
|
||||
<Required>
|
||||
Public TypeId As Integer
|
||||
Public Type As JobType
|
||||
|
||||
<Required>
|
||||
<StringLength(250)>
|
||||
Public Name As String
|
||||
|
||||
<Required>
|
||||
<StringLength(250)>
|
||||
Public CronSchedule As String
|
||||
|
||||
Public Active As Boolean
|
||||
End Class
|
||||
5
ECM.JobRunner.Windows/Models/Jobs/JobType.vb
Normal file
5
ECM.JobRunner.Windows/Models/Jobs/JobType.vb
Normal file
@@ -0,0 +1,5 @@
|
||||
Public Class JobType
|
||||
Public Id As Integer
|
||||
Public Name As String
|
||||
Public Active As Boolean
|
||||
End Class
|
||||
14
ECM.JobRunner.Windows/Models/Jobs/StatusItem.vb
Normal file
14
ECM.JobRunner.Windows/Models/Jobs/StatusItem.vb
Normal file
@@ -0,0 +1,14 @@
|
||||
Public Class StatusItem
|
||||
Public Const PROGRESS_CURRENT = "__Progress_Current"
|
||||
Public Const PROGRESS_TOTAL = "__Progress_Total"
|
||||
|
||||
Public Id As String
|
||||
Public Name As String
|
||||
Public ExecutionTime As TimeSpan
|
||||
Public ProgressCurrent As Integer
|
||||
Public ProgressTotal As Integer
|
||||
Public Executing As Boolean = False
|
||||
|
||||
Public StartTime As Date
|
||||
Public CompleteTime As Date
|
||||
End Class
|
||||
Reference in New Issue
Block a user