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.
137 lines
5.7 KiB
137 lines
5.7 KiB
var turnPage = new turnPageClass();
|
|
|
|
function queryFeeRet(){
|
|
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_finfee.LJFeeRetSql");
|
|
tSQLInfo.setSqlId("LJFeeRetSql1");
|
|
tSQLInfo.addSubPara(fm.ManageCom.value);
|
|
tSQLInfo.setModule("grp_finance");
|
|
turnPage.queryModal(tSQLInfo.getString(), FeeRetGrid, 0, 1);
|
|
}
|
|
|
|
function FeeRetClk(){
|
|
|
|
var uniqueMap = new Map();
|
|
var j=0;
|
|
for (let i = 0; i < FeeRetGrid.mulLineCount; i++) {
|
|
if (FeeRetGrid.getChkNo(i)){
|
|
uniqueMap.set(FeeRetGrid.getRowColData(i,1),"1");
|
|
j++;
|
|
}
|
|
}
|
|
if (j<1){
|
|
alert("请选择要申请的记录");
|
|
return false;
|
|
}
|
|
if (uniqueMap.size > 1) {
|
|
alert("请选择两个相同批次的付费数据");
|
|
return false;
|
|
}
|
|
if (uniqueMap.size<1){
|
|
alert("请选择需要付费撤回的数据");
|
|
return false;
|
|
}
|
|
|
|
var tOperate = "FEERET";
|
|
fm.Operate.value = tOperate;
|
|
fm.action = "../API/grp_finance/g_finfee/LJFeeRetSave/UPDATE?Operate="+ tOperate;
|
|
submitForm(fm);
|
|
}
|
|
|
|
|
|
/**
|
|
* 提交数据
|
|
*/
|
|
function submitForm(obj, dynamic) {
|
|
|
|
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");
|
|
//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; //获得窗口的水平位置
|
|
var 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();
|
|
// obj.submit();
|
|
if (dynamic != null && dynamic === true) {
|
|
ajaxSubmit(obj);
|
|
} else {
|
|
ajaxSubmit(obj);
|
|
}
|
|
}
|
|
|
|
function resultAfterSubmit(flagStr,content,result){//返回方法应有三个参数分别为(String,String,result)类型
|
|
afterSubmit(flagStr,content,result.tFilePath,result.tFileName,result.cTempFeeNo,result.tOperate,result.tFullFilePath);
|
|
}
|
|
|
|
/**
|
|
* 提交数据后返回操作
|
|
*/
|
|
function afterSubmit(FlagStr, content, filepath,tfileName,cTempFeeNo,tOperate,tFullFilePath) {
|
|
|
|
if (typeof(showInfo)=="object" && typeof(showInfo)!="unknown") {
|
|
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: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();
|
|
} else {
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=S&content="+ encodeURIComponent(content);
|
|
//showModalDialog(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();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
// function chooseFeeRet(){
|
|
// var FeeArray = new Array()
|
|
// var WaitDelArray = new Array()
|
|
// var choosedCount=0;
|
|
// for (let i = 0,j=0; i < FeeRetGrid.mulLineCount; i++) {
|
|
// if (FeeRetGrid.getChkNo(i)){
|
|
// FeeArray[j][1] = FeeRetGrid.getRowColData(i,1)
|
|
// FeeArray[j][2] = FeeRetGrid.getRowColData(i,2)
|
|
// FeeArray[j][3] = FeeRetGrid.getRowColData(i,3)
|
|
// FeeArray[j][4] = FeeRetGrid.getRowColData(i,4)
|
|
// FeeArray[j][5] = FeeRetGrid.getRowColData(i,5)
|
|
// FeeArray[j][6] = FeeRetGrid.getRowColData(i,6)
|
|
// FeeArray[j][7] = FeeRetGrid.getRowColData(i,7)
|
|
// FeeArray[j][8] = FeeRetGrid.getRowColData(i,8)
|
|
// FeeArray[j][9] = FeeRetGrid.getRowColData(i,9)
|
|
// FeeArray[j][10] = FeeRetGrid.getRowColData(i,10)
|
|
// FeeArray[j][11] = FeeRetGrid.getRowColData(i,11)
|
|
// FeeArray[j][12] = FeeRetGrid.getRowColData(i,12)
|
|
// WaitDelArray[j] = i;
|
|
// j++;
|
|
// }
|
|
// }
|
|
// for (let h = 0; h < WaitDelArray.length; h++) {
|
|
// FeeRetGrid.deleteOne(FeeRetGrid,`spanFeeRetGrid${WaitDelArray[h]}`)
|
|
// }
|
|
//
|
|
//
|
|
//
|
|
// }
|