15-12-2022 ~ 2
This commit is contained in:
22
ECM.JobRunner.Common/Models/Jobs/HistoryItem.vb
Normal file
22
ECM.JobRunner.Common/Models/Jobs/HistoryItem.vb
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
Public Property Steps As List(Of HistoryStep)
|
||||
|
||||
Public Class HistoryStep
|
||||
Public Property Created As Date = Now
|
||||
Public Property Message As String
|
||||
Public Property Level As StepLevel
|
||||
End Class
|
||||
|
||||
Public Enum StepLevel
|
||||
Debug
|
||||
Info
|
||||
Warning
|
||||
[Error]
|
||||
End Enum
|
||||
|
||||
End Class
|
||||
20
ECM.JobRunner.Common/Models/Jobs/JobDefinition.vb
Normal file
20
ECM.JobRunner.Common/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.Common/Models/Jobs/JobType.vb
Normal file
5
ECM.JobRunner.Common/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.Common/Models/Jobs/StatusItem.vb
Normal file
14
ECM.JobRunner.Common/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
|
||||
19
ECM.JobRunner.Common/Models/Profiles/ImportFile.vb
Normal file
19
ECM.JobRunner.Common/Models/Profiles/ImportFile.vb
Normal file
@@ -0,0 +1,19 @@
|
||||
Public Class ImportFile
|
||||
Public Property FilePath As String
|
||||
Public Property FilePathOriginal As String
|
||||
Public Property FilePathWindream As String
|
||||
Public Property FileInfo As IO.FileInfo
|
||||
|
||||
Public Property IndexValues As New List(Of IndexItem)
|
||||
|
||||
Public Class IndexItem
|
||||
Public Value As String
|
||||
Public IndexName As String
|
||||
End Class
|
||||
|
||||
Public Sub New(pFilePath As String)
|
||||
_FilePathOriginal = pFilePath
|
||||
_FilePath = pFilePath
|
||||
_FileInfo = New IO.FileInfo(pFilePath)
|
||||
End Sub
|
||||
End Class
|
||||
18
ECM.JobRunner.Common/Models/Profiles/ImportProfile.vb
Normal file
18
ECM.JobRunner.Common/Models/Profiles/ImportProfile.vb
Normal file
@@ -0,0 +1,18 @@
|
||||
Imports System.ComponentModel.DataAnnotations
|
||||
|
||||
Public Class ImportProfile
|
||||
Public Property Job As New JobDefinition
|
||||
Public Property Active As Boolean
|
||||
Public Property Id As Integer
|
||||
Public Property JobId As Integer
|
||||
Public Property ObjectTypeName As String
|
||||
Public Property ObjectType As ObjectType
|
||||
Public Property SourceFolder As String
|
||||
Public Property TargetFolder As String
|
||||
Public Property BackupFolder As String
|
||||
Public Property SubfolderDateFormat As String
|
||||
Public Property FileExcludeRegex As String
|
||||
Public Property DeleteFiles As Boolean
|
||||
Public Property IncludeSubfolders As Boolean
|
||||
Public Property Steps As New List(Of ImportProfileStep)
|
||||
End Class
|
||||
15
ECM.JobRunner.Common/Models/Profiles/ImportProfileStep.vb
Normal file
15
ECM.JobRunner.Common/Models/Profiles/ImportProfileStep.vb
Normal file
@@ -0,0 +1,15 @@
|
||||
Public Class ImportProfileStep
|
||||
Public Property Active As Boolean
|
||||
Public Property Id As Integer
|
||||
Public Property ProfileId As Integer
|
||||
Public Property IndexName As String
|
||||
|
||||
Public Property Scope As String
|
||||
Public Property Method As String
|
||||
|
||||
Public Property Argument1 As String
|
||||
Public Property Argument2 As String
|
||||
Public Property Argument3 As String
|
||||
End Class
|
||||
|
||||
|
||||
4
ECM.JobRunner.Common/Models/Windream/ObjectType.vb
Normal file
4
ECM.JobRunner.Common/Models/Windream/ObjectType.vb
Normal file
@@ -0,0 +1,4 @@
|
||||
Public Class ObjectType
|
||||
Public Name As String
|
||||
Public Indexes As New List(Of String)
|
||||
End Class
|
||||
Reference in New Issue
Block a user