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

📄 planinfo.java

📁 java阿里巴巴代码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package com.saas.biz.planMgr;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;

import com.saas.biz.commen.commMethodMgr;
import com.saas.biz.dao.planDAO.PlanDAO;
import com.saas.biz.dao.planDAO.PlanExt;
import com.saas.sys.buffer.Buffers;
import com.saas.sys.dbm.Dbtable;
import com.saas.sys.exp.SaasApplicationException;
import com.saas.sys.log.Logger;

/**
 * @author:LiuYang
 * @desc:计划管理
 * @2008-5-15
 */
public class PlanInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -445596947327132342L;

	Dbtable tradeQuery;

	commMethodMgr comm;

	Logger log;

	Buffers inBuffer;

	Buffers outBuffer;

	ArrayList queryResult = new ArrayList();

	public PlanInfo() {

		log = new Logger(this);
		tradeQuery = new Dbtable();
		comm = new commMethodMgr();
	}

	public void setTradeQuery(Dbtable tradeQuery) {

		this.tradeQuery = tradeQuery;
	}

	public Dbtable getTradeQuery() {

		return this.tradeQuery;
	}

	public void setOutBuffer(Buffers outBuffer) {

		this.outBuffer = outBuffer;
	}

	public Buffers getOutBuffer() {

		return this.outBuffer;
	}

	public ArrayList getQueryResult() {

		return this.queryResult;
	}

	public void setQueryResult(ArrayList queryResult) {

		this.queryResult = queryResult;
	}

	/**
	 * 新增计划
	 * 
	 * @param inbuffer
	 */
	public void addPlanInfo(Buffers inbuffer) {

		this.outBuffer = inbuffer;
		this.inBuffer = inbuffer;
		log.LOG_INFO("进入addPlanInfo方法...");

		int iResult = -1;
		String plan_id = inbuffer.getString("PLAN_ID");
		String cust_id = inbuffer.getString("SESSION_CUST_ID");
		String depart_code = inbuffer.getString("DEPART_ID");
		String planner_id = inbuffer.getString("PLANNER_ID");
		String planner_name = inbuffer.getString("PLANNER_NAME");
		String title = inbuffer.getString("TITLE");
		String content = inbuffer.getString("CONTENT");
		String start_date = inbuffer.getString("START_DATE");
		String end_date = inbuffer.getString("END_DATE");
		String prioritys = inbuffer.getString("PRIORITYS");
		String security = inbuffer.getString("SECURITY");
		String rsrv_str1 = inbuffer.getString("RSRV_STR1");
		String rsrv_str2 = inbuffer.getString("RSRV_STR2");
		String rsrv_str3 = inbuffer.getString("RSRV_STR3");
		String rsrv_str4 = inbuffer.getString("RSRV_STR4");
		String rsrv_str5 = inbuffer.getString("RSRV_STR5");
		String rsrv_str6 = inbuffer.getString("RSRV_STR6");
		String rsrv_str7 = inbuffer.getString("RSRV_STR7");
		String rsrv_str8 = inbuffer.getString("RSRV_STR8");
		String rsrv_str9 = inbuffer.getString("RSRV_STR9");
		String rsrv_str10 = inbuffer.getString("RSRV_STR10");
		String plan_state = inbuffer.getString("PLAN_STATE");
		String plan_type = inbuffer.getString("PLAN_TYPE");
		String remark = inbuffer.getString("REMARK");
		String plan_class = inbuffer.getString("PLAN_CLASS");
		String oper_user_id = inbuffer.getString("SESSION_USER_ID");
		try {
			PlanDAO planDao = new PlanDAO();
			planDao.setPlan_id(plan_id);
			planDao.setCust_id(cust_id);
			planDao.setDepart_code(depart_code);
			planDao.setPlanner_id(planner_id);
			planDao.setPlanner_name(planner_name);
			planDao.setTitle(title);
			planDao.setStart_date(start_date);
			planDao.setEnd_date(end_date);
			planDao.setPrioritys(prioritys);
			planDao.setSecurity(security);
			planDao.setContent(content);
			planDao.setPlan_type(plan_type);
			planDao.setPlan_class(plan_class);
			planDao.setRsrv_str1(rsrv_str1);
			planDao.setRsrv_str2(rsrv_str2);
			planDao.setRsrv_str3(rsrv_str3);
			planDao.setRsrv_str4(rsrv_str4);
			planDao.setRsrv_str5(rsrv_str5);
			planDao.setRsrv_str6(rsrv_str6);
			planDao.setRsrv_str7(rsrv_str7);
			planDao.setRsrv_str8(rsrv_str8);
			planDao.setRsrv_str9(rsrv_str9);
			planDao.setRsrv_str10(rsrv_str10);
			planDao.setPlan_state(plan_state);
			planDao.setRemark(remark);
			planDao.setOper_user_id(oper_user_id);

			iResult = addPlanInfo(planDao);
		} catch (SaasApplicationException e) {
			log.LOG_INFO(e.getMessage());
		}
		if (iResult != 0) {
			this.outBuffer.setInt("RESULT_CODE", -1);
			this.outBuffer.setString("RESULT_INFO", "业务处理失败!");

		} else {
			this.outBuffer.setInt("RESULT_CODE", 0);
			this.outBuffer.setString("RESULT_INFO", "业务处理成功!");
		}
		log.LOG_INFO("退出addPlanInfo方法...");
	}

	public int addPlanInfo(PlanDAO planDao) throws SaasApplicationException {

		PlanExt planExt = new PlanExt();
		planExt.setParam(":VPLAN_ID", planDao.getPlan_id());
		planExt.setParam(":VCUST_ID", planDao.getCust_id());
		planExt.setParam(":VDEPART_CODE", planDao.getDepart_code());
		planExt.setParam(":VPLANNER_ID", planDao.getPlanner_id());
		planExt.setParam(":VPLANNER_NAME", planDao.getPlanner_name());
		planExt.setParam(":VTITLE", planDao.getTitle());
		planExt.setParam(":VSTART_DATE", planDao.getStart_date());
		planExt.setParam(":VEND_DATE", planDao.getEnd_date());
		planExt.setParam(":VPRIORITYS", planDao.getPrioritys());
		planExt.setParam(":VSECURITY", planDao.getSecurity());
		planExt.setParam(":VCONTENT", planDao.getContent());
		planExt.setParam(":VPLAN_CLASS", planDao.getPlan_class());
		planExt.setParam(":VRSRV_STR1", planDao.getRsrv_str1());
		planExt.setParam(":VRSRV_STR2", planDao.getRsrv_str2());
		planExt.setParam(":VRSRV_STR3", planDao.getRsrv_str3());
		planExt.setParam(":VRSRV_STR4", planDao.getRsrv_str4());
		planExt.setParam(":VRSRV_STR5", planDao.getRsrv_str5());
		planExt.setParam(":VPLAN_TYPE", planDao.getPlan_type());
		planExt.setParam(":VRSRV_STR6", planDao.getRsrv_str6());
		planExt.setParam(":VRSRV_STR7", planDao.getRsrv_str7());
		planExt.setParam(":VRSRV_STR8", planDao.getRsrv_str8());
		planExt.setParam(":VRSRV_STR9", planDao.getRsrv_str9());
		planExt.setParam(":VRSRV_STR10", planDao.getRsrv_str10());
		planExt.setParam(":VREMARK", planDao.getRemark());
		planExt.setParam(":VPLAN_STATE", planDao.getPlan_state());
		planExt.setParam(":VOPER_USER_ID", planDao.getOper_user_id());
		tradeQuery.executeBy(planExt.insBy("INS_BY_ALL"));
		return 0;
	}

	// 修改计划
	public void eidPlanInfo(Buffers inbuffer) {

		this.outBuffer = inbuffer;
		this.inBuffer = inbuffer;
		log.LOG_INFO("进入eidPlanInfo方法...");

		int iResult = -1;
		String plan_id = inbuffer.getString("PLAN_ID");
		String cust_id = inbuffer.getString("SESSION_CUST_ID");
		String depart_code = inbuffer.getString("DEPART_ID");
		String planner_id = inbuffer.getString("PLANNER_ID");
		String planner_name = inbuffer.getString("PLANNER_NAME");
		String title = inbuffer.getString("TITLE");
		String content = inbuffer.getString("CONTENT");
		String start_date = inbuffer.getString("START_DATE");
		String end_date = inbuffer.getString("END_DATE");
		String prioritys = inbuffer.getString("PRIORITYS");
		String security = inbuffer.getString("SECURITY");
		String rsrv_str1 = inbuffer.getString("RSRV_STR1");
		String rsrv_str2 = inbuffer.getString("RSRV_STR2");
		String rsrv_str3 = inbuffer.getString("RSRV_STR3");
		String rsrv_str4 = inbuffer.getString("RSRV_STR4");
		String rsrv_str5 = inbuffer.getString("RSRV_STR5");
		String rsrv_str6 = inbuffer.getString("RSRV_STR6");
		String rsrv_str7 = inbuffer.getString("RSRV_STR7");
		String rsrv_str8 = inbuffer.getString("RSRV_STR8");
		String rsrv_str9 = inbuffer.getString("RSRV_STR9");
		String rsrv_str10 = inbuffer.getString("RSRV_STR10");
		String plan_state = inbuffer.getString("PLAN_STATE");
		String plan_type = inbuffer.getString("PLAN_TYPE");
		String remark = inbuffer.getString("REMARK");
		String plan_class = inbuffer.getString("PLAN_CLASS");
		String oper_user_id = inbuffer.getString("SESSION_USER_ID");
		try {
			PlanDAO planDao = new PlanDAO();
			planDao.setPlan_id(plan_id);
			planDao.setCust_id(cust_id);
			planDao.setDepart_code(depart_code);
			planDao.setPlanner_id(planner_id);
			planDao.setPlanner_name(planner_name);
			planDao.setTitle(title);
			planDao.setStart_date(start_date);
			planDao.setEnd_date(end_date);
			planDao.setPrioritys(prioritys);
			planDao.setSecurity(security);
			planDao.setContent(content);
			planDao.setPlan_type(plan_type);
			planDao.setPlan_class(plan_class);
			planDao.setRsrv_str1(rsrv_str1);
			planDao.setRsrv_str2(rsrv_str2);
			planDao.setRsrv_str3(rsrv_str3);
			planDao.setRsrv_str4(rsrv_str4);
			planDao.setRsrv_str5(rsrv_str5);

⌨️ 快捷键说明

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