package cn.estsh.i3plus.pojo.aps.bean;

import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.enums.DYNAMIC_SET_CALC;
import cn.estsh.i3plus.pojo.aps.enums.DYNAMIC_SET_TYPE;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Description :动态设置时间设置
 * @Reference :
 * @Author : jason.niu
 * @CreateDate : 2019-09-22
 * @Modify:
 **/
@Data
@Entity
@Table(name = "APS_DYNAMIC_SET_TIME")
@Api("动态设置时间")
public class DynamicSetTime extends BaseAPS {
    @Column(name="RES_CODE")
    @ApiParam(value ="资源代码")
    private String resCode;

    @Column(name="TYPE")
    @ApiParam(value ="应用工作计划类型")
    private DYNAMIC_SET_TYPE type;

    @Column(name="CONSIDER_ASS_RES")
    @ApiParam(value ="是否启用副资源动态设置时间")
    private Boolean considerAssRes;

    @Column(name="CONSIDER_MATERIAL")
    @ApiParam(value ="是否启用物料动态设置时间")
    private Boolean considerMaterial;

    @Column(name="ASS_RES_CALC")
    @ApiParam(value ="副资源动态设置计算方式")
    private DYNAMIC_SET_CALC assResCalc;

    @Column(name="MATERIAL_CALC")
    @ApiParam(value ="物料动态设置时间计算方式")
    private DYNAMIC_SET_CALC materialCalc;

    @Column(name="STATIC_CALC")
    @ApiParam(value ="与静态设置时间计算方式")
    private DYNAMIC_SET_CALC staticCalc;

    @Column(name="PRIORITY")
    @ApiParam(value ="优先级")
    private int priority;
}
