diff --git a/WebContent/Tenwa/Core/Standard/LCStandardInterestInfo.jsp b/WebContent/Tenwa/Core/Standard/LCStandardInterestInfo.jsp index 663c9f858..cbab210a1 100644 --- a/WebContent/Tenwa/Core/Standard/LCStandardInterestInfo.jsp +++ b/WebContent/Tenwa/Core/Standard/LCStandardInterestInfo.jsp @@ -5,14 +5,28 @@ Content: 示例详情页面 History Log: */ - + 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 "+ + "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.ReadOnly = "-2";//只读模式 dwTemp.genHTMLObjectWindow(CurPage.getParameter("id")); - String sButtons[][] = { {"true","All","Button","保存","保存所有修改","as_save(0)","","","",""}, {"true","All","Button","返回","返回列表","returnList()","","","","btn_icon_return"} @@ -21,8 +35,29 @@ %><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file