123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/webpage/include/taglib.jsp"%>
- <%@ include file="/webpage/include/bootstraptable.jsp"%>
- <%@include file="/webpage/include/treeview.jsp" %>
- <html>
- <head>
- <title>通知管理</title>
- <meta name="decorator" content="ani"/>
- <script type="text/javascript">
- $(document).ready(function() {
- jp.ajaxForm("#inputForm",function(data){
- if(data.success){
- jp.success(data.msg);
- <%--jp.go("${ctx}/oa/oaNotify");--%>
- }else{
- jp.error(data.msg);
- }
- })
-
- });
- </script>
- </head>
- <body>
- <div class="wrapper wrapper-content">
- <div class="row">
- <div class="col-md-12">
- <div class="panel panel-primary">
- <div class="panel-heading">
- <h3 class="panel-title">
- <a class="panelButton" href="${ctx}/oa/oaNotify${isSelf?'/self':'' }"><i class="ti-angle-left"></i> 返回</a>
- </h3>
- </div>
- <div class="panel-body">
- <form:form id="inputForm" modelAttribute="oaNotify" action="${ctx}/oa/oaNotify/save" method="post" class="form-horizontal">
- <form:hidden path="id"/>
- <input type="hidden" id="parentId" readonly="readonly" value="${oaNotify.id}">
- <div class="form-group">
- <label class="col-sm-2 control-label"><font color="red">*</font>类型:</label>
- <div class="col-sm-10">
- <form:select path="type" class="form-control required">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('oa_notify_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label"><font color="red">*</font>标题:</label>
- <div class="col-sm-10">
- <form:input path="title" htmlEscape="false" maxlength="200" class="form-control required"/>
- </div>
- </div>
- <%@ include file="oaNotifyFormMaterial.js"%>
- <div>
- <button id="export" class="btn btn-warning">
- <i class="fa fa-file-excel-o"></i> 导出
- </button>
- <table id="table" data-toolbar="#toolbar"></table>
- </div>
- <c:if test="${oaNotify.status ne '1'}">
- <div class="form-group">
- <label class="col-sm-2 control-label"><font color="red">*</font>状态:</label>
- <div class="col-sm-10">
- <form:radiobuttons path="status" items="${fns:getDictList('oa_notify_status')}" itemLabel="label" itemValue="value" htmlEscape="false" class="i-checks required"/>
- </div>
- </div>
- <%--<div class="form-group">--%>
- <%--<label class="col-sm-2 control-label"><font color="red">*</font>接受人:</label>--%>
- <%--<div class="col-sm-10">--%>
- <%--<sys:userselect roleName="配网工程专职;配网系统专职" id="user" name="userId" value="${construction.tuser.id}" loginName="loginName" loginValue="系统专职"--%>
- <%--labelName="user.name" labelValue="${construction.tuser.name}"--%>
- <%--cssClass="form-control required"/>--%>
- <%--</div>--%>
- <%--</div>--%>
- </c:if>
-
-
- <c:if test="${oaNotify.status eq '1'}">
- <div class="form-group">
- <table>
- <tr>
- <td class="width-15 active"> <label class="pull-right">接受人:</label></td>
- <td class="width-35" colspan="3"><table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
- <thead>
- <tr>
- <th>接受人</th>
- <th>接受部门</th>
- <th>阅读状态</th>
- <th>阅读时间</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${oaNotify.oaNotifyRecordList}" var="oaNotifyRecord">
- <tr>
- <td>
- ${oaNotifyRecord.user.name}
- </td>
- <td>
- ${oaNotifyRecord.user.office.name}
- </td>
- <td>
- ${fns:getDictLabel(oaNotifyRecord.readFlag, 'oa_notify_read', '')}
- </td>
- <td>
- <fmt:formatDate value="${oaNotifyRecord.readDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- 已查阅:${oaNotify.readNum} 未查阅:${oaNotify.unReadNum} 总共:${oaNotify.readNum + oaNotify.unReadNum}</td>
- </tr>
- </table>
- </div>
- </c:if>
- <c:if test="${oaNotify.status ne '1'}">
- <shiro:hasPermission name="oa:oaNotify:edit">
- <div class="col-lg-3"></div>
- <div class="col-lg-6">
- <div class="form-group text-center">
- <div>
- <button class="btn btn-primary btn-block btn-lg btn-parsley" data-loading-text="正在提交...">提 交</button>
- </div>
- </div>
- </div>
- </shiro:hasPermission>
- </c:if>
- </form:form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
|