AJAX请求,处理较慢,弹出等待框.txt
function lFuncDocumentReady() {
if (document.readyState == "complete") {
try {
getBusyType();
allComBox($("WF_BUSI_TYPE"), "all");
getBusyTypeCalss();
} catch (e) {
alert(e.description);
}
}
}
/**
* 获取分类信息
*/
function getBusyType(){
var comInput = new XMLComInput("eaofms","getBusyType");
tagAjax(comInput.xmlize(),Tag.COMBOBOX,"WF_BUSI_TYPE");
}
//改变
分类时获取业务流程信息
function onchangeThisValue(thisName) {
if (thisName == "WF_BUSI_TYPE") {
getBusyTypeCalss();
}
}
/**
* 获取流程类别
*/
function getBusyTypeCalss(){
var comInput = new XMLComInput("eaofms","getBusiFlow");
comInput.addParameter("WF_BUSI_TYPE",$("WF_BUSI_TYPE").value);
tagAjax(comInput.xmlize(),Tag.COMBOBOX,"WF_CODE");
allComBox($("WF_CODE"), "all");
}
function getReportData() {
if($("WF_BUSI_TYPE").value == "") {
alert("流程分类不能为空");
return;
} else if($("WF_CODE").value == "") {
alert("业务流程不能为空");
return;
}
document.body.insertAdjacentHTML("beforeEnd","
");
var comInput = new XMLComInput("eaofms", "getReportData");
comInput.addParameter("REPORT_CODE", "RPT_WF_CONFIG_OR_RIGHT_CHECK");
comInput.addParameter("IS_MULTI","0");
comInput.addParameter("WF_BUSI_TYPE", $("WF_BUSI_TYPE").value);
comInput.addParameter("WF_CODE", $("WF_CODE").value);
comInput.addParameter("OP_USER_CODE", $('OP_USER_CODE').value); // tagAjax(comInput.xmlize(), Tag.QUERYLIST, "resultList");
DataPipe.request(comInput.xmlize(), function(req){
var comOutput = new XMLComOutput(req.responseText);
tagAjax(comInput.xmlize(),Tag.QUERYLIST,"resultList");
isOver=true;
if(isOver){
document.body.removeChild(document.getElementById("querylist_loadDiv"));
}
},true);
}
function getReportDataDetail() {
var funcCode = $("_FUNC_CODE").value;
var WF_BUSI_TYPE = "";
var WF_CODE = "";
var oEl = event.srcElement;
var oCh = oEl.parentElement.childNodes;
for (var i = 0; i < oCh.length; i++) {
if(oCh(i).fieldname == "WF_BUSI_TYPE"){
WF_BUSI_TYPE = oCh(i).fieldvalue;
continue;
} else if(oCh(i).fieldname == "WF_CODE"){
WF_CODE = oCh(i).fieldvalue;
continue;
}
}
var args = {};
args.WF_BUSI_TYPE = WF_BUSI_TYPE;
args.WF_CODE = WF_CODE;
args.OP_USER_CODE = $("OP_USER_CODE").value;
args.FLAG = "all";
var forward =
"/EOFMS/jsp/reportmanage/wfconfigorrightcheck/WFConfigOrRightCheckDetail.do"+"?_
FUNC_CODE="+funcCode;
var heigth =600;
var width=900;
var features = "dialogHeight:" + heigth + "px;dialogWidth:" + width
+ "px;px;help:no;resizable:no;status:no;scroll:yes;";
if (forward.url != "") {
var settings = window.showModalDialog(forward,args,features);
}
}
document.onreadystatechange = lFuncDocumentReady;