apzl_leasing/WebContent/Tenwa/Lease/Flow/Contract/ContractInsurance/GetLBDocAttributeIDsForCommon.jsp
2018-06-03 22:26:41 +08:00

27 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@page import="com.amarsoft.are.jbo.JBOTransaction"%>
<%@page import="java.math.BigDecimal"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
/*下载租金支付表 不只是在流程页面所以不光是和flowunid关联还会和contractid关联
*/
//获取对应表名的attributeid
String objecttype = CurPage.getAttribute("OBJECTTYPE");
String flowunid = CurPage.getAttribute("FLOW_UNID");
String doc_name = CurPage.getAttribute("DOC_NAME");
String contract_id = CurPage.getAttribute("CONTRACT_ID");
String attributeID = "";
try{
SqlObject so = new SqlObject("SELECT la.id FROM lb_docrelative lr INNER JOIN LB_DOCLIBRARY ll ON ll.relative_id = lr.id left JOIN LB_DOCATTRIBUTE la on ll.id = la.library_id WHERE lr.objecttype = :objecttype AND lr.flow_unid = :flowunid and ll.doc_name = :doc_name orlr.objecttype = :objecttype AND lr.contract_id = :contract_id and ll.doc_name = :doc_name");
so.setParameter("objecttype", objecttype);
so.setParameter("flowunid", flowunid);
so.setParameter("doc_name", doc_name);
so.setParameter("objecttype", objecttype);
so.setParameter("contract_id", contract_id);
so.setParameter("doc_name", doc_name);
attributeID = Sqlca.getString(so);
}catch(Exception e){
e.printStackTrace();
attributeID = "";
}
out.println(attributeID);
%><%@ include file="/IncludeEndAJAX.jsp"%>