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

📄 getbiaodaninf.java

📁 sso呵呵
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
		}catch(Exception e){}

		//印花税类型
		try{
			t_ICo=t_Doc.getContent("yinhuashuileixign");
			//System.out.println("----------### yinhuashuileixign = "+t_ICo.getItemValue()+" ###--------");
			BDBean.yinhuashuileixign=t_ICo.getItemValue();
			if(BDBean.yinhuashuileixign==null)BDBean.yinhuashuileixign=" ";
		}catch(Exception e){}

		//合同履行期限_开始
		try{
			t_ICo=t_Doc.getContent("kaishishijian");
			//System.out.println("----------### kaishishijian = "+t_ICo.getItemValue()+" ###--------");
			BDBean.kaishishijian=t_ICo.getItemValue();
			if(BDBean.kaishishijian==null)BDBean.kaishishijian=" ";
		}catch(Exception e){}

		//合同履行期限_结束
		try{
			t_ICo=t_Doc.getContent("jieshushijian");
			//System.out.println("----------### jieshushijian = "+t_ICo.getItemValue()+" ###--------");
			BDBean.jieshushijian=t_ICo.getItemValue();
			if(BDBean.jieshushijian==null)BDBean.jieshushijian=" ";
		}catch(Exception e){}

		//设备费
		try{
			t_ICo=t_Doc.getContent("shebeifei");
			//System.out.println("----------### shebeifei = "+t_ICo.getItemValue()+" ###--------");
			BDBean.shebeifei=t_ICo.getItemValue();
			if(BDBean.shebeifei==null)BDBean.shebeifei=" ";
		}catch(Exception e){}

		//费用
		try{
			t_ICo=t_Doc.getContent("feiyong");
			//System.out.println("----------### feiyong = "+t_ICo.getItemValue()+" ###--------");
			BDBean.feiyong=t_ICo.getItemValue();
			if(BDBean.feiyong==null)BDBean.feiyong=" ";
		}catch(Exception e){}

		//软件费
		try{
			t_ICo=t_Doc.getContent("ruanjianfei");
			//System.out.println("----------### ruanjianfei = "+t_ICo.getItemValue()+" ###--------");
			BDBean.ruanjianfei=t_ICo.getItemValue();
			if(BDBean.ruanjianfei==null)BDBean.ruanjianfei=" ";
		}catch(Exception e){}

		//投资方向末级(id)
		try{
			t_ICo=t_Doc.getContent("sanjitouzifangxiangid");
			//System.out.println("----------### sanjitouzifangxiangid = "+t_ICo.getItemValue()+" ###--------");
			BDBean.sanjitouzifangxiangid=t_ICo.getItemValue();
			if(BDBean.sanjitouzifangxiangid==null)BDBean.sanjitouzifangxiangid=" ";
		}catch(Exception e){}

		//投资方向末级(id)
		try{
			t_ICo=t_Doc.getContent("programid");
			//System.out.println("----------### programid = "+t_ICo.getItemValue()+" ###--------");
			BDBean.programid=t_ICo.getItemValue();
			if(BDBean.programid==null)BDBean.programid=" ";
		}catch(Exception e){}

	}

	/**
	 *
	 * 根据流程实例ID获得表单附件信息
	 *
	 * @param IBoInID
	 *            <i>流程实例ID</i>
	 * @return 表单附件信息
	 */
	private String getFuJian(String IBoInID){
		String result=" ";
		FTPforYS temp=new FTPforYS();
		List attlist=temp.getIDocAttachment(IBoInID);
		if(attlist!=null){
			for(int i=0;i<attlist.size();i++){
				IDocAttachment t_att=(IDocAttachment)attlist.get(i);
				//System.out.println("--------------### 附件名 = "+t_att.getAttchmentName()+" ###----------------");
				result=result+"#_1#"+IBoInID+"#_2#"+t_att.getAttchmentName();
			}
		}
		if(result.startsWith(" #_1#"))result=result.substring(5);

		return result;
	}

	/**
	 *
	 * 根据文档实例获得表单意见信息
	 *
	 * @param t_Doc
	 *            <i>文档实例</i>
	 * @return 表单意见信息
	 * @throws LicenseException
	 * @throws ExpiryException
	 * @throws NotFoundModuleException
	 * @throws DocumentException
	 */
	private String getYiJian(IDocument t_Doc) throws NotFoundModuleException, ExpiryException, LicenseException, DocumentException{
		String result=" ";
		IOpinionService IOpinService=(IOpinionService)ServiceManager.getInstance().getService(IOpinionService.class);
		List opinlist=IOpinService.getOpinionByDocID(t_Doc.getDocumentID());
		//System.out.println("--------------### IDocument ID = "+t_Doc.getFormID()+" ###----------------");
		if(opinlist!=null){
			for(int i=0;i<opinlist.size();i++){
				IOpinion t_opin=(IOpinion)opinlist.get(i);
				//System.out.println("--------------### 意见标签名 = "+t_opin.getOpinionTagName()+" ###----------------");
				result=result+"#_1#"+t_opin.getOpinionTagName()+"#_2#"+t_opin.getOpinion()+"#_2#"+t_opin.getDepartment()+"#_2#"+t_opin.getUserName()+"#_2#"+t_opin.getInputDate();
			}
		}
		//else System.out.println("--------------### list == null ###----------------");
		if(result.startsWith(" #_1#"))result=result.substring(5);
		result=result.replaceAll("#&@", "");

		return result;
	}

	/**
	 *
	 * 根据流程实例ID获得表单信息
	 *
	 * @param IBoInID
	 *            <i>流程实例ID</i>
	 * @return 表单信息类BiaoDianBean
	 */
	public BiaoDianBean getBiaoDanInf(String IBoInID){

		IBoInstanceService t_IBoInService;
		try {
			//获得表单
			t_IBoInService = (IBoInstanceService)ServiceManager.getInstance().getService(IBoInstanceService.class);
			IBoInstance t_IBoIn = t_IBoInService.getBizObjectInstance(IBoInID);
			IDocument t_Doc=t_IBoIn.getDocument();

			//承办人
			BDBean.chengbanren=getUserName(t_IBoIn.getCreaterID());
			//System.out.println("--------------### chengbanren = "+BDBean.chengbanren+" ###----------------");

			//获得表单数据
			getPuInf(t_Doc);

			//所有意见标签
			BDBean.yijianbianqianliebiao=this.getYiJian(t_Doc);
			//System.out.println("----------### yijianbianqianliebiao = "+BDBean.yijianbianqianliebiao+" ###--------");

			//获得附件列表
			BDBean.fujian_all=getFuJian(IBoInID);
			//System.out.println("--------------### fujian_all = "+BDBean.fujian_all+" ###----------------");

		} catch (NotFoundModuleException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ExpiryException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (LicenseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (BoInsException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (DocumentException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return BDBean;
	}

	/**
	 *
	 * 根据suerID获得userName
	 *
	 * @param userID
	 *            <i>userID</i>
	 * @return userName
	 */
	private String getUserName(String userID){
		String result="";

		try {

			GetUserInf IMservice=(GetUserInf)ServiceManager.getInstance().getService(GetUserInf.class);
			AccountsBean accbean=IMservice.getUserNameByDengLuZhangHuID(userID);
			EmpBean embean=accbean.getEmpinfo();
			result=embean.getEmpname();

		} catch (NotFoundModuleException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ExpiryException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (LicenseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return result;
	}

	/**
	 *
	 * 根据bumenID获得部门编码
	 *
	 * @param bumenID
	 *            <i>部门ID</i>
	 * @return 部门编码
	 */
	private String getBuMenID(String bumenID){
		String result="";
		try {
			IOrgMgmtService IOService=(IOrgMgmtService)ServiceManager.getInstance().getService(IOrgMgmtService.class);
			OrgBean orBean=IOService.getOrgById(bumenID);
			result=orBean.getOrgno();
		} catch (NotFoundModuleException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ExpiryException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (LicenseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (OsmException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return result;
	}

	/**
	 *
	 * 根据bumenID获得部门名
	 *
	 * @param bumenID
	 *            <i>部门ID</i>
	 * @return 部门名
	 */
	private String getBuMenName(String bumenID){
		String result="";
		try {
			IOrgMgmtService IOService=(IOrgMgmtService)ServiceManager.getInstance().getService(IOrgMgmtService.class);
			OrgBean orBean=IOService.getOrgById(bumenID);
			result=orBean.getOrgname();
		} catch (NotFoundModuleException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ExpiryException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (LicenseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (OsmException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return result;
	}
}

⌨️ 快捷键说明

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