xzglrymain.jsp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7. <meta charset="utf-8">
  8. <title>江苏省港口建设与经营管理信息系统</title>
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <%@ include file="../../../common.jsp"%>
  11. <script type="text/javascript" src="${app }/static/biz/js/gkjcxx/xzdwxxgl/xzglryxx/xzglrymain.js"></script>
  12. <script type="text/javascript">
  13. $(document).ready(function () {
  14. xzglry.main.init();
  15. xzglry.main.selXbData='${listXb}';
  16. xzglry.main.selBmlx='${listGkglbmlx}';
  17. xzglry.main.selSzd='${listSzd}';
  18. xzglry.main.selLx = '${listLx}';
  19. iFrameHeightIframe('${menuid}');//自适应高度
  20. xzglry.main.treeObj=$.fn.zTree.init($("#tree"), setting);
  21. //关闭人员新增的弹出框
  22. $('.guanbi').click(function(){
  23. xzglry.main.close();
  24. })
  25. //关闭部门新增的弹出框
  26. $('.guanbibm').click(function(){
  27. xzglry.main.close1();
  28. })
  29. });
  30. </script>
  31. <script type="text/javascript">
  32. var setting = {
  33. async: {
  34. enable: true,
  35. url:$.app+"/xzglry/getTreeData",
  36. contentType : "application/x-www-form-urlencoded", //已form的形式提交参数
  37. autoParam: ["id","name"]
  38. },
  39. view:{
  40. showLine:false//去掉虚线
  41. },
  42. callback: {
  43. //beforeClick: xzglry.main.beforeClick,//点击前事件
  44. onClick: xzglry.main.onClick//点击事件
  45. }
  46. };
  47. </script>
  48. </head>
  49. <body>
  50. <div class="box" >
  51. <div class="box-content" style="min-height: 500px;">
  52. <div class="treediv" style="overflow: auto;max-height: 500px;">
  53. <ul id="tree" class="ztree" style="width:100%; "></ul>
  54. </div>
  55. <div class="treecontent">
  56. <div >
  57. <table class="search_table" cellpadding="0" cellspacing="0">
  58. <tr>
  59. <th width="10%"></th>
  60. <th width="25%"></th>
  61. <th width="10%"></th>
  62. <th width="25%"></th>
  63. <th width="10%"></th>
  64. <th width="20%"></th>
  65. </tr>
  66. <tr>
  67. <tr>
  68. <td class="left" colspan="2">
  69. <a class="btn btn-default btn-sm" href="#" onclick="xzglry.main.add1()">
  70. <i class="glyphicon glyphicon-plus"></i>
  71. 新增部门/科室</a>
  72. <a class="btn btn-default btn-sm" href="#" onclick="xzglry.main.editbm()">
  73. <i class="glyphicon glyphicon-pencil"></i>
  74. 编辑部门/科室</a>
  75. <a class="btn btn-default btn-sm" href="#" onclick="xzglry.main.deletebm()">
  76. <i class="glyphicon glyphicon-wrench"></i>
  77. 删除部门/科室</a>
  78. </td>
  79. <td class="right" >
  80. </td>
  81. <td class="right" >
  82. </td>
  83. <td class="right" colspan="2" id="addRytd">
  84. </td>
  85. </tr>
  86. </table>
  87. </div>
  88. <!-- 列表 -->
  89. <div style="background-color:#f4f4f4;" id="liebiaodiv">
  90. <table class="main_table" cellpadding="0" cellspacing="0">
  91. <tr id="liebiaotr">
  92. </tr>
  93. <tbody id="liebiao">
  94. </tbody>
  95. </table>
  96. </div>
  97. <!-- <div id="bmAdddiv">
  98. <form id="addform3" method="post">
  99. <table class="apply" cellpadding="0" cellspacing="0" id="bmAdd">
  100. </table>
  101. </form>
  102. <div id="buttons">
  103. </div>
  104. </div> -->
  105. </div>
  106. </div>
  107. </div>
  108. <!-- 弹出框 -->
  109. <div class="theme-popover" style="width: 900px;height: 360px;" id="theme-popover1">
  110. <div class="theme-poptit">
  111. <div class="popTitle">
  112. <h4><span id="act2"></span>人员</h4>
  113. </div>
  114. <div class="close">
  115. <a href="#" title="关闭" class="guanbi">×</a>
  116. </div>
  117. </div>
  118. <form id="addform" method="post">
  119. <input type="hidden" id="editid2" name="id">
  120. <input type="hidden" id="editssbm" name="ssbmid">
  121. <table class="apply" cellpadding="0" cellspacing="0">
  122. <tr>
  123. <th><span class="needwrite">*</span>姓名:&nbsp;</th>
  124. <td >
  125. <input type="text" class="form-control" id="editxm" name="xm" maxlength="40">
  126. </td>
  127. <th><span class="needwrite">*</span>性别:&nbsp;</th>
  128. <td >
  129. <div id="selXb"></div>
  130. </td>
  131. </tr>
  132. <tr>
  133. <th><span class="needwrite">*</span>排序号:&nbsp;</th>
  134. <td >
  135. <input type="text" class="form-control" id="editsortno" name="sortno"
  136. onkeyup="value=value.replace(/[^\d]/g,'')"
  137. onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">
  138. </td>
  139. <th>岗位:&nbsp;</th>
  140. <td >
  141. <input type="text" class="form-control" id="editgw" name="gw" maxlength="20">
  142. </td>
  143. </tr>
  144. <tr>
  145. <th>职称:&nbsp;</th>
  146. <td>
  147. <input type="text" class="form-control" id="editzc" name="zc" maxlength="40">
  148. </td>
  149. <th>通信地址:&nbsp;</th>
  150. <td>
  151. <input type="text" class="form-control" id="edittxdz" name="txdz" maxlength="40">
  152. </td>
  153. </tr>
  154. <tr>
  155. <th>邮政编码:&nbsp;</th>
  156. <td>
  157. <input type="text" class="form-control" id="edityzbm" name="yzbm">
  158. </td>
  159. <th>电子邮箱:&nbsp;</th>
  160. <td>
  161. <input type="text" class="form-control" id="editdzyx" name="dzyx" maxlength="40">
  162. </td>
  163. </tr>
  164. <tr>
  165. <th>传真:&nbsp;</th>
  166. <td>
  167. <!-- <input type="text" class="form-control" id="editcz" name="cz"
  168. onkeyup="value=value.replace(/[^\d]/g,'')"
  169. onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"
  170. maxlength="40"> -->
  171. <input type="text" class="form-control" id="editcz" name="cz" maxlength="40">
  172. </td>
  173. <th>联系电话:&nbsp;</th>
  174. <td>
  175. <!-- <input type="text" class="form-control" id="editlxfs" name="lxfs"
  176. onkeyup="value=value.replace(/[^\d]/g,'')"
  177. onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"
  178. maxlength="40"> -->
  179. <input type="text" class="form-control" id="editlxfs" name="lxfs" maxlength="40">
  180. </td>
  181. </tr>
  182. <tr>
  183. <th>手机:&nbsp;</th>
  184. <td>
  185. <input type="text" class="form-control" id="editphone" name="phone"
  186. onkeyup="value=value.replace(/[^\d]/g,'')"
  187. onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"
  188. maxlength="30">
  189. </td>
  190. <th></th>
  191. <td></td>
  192. </tr>
  193. </table>
  194. </form>
  195. <div id="buttons">
  196. <a class="btn btn-default btn-sm" href="#" onclick="xzglry.main.save()">
  197. <i class="glyphicon glyphicon-floppy-disk"></i>
  198. 保存</a>
  199. <a class="btn btn-default btn-sm" href="#" onclick="xzglry.main.close()">
  200. <i class="glyphicon glyphicon-arrow-left"></i>
  201. 取消</a>
  202. </div>
  203. </div>
  204. <div class="theme-popover-mask" id="theme-popover-mask1"></div>
  205. <!-- 弹出框2 -->
  206. <div class="theme-popover" style="width: 900px;height: 430px;" id="theme-popover2">
  207. <div class="theme-poptit">
  208. <div class="popTitle">
  209. <h4><span id="act1"></span>部门/科室</h4>
  210. </div>
  211. <div class="close">
  212. <a href="#" title="关闭" class="guanbibm">×</a>
  213. </div>
  214. </div>
  215. <form id="addform2" method="post">
  216. <input type="hidden" id="editid1" name="id">
  217. <input type="hidden" id="editpid" name="pid" value="00">
  218. <table class="apply" cellpadding="0" cellspacing="0">
  219. <tr>
  220. <th><span class="needwrite">*</span>所在地:&nbsp;</th>
  221. <td >
  222. <div id="selSzd"></div>
  223. </td>
  224. <th><span class="needwrite">*</span>港口管理部门全称:&nbsp;</th>
  225. <td >
  226. <input type="text" class="form-control" id="editgkglbmqc" name="gkglbmqc" maxlength="100">
  227. </td>
  228. </tr>
  229. <tr>
  230. <!-- <th><span class="needwrite">*</span>部门类型:&nbsp;</th>
  231. <td >
  232. <div id="selBmlx"></div>
  233. </td> -->
  234. <th>类型:&nbsp;</th>
  235. <td>
  236. <div id="selLx"></div>
  237. </td>
  238. <th>人员编制(人):&nbsp;</th>
  239. <td >
  240. <input type="text" class="form-control" id="editrybz" name="rybz" style="width: 80%;"
  241. onkeyup="value=value.replace(/[^\d]/g,'') "
  242. onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">
  243. </td>
  244. </tr>
  245. <tr>
  246. <th>联系人:&nbsp;</th>
  247. <td >
  248. <input type="text" class="form-control" id="editlxr" name="lxr" maxlength="20">
  249. </td>
  250. <th>联系电话:&nbsp;</th>
  251. <td >
  252. <input type="text" class="form-control" id="editlxdh" name="lxdh" style="width: 80%;"
  253. onkeyup="value=value.replace(/[^\d]/g,'')"
  254. onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"
  255. maxlength="40">
  256. </td>
  257. </tr>
  258. <tr>
  259. <th>邮编:&nbsp;</th>
  260. <td>
  261. <input type="text" class="form-control" id="edityb" name="yb" style="width: 80%;"
  262. onkeyup="value=value.replace(/[^\d]/g,'') "
  263. onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">
  264. </td>
  265. <th>地址:&nbsp;</th>
  266. <td>
  267. <input type="text" class="form-control" id="editaddress" name="address" maxlength="200">
  268. </td>
  269. </tr>
  270. <tr>
  271. <th>电子邮箱:&nbsp;</th>
  272. <td>
  273. <input type="text" class="form-control" id="editemail" name="email" maxlength="100">
  274. </td>
  275. <th>传真:&nbsp;</th>
  276. <td>
  277. <input type="text" class="form-control" id="editcz" name="cz" style="width: 80%;"
  278. onkeyup="value=value.replace(/[^\d]/g,'')"
  279. onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"
  280. maxlength="40">
  281. </td>
  282. </tr>
  283. <tr>
  284. <th>排序号:&nbsp;</th>
  285. <td >
  286. <input type="text" class="form-control" id="editsortno" name="sortno" maxlength="20">
  287. </td>
  288. <th>是否末级:&nbsp;</th>
  289. <td>
  290. <select class='selectpicker' name='leaf' >
  291. <option value="Y" >是</option>
  292. <option value="N" selected="selected">否</option>
  293. </select>
  294. </td>
  295. </tr>
  296. <tr>
  297. <!-- <th>备注:&nbsp;</th>
  298. <td>
  299. <input type="text" class="form-control" id="editbz" name="bz" maxlength="200">
  300. </td> -->
  301. <th>备注:&nbsp;</th>
  302. <td colspan="4">
  303. <textarea class="form-control" id="editbz" name="bz" style="width:92.5%;height:80px;" onkeyup="limitTextArea(this,200)"></textarea>
  304. </td>
  305. </tr>
  306. </table>
  307. </form>
  308. <div id="buttons">
  309. <a class="btn btn-default btn-sm" href="#" onclick="xzglry.main.save1()">
  310. <i class="glyphicon glyphicon-floppy-disk"></i>
  311. 保存</a>
  312. <a class="btn btn-default btn-sm" href="#" onclick="xzglry.main.close1()">
  313. <i class="glyphicon glyphicon-arrow-left"></i>
  314. 取消</a>
  315. </div>
  316. </div>
  317. <div class="theme-popover-mask" id="theme-popover-mask2"></div>
  318. </body>
  319. </html>