<%@page import="com.amarsoft.are.jbo.JBOTransaction"%> <%@page import="java.math.BigDecimal"%> <%@ page contentType="text/html; charset=GBK"%> <%@ include file="/IncludeBeginMDAJAX.jsp"%><% //仅获取索赔申请书对应libid String objecttype = CurPage.getAttribute("OBJECTTYPE"); String flowunid = CurPage.getAttribute("FLOW_UNID"); String libID = ""; try{ SqlObject so = new SqlObject("SELECT ll.id FROM lb_docrelative lr INNER JOIN LB_DOCLIBRARY ll ON ll.relative_id=lr.id WHERE lr.objecttype=:objecttype AND lr.flow_unid=:flowunid and ll.doc_name = '索赔申请书'"); so.setParameter("objecttype", objecttype); so.setParameter("flowunid", flowunid); libID = Sqlca.getString(so); }catch(Exception e){ e.printStackTrace(); libID = ""; } out.println(libID); %><%@ include file="/IncludeEndAJAX.jsp"%>