92 lines
4.5 KiB
Plaintext
92 lines
4.5 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
|
|
String ID = CurPage.getParameter("id");
|
|
if(ID == null)ID = "";
|
|
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
|
if(sFlowUnid == null)sFlowUnid = "";
|
|
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
|
|
if(sTempletNo == null) sTempletNo = "LCFundPlanChangeInListTemp";
|
|
String sInfoTempletNo = CurPage.getParameter("InfoTempletNo");//模板号
|
|
if(sInfoTempletNo == null) sInfoTempletNo = "LCFundPlanChangeInInfoTemp";
|
|
String RightType= CurPage.getParameter("RightType");
|
|
if(RightType == null) RightType = "";
|
|
String taskno=CurPage.getParameter("TaskNo");
|
|
if(taskno == null) taskno = "";
|
|
String ishistory=CurPage.getParameter("IsHistory");
|
|
String nodeNo=CurPage.getParameter("NodeNo");
|
|
if(ishistory == null) ishistory = "";
|
|
ASObjectModel doTemp = new ASObjectModel(sInfoTempletNo);
|
|
doTemp.setDDDWJbo("PAYMENT_NUMBER","jbo.app.tenwa.calc.LC_CALC_CONDITION_STATUS_TEMP,PAYMENT_NUMBER,PAYMENT_NUMBER,FLOWUNID ='"+sFlowUnid+"' ");
|
|
doTemp.setHtmlEvent("PAYMENT_NUMBER","onchange","changPlanList");
|
|
doTemp.setHtmlEvent("FEE_TYPE","onchange","changPlanList");
|
|
if(null!=ishistory&&ishistory.equals("true")){
|
|
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
|
|
}
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//
|
|
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
|
dwTemp.ReadOnly = "1";//只读模式
|
|
}
|
|
dwTemp.genHTMLObjectWindow(ID);
|
|
CurPage.getCurComp().setAttribute("RightType", RightType);
|
|
String sButtons[][] =null;
|
|
sButtons =new String[][] {
|
|
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
|
|
{"true","","Button","返回","返回","goBack()","","","","btn_icon_return"}
|
|
};
|
|
sButtonPosition = "south";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
if('<%=ID%>'==''){
|
|
setItemReadOnly(0, getRow(), "PAYMENT_NUMBER", false);
|
|
setItemReadOnly(0, getRow(), "FEE_TYPE", false);
|
|
}
|
|
});
|
|
function saveRecord(){
|
|
var paymentnumber = getItemValue(0, getRow(), 'PAYMENT_NUMBER');
|
|
var feetype=getItemValue(0,getRow(),"FEE_TYPE");
|
|
var contractid = getItemValue(0, getRow(), 'CONTRACT_ID');
|
|
var sparam = contractid+"@"+paymentnumber+"@"+feetype+"@"+"<%=sFlowUnid%>"+"@"+"<%=CurUser.getUserID()%>";
|
|
as_save("myiframe0","checkCautionMoney('"+sparam+"')");
|
|
}
|
|
function checkCautionMoney(sparam){
|
|
var params = sparam.split("@");
|
|
if(params[2]=='feetype2' || params[2]=='feetype16' ||params[2]=='feetype17' ){
|
|
var sParam = "ContractId="+params[0]+",PaymentNumber="+params[1]+",FlowUnid="+params[3]+",CurUserID="+params[4];
|
|
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.lease.flow.fund.fundplanchange.FundPlanChangeListController","checkCautionMoney",sParam);
|
|
returnValue = returnValue.split("@");
|
|
if(returnValue[0]=='success'){
|
|
alert(returnValue[1]);
|
|
}
|
|
}
|
|
}
|
|
function goBack(){
|
|
var sUrl="/Tenwa/Lease/Flow/Fund/FundPlanChange/FundPlanChangeList.jsp";
|
|
var sParam = "FlowUnid="+"<%=sFlowUnid%>"+"&TaskNo=<%=taskno%>&RightType=<%=RightType%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&InfoTempletNo=<%=sInfoTempletNo%>&TempletNo=<%=sTempletNo%>";
|
|
AsControl.OpenView(sUrl,sParam,"_self","");
|
|
}
|
|
function selectPayObject(){
|
|
AsDialog.OpenSelector("selectPayObject","","",function(sReturn){
|
|
if(!sReturn||sReturn=="_CANCEL_"){
|
|
return;
|
|
}
|
|
sReturn = sReturn.split("@");
|
|
setItemValue(0,0,"PAY_OBJ", sReturn[0]);
|
|
setItemValue(0,0,"PAY_OBJ_NAME", sReturn[1]);
|
|
},"请选择支付对象");
|
|
}
|
|
function changPlanList(){
|
|
var paymentnumber = getItemValue(0, getRow(), 'PAYMENT_NUMBER');
|
|
var feetype=getItemValue(0,getRow(),"FEE_TYPE");
|
|
var contractid = getItemValue(0, getRow(), 'CONTRACT_ID');
|
|
if(typeof(paymentnumber)!=undefined && paymentnumber!='' && typeof(feetype)!=undefined&& feetype!=''){
|
|
var sparam = "ContractId="+contractid+",PaymentNumber="+paymentnumber+",FeeType=" + feetype + ",FlowUnid=<%=sFlowUnid%>,CurUserID=<%=CurUser.getUserID()%>";
|
|
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.lease.flow.fund.fundplanchange.FundPlanChangeListController","createFundPlanList",sparam);
|
|
setItemValue(0,0,"PLAN_LIST", returnValue);
|
|
}
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |