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-nb-web/src/main/webapp/g_app/EasyScanPrintInput.js

132 lines
4.7 KiB

/***************************************************************
* <p>ProName:EdorPrintInput.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();
var tSQLInfo = new SqlClass();
/**
* 提交数据
*/
function submitForm() {
var showStr = i18nMessage("正在处理数据,请您稍候并且不要修改屏幕上的值或链接其他页面!", "LIS-04535");
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content="+ encodeURIComponent(showStr);
showInfo = window.open(urlStr,showStr,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
//showInfo = window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
//fm.submit();
fm.action = "../API/grp_pa/g_pos/EdorListPrintSave/ADD";
ajaxSubmit2(document.getElementById("fm"));
}
/**
* 提交数据后返回操作
*/
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);
} 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);
}
initForm();
}
/**
* 提交前的校验、计算
*/
function beforeSubmit() {
//系统的校验方法
if (!verifyInput2()) {
return false;
}
return true;
}
/**
* 查询个人池列表信息
*/
function queryManage() {
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_app.LCGrpApproveListSql");
tSQLInfo.setSqlId("LCGrpApproveListSql4");
tSQLInfo.addSubPara(tManageCom);
tSQLInfo.setModule("grp_nb");
var tArr = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
if (tArr != null) {
document.getElementById("ManageComName").value = tArr[0][0];
}
}
/**
* 数据导出
*/
function exportData() {
if(trim(fm.ManageCom.value) =="" ){
alert("管理机构必录!")
return false;
}
if(trim(fm.ExpressStartDate.value) =="" ){
alert("起始日期必录!")
return false;
}
if(trim(fm.ExpressEndDate.value) =="" ){
alert("结束日期必录!")
return false;
}
if(trim(fm.IsSubQuot.value) =="" ){
alert("业务类型必录!")
return false;
}
if (!i18nConfirm("确认要导出数据?", "LIS-00694")) {
return false;
}
//报表标题
var tTitle = "扫描人员^|扫描机构^|扫描机构名称^|扫描日期^|扫描时点^|业务号^|管理类型码^|单证细类名称^|页数";
tSQLInfo = new SqlClass();
tSQLInfo.setResourceName("g_app.LCGrpApproveListSql");
tSQLInfo.setSqlId("InsuredListPrintSql7");
tSQLInfo.addSubPara(fm.ManageCom.value);
tSQLInfo.addSubPara(fm.ExpressStartDate.value);
tSQLInfo.addSubPara(fm.ExpressEndDate.value);
tSQLInfo.addSubPara(fm.IsSubQuot.value);
tSQLInfo.addSubPara(fm.DocDef.value);
tSQLInfo.addSubPara(fm.Operator.value);
tSQLInfo.setModule("grp_nb");
var tQuerySQL = tSQLInfo.getString();
fm.action = "../API/grp_common/jsp/QueryDataExport/EXPORT";
ajaxSubmit2(document.getElementById("fm"),null,null,true, tTitle, tQuerySQL);
}