Commit 012b17e762cc9ff02b3798d8263cc3f69ba8186f
1 parent
07544f46
修改枚举
Showing
2 changed files
with
21 additions
and
24 deletions
sys/Hh.Mes.POJO/EnumEntitys/EnumStatusType.cs
... | ... | @@ -114,14 +114,11 @@ namespace Hh.Mes.POJO.EnumEntitys |
114 | 114 | OverTime = 100, |
115 | 115 | } |
116 | 116 | |
117 | + [SysPublicEnum] | |
117 | 118 | public enum EnumIndicatorType |
118 | 119 | { |
119 | - 天, | |
120 | - 月, | |
121 | - 季度, | |
122 | - 年, | |
123 | - 公里, | |
124 | - 圈数, | |
125 | - 次数, | |
120 | + 天 = 10, | |
121 | + 月 = 20, | |
122 | + 公里数 = 30, | |
126 | 123 | } |
127 | 124 | } |
... | ... |
sys/sys_JOB/Quartz.Job/Jobs/MaintainJob.cs
... | ... | @@ -123,26 +123,26 @@ namespace Quartz.Job.Jobs |
123 | 123 | { |
124 | 124 | return lastMaintainTime.AddMonths(indicatorType.indicatorTypeCode); |
125 | 125 | } |
126 | - else if (indicatorType.indicatorTypeName == EnumIndicatorType.季度.ToString()) | |
127 | - { | |
128 | - return lastMaintainTime.AddMonths(indicatorType.indicatorTypeCode * 3); | |
129 | - } | |
130 | - else if (indicatorType.indicatorTypeName == EnumIndicatorType.年.ToString()) | |
131 | - { | |
132 | - return lastMaintainTime.AddYears(indicatorType.indicatorTypeCode); | |
133 | - } | |
134 | - else if (indicatorType.indicatorTypeName.Contains(EnumIndicatorType.公里.ToString())) | |
135 | - { | |
136 | - //待定 | |
137 | - } | |
138 | - else if (indicatorType.indicatorTypeName == EnumIndicatorType.圈数.ToString()) | |
139 | - { | |
140 | - //待定 | |
141 | - } | |
142 | - else if (indicatorType.indicatorTypeName == EnumIndicatorType.次数.ToString()) | |
126 | + //else if (indicatorType.indicatorTypeName == EnumIndicatorType.季度.ToString()) | |
127 | + //{ | |
128 | + // return lastMaintainTime.AddMonths(indicatorType.indicatorTypeCode * 3); | |
129 | + //} | |
130 | + //else if (indicatorType.indicatorTypeName == EnumIndicatorType.年.ToString()) | |
131 | + //{ | |
132 | + // return lastMaintainTime.AddYears(indicatorType.indicatorTypeCode); | |
133 | + //} | |
134 | + else if (indicatorType.indicatorTypeName.Contains(EnumIndicatorType.公里数.ToString())) | |
143 | 135 | { |
144 | 136 | //待定 |
145 | 137 | } |
138 | + //else if (indicatorType.indicatorTypeName == EnumIndicatorType.圈数.ToString()) | |
139 | + //{ | |
140 | + // //待定 | |
141 | + //} | |
142 | + //else if (indicatorType.indicatorTypeName == EnumIndicatorType.次数.ToString()) | |
143 | + //{ | |
144 | + // //待定 | |
145 | + //} | |
146 | 146 | //不支持 |
147 | 147 | return DateTime.MaxValue; |
148 | 148 | }).Min(); |
... | ... |