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.
179 lines
6.4 KiB
179 lines
6.4 KiB
//程序名称:FinFeeSure.js
|
|
//程序功能:到帐确认
|
|
//创建日期:2002-06-19 11:10:36
|
|
//创建人 :WHN
|
|
//更新记录: 更新人 更新日期 更新原因/内容
|
|
|
|
//该文件中包含客户端需要处理的函数和事件
|
|
|
|
var showInfo;
|
|
var mDebug="1";
|
|
var k = 0;
|
|
var turnPage = new turnPageClass();
|
|
var tResourceName = "customer.CustomerZDSql";
|
|
var tResourceSQL1="CustomerZDSql1";
|
|
|
|
//提交,保存按钮对应操作
|
|
function submitForm()
|
|
{
|
|
var i = 0;
|
|
var showStr=i18nMessage("正在查询数据,请您稍候并且不要修改屏幕上的值或链接其他页面", "LIS-04528");
|
|
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();
|
|
|
|
initCustomerGrid();
|
|
document.getElementById("fm").submit(); //提交
|
|
}
|
|
|
|
//提交后操作,服务器数据返回后执行的操作
|
|
function afterSubmit( FlagStr, content )
|
|
{
|
|
showInfo.close();
|
|
|
|
//document.all("signbutton").disabled=false;
|
|
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);
|
|
|
|
showInfo.focus();
|
|
}
|
|
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);
|
|
|
|
showInfo.focus();
|
|
}
|
|
easyQueryClick();
|
|
}
|
|
|
|
//显示div,第一个参数为一个div的引用,第二个参数为是否显示,如果为"true"则显示,否则不显示
|
|
function showDiv(cDiv,cShow)
|
|
{
|
|
if (cShow=="true")
|
|
{
|
|
cDiv.style.display="";
|
|
}
|
|
else
|
|
{
|
|
cDiv.style.display="none";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 查询按钮
|
|
function easyQueryClick()
|
|
{
|
|
// 初始化表格
|
|
initCustomerGrid();
|
|
k++;
|
|
|
|
|
|
// 书写SQL语句
|
|
var strSQL = "";
|
|
var strSQL2 = "";
|
|
//查询SQL,返回结果字符串
|
|
var mySql = new SqlClass2();
|
|
mySql.api(true);
|
|
mySql.module("customer");
|
|
mySql.resourceName(tResourceName);//指定使用的interface文件名
|
|
mySql.sqlId(tResourceSQL1);//指定使用的Sql的id
|
|
mySql.put("para0",fm.InsuAccNo.value);// 指定传入的参数
|
|
mySql.put("para1",fm.CustomerNo.value);// 指定传入的参数
|
|
mySql.put("para2",fm.CustomerName.value);// 指定传入的参数
|
|
mySql.put("para3",fm.OperationNo.value);// 指定传入的参数
|
|
mySql.put("para4",fm.OtherNo.value);// 指定传入的参数
|
|
turnPage.strQueryResult = easyQueryVer3(mySql.string(), 1, 0, 1);
|
|
//判断是否查询成功
|
|
if (!turnPage.strQueryResult) {
|
|
i18nAlert("没有数据!", "LIS-02007");
|
|
return "";
|
|
}
|
|
|
|
//查询成功则拆分字符串,返回二维数组
|
|
turnPage.arrDataCacheSet = decodeEasyQueryResult(turnPage.strQueryResult);
|
|
|
|
//设置初始化过的MULTILINE对象,HealthGrid为在初始化页中定义的全局变量
|
|
turnPage.pageDisplayGrid = CustomerGrid;
|
|
|
|
//保存SQL语句
|
|
turnPage.strQuerySql = strSQL;
|
|
|
|
//设置查询起始位置
|
|
turnPage.pageIndex = 0;
|
|
|
|
//在查询结果数组中取出符合页面显示大小设置的数组
|
|
var arrDataSet = turnPage.getData(turnPage.arrDataCacheSet, turnPage.pageIndex, turnPage.pageLineNum);
|
|
|
|
//调用MULTILINE对象显示查询结果
|
|
displayMultiline(arrDataSet, turnPage.pageDisplayGrid);
|
|
|
|
//控制是否显示翻页按钮
|
|
if (turnPage.queryAllRecordCount > turnPage.pageLineNum) {
|
|
try { window.divPage.style.display = ""; } catch(ex) { }
|
|
} else {
|
|
try { window.divPage.style.display = "none"; } catch(ex) { }
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
//付费确认
|
|
function autochk()
|
|
{
|
|
|
|
var haveCheck = false;
|
|
for (i=0; i<CustomerGrid.mulLineCount; i++)
|
|
{
|
|
if (CustomerGrid.getChkNo(i))
|
|
{
|
|
haveCheck = true;
|
|
break;
|
|
}
|
|
}
|
|
|
|
if (haveCheck) {
|
|
var showStr=i18nMessage("正在传送数据,请您稍候并且不要修改屏幕上的值或链接其他页面", "LIS-04669");
|
|
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();
|
|
|
|
//showSubmitFrame(mDebug);
|
|
//fm.action="./CustomerZDChk.jsp";
|
|
//document.all("signbutton").disabled = true;
|
|
//document.getElementById("fm").submit(); //提交
|
|
fm.action = "../API/customer/customer/CustomerZDChk/ADD";
|
|
ajaxSubmit2(document.getElementById("fm"));
|
|
}
|
|
else
|
|
{
|
|
i18nAlert("请先选择一条暂交费信息,在选择框中打钩!", "LIS-02008");
|
|
}
|
|
}
|
|
|
|
|
|
|