319cbb89bfd6f16c370e387372b2411e1306f562.svn-base 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>树形表格</title>
  6. <%@include file="../../include.jsp" %>
  7. </head>
  8. <body>
  9. <!-- <div class="box1" id="formContent" style="overflow:auto;height:600px;"> -->
  10. <div style="overflow:auto;height:320;">
  11. <form id="sysmenu_form">
  12. <table class="tableStyle" formMode="line">
  13. <tr style="display:none">
  14. <td colspan="2"><input type="hidden" name="classid" value=893/></td>
  15. <td colspan="2"><input type="hidden" name="FD_OBJECTID893" value=""/></td>
  16. </tr>
  17. <tr style="display:none">
  18. <td width="15%">菜单编号:</td>
  19. <td width="35%"><input name="MENU_ID_893" type="text" value="" maxlength="" style="width:90%"></td>
  20. <td width="15%">父编号:</td>
  21. <td width="35%"><input name="PARENT_MENU_ID_893" id="PARENTCODE_893" type="text" value="" maxlength="" style="width:90%"></td>
  22. </tr>
  23. <tr>
  24. <td width="15%">菜单名称:</td>
  25. <td ><input name="MENU_NAME_893" type="text" maxlength="" style="width:96%"></td>
  26. </tr>
  27. <tr>
  28. <td width="15%">排序号:</td>
  29. <td ><input name="SORTNO_893" type="text" maxlength="" style="width:96%"></td>
  30. </tr>
  31. <tr>
  32. <td width="15%">菜单状态:</td>
  33. <td ><input name="MENU_STATU_893" type="text" maxlength="" style="width:96%"></td>
  34. </tr>
  35. <tr>
  36. <td width="15%">是否叶节点:</td>
  37. <td ><input name="IS_LEAF_893" type="text" maxlength="" style="width:96%"></td>
  38. </tr>
  39. <tr>
  40. <td width="15%">功能连接:</td>
  41. <td ><input name="MENU_URL_893" type="text" maxlength="" style="width:96%"></td>
  42. </tr>
  43. <tr>
  44. <td width="15%">菜单图片:</td>
  45. <td ><input name="MENU_IMG_893" type="text" maxlength="" style="width:96%"></td>
  46. </tr>
  47. <tr>
  48. </tr>
  49. </table>
  50. </form>
  51. </div>
  52. <script>
  53. var fd_objectid="<%=request.getParameter("fd_id")%>";
  54. $(function(){
  55. if(fd_objectid.length>0){
  56. var params = {classid : "893",objectID : "<%=request.getParameter("fd_id")%>"};
  57. $.ajax({
  58. url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
  59. type : 'post',
  60. timeout : 15000,
  61. data : params,
  62. dataType : 'json',
  63. success : function(data){
  64. $('#sysmenu_form').ajaxWrite({data:data});
  65. $("#sysmenu_form input[name='classid']").val("893");
  66. },
  67. error : function(e){
  68. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  69. }
  70. });
  71. }
  72. var code = '<%=request.getParameter("code") %>';
  73. $("#sysmenu_form input[name='MENU_ID_893']").val(code);
  74. $("#sysmenu_form input[name='PARENT_MENU_ID_893']").val("<%=request.getParameter("pcode") %>");
  75. $("#sysmenu_form input[name='classid']").val("893");
  76. var url = $.pathname() + '/ws/sys/constantService/getQuiConstantByName/';
  77. });
  78. </script>
  79. </body>