oaNotifyFormMaterial.jsp 4.8 KB

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