60 lines
2.1 KiB
Plaintext
60 lines
2.1 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||
/*
|
||
Author: undefined 2017-08-02
|
||
Content:
|
||
History Log:
|
||
*/
|
||
|
||
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
||
String applytype = CurPage.getParameter("ApplyType");
|
||
String ishistory=CurPage.getParameter("IsHistory");
|
||
String RightType=CurPage.getParameter("RightType");
|
||
ASObjectModel doTemp = new ASObjectModel("TodoAdjustInterestList");
|
||
//判断业务类型
|
||
String businessType="";
|
||
String orgId=CurUser.getOrgID().substring(0,7);
|
||
if("AdjustInterestCarApply".equals(applytype)){
|
||
businessType="1";
|
||
}else{
|
||
if("8009010".equals(orgId)){
|
||
businessType="2";
|
||
}else if("8009011".equals(orgId)){
|
||
businessType="3";
|
||
}else{
|
||
businessType="2,3";
|
||
}
|
||
}
|
||
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.MultiSelect = true;
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(10);
|
||
dwTemp.genHTMLObjectWindow(businessType+","+sFlowUnid+","+sFlowUnid);
|
||
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
||
isShowButton=false;
|
||
}
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
String sButtons[][] = {
|
||
{"true","","Button","调息","调息","run()","","","","btn_icon_adjust",""},
|
||
};
|
||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
function run()
|
||
{
|
||
var PAYMENT_NUMBER = getItemValueArray(0,"PAYMENT_NUMBER");//合同主键
|
||
var PRODUCT_ID = getItemValueArray(0,"PRODUCT_ID");
|
||
if(PAYMENT_NUMBER.length==0){
|
||
alert("请选择一条数据!");
|
||
return;
|
||
}
|
||
var result="";
|
||
for(i in PAYMENT_NUMBER){
|
||
result += AsControl.RunJavaMethod("com.tenwa.reckon.adjustInterest.AdjustInterestController","run","payment_number="+PAYMENT_NUMBER[i]+",product_id="+PRODUCT_ID[i]+",flowunid=<%=sFlowUnid%>");
|
||
}
|
||
alert(result);
|
||
reloadSelf();
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |