27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
<%@page import="com.amarsoft.are.jbo.BizObject"%>
|
|
<%@page import="jbo.app.tenwa.calc.VI_LC_RENT_PLAN"%>
|
|
<%@page import="com.amarsoft.are.jbo.JBOFactory"%>
|
|
<%@page import="com.amarsoft.are.jbo.JBOTransaction"%>
|
|
<%@page import="java.math.BigDecimal"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
|
String flowunid = CurPage.getParameter("flowunid");
|
|
String planIDs = CurPage.getParameter("planIDs");
|
|
String overPenaltys = CurPage.getParameter("overPenaltys");
|
|
String[] planID = planIDs.split("@");
|
|
String[] overPenalty = overPenaltys.split("@");
|
|
boolean flag = true;
|
|
for(int i=0;i<planID.length;i++){
|
|
String sql = "select case when penalty_over!='"+overPenalty[i]+"' then 0 else 1 end from vi_lc_rent_plan where id='"+planID[i]+"'";
|
|
SqlObject so = new SqlObject(sql);
|
|
String result = Sqlca.getString(so);
|
|
if("0".equals(result)){
|
|
flag = false;
|
|
}
|
|
}
|
|
if(!flag){
|
|
out.println("ERROR");
|
|
}else{
|
|
out.println("SUCCESS");
|
|
}
|
|
%><%@ include file="/IncludeEndAJAX.jsp"%> |