You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
FZ/lis-module-grp-claim-web/src/main/webapp/g_claim/LLClaimAssReportInit.jsp

295 lines
7.2 KiB

<%
/***************************************************************
* <p>ProName:LLClaimAssReportInit.jsp</p>
* <p>Title:报案关联</p>
* <p>Description:报案关联</p>
* <p>Copyright:Copyright (c) 2014</p>
* <p>Company:Sinosoft</p>
* @author : 高冬华
* @version : 8.0
* @date : 2014-01-01
****************************************************************/
%>
<script language="JavaScript">
/**
* 初始化界面
*/
function initForm() {
try {
initParam();
initInpBox();
initButton();
initAssociatedReportGrid();
initLLClaimReportGrid();
queryOnReportInfo();
queryOffReportInfo();
} catch (re) {
i18nAlert("初始化界面错误!", "LIS-01178");
}
}
/**
* 初始化参数
*/
function initParam() {
try {
fm.RgtNo.value = mRgtNo;
fm.CustomerNo.value = mCustomerNo;
} catch (re) {
i18nAlert("初始化参数错误!", "LIS-01179");
}
}
/**
* 初始化录入控件
*/
function initInpBox() {
try {
} catch (ex) {
i18nAlert("初始化录入控件错误!", "LIS-01180");
}
}
/**
* 初始化按钮
*/
function initButton() {
try {
if(mMode=="0"){
document.getElementById("tRela").style.display="";
document.getElementById("removeRela").style.display="";
}else if(mMode=="1"){
document.getElementById("tRela").style.display="none";
document.getElementById("removeRela").style.display="none";
}
} catch (ex) {
i18nAlert("初始化按钮错误!", "LIS-01186");
}
}
/**
* 把null的字符串转为空
*/
function nullToEmpty(string) {
if ((string=="null")||(string=="undefined")) {
string = "";
}
return string;
}
// 报案信息列表的初始化
function initLLClaimReportGrid() {
var iArray = new Array();
var i = 0;
try{
iArray[i]=new Array();
iArray[i][0]="序号~No."; //列名(此列为顺序号,列名无意义,而且不显示)
iArray[i][1]="30px"; //列宽
iArray[i][2]=10; //列最大值
iArray[i++][3]=0; //是否允许输入,1表示允许,0表示不允许
iArray[i]=new Array();
iArray[i][0]="报案号~ClmNotiNum-1";
iArray[i][1]="140px";
iArray[i][2]=160;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="CustomerNo";
iArray[i][1]="60px";
iArray[i][2]=100;
iArray[i++][3]=3;
iArray[i]=new Array();
iArray[i][0]="投保人名称~PolowneName";
iArray[i][1]="160px";
iArray[i][2]=160;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="姓名~Name-1";
iArray[i][1]="60px";
iArray[i][2]=100;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="报案登记人~ClmNotiRegistrt";
iArray[i][1]="80px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="报案登记日期~ClmNotiRegnDate";
iArray[i][1]="100px";
iArray[i][2]=100;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="报案确认人~ClmNotiConfirmer";
iArray[i][1]="80px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="报案确认日期~ClmNotiConfmnDate";
iArray[i][1]="80px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="索赔金额~ClmAmt-1";
iArray[i][1]="80px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="是否重大案件~MajCase_Yes_No";
iArray[i][1]="80px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="报案机构~ClmsNotiOrg";
iArray[i][1]="80px";
iArray[i][2]=80;
iArray[i++][3]=0;
LLClaimReportGrid = new MulLineEnter( "fm" , "LLClaimReportGrid" );
//这些属性必须在loadMulLine前
LLClaimReportGrid.mulLineCount = 0;
LLClaimReportGrid.displayTitle = 1;
LLClaimReportGrid.locked = 0;
LLClaimReportGrid.canSel =1; // 1 显示 ;0 隐藏(缺省值)
LLClaimReportGrid.hiddenPlus=1;
LLClaimReportGrid.hiddenSubtraction=1;
LLClaimReportGrid.loadMulLine(iArray);
}
catch(ex){
alert("ex");
}
}
// 已关联报案信息
function initAssociatedReportGrid() {
var iArray = new Array();
var i=0;
try{
iArray[i]=new Array();
iArray[i][0]="序号~No."; //列名(此列为顺序号,列名无意义,而且不显示)
iArray[i][1]="30px"; //列宽
iArray[i][2]=10; //列最大值
iArray[i++][3]=0; //是否允许输入,1表示允许,0表示不允许
iArray[i]=new Array();
iArray[i][0]="报案号~ClmNotiNum-1";
iArray[i][1]="140px";
iArray[i][2]=140;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="CustomerNo";
iArray[i][1]="60px";
iArray[i][2]=100;
iArray[i++][3]=3;
iArray[i]=new Array();
iArray[i][0]="投保人名称~PolowneName";
iArray[i][1]="160px";
iArray[i][2]=120;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="姓名~Name-1";
iArray[i][1]="60px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="报案登记人~ClmNotiRegistrt";
iArray[i][1]="80px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="报案登记日期~ClmNotiRegnDate";
iArray[i][1]="100px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="报案确认人~ClmNotiConfirmer";
iArray[i][1]="80px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="报案确认日期~ClmNotiConfmnDate";
iArray[i][1]="80px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="索赔金额~ClmAmt-1";
iArray[i][1]="80px";
iArray[i][2]=60;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="是否重大案件~MajCase_Yes_No";
iArray[i][1]="80px";
iArray[i][2]=80;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="报案机构~ClmsNotiOrg";
iArray[i][1]="80px";
iArray[i][2]=60;
iArray[i++][3]=0;
iArray[i]=new Array();
iArray[i][0]="已关联案件号~AssoCaseNum";
iArray[i][1]="160px";
iArray[i][2]=140;
iArray[i++][3]=0;
AssociatedReportGrid = new MulLineEnter( "fm" , "AssociatedReportGrid" );
//这些属性必须在loadMulLine前
AssociatedReportGrid.mulLineCount = 0;
AssociatedReportGrid.displayTitle = 1;
AssociatedReportGrid.locked = 0;
AssociatedReportGrid.canSel =1; // 1 显示 ;0 隐藏(缺省值)
//AssociatedReportGrid.selBoxEventFuncName ="selfLLReport"; //响应的函数名,不加扩号
AssociatedReportGrid.hiddenPlus=1;
AssociatedReportGrid.hiddenSubtraction=1;
AssociatedReportGrid.loadMulLine(iArray);
}
catch(ex){
i18nAlert("初始化界面信息出错->{0}", "LIS-01187", "SelfLLClaimReportGrid");
}
}
</script>