放款信息查询

This commit is contained in:
liuzhao 2019-03-16 16:42:40 +08:00
parent 6e90528ea5
commit 5e7106fb6c
2 changed files with 79 additions and 0 deletions

View File

@ -0,0 +1,37 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%@include file="/Tenwa/Core/FlowManager/BaseFunction/BaseFlowListFunction.jspf" %>
<%
/*
Author: undefined 2018-11-14
Content: 付款申请查询
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("VI_PAY_APPLY");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(15);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
var userId=getItemValue(0,i,"USERID");
if(userId=="system"){
getObj(0,i,"ENDTIME").innerHTML=getObj(0,i,"BEGINTIME").textContent;
}
getObj(0,i,"ACTION").innerHTML= '<a onclick="javascript:viewFlowGraph()">显示流程图</a>&nbsp;&nbsp;&nbsp; <a href=# onclick="javascript:viewHisTab()">申请详情</a> ';
}
setColumnWidth(0,"ACTION",150);
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,42 @@
package quartz;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import com.amarsoft.are.jbo.JBOException;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.jbo.JBOTransaction;
import com.tenwa.reckon.util.Conn;
public class DbOptimizePenalty implements Job {
@Override
public void execute(JobExecutionContext arg0) throws JobExecutionException{
JBOTransaction tx=null;
Conn conn=null;
try {
tx= JBOFactory.createJBOTransaction();
conn= new Conn(tx);
//²åÈëÊý¾Ýµ½ÁÙʱ±í
String updateTemp=
"update\n" +
" lc_rent_plan lc\n" +
"left join vi_contract_penalty vi on vi.payment_number = lc.PAYMENT_NUMBER\n" +
"and lc.PLAN_LIST = vi.plan_list and lc.PLAN_DATE=vi.plan_date\n" +
"set lc.PENALTY=vi.penalty";
conn.executeUpdate(updateTemp);
tx.commit();
} catch (Exception e) {
try {
if(tx!=null){
tx.rollback();
}
} catch (JBOException e1) {
e1.printStackTrace();
}
e.printStackTrace();
}
}
}