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.
142 lines
5.3 KiB
142 lines
5.3 KiB
/***************************************************************
|
|
* <p>ProName:LLClaimLocalSurveyInput.jsp</p>
|
|
* <p>Title:发起异地调查</p>
|
|
* <p>Description:发起异地调查</p>
|
|
* <p>Copyright:Copyright (c) 2024</p>
|
|
* <p>Company:Sinosoft</p>
|
|
* @author : nsk
|
|
* @version : 8.0
|
|
* @date : 2025-1-21
|
|
****************************************************************/
|
|
|
|
var showInfo;
|
|
var turnPage = new turnPageClass();//调查过程查询
|
|
var tQueryFlag = false;
|
|
|
|
function QueryOnKeyDown(tObject) {
|
|
var keycode = event.keyCode;
|
|
//回车的ascii码是13
|
|
if(keycode!="13" && keycode!="9") {
|
|
return;
|
|
}
|
|
var tObjectName = tObject.name;
|
|
var tObjectValue = tObject.value;
|
|
if (tObjectName=="mngComName") {
|
|
var mngComName = tObjectValue;
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_claim");
|
|
tSQLInfo.setResourceName("g_claim.LLClaimCommonQuerySql");
|
|
tSQLInfo.setSqlId("LLClaimCommonQuerySql81");
|
|
tSQLInfo.addSubPara(mngComName);
|
|
tSQLInfo.addSubPara(fm.mngCom.value);
|
|
|
|
var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if (tArr==null || tArr.length==0) {
|
|
i18nAlert("未查询到符合条件的查询结果!", "LIS-03016");
|
|
fm.mngCom.value = "";
|
|
fm.mngComName.value = "";
|
|
return false;
|
|
} else {
|
|
|
|
if (tArr.length==1) {
|
|
fm.mngCom.value = tArr[0][0];
|
|
fm.mngComName.value = tArr[0][1];
|
|
|
|
} else {
|
|
showCodeList('findSecondCom', [fm.mngCom,fm.mngComName], [0,1], null,fm.mngComName.value, 'para0', 1);
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
function getEnter(tType){
|
|
var keycode = event.keyCode;
|
|
if(keycode!="13" && keycode!="9") {
|
|
return;
|
|
}else {
|
|
tQueryFlag = false;
|
|
}
|
|
|
|
if (tType == "getComCode"){
|
|
return showCodeList('getComCode',[this,mngComName],[0,1],null,fm.mngComName.value,'para0','1',null)
|
|
}
|
|
if (tType == "getUser"){
|
|
return showCodeList('getUser',[this,personName],[0,1],null,fm.mngCom.value,'para0','1',null);
|
|
}
|
|
}
|
|
|
|
function ApplyLocal(){
|
|
|
|
if (fm.mngCom.value == "" || fm.mngCom.value == null){
|
|
i18nAlert("指定调查机构不能为空!");
|
|
return false;
|
|
}
|
|
|
|
if (fm.mngCom.value == mManageCom){
|
|
i18nAlert("异地调查机构不能指定当前机构");
|
|
return false;
|
|
}
|
|
fm.InqNo.value = mInqNo;
|
|
fm.RgtNo.value = mClmNo;
|
|
|
|
fm.action = "../API/grp_claim/g_claim/LLClaimLocalSurveySave/ADD";
|
|
submitForm();
|
|
}
|
|
|
|
/**
|
|
* 提交数据
|
|
*/
|
|
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 (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);
|
|
|
|
closebutton();
|
|
|
|
showInfo.focus();
|
|
}
|
|
}
|
|
|
|
function closebutton(){
|
|
top.close();
|
|
window.opener.findDifLLSurveyGrid();
|
|
}
|
|
|