<%@page import="com.tenwa.reckon.product.ASObjectWindowCalc"%> <%@ 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 id = CurPage.getParameter("id"); //新增和修改的查询逻辑不同,需要判断 String sql = "select 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 max(start_date) from LC_STANDARD_INTEREST where start_date<(select start_date from LC_STANDARD_INTEREST where id='"+CurPage.getParameter("id")+"'))"; }else{ sql += "where start_date=(select max(start_date) from LC_STANDARD_INTEREST)"; } 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 = "LCStandardInterestInfo3";//--模板号-- ASObjectModel doTemp = new ASObjectModel(sTempletNo); doTemp.setColTips("BASE_RATE_HALF,BASE_RATE_ONE,BASE_RATE_THREE,BASE_RATE_FIVE,BASE_RATE_ABOVEFIVE", "本次利率"); doTemp.setColTips("ADJUSTED1,ADJUSTED2,ADJUSTED3,ADJUSTED4,ADJUSTED5", "上一次利率"); doTemp.setHtmlEvent("BASE_RATE_HALF,BASE_RATE_ONE,BASE_RATE_THREE,BASE_RATE_FIVE,BASE_RATE_ABOVEFIVE", "onchange", "getRateByBase"); ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request); dwTemp.Style = "2";//freeform dwTemp.genHTMLObjectWindow(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"%>