var property={ width:3000, height:3000, toolBtns:["task","node"], haveHead:false, headBtns:["new","save"],//如果haveHead=true,则定义HEAD区的按钮 haveTool:false,//是否可编辑?????????????????????????????????? useOperStack:true, initNum:1 }; var remark={ cursor:"指针", direct:"连线", start:"start", end:"end", task:"task", node:"decision" }; var tempData; var demo; var selectId; var selectType; //bpmComponent解析后的数据容器 var startList=new Array(); var endList=new Array(); var taskList=new Array(); var decisionList=new Array(); //选中的start,end,task,decision的容器 var selectTask=null; var selectStart=null; var selectEnd=null; var selectDecision=null; var haveDrag=false; $(document).ready(function(){ property.initLabelText= $("#fileName").val(); // 初始化 demo=$.createGooFlow($("#demo"),property); var version=document.getElementById("version").value; //加载数据 var datas=$("#jsonData").html(); if(datas!=''){ var json=eval('('+datas+')'); var bpmdata; if(version!=""){ var haveFind=false; for(var i=0;i500){return} var thisNode=arguments[0]; if(typeof thisNode=="string"){ thisNode=allnodes[node]; } // console.log(thisNode.id) var nodeType=thisNode.realtype; var lines=findNextLines(thisNode); //console.log(nodeType) if(thisNode.realtype=="start"){ for(var i=0; i"; } //console.log(shList) for(var i=0;i" +"" +"" +"" +"
转换时间:"+shList[i].shsj +"
转换人员:"+shList[i].shryid +(shList[i].shbm?("("+shList[i].shbm+")"):"") +"
" +"" }else{ result+="" +"
" +"" // +(shList[i].shbm?(""):"") +(shList[i].shyjm==1?"":("")) +"" +(shList[i].dlryid?(""):"") +"" +(shList[i].sm? (""):"") +"
部门:"+shList[i].shbm+"
审核时间:"+shList[i].shsj+"
审核人员:"+shList[i].shryid+(shList[i].shbm?("("+shList[i].shbm+")"):"")+"
代理人:"+shList[i].dlryid+"
审核意见:"+(function(shyjm){ if(shyjm==1){ return "审核中" }else if(shyjm==51){ return "同意" }else if(shyjm==55){ return "退回" }else if(shyjm==57){ return "手动退回" }else if(shyjm==58){ return "逾期退回" }else if(shyjm==53){ return "越过" }else if(shyjm==54){ return "逾期越过" }else{ return "未知" } }(shList[i].shyjm)) +"
说明:"+shList[i].sm+"
" +"
" } } } // result+=result return result } $("#floatDiv").css("left",parseInt(this.style.left)+parseInt(this.clientWidth)).css("top",parseInt(this.style.top)+parseInt(this.clientHeight)) }).delegate(".GooFlow_item","mouseleave",function(){ // $("#floatDiv").hide() }) }); //*********************************************************************** function focusNode(id){ demo.focusItem(id,false,true); } //复制对象 function clone(myObj){ if(typeof(myObj) != 'object') return myObj; if(myObj == null) return myObj; var myNewObj = new Object(); for(var i in myObj) myNewObj[i] = clone(myObj[i]); return myNewObj; } function findPosX(obj) { var curleft = 0; if (obj && obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft; obj = obj.offsetParent; } } else if (obj && obj.x) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if (obj && obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop; obj = obj.offsetParent; } } else if (obj && obj.y) curtop += obj.y; return curtop; } //从URL获取参数 function getURLParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }