2018-06-03 22:26:41 +08:00

18 lines
853 B
Plaintext

<%@page import="com.amarsoft.are.jbo.JBOTransaction"%>
<%@page import="java.math.BigDecimal"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
String objecttype = CurPage.getAttribute("OBJECTTYPE");
String flowunid = CurPage.getAttribute("FLOW_UNID");
String docattributeID = "";
try{
SqlObject so = new SqlObject("SELECT la.id FROM lb_docrelative lr INNER JOIN LB_DOCLIBRARY ll ON ll.relative_id=lr.id INNER JOIN LB_DOCATTRIBUTE la ON la.library_id=ll.id WHERE lr.objecttype=:objecttype AND lr.flow_unid=:flowunid");
so.setParameter("objecttype", objecttype);
so.setParameter("flowunid", flowunid);
docattributeID = Sqlca.getString(so);
}catch(Exception e){
e.printStackTrace();
docattributeID = "";
}
out.println(docattributeID);
%><%@ include file="/IncludeEndAJAX.jsp"%>