2018-06-14 21:24:56 +08:00

73 lines
5.7 KiB
Plaintext
Raw Permalink 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 contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%@ page import="com.amarsoft.dict.als.manage.NameManager" %>
<%
String docClassItemno=CurPage.getAttribute("DOCNO");//承租人基本资料
String mainType=CurPage.getAttribute("mainType");//类型
String compClientID = request.getParameter("CompClientID");
String sObjectType = CurPage.getParameter("ObjectType"); //对象类型
String sObjectNo = CurPage.getParameter("ObjectNo"); //对象编号
String sRightType=CurPage.getParameter("RightType");
String sTempletNo=CurPage.getParameter("TempletNo");
List<BizObject> fbo=null;
fbo=JBOFactory.getBizObjectManager("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT").createQuery("select O.PRODUCTID from O where O.flow_unid=:flowunid").setParameter("flowunid", sObjectNo).getResultList(false);
String productid=fbo.get(0).getAttribute("PRODUCTID").getString();
String sParam= "ObjectType="+sObjectType+"&ObjectNo="+sObjectNo+"&RightType="+sRightType+"&TempletNo="+sTempletNo+"&mainType="+mainType;
List<BizObject> cust=null;
if("Customer".equals(mainType)&&!productid.equals("004")){
cust=JBOFactory.getBizObjectManager("jbo.app.tenwa.customer.CUSTOMER_INFO").createQuery("select O.customerid,O.customername from O left join jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP les on O.customerid=les.customer_id where les.flowunid=:flowunid").setParameter("flowunid", sObjectNo).getResultList(false);
}else if("Customer".equals(mainType)&&productid.equals("004")){
cust=JBOFactory.getBizObjectManager("jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP").createQuery("select cpt.customerid,cpt.fullname from O left join jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP cpt on cpt.customerid=O.customer_id and O.flowunid=cpt.flowunid where O.flowunid=:flowunid").setParameter("flowunid", sObjectNo).getResultList(false);
}else if("Guarantee".equals(mainType)){
cust=JBOFactory.getBizObjectManager("jbo.app.tenwa.customer.CUSTOMER_INFO").createQuery("select O.customerid,O.customername from O left join jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP unit on O.customerid=unit.assuror where unit.flowunid=:flowunid").setParameter("flowunid", sObjectNo).getResultList(false);
}else if("Guarantees".equals(mainType)){
cust=JBOFactory.getBizObjectManager("jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP").createQuery("select cpt.customerid,cpt.fullname from O left join jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP cpt on cpt.customerid=O.assuror and O.flowunid=cpt.flowunid where O.flowunid=:flowunid").setParameter("flowunid", sObjectNo).getResultList(false);
}else if("Payfiles".equals(mainType)){
cust=JBOFactory.getBizObjectManager("jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP").createQuery("select cpt.customerid,cpt.fullname from O left join jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP cpt on cpt.customerid=O.customer_id and O.flowunid=cpt.flowunid where O.flowunid=:flowunid").setParameter("flowunid", sObjectNo).getResultList(false);
}else if("Customer_Fact".equals(mainType)){
cust=JBOFactory.getBizObjectManager("jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR_TEMP").createQuery("select O.d_id,O.d_name from O where O.flowunid=:flowunid").setParameter("flowunid", sObjectNo).getResultList(false);
}
//List<BizObject> cust=JBOFactory.getBizObjectManager("jbo.app.tenwa.customer.CUSTOMER_INFO").createQuery("customerid in ('2017042100000006','2017042100000008')").getResultList(false);
for(int i=0;i<cust.size();i++){
String index=""+i;
String customerid="";
String customername="";
if(("Customer".equals(mainType)&&productid.equals("004"))||"Guarantees".equals(mainType)||"Payfiles".equals(mainType)){
customerid=cust.get(i).getAttribute("customerid").getString();
customername=cust.get(i).getAttribute("fullname").getString();
}else if("Customer_Fact".equals(mainType)){
customerid=cust.get(i).getAttribute("d_id").getString();
customername=cust.get(i).getAttribute("d_name").getString();
}else{
customerid=cust.get(i).getAttribute("customerid").getString();
customername=cust.get(i).getAttribute("customername").getString();
}
%>
<%-- <table class="info_data_tablecommon info_group_table" width="100%">
<tbody><tr> <td class="info_group_backgourd_l" width="10">&nbsp;</td>
<td class="info_group_backgourd_2 info_group_backgourd_3" width="10"><span type="EXPAND" onclick="try{changeExpand(this)}catch(e){};"
groupid="0010<%=index%>" id="EXP_0010<%=index%>"></span><span id="imgexpand0010<%=index%>" class="info_group_expand" expand="1" onclick="showHideFields(this,'@SysSub0010<%=index%>')">&nbsp;
</span></td><td class="info_group_backgourd_2" width="100%" onclick="showHideFields(document.getElementById('imgexpand0010<%=index%>'),'@SysSub0010<%=index%>')">
<span class="info_group_title" id="Group_0010<%=index%>" style="width:100%"><span id="Group_Title_0010<%=index%>"><%= NameManager.getItemName("MainType",mainType) %><%=customername%></span></span>
</td>
<td class="info_group_backgourd_r"></td>
</tr>
</tbody> --%>
</table>
<table id="showDataIframe" width="100%" border="0" cellspacing="0" cellpadding="0" id="@SysSub0010<%=index%>">
<tr><td>
<iframe name="customerid_<%=i%>" id="customerid_<%=i%>" src="<%=sWebRootPath%>/Tenwa/Comm/DocList/DocList.jsp?docClassItemno=<%=docClassItemno%>&customerid=<%=customerid%>&CompClientID=<%=compClientID%>&attachmentIndex=<%=index%><%=sParam%>" scrolling="no" marginheight="0" marginwidth="0" style="width: 100%;" frameborder="0"></iframe>
</td></tr>
</table>
<%} %>
</body>
<script type="text/javascript">
$(function(){
$("iframe").height($(window).height()-30);
});
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>