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-pa-web/src/main/webapp/g_pos/EdorSimpleDownload.js

104 lines
3.5 KiB

/***************************************************************
* <p>ProName:EdorSimpleDownload.js</p>
* <p>Title:官网团体保单信息清单下载</p>
* <p>Description:官网团体保单信息清单下载</p>
* <p>Copyright:Copyright (c) 2012</p>
* <p>Company:Sinosoft</p>
* @author : lisy
* @version : 8.0
* @date : 2024-11-05
****************************************************************/
// 该文件中包含客户端需要处理的函数和事件
var showInfo;
var mDebug="1";
var turnPage = new turnPageClass(); //使用翻页功能,必须建立为全局变量
//重置按钮对应操作,Form的初始化函数在功能名+Init.jsp文件中实现,函数的名称为initForm()
function resetForm()
{
try
{
initForm();
}
catch(re)
{
alert("在Proposal.js-->resetForm函数中发生异常:初始化界面错误!");
}
}
//取消按钮对应操作
function cancelForm()
{
showDiv(operateButton,"true");
showDiv(inputButton,"false");
}
// 前台查询时调用的查询按钮,注意要跟easyQueryClick()同步
function queryEndorse()
{
var EdorState;
// if(trim(fm.GrpContNo.value) == ""
// && trim(fm.EdorNo.value) == "")
// {
// alert("在线打印前,请输入团队保单信息或批单号码");
// return;
// }
// 初始化表格
initInsuredOldGrid();
tSQLInfo = new SqlClass();
tSQLInfo.setModule("grp_pa");
tSQLInfo.setResourceName("g_pos.EdorSimpleDownloadSql");
tSQLInfo.setSqlId("EdorSimpleDownloadSql1");
tSQLInfo.addSubPara(fm.ManageCom.value);
tSQLInfo.addSubPara(fm.EdorType.value);
tSQLInfo.addSubPara(fm.GrpContNo.value);
tSQLInfo.addSubPara(fm.EdorNo.value);
tSQLInfo.addSubPara(fm.StartDate.value);
tSQLInfo.addSubPara(fm.EndDate.value);
//查询SQL,返回结果字符串
turnPage.queryModal(tSQLInfo.getString(), InsuredOldGrid, 1, 1);
if(!turnPage.strQueryResult){
i18nAlert("未查询到符合条件的查询结果!", "LIS-03011");
return false;
}
}
/**
* 生成第三方文件: Excel格式
*/
function makeThirdFile()
{
var tSelNo = InsuredOldGrid.getSelNo();
// if(tSelNo < 1){
// alert("请选择其中一条记录进行Excel下载");
// return;
// }
// fm.EdorNo.value = InsuredOldGrid.getRowColData(tSelNo-1,2);
fm.action = "../API/grp_pa/g_pos/EdorSimpleDownloadSave/DOWNLOAD";
downloadSubmit(document.getElementById("fm"),fm.action);
}
// /**
// * 提交
// */
// function submitForm() {
//
// 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();
// ajaxSubmit2(document.getElementById("fm"));
//
// }