apzl_leasing/WebContent/Common/FinanceReport/SelectCompareReport.jsp
2018-06-03 22:26:41 +08:00

27 lines
1.2 KiB
Plaintext

<%@page import="com.amarsoft.are.util.json.*"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%><%
String sObjectNo = CurPage.getParameter("CustomerID");
String sReportDate = CurPage.getParameter("ReportDate");
if(sObjectNo == null) sObjectNo = "";
if(sReportDate == null) sReportDate = "";
List<BizObject> l = JBOFactory.createBizObjectQuery("jbo.finasys.CUSTOMER_FSRECORD", "CustomerID=:CustomerID and ReportDate <> :ReportDate order by ReportDate desc")
.setParameter("CustomerID", sObjectNo).setParameter("ReportDate", sReportDate).getResultList(false);
ElementFilter elf = new NameListFilter("{RecordNo}{ReportScope}{ReportDate}");
String[][] comboBox = new String[2][l.size()];
for(int i=0;i<l.size();i++){
BizObject bo = l.get(i);
comboBox[0][i] = JSONEncoder.encode(JSONObject.createObject(bo, elf));
comboBox[1][i] = bo.getAttribute("ReportDate").getString();
}
%>
<div>
<br>
<b>¿É¶Ô±È²Æ±¨ÆÚ´Î</b>&nbsp;&nbsp;
<select id="SelectReportDate" class="right" onchange="parent.OpenReport(this.options[this.selectedIndex].value)">
<option value=''></option>
<%out.print(HTMLControls.generateDropDownSelect(comboBox[0],comboBox[1],""));%>
</select>
</div>
<%@ include file="/IncludeEnd.jsp"%>