var path;
var eccn = new ECCN("ec");
var myec;
function init(path1) {
path = path1;
eccn.init();
myec = document.getElementById("ec");
}
//跳到修改页面
function toUpdateInterfaceInfo(systemName,interfaceName){
var c=document.myform.action="interfaceInfoAction.do?method=toUpdateInterfaceInfo&systemName="+systemName+"&interfaceName="+interfaceName+"";
document.myform.submit();
}
//删除接口配置管理信息方法
function delteInterfaceInfo(){
var numChecked=0;
var param = "";
var checkBoxObj = document.getElementsByName("checkValue");
var checkBoxLength = checkBoxObj.length;
for(var i = 0; i < checkBoxLength; i++) {
if(checkBoxObj[i].checked) {
tmp=checkBoxObj[i].value.split(",");
startDate=tmp[0].substring(0,7);
param += "&checkBox=" + checkBoxObj[i].value;
numChecked++;
}
}
if(numChecked == 0) {
alert('请至少选择一项要删除的记录!');
return false;
}
//是否删除
if(confirm('您确定删除这些记录并且和这些记录相关联的记录吗?')) {
var result = executeRequest("interfaceInfoAction","deleteInterfaceInfo",param);
eval(result);
WaitingBar.showMe();
//调用上一层的queryInterfaceInfo()方法
parent.queryInterfaceInfo();
}
}