tangxu
2023-04-21 473084031d410d95db66e81f4d1761f9a2d1b8e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.Server
{
    /// <summary>
    /// 任务名称辅助类
    /// </summary>
    internal class DataDockingJobNameHelper 
    {
        private const string _jobNameHeader = "DataDockingJob";
        private const string _jobGroupHeader = "DataDockingJobGroup";
        private const string _triggerNameHeader = "DataDockingJobTrigger";
 
        /// <summary>
        /// 获取任务名称
        /// </summary>
        public static string GetJobName(Model.DataDockingProblem problem)
        {
            return $"{_jobNameHeader}-{problem.ID}";
        }
 
        /// <summary>
        /// 获取任务组名称
        /// </summary>
        public static string GetJobGroupName(Model.DataDockingProblem problem)
        {
            return $"{_jobGroupHeader}-{problem.ID}";
        }
 
        /// <summary>
        /// 获取触发器名称
        /// </summary>
        public static string GetTriggerName(Model.DataDockingProblem problem)
        {
            return $"{_triggerNameHeader}-{problem.ID}";
        }
 
 
    }
}