<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\svg\svgbpm.css"/>
<link rel="stylesheet" type="text/css" href="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\css\soa-product.css"/>
<link rel="stylesheet" type="text/css" href="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\css\common.css"/>
<script type="text/javascript" src="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\js\jquery.js"></script>
<script type="text/javascript" src="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\svg\common.js"></script>
<script type="text/javascript" src="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\svg\pathLocation.js"></script>
<script type="text/javascript" src="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\svg\componentIndex.js"></script>
<script type="text/javascript" src="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\svg\componentFactory.js"></script>
<script type="text/javascript" src="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\svg\componentMover.js"></script>
<script type="text/javascript" src="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\svg\eventController.js"></script>
<script type="text/javascript" src="D:\springToolSuite\workspace\soa-bpm-web\src\main\webapp\NRES\js\soaProduct.js"></script>
<script>
function rectHeightAutoAdjust(){
var divArr = document.getElementsByName("myDiv");
var rectArr = document.getElementsByName("myRect");
for(var i = 0; i < divArr.length; i++){
var w = divArr[i].scrollHeight;
rectArr[i].setAttribute("height",w>30?w:30);
}
}
</script>
</head>
<body>
<form name="myForm" id="myForm" method="post" action="">
<div id="panelDraghandle" style="position:absolute;visibility:visible" >
<dl class="menu">
<dt class="menu1"><a href="javascript:void(0);"><em></em><span>操作面板</span></a></dt>
<dd class="sub-menu hide">
<ul class="flowdraw-leftIcon">
<li class="fd-first"><a href="javascript:void(0)" id="rangeBt" onClick="myForm.submit();">区域选择</a></li>
<li class="fd-second"><a href="javascript:void(0)" id="arrowBt" onClick="">指针工具</a></li>
</ul>
</dd>
<dt class="menu2"><a href="javascript:void(0);"><em></em><span>部件</span></a></dt>
<dd class="sub-menu hide">
<ul class="flowdraw-leftIcon" style="cursor:'drag';">
<li class="fd-six"><a href="javascript:void(0)" onClick="ComponentFactory.creatNode.clone('start');">开始节点</a></li>
<li class="fd-three"><a href="javascript:void(0)" onClick="ComponentFactory.creatNode.clone('state');">普通节点</a></li>
<li class="fd-nine"><a href="javascript:void(0)" onClick="ComponentFactory.creatNode.clone('fork');">分支开始</a></li>
<li class="fd-ten"><a href="javascript:void(0)" onClick="ComponentFactory.creatNode.clone('join');">分支结束</a></li>
<li class="fd-eleven"><a href="javascript:void(0)" onClick="ComponentFactory.creatNode.clone('autoState');">自动节点</a></li>
<li class="fd-six"><a href="javascript:void(0)" onClick="ComponentFactory.creatNode.clone('end');">结束节点</a></li>
<li class="fd-twelve"><a href="javascript:void(0)" onClick="EventController.makingLine();">任务连线</a></li>
</ul>
</dd>
<dt class="menu3"><a href="javascript:void(0);"><em></em><span>操作</span></a></dt>
<dd class="sub-menu hide">
<ul class="flowdraw-leftIcon">
<li class="fd-seven"><a href="javascript:void(0)" onClick="EventController.remove(event);">删除所选</a></li>
<li class="fd-seven"><a href="javascript:void(0)" onClick="" id="processSaveBtn">保存流程</a></li>
<li class="fd-seven"><a href="javascript:void(0)" onClick="">流程模板定义</a></li>
<li class="fd-seven"><a href="javascript:void(0)" onClick="">读取流程</a></li>
<li class="fd-seven"><a class="condition_define" href="javascript:void(0)" onClick="">条件关系配置</a></li>
<li class="fd-seven"><a href="javascript:void(0)" onClick="">发布流程</a></li>
<li class="fd-seven"><a href="javascript:void(0)" onClick="">取消发布流程</a></li>
</ul>
</dd>
</dl>
</div>
<svg width="1000%" height="1000%" onload="rectHeightAutoAdjust();EventController.init(event);" onmousedown="EventController.grab(event)" onmousemove="EventController.drag(event)" onmouseup="EventController.drop(event)" onmouseover="EventController.mousetip(event)">
<rect x="0" y="0" width="100" style="display:none;" name="myRect" id="nodeRectTemplate"/>
<foreignObject x="0" y="0" position="absolute" width="100" height="100%" style="display:none;" id="nodeFoTemplate">
<DIV name="myDiv"><TABLE><TR><TD>起草</TD></TR></TABLE>
<input type="hidden" name="index" value=""/>
<input type="hidden" name="name" value=""/>
<input type="hidden" name="type" value=""/>
<input type="hidden" name="comment" value=""/>
<input type="hidden" name="sid" value=""/>
<input type="hidden" name="sname" value=""/>
<input type="hidden" name="nextSid" value=""/>
<input type="hidden" name="nextSname" value=""/>
<input type="hidden" name="sneedComment" value=""/>
<input type="hidden" name="isAdvisable" value=""/>
<input type="hidden" name="isBehaivior" value=""/>
<input type="hidden" name="isToDrafter" value=""/>
<input type="hidden" name="spath" value=""/>
<input type="hidden" name="sconfig" value=""/>
<input type="hidden" name="position.left" value=""/>
<input type="hidden" name="position.top" value=""/>
</DIV>
</foreignObject>
<circle class="joinPointExsit" r="10" cx="0" cy="0" id="nodeCircleTemplate"></circle>
<path stroke="rgb(102, 102, 102)" stroke-width="3" fill="none" d="M 0 0 L 0 0 L 0 0 " marker-mid="url(#blanknode)" marker-end="url(#idArrow)" id="linePathTemplate"/>
<text x="0" y="0" fill="black" id="lineTextTemplate">无</text>
<foreignObject id="lineFoTemplate">
<input type="hidden" name="index" value=""/>
<input type="hidden" name="name" value=""/>
<input type="hidden" name="comment" value=""/>
<input type="hidden" name="source" value=""/>
<input type="hidden" name="destination" value=""/>
<input type="hidden" name="conditionID" value=""/>
<input type="hidden" name="describe" value=""/>
<input type="hidden" name="returnBack" value=""/>
<input type="hidden" name="to" value=""/>
<input type="hidden" name="auto" value=""/>
<input type="hidden" name="userSel" value=""/>
<input type="hidden" name="midPoint.left" value=""/>
<input type="hidden" name="midPoint.top" value=""/>
<input type="hidden" name="sPoint.left" value=""/>
<input type="hidden" name="sPoint.top" value=""/>
<input type="hidden" name="dPoint.left" value=""/>
<input type="hidden" name="dPoint.top" value=""/>
</foreignObject>
<circle class="joinPointExsit" r="10" cx="0" cy="0" id="lineCircleTemplate"></circle>
<defs>
<marker id="idArrow" viewBox="0 0 20 20" refX="15" refY="10"
markerUnits="strokeWidth" markerWidth="3" markerHeight="10" orient="auto">
<path d="M -10 0 L 20 10 L -10 20 z" fill="rgb(102, 102, 102)" stroke="black"/>
</marker>
<marker id="blanknode" viewBox="0 0 10 10" refX="5" refY="5"
markerUnits="strokeWidth" markerWidth="3" markerHeight="10" orient="auto">
<rect x="0" y="0" width="8" height="8" style="fill:rgb(245, 245, 245); stroke:black;"/>
</marker>
</defs>
</svg>
</form>
</body>
</html>