oaNotifyForm.jsp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>通知管理</title>
  6. <meta name="decorator" content="ani"/>
  7. <script type="text/javascript">
  8. $(document).ready(function() {
  9. jp.ajaxForm("#inputForm",function(data){
  10. if(data.success){
  11. jp.success(data.msg);
  12. jp.go("${ctx}/oa/oaNotify");
  13. }else{
  14. jp.error(data.msg);
  15. }
  16. })
  17. });
  18. </script>
  19. </head>
  20. <body>
  21. <div class="wrapper wrapper-content">
  22. <div class="row">
  23. <div class="col-md-12">
  24. <div class="panel panel-primary">
  25. <div class="panel-heading">
  26. <h3 class="panel-title">
  27. <a class="panelButton" href="${ctx}/oa/oaNotify${isSelf?'/self':'' }"><i class="ti-angle-left"></i> 返回</a>
  28. </h3>
  29. </div>
  30. <div class="panel-body">
  31. <form:form id="inputForm" modelAttribute="oaNotify" action="${ctx}/oa/oaNotify/save" method="post" class="form-horizontal">
  32. <form:hidden path="id"/>
  33. <div class="form-group">
  34. <label class="col-sm-2 control-label"><font color="red">*</font>类型:</label>
  35. <div class="col-sm-10">
  36. <form:select path="type" class="form-control required">
  37. <form:option value="" label=""/>
  38. <form:options items="${fns:getDictList('oa_notify_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  39. </form:select>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="col-sm-2 control-label"><font color="red">*</font>标题:</label>
  44. <div class="col-sm-10">
  45. <form:input path="title" htmlEscape="false" maxlength="200" class="form-control required"/>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="col-sm-2 control-label"><font color="red">*</font>内容:</label>
  50. <div class="col-sm-10">
  51. <form:textarea path="content" htmlEscape="false" rows="6" maxlength="2000" class="form-control required"/>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="col-sm-2 control-label">附件:</label>
  56. <div class="col-sm-10">
  57. <c:if test="${oaNotify.status ne '1'}">
  58. <sys:fileUpload path="files" value="${oaNotify.files}" type="file" uploadPath="/oa/notify"/>
  59. </c:if>
  60. <c:if test="${oaNotify.status eq '1'}">
  61. <sys:fileUpload path="files" value="${oaNotify.files}" type="file" uploadPath="/oa/notify" readonly="true"/>
  62. </c:if>
  63. </div>
  64. </div>
  65. <c:if test="${oaNotify.status ne '1'}">
  66. <div class="form-group">
  67. <label class="col-sm-2 control-label"><font color="red">*</font>状态:</label>
  68. <div class="col-sm-10">
  69. <form:radiobuttons path="status" items="${fns:getDictList('oa_notify_status')}" itemLabel="label" itemValue="value" htmlEscape="false" class="i-checks required"/>
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label class="col-sm-2 control-label"><font color="red">*</font>接受人:</label>
  74. <div class="col-sm-10">
  75. <sys:userselect id="oaNotifyRecord" name="oaNotifyRecordIds" value="${oaNotify.oaNotifyRecordIds}" labelName="oaNotifyRecordNames" labelValue="${oaNotify.oaNotifyRecordNames}"
  76. cssClass="form-control required" isMultiSelected="true"/>
  77. </div>
  78. </div>
  79. </c:if>
  80. <c:if test="${oaNotify.status eq '1'}">
  81. <div class="form-group">
  82. <table>
  83. <tr>
  84. <td class="width-15 active"> <label class="pull-right">接受人:</label></td>
  85. <td class="width-35" colspan="3"><table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
  86. <thead>
  87. <tr>
  88. <th>接受人</th>
  89. <th>接受部门</th>
  90. <th>阅读状态</th>
  91. <th>阅读时间</th>
  92. </tr>
  93. </thead>
  94. <tbody>
  95. <c:forEach items="${oaNotify.oaNotifyRecordList}" var="oaNotifyRecord">
  96. <tr>
  97. <td>
  98. ${oaNotifyRecord.user.name}
  99. </td>
  100. <td>
  101. ${oaNotifyRecord.user.office.name}
  102. </td>
  103. <td>
  104. ${fns:getDictLabel(oaNotifyRecord.readFlag, 'oa_notify_read', '')}
  105. </td>
  106. <td>
  107. <fmt:formatDate value="${oaNotifyRecord.readDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  108. </td>
  109. </tr>
  110. </c:forEach>
  111. </tbody>
  112. </table>
  113. 已查阅:${oaNotify.readNum} &nbsp; 未查阅:${oaNotify.unReadNum} &nbsp; 总共:${oaNotify.readNum + oaNotify.unReadNum}</td>
  114. </tr>
  115. </table>
  116. </div>
  117. </c:if>
  118. <c:if test="${oaNotify.status ne '1'}">
  119. <shiro:hasPermission name="oa:oaNotify:edit">
  120. <div class="col-lg-3"></div>
  121. <div class="col-lg-6">
  122. <div class="form-group text-center">
  123. <div>
  124. <button class="btn btn-primary btn-block btn-lg btn-parsley" data-loading-text="正在提交...">提 交</button>
  125. </div>
  126. </div>
  127. </div>
  128. </shiro:hasPermission>
  129. </c:if>
  130. </form:form>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </body>
  137. </html>