40 lines
1.4 KiB
Plaintext
40 lines
1.4 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 overMoneys = CurPage.getParameter("overMoneys");
|
|
String mayopeMoney = CurPage.getParameter("mayopeMoney");
|
|
String[] planID = planIDs.split("@");
|
|
String[] overMoney = overMoneys.split("@");
|
|
boolean flag = true;
|
|
SqlObject so = new SqlObject("select case when mayope_money!="+mayopeMoney+" then 0 else 1 end from lc_ebank_temp where flowunid='"+flowunid+"'");
|
|
if("0".equals(Sqlca.getString(so))){
|
|
flag = false;
|
|
}
|
|
boolean flagF = true;
|
|
for(int i=0;i<planID.length;i++){
|
|
String sql = "select case when overmoney!="+overMoney[i]+" then 0 else 1 end from vi_lc_fund_plan where id='"+planID[i]+"'";
|
|
so = new SqlObject(sql);
|
|
String result = Sqlca.getString(so);
|
|
if("0".equals(result)){
|
|
flagF = false;
|
|
}
|
|
}
|
|
String outResult = "";
|
|
if(!flagF){
|
|
outResult += "ERROR";
|
|
}else{
|
|
outResult += "SUCCESS";
|
|
}
|
|
if(!flag){
|
|
outResult += "@ERROR";
|
|
}else{
|
|
outResult += "@SUCCESS";
|
|
}
|
|
out.println(outResult);
|
|
%><%@ include file="/IncludeEndAJAX.jsp"%> |