⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 activitydto.java

📁 这是一个工作流管理的后端EJB实现
💻 JAVA
字号:
package com.coshare.joyteam.projectMgr.dto;

import java.io.Serializable;

import com.coshare.joyteam.util.ID;

public class ActivityDTO implements Serializable {
	/**
	 * Serialization version.
	 */
	private static final long serialVersionUID = 3904960854532305461L;
	
	/**
	 * 1 一般活动
	 */
	public static final int TYPE_NORMAL = 1;
	/**
	 * 2 开始结点
	 */
	public static final int TYPE_START = 2;
	/**
	 * 3 结束结点
	 */
	public static final int TYPE_END = 3;
	/**
	 * 4 同步结点
	 */
	public static final int TYPE_AND = 4;
	/**
	 * 5 或结点
	 */
	public static final int TYPE_OR = 5;
	/**
	 * 6 子活动
	 */
	public static final int TYPE_SUB = 6;
	/**
	 * 7 系统活动
	 */
	public static final int TYPE_SYS = 7;

	
	private ID activityId;
	private ID templateId;
	private String activityName;
	private int activityType;
	private String theDescription;
	
	public ActivityDTO(ID templateId, String activityName, int activityType) {
		this.templateId = templateId;
		this.activityName = activityName;
		this.activityType = activityType;
	}
	
	public ActivityDTO() {}
	
	/**
	 * @return Returns the activityId.
	 */
	public ID getActivityId() {
		return activityId;
	}
	/**
	 * @param activityId The activityId to set.
	 */
	public void setActivityId(ID activityId) {
		this.activityId = activityId;
	}
	
	public void setActivityId(int activityId) {
		this.setActivityId(intToID(activityId));
	}
	
	/**
	 * @return Returns the activityName.
	 */
	public String getActivityName() {
		return activityName;
	}
	/**
	 * @param activityName The activityName to set.
	 */
	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}
	/**
	 * @return Returns the activityType.
	 */
	public int getActivityType() {
		return activityType;
	}
	/**
	 * @param activityType The activityType to set.
	 */
	public void setActivityType(int activityType) {
		this.activityType = activityType;
	}
	/**
	 * @return Returns the templateId.
	 */
	public ID getTemplateId() {
		return templateId;
	}
	/**
	 * @param templateId The templateId to set.
	 */
	public void setTemplateId(ID templateId) {
		this.templateId = templateId;
	}
	/**
	 * @return Returns the theDescription.
	 */
	public String getTheDescription() {
		return theDescription;
	}
	/**
	 * @param theDescription The theDescription to set.
	 */
	public void setTheDescription(String theDescription) {
		this.theDescription = theDescription;
	}
	
	static public ID intToID(int intid) {
		ID id = new ID();
		id.setType(ID.TYPE_WfActivity);
		id.setId(intid);
		return id;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -