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.
276 lines
9.4 KiB
276 lines
9.4 KiB
/***************************************************************
|
|
* <p>ProName:LLClaimCaseReviewAppInput.js</p>
|
|
* <p>Title:案件审核申请</p>
|
|
* <p>Description:案件审核申请</p>
|
|
* <p>Copyright:Copyright (c) 2014</p>
|
|
* <p>Company:Sinosoft</p>
|
|
* @author : lixf
|
|
* @version : 1.0
|
|
* @date : 2014-04-20
|
|
****************************************************************/
|
|
var showInfo;
|
|
var turnPage = new turnPageClass();
|
|
var turnPage1 = new turnPageClass();
|
|
var turnPage2 = new turnPageClass();
|
|
var tSQLInfo = new SqlClass();
|
|
|
|
/**
|
|
* 查询案件
|
|
*/
|
|
function queryMain(tFlag) {
|
|
if(!verifyDiv("divMainQuery")){
|
|
return false;
|
|
}
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_claim");
|
|
tSQLInfo.setResourceName("g_claim.LLClaimCaseReviewAppSql");
|
|
/*tSQLInfo.setSqlId("LLClaimCaseReviewAppSql");
|
|
|
|
tSQLInfo.addSubPara(document.all('GrpRgtNo').value);
|
|
tSQLInfo.addSubPara(document.all('GrpName').value);
|
|
tSQLInfo.addSubPara(document.all('AcceptCom').value);
|
|
tSQLInfo.addSubPara(document.all('StartDate').value);
|
|
tSQLInfo.addSubPara(document.all('EndDate').value);
|
|
tSQLInfo.addSubPara(document.all('AcceptWorkdays').value);
|
|
tSQLInfo.addSubPara(mManageCom);
|
|
tSQLInfo.addSubPara(document.all('ActivityID').value);*/
|
|
|
|
tSQLInfo.setSqlId("LLClaimCaseReviewAppSql2");
|
|
tSQLInfo.addSubPara(document.all('RgtNo').value);
|
|
tSQLInfo.addSubPara(document.all('CustomerName').value);
|
|
tSQLInfo.addSubPara(document.all('Birthday').value);
|
|
tSQLInfo.addSubPara(document.all('Gender').value);
|
|
tSQLInfo.addSubPara(document.all('IDType').value);
|
|
tSQLInfo.addSubPara(document.all('IDNo').value);
|
|
tSQLInfo.addSubPara(mManageCom);
|
|
|
|
turnPage1.queryModal(tSQLInfo.getString(),MainCaseGrid,2);
|
|
if (!turnPage1.strQueryResult && tFlag==1) {
|
|
i18nAlert("未查询到符合条件的查询结果!", "LIS-03016");
|
|
return false;
|
|
} else if (turnPage1.strQueryResult) {
|
|
setMulLineColor(MainCaseGrid);
|
|
}
|
|
for(var i=0;i<MainCaseGrid.mulLineCount;i++){
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_claim");
|
|
tSQLInfo.setResourceName("g_claim.LLClaimCaseReviewAppSql");
|
|
tSQLInfo.setSqlId("LLClaimCaseReviewAppSql4");
|
|
tSQLInfo.addSubPara(MainCaseGrid.getRowColData(i,2));
|
|
var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
|
|
if(tArr != null && tArr != "" && tArr[0][0]=="1"){
|
|
document.getElementsByName(MainCaseGrid.instanceName + "2")[i].style.color = 'red';
|
|
}
|
|
}
|
|
|
|
}
|
|
//为MulLine设置颜色
|
|
function setMulLineColor(ObjGrid) {
|
|
|
|
//为MulLine设置颜色
|
|
for (var i=0;i<ObjGrid.mulLineCount;i++) {
|
|
|
|
var tAcceptWorkdays = ObjGrid.getRowColData(i, 14);//经过天数
|
|
|
|
if (tAcceptWorkdays>=15) {
|
|
document.getElementsByName(ObjGrid.instanceName + "14")[i].style.fontWeight = 'bold';
|
|
document.getElementsByName(ObjGrid.instanceName + "14")[i].style.color = 'red';
|
|
}
|
|
|
|
var days = ObjGrid.getRowColData(i, 15);//金综网锁定天数
|
|
if (days>=10){
|
|
document.getElementsByName(ObjGrid.instanceName + "15")[i].style.fontWeight = 'bold';
|
|
document.getElementsByName(ObjGrid.instanceName + "15")[i].style.color = 'red';
|
|
}
|
|
|
|
//add by rnewj 2025-8-20 begin
|
|
var tSpecislFlag = ObjGrid.getRowColData(i, 10);//特殊立案,赔案号背景置为黄色
|
|
if(tSpecislFlag=="特殊立案")
|
|
{
|
|
document.getElementsByName(ObjGrid.instanceName + "2")[i].style.backgroundColor = 'yellow';
|
|
}
|
|
//add by rnewj 2025-8-20 end
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 查询案件
|
|
*/
|
|
/*function querySelf(type) {yjd
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_claim");
|
|
tSQLInfo.setResourceName("g_claim.LLClaimCaseReviewAppSql");
|
|
tSQLInfo.setSqlId("LLClaimCaseReviewAppSql1");
|
|
tSQLInfo.addSubPara(document.all('GrpRgtNo1').value);
|
|
tSQLInfo.addSubPara(document.all('GrpName1').value);
|
|
tSQLInfo.addSubPara(document.all('AcceptCom1').value);
|
|
tSQLInfo.addSubPara(document.all('StartDate1').value);
|
|
tSQLInfo.addSubPara(document.all('EndDate1').value);
|
|
tSQLInfo.addSubPara(document.all('AcceptWorkdays1').value);
|
|
tSQLInfo.addSubPara(mManageCom);
|
|
tSQLInfo.addSubPara(document.all('ActivityID').value);
|
|
tSQLInfo.addSubPara(mOperator);
|
|
|
|
turnPage2.queryModal(tSQLInfo.getString(),SelfCaseGrid, 2);
|
|
if (turnPage2.strQueryResult) {
|
|
setMulLineColor(SelfCaseGrid);
|
|
}
|
|
if (!turnPage2.strQueryResult && type==1) {
|
|
i18nAlert("未查询到符合条件的查询结果!", "LIS-03016");
|
|
return false;
|
|
}
|
|
}*/
|
|
function querySelf() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_claim");
|
|
tSQLInfo.setResourceName("g_claim.LLClaimCaseReviewAppSql");
|
|
tSQLInfo.setSqlId("LLClaimCaseReviewAppSql3");
|
|
tSQLInfo.addSubPara(mOperator);
|
|
tSQLInfo.addSubPara(mManageCom);
|
|
|
|
turnPage2.queryModal(tSQLInfo.getString(),SelfCaseGrid, 2);
|
|
if (turnPage2.strQueryResult) {
|
|
setMulLineColor(SelfCaseGrid);
|
|
}
|
|
for(var i=0;i<SelfCaseGrid.mulLineCount;i++){
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_claim");
|
|
tSQLInfo.setResourceName("g_claim.LLClaimCaseReviewAppSql");
|
|
tSQLInfo.setSqlId("LLClaimCaseReviewAppSql4");
|
|
tSQLInfo.addSubPara(SelfCaseGrid.getRowColData(i,2));
|
|
var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
|
|
if(tArr != null && tArr != "" && tArr[0][0]=="1"){
|
|
document.getElementsByName(SelfCaseGrid.instanceName + "2")[i].style.color = 'red';
|
|
}
|
|
}
|
|
if (!turnPage2.strQueryResult) {
|
|
/* i18nAlert("未查询到符合条件的查询结果!", "LIS-03016");
|
|
return false;*/
|
|
}
|
|
}
|
|
/**
|
|
* 申请案件
|
|
*/
|
|
function applayClick() {
|
|
|
|
var tSelNo = MainCaseGrid.getSelNo()-1;
|
|
if (tSelNo<0) {
|
|
i18nAlert("请先选择公共池中的数据!", "LIS-04195");
|
|
return false;
|
|
}
|
|
if (!QXIsno("1800501005",mOperator,MainCaseGrid.getRowColData(tSelNo,2),MainCaseGrid.getRowColData(tSelNo,16))){
|
|
return false;
|
|
}
|
|
var tGrpRgtNo = MainCaseGrid.getRowColData(tSelNo,1);
|
|
fm.SelectGrpRgtNo.value = tGrpRgtNo;
|
|
|
|
fm.Operate.value="APPLY";
|
|
submitForm();
|
|
}
|
|
/**
|
|
* 进入案件
|
|
*/
|
|
function enterCase(parm1) {
|
|
|
|
var tSelNo;
|
|
if (parm1!=null && parm1!="") {
|
|
tSelNo = document.all(parm1).all("SelfCaseGridNo").value;
|
|
tSelNo = tSelNo - turnPage2.pageIndex*turnPage2.pageLineNum;
|
|
SelfCaseGrid.radioSel(tSelNo);
|
|
tSelNo = tSelNo - 1;
|
|
} else {
|
|
tSelNo = SelfCaseGrid.getSelNo() - 1;
|
|
}
|
|
|
|
if (tSelNo<0) {
|
|
i18nAlert("请先选择个人池中的数据!", "LIS-04196");
|
|
return false;
|
|
}
|
|
|
|
var tGrpRgtNo = SelfCaseGrid.getRowColData(tSelNo,1);
|
|
var tRgtNo = SelfCaseGrid.getRowColData(tSelNo,2)
|
|
fm.SelectGrpRgtNo.value = tGrpRgtNo;
|
|
window.location.href = "LLClaimCaseReviewInput.jsp?GrpRgtNo="+tGrpRgtNo+"&RgtNo="+tRgtNo+"&Mode=0";
|
|
}
|
|
/**
|
|
* 释放案件
|
|
*/
|
|
function releaseCase() {
|
|
|
|
var tSelNo = SelfCaseGrid.getSelNo()-1;
|
|
if (tSelNo<0) {
|
|
i18nAlert("请先选择个人池中的数据!", "LIS-04196");
|
|
return false;
|
|
}
|
|
var tGrpRgtNo = SelfCaseGrid.getRowColData(tSelNo,1);
|
|
fm.SelectGrpRgtNo.value = tGrpRgtNo;
|
|
|
|
fm.Operate.value="RELEASE";
|
|
submitForm();
|
|
}
|
|
/**
|
|
* 新增案件
|
|
*/
|
|
function newCase() {
|
|
|
|
window.location.href="LLClaimCaseReviewInput.jsp";
|
|
}
|
|
|
|
/**
|
|
* 提交数据
|
|
*/
|
|
function submitForm() {
|
|
|
|
var showStr = i18nMessage("正在处理数据,请您稍候并且不要修改屏幕上的值或链接其他页面!", "LIS-04535");
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content="+ encodeURIComponent(showStr);
|
|
//showInfo = window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
|
|
var name='提示'; //网页名称,可为空;
|
|
var iWidth=550; //弹出窗口的宽度;
|
|
var iHeight=250; //弹出窗口的高度;
|
|
var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置
|
|
var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置
|
|
showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);
|
|
|
|
showInfo.focus();
|
|
//fm.submit();
|
|
ajaxSubmit2(document.getElementById("fm"),afterSubmit);
|
|
}
|
|
|
|
/**
|
|
* 提交数据后返回操作
|
|
*/
|
|
function afterSubmit(FlagStr, content) {
|
|
|
|
if (typeof(showInfo)=="object" && typeof(showInfo)!="unknown") {
|
|
showInfo.close();
|
|
}
|
|
|
|
if (FlagStr=="Fail") {
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content="+ encodeURIComponent(content);
|
|
var name='提示'; //网页名称,可为空;
|
|
var iWidth=550; //弹出窗口的宽度;
|
|
var iHeight=250; //弹出窗口的高度;
|
|
var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置
|
|
var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置
|
|
showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);
|
|
|
|
showInfo.focus();
|
|
} else {
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=S&content="+ encodeURIComponent(content);
|
|
var name='提示'; //网页名称,可为空;
|
|
var iWidth=550; //弹出窗口的宽度;
|
|
var iHeight=250; //弹出窗口的高度;
|
|
var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置
|
|
var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置
|
|
showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);
|
|
|
|
showInfo.focus();
|
|
initForm();
|
|
queryMain();
|
|
}
|
|
}
|
|
|