<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<link rel="stylesheet" type="text/css" href="${contextRoot}/develop/lib/gooflow/goo/codebase/GooFlow2.css"/>
<link rel="stylesheet" type="text/css" href="${contextRoot}/develop/lib/gooflow/default.css"/>
<script type="text/javascript" src="${contextRoot}/develop/lib/gooflow/jquery.min.js"></script>
<script type="text/javascript" src="${contextRoot}/develop/lib/gooflow/goo/data.js"></script>
<script type="text/javascript" src="${contextRoot}/develop/lib/gooflow/GooFunc.js"></script>
<script type="text/javascript" src="${contextRoot}/develop/lib/gooflow/json2.js"></script>
<script type="text/javascript" src="${contextRoot}/develop/lib/gooflow/goo/codebase/GooFlow.js"></script>
<script type="text/javascript">
    var property = {
        width: 1600,
        height: 700,
        toolBtns: ["start round", "end round", "task round", "node", "chat", "state", "plug", "join", "fork", "complex mix"],
        haveHead: true,
        headBtns: ["new", "open", "save", "undo", "redo", "reload"], //如果haveHead=true，则定义HEAD区的按钮
        haveTool: true,
        haveGroup: true,
        useOperStack: true
    };
    var remark = {
        cursor: "选择指针",
        direct: "结点连线",
        start: "入口结点",
        "end": "结束结点",
        "task": "任务结点",
        node: "自动结点",
        chat: "决策结点",
        state: "状态结点",
        plug: "附加插件",
        fork: "分支结点",
        "join": "联合结点",
        "complex mix": "复合结点",
        group: "组织划分框编辑开关"
    };
    var demo;
    $(document).ready(function() {
        demo = $.createGooFlow($("#demo"), property);
        demo.setNodeRemarks(remark);
        //demo.onItemDel=function(id,type){
        //	return confirm("确定要删除该单元吗?");
        //}
        //  demo.loadData(jsondata);
    });
    var out;
    function Export() {
        document.getElementById("result").value = JSON.stringify(demo.exportData());
    }
</script>