亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? wftemplatemgrdelegate.java

?? 這是一個(gè)工作流管理的后端EJB實(shí)現(xiàn)
?? JAVA
字號(hào):
package com.coshare.joyteam.projectMgr.businessDelegate;

import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Date;

import javax.ejb.Handle;
import javax.rmi.PortableRemoteObject;

import com.coshare.joyteam.projectMgr.dto.ActivityDTO;
import com.coshare.joyteam.projectMgr.dto.AssignmentDTO;
import com.coshare.joyteam.projectMgr.dto.TemplateDTO;
import com.coshare.joyteam.projectMgr.sessionFacade.WFTemplateMgr;
import com.coshare.joyteam.util.ID;
import com.coshare.joyteam.projectMgr.dto.ActivityRelDTO;


//測(cè)試添加的內(nèi)容
import java.util.ArrayList;

public class WFTemplateMgrDelegate
{
	private WFTemplateMgr remote;
	private Handle handle;

	public WFTemplateMgrDelegate() throws DelegateException
	{
//		try
//		{
//			WFTemplateMgrHome home =
//				(WFTemplateMgrHome) EJBHomeFactory.getFactory().lookUpEJBHome(
//					WFTemplateMgrHome.class);
//
//			remote = home.create();
//			handle = remote.getHandle();
//		}
//		catch (Exception e)
//		{
//			throw new DelegateException(e);
//		}
	}

	private WFTemplateMgr getEJB() throws DelegateException
	{
		try
		{
			if (remote == null)
			{
				remote =
					(WFTemplateMgr) PortableRemoteObject.narrow(
						handle.getEJBObject(),
						WFTemplateMgr.class);
			}

			return remote;
		}
		catch (Exception e)
		{
			throw new DelegateException(e);
		}
	}

	public void remove() throws DelegateException
	{
//		try
//		{
//			getEJB().remove();
//		}
//		catch (Exception e)
//		{
//			throw new DelegateException(e);
//		}
	}

	/*
	 * Template
	 */
	public int addTemplate(TemplateDTO template) throws DelegateException
	{
//		try
//		{
//			return getEJB().addTemplate(template);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		return 1;
	}

	public int delTemplate(String templateName, int version)
		throws DelegateException
	{
//		try
//		{
//			return getEJB().delTemplate(templateName, version);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		return 1;
	}

	public Collection getTemplates(String condition) throws DelegateException
	{
//		try
//		{
//			return getEJB().getTemplates(condition);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		
		ArrayList temp=new ArrayList();
		for( int i=0;i<20;i++ ){
			TemplateDTO tmpDto = new TemplateDTO();
			tmpDto.setCreatingTime(  new Date() );
			tmpDto.setCreator("創(chuàng)建者"+i);
			tmpDto.setCreatorType(i);
			tmpDto.setTemplateId(i);
			tmpDto.setTemplateName("模板名"+i);
			tmpDto.setTheDescription("描述"+i);
			tmpDto.setVersion(1);
			temp.add(tmpDto);
		}
			
	
		
		return temp;
		
	}

	public TemplateDTO getTemplate(String templateName, int version)
		throws DelegateException
	{
//		try
//		{
//			return getEJB().getTemplate(templateName, version);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		TemplateDTO tmpDto = new TemplateDTO();
		tmpDto.setCreatingTime(  new Date() );
		tmpDto.setCreator("創(chuàng)建者");
		tmpDto.setCreatorType(2);
		tmpDto.setTemplateId(1);
		tmpDto.setTemplateName("模板名");
		tmpDto.setTheDescription("描述");
		tmpDto.setVersion(1);
		return tmpDto;
	}

	/*
	 *  Activity
	 */
	public int addActivity(ActivityDTO activity) throws DelegateException
	{
//		try
//		{
//			return getEJB().addActivity(activity);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		return 1;
	}
	/**
	 * Add this activity after the activity who's ID is activityId
	 * @param <code>ActivityDTO</code> activity
	 * @param <code>ID</code> activityId
	 * @return the number of lines affected
	 * @throws DelegateException
	 */
	public int addActivityAfter(ActivityDTO activity,ID activityId) throws DelegateException
	{

		return 1;
	}
	/**
	 * Add this activity to the head of all the activities associated with a template
	 * @param  <code>ActivityDTO</code>  activity
	 * @return the number of lines affected
	 * @throws DelegateException
	 */
	public int addActivityAhead(ActivityDTO activity) throws DelegateException
	{

		return 1;
	}

	public int delActivity(
		ID templateId,
		String activityName,
		int activityType)
		throws DelegateException
	{
//		try
//		{
//			return getEJB().delActivity(templateId, activityName, activityType);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		return 1;
		
	}

	public int addActivityRel(ID preActId, ID sucActId)
		throws DelegateException
	{
//		try
//		{
//			return getEJB().addActivityRel(preActId, sucActId);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		return 1;
	}

	public int delActivityRel(ID preActId, ID sucActId)
		throws DelegateException
	{
//		try
//		{
//			return getEJB().delActivityRel(preActId, sucActId);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		return 1;
	}

	public Collection  getActivitiesOfT(ID templateId) throws DelegateException
	{
//		try
//		{
//			return getEJB().getActivitiesOfT(templateId);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		ArrayList temp=new ArrayList();
		for( int i=0;i<4;i++ ){
			ActivityDTO tmpDto = new ActivityDTO();
			ID tId=TemplateDTO.intToID(i);
			tmpDto.setTemplateId(tId);
			tmpDto.setActivityId(i);
			tmpDto.setActivityName("活動(dòng)名"+i);
			tmpDto.setTheDescription("描述"+i);
			tmpDto.setActivityType(2);
			
			temp.add(tmpDto);
		}
			
	
		
		return temp;
	}

	public ActivityDTO getActivity(ID activityId) throws DelegateException
	{
//		try
//		{
//			return getEJB().getActivity(activityId);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		ActivityDTO tmpDto = new ActivityDTO();
		
		tmpDto.setActivityId(222);
		tmpDto.setActivityName("活動(dòng)名"+222);
		tmpDto.setTheDescription("描述"+222);
		tmpDto.setActivityType(2);
		return tmpDto;
	}

	public ActivityDTO getActivity(
		ID templateId,
		String activityName,
		int activityType)
		throws DelegateException
	{
//		try
//		{
//			return getEJB().getActivity(templateId, activityName, activityType);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		ActivityDTO tmpDto = new ActivityDTO();
		
		tmpDto.setActivityId(222);
		tmpDto.setActivityName("活動(dòng)名"+222);
		tmpDto.setTheDescription("描述"+222);
		tmpDto.setActivityType(2);
		return tmpDto;
	}

	public Object getActivityRel(ID activityId_1, ID activityId_2)
		throws DelegateException
	{
//		try
//		{
//			return getEJB().getActivityRel(activityId_1, activityId_2);
//		}
//		catch (RemoteException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
//		catch (DelegateException e)
//		{
//			e.printStackTrace();
//			throw new DelegateException(e);
//		}
		ActivityRelDTO arDto= new ActivityRelDTO();
		arDto.setActivityRelId(1);
		arDto.setPreActivity(1);
		arDto.setSucActivity(2);
		return arDto;
	}

	/*
	 *  Assignment
	 */
	public int addAssignment(AssignmentDTO assignment) throws DelegateException
	{
		try
		{
			return getEJB().addAssignment(assignment);
		}
		catch (RemoteException e)
		{
			e.printStackTrace();
			throw new DelegateException(e);
		}
		catch (DelegateException e)
		{
			e.printStackTrace();
			throw new DelegateException(e);
		}
	}

	public int delAssignment(AssignmentDTO assignment) throws DelegateException
	{
		try
		{
			return getEJB().delAssignment(assignment);
		}
		catch (RemoteException e)
		{
			e.printStackTrace();
			throw new DelegateException(e);
		}
		catch (DelegateException e)
		{
			e.printStackTrace();
			throw new DelegateException(e);
		}
	}

	public AssignmentDTO getAssignment(ID holderId) throws DelegateException
	{
		try
		{
			return getEJB().getAssignment(holderId);
		}
		catch (RemoteException e)
		{
			e.printStackTrace();
			throw new DelegateException(e);
		}
		catch (DelegateException e)
		{
			e.printStackTrace();
			throw new DelegateException(e);
		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品嫩草99a| 亚洲欧美在线视频观看| 99久久婷婷国产精品综合| 日韩精品久久久久久| 国产精品久久久久影院老司| 欧美美女黄视频| 91香蕉视频mp4| 国产乱码精品1区2区3区| 亚洲成av人片在线| 中文字幕中文字幕一区二区| 精品久久久久一区| 欧美日韩国产一级| 91麻豆文化传媒在线观看| 国产乱码字幕精品高清av| 日韩av一级片| 亚洲一区二区美女| 亚洲女人的天堂| 欧美高清在线视频| 久久精品网站免费观看| 日韩三级中文字幕| 在线播放日韩导航| 在线观看国产91| 9色porny自拍视频一区二区| 国产传媒一区在线| 国产在线不卡一卡二卡三卡四卡| 天堂在线一区二区| 亚洲va天堂va国产va久| 亚洲免费在线电影| 亚洲三级在线看| 1000部国产精品成人观看| 国产日韩亚洲欧美综合| 久久久国产精品麻豆| 欧美电视剧在线观看完整版| 3atv一区二区三区| 91精品综合久久久久久| 欧美日本乱大交xxxxx| 欧美午夜不卡视频| 欧美亚一区二区| 欧美亚日韩国产aⅴ精品中极品| 91国偷自产一区二区使用方法| 91小视频免费看| 在线精品视频免费观看| 在线免费观看日本欧美| 欧美色视频在线观看| 欧美日韩一区二区三区在线看| 日本韩国精品在线| 欧美日本一区二区在线观看| 欧美电影一区二区三区| 欧美一级专区免费大片| 精品区一区二区| 日本一区二区视频在线观看| 中文字幕欧美日本乱码一线二线| 中文字幕精品三区| 亚洲欧美一区二区三区国产精品| 一区二区三区在线影院| 午夜精品久久久久久久蜜桃app| 亚洲成人免费av| 另类人妖一区二区av| 国模大尺度一区二区三区| 国产福利一区二区| 99久久久精品| 欧美日韩国产小视频| 欧美一级免费大片| 亚洲美女偷拍久久| 亚洲国产欧美在线| 九九国产精品视频| 成人短视频下载| 欧美三级日本三级少妇99| 欧美一区二区三区免费视频| 精品久久一区二区三区| 国产精品久久久久久久午夜片| 亚洲码国产岛国毛片在线| 日韩综合小视频| 国产精品亚洲综合一区在线观看| 99久久精品免费看国产| 在线成人午夜影院| 国产精品网站一区| 婷婷久久综合九色国产成人| 精品一区二区三区免费观看| www.亚洲激情.com| 这里只有精品免费| 欧美高清一级片在线观看| 亚洲一区视频在线观看视频| 久草中文综合在线| 色8久久人人97超碰香蕉987| 日韩欧美高清在线| 亚洲精品视频在线| 国产综合久久久久久鬼色| 97超碰欧美中文字幕| 日韩欧美国产系列| 亚洲精品视频在线观看免费| 久久99国产精品尤物| 日本高清成人免费播放| 欧美电影免费观看完整版| 亚洲欧美区自拍先锋| 国产专区欧美精品| 欧美日韩高清一区二区三区| 国产精品视频免费| 麻豆精品久久精品色综合| 91啦中文在线观看| 久久久久久久久蜜桃| 午夜激情一区二区三区| www.欧美精品一二区| 精品999在线播放| 日日噜噜夜夜狠狠视频欧美人| k8久久久一区二区三区| 精品国产髙清在线看国产毛片| 亚洲精品欧美激情| 成人一区二区三区在线观看| 日韩免费一区二区| 亚洲成人黄色影院| 在线视频中文字幕一区二区| 国产欧美一区在线| 国模大尺度一区二区三区| 7777精品伊人久久久大香线蕉的 | 欧美精品一区二| 亚洲国产精品久久人人爱| 99re这里只有精品视频首页| 久久久九九九九| 精品一区二区免费看| 777午夜精品免费视频| 久久精品国产99国产| 欧美色爱综合网| 亚洲一区二区视频| 色8久久人人97超碰香蕉987| 亚洲人成小说网站色在线| 懂色av一区二区三区蜜臀| 久久精品网站免费观看| 国产精品资源网| 久久精品视频免费观看| 国模无码大尺度一区二区三区| 日韩欧美成人一区| 激情久久五月天| 欧美精品一区二区三区蜜桃| 裸体一区二区三区| 精品精品国产高清一毛片一天堂| 麻豆免费精品视频| 精品国产一区二区三区av性色 | 欧美久久一二区| 亚洲一区二区av在线| 在线观看日韩精品| 亚洲成人综合视频| 欧美一区二区在线免费观看| 日韩avvvv在线播放| 欧美成人精精品一区二区频| 黄页网站大全一区二区| 久久久久久**毛片大全| www.视频一区| 亚洲精品高清在线观看| 欧美日韩亚洲综合一区二区三区| 亚洲一二三四在线| 欧美一区二区三区人| 国产在线日韩欧美| 国产精品麻豆久久久| 在线国产亚洲欧美| 日韩国产高清在线| 久久色在线视频| av不卡一区二区三区| 亚洲一区二区精品视频| 日韩一级二级三级精品视频| 国产精品2024| 亚洲精品国产第一综合99久久 | 亚洲乱码中文字幕| 欧美精品丝袜久久久中文字幕| 免费在线观看一区| 国产亚洲污的网站| 91福利在线免费观看| 日本午夜精品一区二区三区电影 | 欧美一区欧美二区| 国产成人综合网站| 亚洲影视在线观看| 精品999在线播放| 色婷婷久久久久swag精品 | 亚洲sss视频在线视频| 欧美高清视频在线高清观看mv色露露十八 | 激情深爱一区二区| 亚洲欧美激情一区二区| 日韩丝袜美女视频| 成人中文字幕在线| 午夜精品久久久久久久久久| 国产午夜精品美女毛片视频| 日本电影欧美片| 韩国午夜理伦三级不卡影院| 亚洲少妇中出一区| 精品美女一区二区| 欧美系列在线观看| 国产白丝精品91爽爽久久 | 国产suv精品一区二区三区| 一区二区日韩av| 久久久久国产精品人| 欧美日本在线一区| www.在线成人| 久草精品在线观看| 亚洲一级在线观看| 国产精品水嫩水嫩| 日韩精品一区国产麻豆| 欧美专区在线观看一区| 粉嫩一区二区三区在线看| 偷拍一区二区三区四区| 国产精品伦一区二区三级视频|