ggxxedit.jsp 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  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/ggfwxxgl/tzgg/ggxx/ggxxdetail.js"></script>
  12. <script type="text/javascript">
  13. var setting = {
  14. async: {
  15. enable: true,
  16. url:$.app+"/user/getUserTreeData?ggid="+"${record.id}",
  17. contentType : "application/x-www-form-urlencoded", //已form的形式提交参数
  18. autoParam: ["id","name"]
  19. },
  20. check: {
  21. enable: true //表示是否显示节点前的checkbox选择框
  22. },
  23. data: {
  24. simpleData: {
  25. enable: true
  26. }
  27. },
  28. view:{
  29. showLine:false//去掉虚线
  30. },
  31. callback: {
  32. }
  33. };
  34. var jyrsetting = {
  35. async: {
  36. enable: true,
  37. url:$.app+"/gkjyr/getJyrTreeData?ggid="+"${record.id}",
  38. contentType : "application/x-www-form-urlencoded", //已form的形式提交参数
  39. autoParam: ["id","name"]
  40. },
  41. check: {
  42. enable: true //表示是否显示节点前的checkbox选择框
  43. },
  44. data: {
  45. simpleData: {
  46. enable: true
  47. }
  48. },
  49. view:{
  50. showLine:false//去掉虚线
  51. },
  52. callback: {
  53. }
  54. };
  55. $(document).ready(function () {
  56. ggxx.detail.gglx="${record.gglx}";
  57. ggxx.detail.jsdx="list";
  58. ggxx.detail.initJyrSelect('addjyr','deljyr','${jyrlist}');
  59. ggxx.detail.init(setting,jyrsetting);
  60. });
  61. </script>
  62. </head>
  63. <body>
  64. <div class="box" >
  65. <div class="box-content" >
  66. <div class="apply_fill">
  67. <form id="addform" method="post" enctype="multipart/form-data">
  68. <input type="hidden" name="id" id='id' value="${record.id }"/>
  69. <input type="hidden" name="fbzt" value="" id="fbzt"/>
  70. <input type="hidden" name="user" value="" id="user"/>
  71. <input type="hidden" name="jyr" value="" id="jyr"/>
  72. <table class="apply" cellpadding="0" cellspacing="0">
  73. <tr>
  74. <th><span class="needwrite">*</span>标题:&nbsp;</th>
  75. <td colspan="3">
  76. <input type="text" class="form-control" name="title" value="${record.title }" style="width: 92%">
  77. </td>
  78. </tr>
  79. <tr>
  80. <th><span class="needwrite">*</span>公告类型:&nbsp;</th>
  81. <td>
  82. <div id="gglxsel"></div>
  83. </td>
  84. <th>发布单位:&nbsp;</th>
  85. <td >
  86. <input type="text" class="form-control" readonly="readonly" name="fbdw" value="${record.fbdw }">
  87. </td>
  88. </tr>
  89. <tr>
  90. <th>正文:&nbsp;</th>
  91. <td colspan="3">
  92. <textarea class="form-control" name="zw" style="margin: 0px auto 0px 5px; width: 92%; height: 300px;">${record.zw }</textarea>
  93. </td>
  94. </tr>
  95. <tr>
  96. <th>附件:&nbsp;</th>
  97. <td colspan="3">
  98. <div id="fjdiv">
  99. <c:if test="${record.fjid !=null }">
  100. <input type="hidden" name="accid" value="${record.fjid }"/>
  101. <a class='main_title' href='${app }/accessory/download?id=${record.fjid }'> ${record.fjmc }</a>
  102. <a class="btn btn-default btn-xs" href="#" onclick="ggxx.detail.delFj('${record.fjid}')">删除</a>
  103. </c:if>
  104. </div>
  105. <span id="fspan" <c:if test="${record.fjid !=null }">style="display: none"</c:if> >
  106. <a href="#" class="file">上传<input type="file" name="file" onchange="ggxx.detail.submitFile()"/></a>
  107. </span>
  108. </td>
  109. </tr>
  110. <tr>
  111. <th width="10%">指定人员:&nbsp;</th>
  112. <td width="30%">
  113. <ul id="usertree" class="ztree" style="width:100%; "></ul>
  114. </td >
  115. <th width="10%">指定经营人:&nbsp;</th>
  116. <td width="60%">
  117. <ul id="jyrtree" class="ztree" style="width:100%; "></ul>
  118. </td>
  119. </tr>
  120. <%-- <tr>
  121. <th>接收对象:&nbsp;</th>
  122. <td colspan="3">
  123. <input type="radio" style="width:12px" name="jsdx" onchange="che(0)" <c:if test="${record.jsdx == 0 }">checked="checked"</c:if> value="0">所有企业
  124. <input type="radio" style="width:12px" name="jsdx" onchange="che(1)" <c:if test="${record.jsdx == 1 }">checked="checked"</c:if> value="1">指定企业
  125. </td>
  126. </tr>
  127. <tr id="trid" <c:if test="${record.jsdx == 0 }">style="display: none"</c:if>>
  128. <th>指定企业选择:&nbsp;</th>
  129. <td colspan="3">
  130. <div>
  131. <div id="addjyr" style="float: left;width: 40%"></div>
  132. <div style="float: left;height: 10px">
  133. <table>
  134. <tr>
  135. <td>
  136. <span id="add"><a class="btn btn-default btn-sm" href="#" >
  137. <i class="glyphicon glyphicon-ok-sign"></i>
  138. 选中添加</a></span>
  139. </td>
  140. </tr>
  141. <tr>
  142. <td>
  143. <span id="addAll"><a class="btn btn-default btn-sm" href="#" >
  144. <i class="glyphicon glyphicon-ok-sign"></i>
  145. 全部添加</a></span>
  146. </td>
  147. </tr>
  148. <tr>
  149. <td>
  150. <span id="del"><a class="btn btn-default btn-sm" href="#" >
  151. <i class="glyphicon glyphicon-arrow-left"></i>
  152. 删除选中</a></span>
  153. </td>
  154. </tr>
  155. <tr>
  156. <td>
  157. <span id="delAll"><a class="btn btn-default btn-sm" href="#" >
  158. <i class="glyphicon glyphicon-arrow-left"></i>
  159. 删除全部</a></span>
  160. </td>
  161. </tr>
  162. </table>
  163. </div>
  164. <div id="deljyr" style="float: left;width: 40%;padding-left: 20px"></div>
  165. </div>
  166. </td>
  167. </tr> --%>
  168. <tr>
  169. <th>发布人:&nbsp;</th>
  170. <td><input type="text" class="form-control" readonly="readonly" value="${record.fbr }" ></td>
  171. <th><span class="needwrite">*</span>发布时间:&nbsp;</th>
  172. <td>
  173. <input type="text" class="Wdate" name="fbsj" value="${fn:substring(record.fbsj,0,10)}" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd'})">
  174. </td>
  175. </tr>
  176. </table>
  177. </form>
  178. <div id="buttons">
  179. <a class="btn btn-default btn-sm" href="#" onclick="ggxx.detail.save(1)">
  180. <i class="glyphicon glyphicon-floppy-disk"></i>
  181. 发布</a>
  182. <a class="btn btn-default btn-sm" href="#" onclick="ggxx.detail.save(0)">
  183. <i class="glyphicon glyphicon-floppy-disk"></i>
  184. 保存</a>
  185. <a class="btn btn-default btn-sm" href="#" onclick="ggxx.detail.back()">
  186. <i class="glyphicon glyphicon-arrow-left"></i>
  187. 返回</a>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </body>
  193. </html>