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.
215 lines
7.1 KiB
215 lines
7.1 KiB
/***************************************************************
|
|
* <p>ProName:LLClaimSurveyAppInput.js</p>
|
|
* <p>Title:暂停或启动案件</p>
|
|
* <p>Description:暂停或启动案件</p>
|
|
* <p>Copyright:Copyright (c) 2012</p>
|
|
* <p>Company:Sinosoft</p>
|
|
* @author : 高冬华
|
|
* @version : 8.0
|
|
* @date : 2014-02-26
|
|
****************************************************************/
|
|
var showInfo;
|
|
var turnPage = new turnPageClass();
|
|
var turnPage1 = new turnPageClass();
|
|
var turnPage2 = new turnPageClass();
|
|
|
|
//"返回"按钮
|
|
function getToBack(){
|
|
|
|
top.close();
|
|
}
|
|
|
|
/*跳转调查录入界面*/
|
|
//点击查看事件
|
|
function LLSurveyViewClick()
|
|
{
|
|
var strUrl= "LLClaimSurveyInput.jsp?State=2";
|
|
window.open(strUrl);
|
|
}
|
|
|
|
/**
|
|
* 选中待调查任务列表
|
|
* @returns {boolean}
|
|
* @constructor
|
|
*/
|
|
function LLSurveyTaskGridClick()
|
|
{
|
|
var tSelNo = LLInqTaskGrid.getSelNo()-1;
|
|
fm.InqNo.value = LLInqTaskGrid.getRowColData(tSelNo,1);
|
|
if (LLInqTaskGrid.getRowColData(tSelNo,2) == null || LLInqTaskGrid.getRowColData(tSelNo,2)==""){
|
|
fm.ClmNo.value = LLInqTaskGrid.getRowColData(tSelNo,3);
|
|
}
|
|
if (LLInqTaskGrid.getRowColData(tSelNo,3) == null || LLInqTaskGrid.getRowColData(tSelNo,3)==""){
|
|
fm.ClmNo.value = LLInqTaskGrid.getRowColData(tSelNo,2);
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
* 进入调查录入
|
|
*/
|
|
function applyIn(){
|
|
var tSelNo = LLInqTaskGrid.getSelNo()-1;
|
|
if (tSelNo<0){
|
|
i18nAlert("请选择一条待调查录入信息")
|
|
return false;
|
|
}
|
|
|
|
var locflagName = LLInqTaskGrid.getRowColData(tSelNo,12);
|
|
var localflag = "";
|
|
if (locflagName == "本地调查") localflag = "0";
|
|
if (locflagName == "异地调查") localflag = "1";
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_claim");
|
|
tSQLInfo.setResourceName("g_claim.LLClaimSurveyAppSql");
|
|
tSQLInfo.setSqlId("LLClaimSurveyAppSql3");
|
|
tSQLInfo.addSubPara(LLInqTaskGrid.getRowColData(tSelNo,7));
|
|
var customerno = easyExecSql(tSQLInfo.getString());
|
|
|
|
var strUrl= "LLClaimSurveyInput.jsp?State=0&InqNo="+fm.InqNo.value+"&RgtNo="+fm.ClmNo.value+"&LocFlag="+localflag+"&InvestiBatch="+LLInqTaskGrid.getRowColData(tSelNo,4)+"&CustomerNo="+customerno;
|
|
location.href=strUrl;
|
|
}
|
|
|
|
|
|
/**
|
|
* 提交数据
|
|
*/
|
|
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();
|
|
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);
|
|
//showDialogWindow(urlStr, 1);
|
|
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);
|
|
//showDialogWindow(urlStr, 1);
|
|
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);
|
|
|
|
initForm()
|
|
|
|
showInfo.focus();
|
|
}
|
|
}
|
|
|
|
/**查询待调查任务列表的调查信息**/
|
|
|
|
function queryInqInfo(){
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_claim");
|
|
tSQLInfo.setResourceName("g_claim.LLClaimSurveyAppSql");
|
|
tSQLInfo.setSqlId("LLClaimSurveyAppSql1");
|
|
tSQLInfo.addSubPara(tOperator);
|
|
tSQLInfo.addSubPara(tManageCom)
|
|
turnPage1.queryModal(tSQLInfo.getString(), LLInqTaskGrid,"2");
|
|
}
|
|
|
|
/**
|
|
* 查询公共池信息
|
|
*/
|
|
function queryClick(){
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_claim");
|
|
tSQLInfo.setResourceName("g_claim.LLClaimSurveyAppSql");
|
|
tSQLInfo.setSqlId("LLClaimSurveyAppSql2");
|
|
tSQLInfo.addSubPara(fm.RgtNo.value);
|
|
tSQLInfo.addSubPara(fm.BatNo.value);
|
|
tSQLInfo.addSubPara(fm.CustomerName.value);
|
|
tSQLInfo.addSubPara(fm.idno.value);
|
|
tSQLInfo.addSubPara(fm.ApplyDate.value);
|
|
var managecom = tManageCom.substring(0,4);
|
|
tSQLInfo.addSubPara(managecom)
|
|
turnPage.queryModal(tSQLInfo.getString(), LLSurveyTaskGrid,"2");
|
|
if (!turnPage.strQueryResult) {
|
|
i18nAlert("未查询到符合条件的查询结果!", "LIS-03016");
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 申请
|
|
*/
|
|
function applyClick(){
|
|
var tSelNo = LLSurveyTaskGrid.getSelNo()-1;
|
|
if (tSelNo<0){
|
|
i18nAlert("请选择一条待调查录入信息")
|
|
return false;
|
|
}
|
|
|
|
fm.InqNo.value = LLSurveyTaskGrid.getRowColData(tSelNo,1);
|
|
if (LLSurveyTaskGrid.getRowColData(tSelNo,9)=="赔案调查"){
|
|
fm.ClmNo.value = LLSurveyTaskGrid.getRowColData(tSelNo,3);
|
|
}
|
|
if (LLSurveyTaskGrid.getRowColData(tSelNo,9) == "前置调查"){
|
|
fm.ClmNo.value = LLSurveyTaskGrid.getRowColData(tSelNo,2);
|
|
}
|
|
|
|
if (!QXIsno("0000005145",tOperator,fm.ClmNo.value,"")){
|
|
return false;
|
|
}
|
|
|
|
fm.Operate.value = "APPLY"
|
|
fm.action = "../API/grp_claim/g_claim/LLClaimSurveyAppSave/APPLY";
|
|
submitForm();
|
|
}
|
|
|
|
/**
|
|
* 释放申请
|
|
*/
|
|
function NoApplyClick(){
|
|
|
|
var tSelNo = LLInqTaskGrid.getSelNo()-1;
|
|
if (tSelNo<0){
|
|
i18nAlert("请选择一条待调查录入信息")
|
|
return false;
|
|
}
|
|
|
|
fm.InqNo.value = LLInqTaskGrid.getRowColData(tSelNo,1);
|
|
if (LLInqTaskGrid.getRowColData(tSelNo,2) == null || LLInqTaskGrid.getRowColData(tSelNo,2)==""){
|
|
fm.ClmNo.value = LLInqTaskGrid.getRowColData(tSelNo,3);
|
|
}
|
|
if (LLInqTaskGrid.getRowColData(tSelNo,3) == null || LLInqTaskGrid.getRowColData(tSelNo,3)==""){
|
|
fm.ClmNo.value = LLInqTaskGrid.getRowColData(tSelNo,2);
|
|
}
|
|
|
|
fm.Operate.value = "NOAPPLY"
|
|
fm.action = "../API/grp_claim/g_claim/LLClaimSurveyAppSave/NOAPPLY";
|
|
|
|
submitForm();
|
|
}
|
|
|
|
|