package jnpf.tmsEntity.enums; /** * 培训任务来源类型。 *
字典:{@code tmsTaskSourceType};字段:{@code tms_task.source_type}
*/ public enum TmsTaskSourceType implements TmsDictEnum { /** 年度计划下发 */ ANNUAL("annual", "年度计划"), /** 岗位培训计划下发 */ POST("post", "岗位计划"), /** 临时培训 */ TEMP("temp", "临时培训"), /** 文件生效培训 */ FILE("file", "文件生效"); private final String code; private final String label; TmsTaskSourceType(String code, String label) { this.code = code; this.label = label; } @Override public String getCode() { return code; } @Override public String getLabel() { return label; } public static TmsTaskSourceType of(String code) { return TmsDictEnum.of(TmsTaskSourceType.class, code); } }