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-certification-web/src/main/webapp/certify/CertifyBlankOutInput.js

97 lines
4.6 KiB

//该文件中包含客户端需要处理的函数和事件
var showInfo;
//提交,保存按钮对应操作
function submitForm()
{
CertifyList.delBlankLine("CertifyList");
var nmulLineCount = CertifyList.mulLineCount;
if (nmulLineCount == null || nmulLineCount <= 0)
{
i18nAlert("请至少输入一个要作废的单证! ", "LIS-05658");
return false;
}
for(var i=1;i<=nmulLineCount;i++){
if(CertifyList.getRowColData(i-1,1)==''){
i18nAlert("请输入单证编码!", "LIS-05659");
return false;
}
if(CertifyList.getRowColData(i-1,3)==''||CertifyList.getRowColData(i-1,4)==''){
i18nAlert("请输入起始终止号码!", "LIS-05660");
return false;
}
if(CertifyList.getRowColData(i-1,5)==''){
i18nAlert("请输入作废类型!", "LIS-05661");
return false;
}
}
if (i18nConfirm("您确认要作废单证吗?", "LIS-01091")){
if( verifyInput() == true && CertifyList.checkValue("CertifyList") ) {
var i = 0;
var showStr=i18nMessage("正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面", "LIS-04525");
var urlStr="../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(showStr);
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();
//document.getElementById("fm").submit(); //提交
document.getElementById("fm").action="../API/certification/certify/CertifyBlankOutSave/ADD";
ajaxSubmit2(document.getElementById("fm"));
}
}else{
i18nAlert("您取消了作废操作!", "LIS-05662");
}
}
//提交后操作,服务器数据返回后执行的操作
function afterSubmit( FlagStr, content )
{
showInfo.close();
if (FlagStr == "Fail" )
{
var urlStr="../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(content);
//showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:350px");
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
{
if( fm.chkPrt.checked == true ) {
var urlStr = "../API/certification/certify/CertifyListPrint/Print";
//showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:" + oClientCaps.availWidth + "px;dialogHeight:" + oClientCaps.availHeight + "px");
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);
//showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:350px");
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();
}
}
}