apzl_leasing/WebContent/Tenwa/Lease/Flow/Comm/LCStandard/LCStandardInterestTempInof.jsp
2018-06-11 14:25:28 +08:00

43 lines
2.0 KiB
Plaintext
Raw Blame History

<%@ page contentType="text/html; charset=GBK"%>
<%@page import="com.tenwa.reckon.util.TbBeanTools"%>
<%@page import="com.tenwa.reckon.bean.TabCalBean"%>
<%@page import="com.amarsoft.are.jbo.JBOTransaction"%>
<%@page import="com.tenwa.comm.util.jboutil.DataOperatorUtil"%>
<%@ include file="/IncludeBegin.jsp"%><%
/*
Author: undefined 2017-08-02
Content: 刻절圈헙女충
History Log:
*/
JBOTransaction tx=null;
tx=JBOFactory.createJBOTransaction();
String sFlowUnid = CurPage.getParameter("FlowUnid");//직넋긍뵀
BizObject flow=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_STANDARD_INTEREST_TEMP","flowunid=:flowunid").setParameter("flowunid", sFlowUnid).getSingleResult(false);
String startdate="";
if(flow!=null){
startdate=flow.getAttribute("start_date").getString();
}
BizObject flowold=null;
String oldid="";
if(!startdate.equals("")&&startdate!=null){
String sql="SELECT id FROM LC_STANDARD_INTEREST WHERE start_date<:start_date ORDER BY start_date DESC LIMIT 0,1";
Map<String,String> param=new HashMap<String, String>();
param.put("start_date", startdate);
List<Map<String,String>>list= DataOperatorUtil.getDataBySql(tx, sql, param);
//flowold=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_STANDARD_INTEREST","SELECT id FROM O WHERE O.start_date<:start_date ORDER BY O.start_date DESC LIMIT 0,1").setParameter("start_date", startdate).getSingleResult(false);
if(list.size()>0){
oldid=list.get(0).get("id");
}
}
tx.commit();
%><%@include file="/Resources/CodeParts/Frame02.jsp"%>
<script type="text/javascript">
mytoptd.height=200;
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/LCStandard/NowLCStandardInterestTempInof.jsp","","rightup","");
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/LCStandard/OldLCStandardInterestTempInof.jsp","sid=<%=oldid%>","rightdown","");
setTitle("뎠품적쪽",true);
setTitle("<22>늴적쪽",false);
</script>
<%@ include file="/IncludeEnd.jsp"%>