%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2017-08-02
Content: 示例详情页面
History Log:
*/
String option = CurPage.getParameter("option");
//新增和修改的查询逻辑不同,需要判断
String sql = "select max(start_date),BASE_RATE_HALF,BASE_RATE_ONE,BASE_RATE_THREE,BASE_RATE_FIVE,BASE_RATE_ABOVEFIVE from LC_STANDARD_INTEREST ";
if("edit".equals(option)){
sql += "where start_date<(select start_date from LC_STANDARD_INTEREST where id='"+CurPage.getParameter("id")+"')";
}
ASResultSet rs = Sqlca.getASResultSet2(sql);
String BASE_RATE_HALF = "";
String BASE_RATE_ONE = "";
String BASE_RATE_THREE = "";
String BASE_RATE_FIVE = "";
String BASE_RATE_ABOVEFIVE = "";
if(rs.next()){
BASE_RATE_HALF = rs.getStringValue("BASE_RATE_HALF");
BASE_RATE_ONE = rs.getStringValue("BASE_RATE_ONE");
BASE_RATE_THREE = rs.getStringValue("BASE_RATE_THREE");
BASE_RATE_FIVE = rs.getStringValue("BASE_RATE_FIVE");
BASE_RATE_ABOVEFIVE = rs.getStringValue("BASE_RATE_ABOVEFIVE");
}
String sTempletNo = "LCStandardInterestInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setHtmlEvent("BASE_RATE_HALF,BASE_RATE_ONE,BASE_RATE_THREE,BASE_RATE_FIVE,BASE_RATE_ABOVEFIVE", "onchange", "getRateByBase");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{"true","All","Button","返回","返回列表","returnList()","","","","btn_icon_return"}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>