79 lines
3.0 KiB
Plaintext
79 lines
3.0 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
|
<%
|
|
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
|
String ProductId=CurPage.getParameter("ProductId");
|
|
if(sFlowUnid == null)sFlowUnid = "";
|
|
String ID = CurPage.getParameter("id");//担保单位ID
|
|
if(ID == null)ID = "";
|
|
String ishistory=CurPage.getParameter("IsHistory");
|
|
String nodeNo=CurPage.getParameter("NodeNo");
|
|
String taskno=CurPage.getParameter("TaskNo");
|
|
// CurPage.getCurComp().setAttribute("RightType","");
|
|
|
|
String RightType= CurPage.getAttribute("RightType");
|
|
|
|
String sTempletNo = "LBClaimsApplyTempInfo";//--模板号
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
if(null!=ishistory&&ishistory.equals("true")){
|
|
// doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
|
|
}
|
|
%>
|
|
<%@ include file="/Tenwa/Lease/Flow/Comm/baseShowInfoFormal.jspf"%>
|
|
<%
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
|
dwTemp.ReadOnly = "1";//只读模式
|
|
}
|
|
//dwTemp.genHTMLObjectWindow(ID);
|
|
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
|
CurPage.getCurComp().setAttribute("RightType", RightType);
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
|
|
{"false","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"}
|
|
};
|
|
//sButtonPosition = "south";
|
|
%>
|
|
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
|
|
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
|
|
function saveRecord(){
|
|
var sFlowUnid = "<%=sFlowUnid%>";
|
|
var ContractId= getItemValue(0,getRow(0),'CONTRACT_ID');
|
|
var ClimApplyTime= getItemValue(0,getRow(0),'CLIMAPPLYTIME');
|
|
var param="ContractId="+ContractId+",FlowUnid="+sFlowUnid+",ClimApplyTime="+ClimApplyTime;
|
|
setItemValue(0,getRow(),"FlowUnid",sFlowUnid);//初始化流程编号
|
|
var result=AsControl.RunJavaMethodTrans("com.tenwa.flow.lease.check.contract.ContractInsuranceClams","updatePaymentOfClamsInfo",param);
|
|
if(result=='success'){
|
|
as_save("myiframe0","");
|
|
}else{
|
|
AsDebug.showMessage("提示",'保存失败,请联系管理员!!!',"","",true);
|
|
}
|
|
reloadSelf();
|
|
}
|
|
|
|
|
|
/*~[Describe=返回列表页面;InputParam=无;OutPutParam=无;]~*/
|
|
function goBack(){
|
|
AsDialog.ClosePage();
|
|
}
|
|
//changeClaimTime()
|
|
function beforeInsert()
|
|
{
|
|
setItemValue(0,0,"InputUserID","<%=CurUser.getUserID()%>");
|
|
setItemValue(0,0,"InputOrgID","<%=CurUser.getOrgID()%>");
|
|
setItemValue(0,0,"InputTime","<%=StringFunction.getTodayNow()%>");
|
|
bIsInsert = false;
|
|
}
|
|
<%/*~[Describe=执行更新操作前执行的代码;]~*/%>
|
|
function beforeUpdate()
|
|
{
|
|
setItemValue(0,0,"UpdateUserID","<%=CurUser.getUserID()%>");
|
|
setItemValue(0,0,"UpdateOrgID","<%=CurUser.getOrgID()%>");
|
|
setItemValue(0,0,"UpdateTime","<%=StringFunction.getTodayNow()%>");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |