<script type="text/javascript" src="<%=request.getContextPath()%>/include/javascript/portalPage/jquery-1.11.2.min.js"></script>
<link rel="stylesheet" href="<%=request.getContextPath()%>/emr/include/css/zTreeStyle.css" type="text/css"/>
<script type="text/javascript" src="<%=request.getContextPath()%>/userinfo/include/js/jquery.ztree.core-3.5.js"></script>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/include/easyui/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/include/easyui/themes/icon.css"/>
<script language="javascript" src="<%=request.getContextPath()%>/include/easyui/jquery.easyui.min.js"></script> <script type="text/javascript"> function openDialog(){
$("#nav_ul").tree({
url:'<%=request.getContextPath()%>/emrpageoffice.do?verbId=privateTreeInit&type=root',
valueField: 'id',
textField: 'text',
editable: false,
method: 'post',
onBeforeExpand:function(node) {
var url1="<%=request.getContextPath()%>/emrpageoffice.do?verbId=privateTreeInit&type=second&parentCode="+node.id;
$('#nav_ul').tree("options").url=url1;
},
onClick:function(node){
privateIframe = $("#div_right_iframe");
var url2="<%=request.getContextPath()%>/emrpageoffice.do?verbId=detail&id="+node.typeId;
privateIframe.attr("src",url2);
if(node.state=="closed"){
$('#nav_ul').tree('expand', node.target);
}else if(node.state=="open"){
$('#nav_ul').tree('collapse', node.target);
}
}/* ,
loadFilter: function(rows){
return convert(rows);
} */
}); var h1 = $(document).scrollTop();//滚动条到顶部的垂直高度
var h2 = $(window).height(); //屏幕高度,下面的200是dialog的高度
var w1 = $(window).width(); //屏幕宽度,下面的400是dialog的宽度
$("#mydialog_private").window("open").window("resize",{top:h1+((h2-400)/2),left:(w1-590)/2});
}
</script>
<div onclick="openDialog()" style="cursor: pointer;">添加病历 </div>
<div id="mydialog_private" class="easyui-dialog" title="专用模板类型" data-options="closed:true,modal:true" style="width:590px;height:400px;padding:5px;">
<div style="height: 85%;width: 100%;border:1px solid #dedede;">
<div id="div_left" style="height: 100%;width: 29%;border: 1px solid #00CED1;float:left;margin-left:1px; display:inline">
<ul class="easyui-tree" id="nav_ul">
</ul>
</div>
<div id="div_right" style="height: 100%;width: 70%;float:left; display:inline">
<iframe id="div_right_iframe" name="div_right_iframe" frameborder="0" width="100%" height="100%" src="">
</iframe>
</div>
</div>
<div style="height: 15%;width: 100%;border: 1px solid #dedede;">
<a href="javascript:void('0')" onclick="addPrivateMenu(0)">新增目录</a>
<a href="javascript:void('0')" onclick="addPrivateMenu(1)">新增子目录</a>
<a href="javascript:void('0')" onclick="updatePrivateMenu()">修改</a>
<a href="javascript:void('0')" onclick="deleteTree()">删除</a>
<a href="javascript:void('0')" onclick="btnsave()">保存</a>
<a href="javascript:void('0')" onclick="cancel()">取消</a>
<a href="javascript:void('0')" onclick="closeDialog()">退出</a>
</div>
</div>

  

最新文章

  1. Unix哲学
  2. es6 import export 与 node 中的module.exports exports
  3. Python 通过pickle标准库加载和保存数据对象
  4. arcgis javascript dojo
  5. IIS7下.NET4.0 网站UrlRewriter.dll重写无后缀路径 失效
  6. oracle 外部表
  7. Java缓存--JCS
  8. 关于 Unity UGUI 中修改 Mask 组件下 Image 等子节点组件的材质无效的问题
  9. 静态html传参数
  10. Mysql主从配置讲解
  11. 使用python爬取百度贴吧内的图片
  12. EM vs REM vs PX,为什么你不应该”只用px“”
  13. 115个Java面试题和答案——终极列表(下)【转】
  14. 清理buffer/cache/swap的方法梳理
  15. nginx入门之编译安装
  16. python语法之函数1
  17. jQuery 学习(2)——jQuery选择器
  18. PYTHON-文件处理-练习
  19. C#数字前面如何补0
  20. smali语法详解

热门文章

  1. Linux内核分析总结
  2. iOS不用调用,running time自动执行方法
  3. php 中常见的函数及系统常量
  4. java正则随笔
  5. 《CoffeeScript应用开发》学习:第三章-构建简单的应用程序
  6. Ajax嵌套调用 (jquery) $.ajaxSettings.async = false;
  7. ipv6过审函数
  8. CentOS7上搭建WEB服务器
  9. 【转】 HTMLCollection和NodeList的区别
  10. vim+slimv+sbcl搭建lisp的IDE