51 lines
2.0 KiB
Plaintext
51 lines
2.0 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: chencheng 2017-06-05
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
|
if(sPrevUrl == null) sPrevUrl = "";
|
|
String sTempletNo = "LBInsuranceClaimInfo";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
|
|
{"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"},
|
|
};
|
|
String orgCompany=CurUser.getOrgID();
|
|
if(orgCompany.length()>13){
|
|
orgCompany=orgCompany.substring(0,13);
|
|
}
|
|
orgCompany=orgCompany.substring(0,orgCompany.length()-4);
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function goBack(){
|
|
AsControl.OpenView("/Tenwa/Lease/App/BussinessOperation/InsuranceClaim/InsuranceClaimList.jsp", "","_self","");
|
|
}
|
|
function saveRecord(){
|
|
var claims_money=getItemValue(0,getRow(),"claims_money");
|
|
if(claims_money!=""&&claims_money<0)
|
|
{
|
|
alert("理赔金额不能小于0");
|
|
return;
|
|
}
|
|
as_save("myiframe0");
|
|
}
|
|
function selectInsurance(){
|
|
AsDialog.OpenSelector("selectInsurance","","",function(sReturn){
|
|
if(!sReturn||sReturn=="_CANCEL_"){
|
|
return;
|
|
}
|
|
sReturn = sReturn.split("@");//返回值
|
|
setItemValue(0,getRow(),"INSURANCE_ID", sReturn[0]);//设置页面上面的值
|
|
setItemValue(0,getRow(),"INSURANCE_NAME", sReturn[1]);//设置页面上面的值
|
|
setItemValue(0,getRow(),"CONTRACT_NUMBER", sReturn[2]);//设置页面上面的值
|
|
setItemValue(0,getRow(),"CUSTOMER_NAME", sReturn[3]);//设置页面上面的值
|
|
},"请选择保险单号")
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |