123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%@taglib prefix="f" uri="http://www.jee-soft.cn/functions" %>
- <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
- <c:set var="ctx" value="${pageContext.request.contextPath}" />
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>协同办公</title>
- <%@include file="include.jsp" %>
- <link href="${ctx}/js/tohome/images/bootstrap.min.css" rel="stylesheet">
- <link href="${ctx}/js/tohome/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet">
- <link href="${ctx}/js/tohome/images/s_index2.css" rel="stylesheet">
- <script src="${ctx}/js/tohome/images/bootstrap.min.js"></script>
- <script type="text/javascript" src="${ctx}/js/mySchedule/jquery.fullcalendar.js"></script>
- <script type="text/javascript" src="${ctx}/js/hotent/platform/bpm/FlowUtil.js" ></script>
- <script>
- function writeDocuments(){
-
- }
- //待办事宜 执行任务
- function executeTask(taskId){
- var url="${ctx}/platform/bpm/task/toStart.ht?taskId="+taskId;
- var rtn = jQuery.openFullWindow(url);
- //window.open(url, '_blank');
- }
- function showDetail(obj){
- var url = $(obj).attr("action");
- var rtn = jQuery.openFullWindow(url);
- //window.open(url, '_blank');
- }
- function getOnClick(id){
- var url = '${ctx}/platform/system/sysBulletin/get.ht?id='+id;
- var rtn = jQuery.openFullWindow(url);
- // window.open(url, '_blank');
- //window.location.href=url;
- }
- function subStr(param){
- document.write(param.slice(0,15));
- }
-
- var dialog;
- function add(date){
- var url="${ctx}/platform/console/addMySchedule.ht";
- dialog=DialogUtil.open({
- height : 550,
- width : 800,
- title : '新增日程',
- url: url
- });
- }
- function closeDia(){
- dialog.close();
- window.location.href="${ctx}/platform/console/toHome.ht";
- }
- function addMySchedule(html){
- $("#myScheduleDIV").append(html);
- }
- function clear(){
- $("#myScheduleDIV").empty();
- }
- function getMySchedule(id){
- var url="${ctx}/platform/console/getMySchedule.ht?id="+id;
- dialog=DialogUtil.open({
- height : 450,
- width : 560,
- title : '查看日程',
- url: url
- });
- }
- //删除日程
- function del(id) {
- /* $.ligerDialog.confirm("是否删除日程成功!", '提示', function(rtn) {
- if(rtn){ */
- $.ajax({
- type: "POST",
- url: '${ctx}/platform/console/del.ht',
- data: {id:id},//
- dataType:'json',
- cache: false,
- success: function(json){
- if(json.result == 1){
- if (json.message=='0'){
- $.ligerDialog.success("删除日程成功!", '提示', function(rtn) {
- window.location.href = "${ctx}/platform/console/main.ht";
- } );
- }else if(json.message=='1'){
- $.ligerDialog.err("删除日程失败!", '提示', function(rtn) {
- window.location.href = "${ctx}/platform/console/main.ht";
- } );
- }
- }
- }
- });
- /* }
- }); */
- }
- function openerLinkTo(url,text) {
- window.top.tab.addTabItem({
- url : url,
- text : text,
- tabid : text,
- icon : ""
- });
- }
- function openTo(){
- var tabValue = $("#myTab").find(".active").children().attr("href");
- var textValue = "";
- var url = "";
- var tabid ="";
- if(tabValue == "#tab1"){
- url = "${ctx}/platform/bpm/task/pendingMatters.ht";
- textValue = "待办事项"
- tabid = "10"
- }else if(tabValue == "#tab2"){
- url = "${ctx}/platform/bpm/processRun/alreadyMatters.ht";
- textValue = "已办事项"
- tabid = "11"
- }else{
- url = "${ctx}/platform/bpm/processRun/completedMatters.ht";
- textValue = "办结事项"
- tabid = "12"
- }
- window.top.tab.addTabItem({
- url : url,
- text : textValue,
- tabid : tabid,
- icon : ""
- });
- }
- function openTo2(){
- var tabValue = $("#myTab2").find(".active").children().attr("href");
- var textValue = "";
- var url = "";
- var tabid ="";
- if(tabValue == "#tab_gw1"){
- url = "${ctx}/platform/bpm/task/pendingMattersListFw.ht";
- textValue = "待办发文"
- tabid = "待办发文"
- }else{
- url = "${ctx}/platform/bpm/task/pendingMattersListSw.ht";
- textValue = "待办收文"
- tabid = "待办收文"
- }
- window.top.tab.addTabItem({
- url : url,
- text : textValue,
- tabid : tabid,
- icon : ""
- });
- }
- //设置事项名称长度
- function sub(param){
- if(param.length<=20){
- document.write(param.slice(0,20));
- } else {
- document.write(param.slice(0,20)+"...");
- }
- }
- </script>
- </head>
- <body>
- <div class="content">
- <!-- 第一部分 开始-->
- <div class="row">
-
- <div class="col-lg-8 col-md-12 col-sm-12 col-xs-12">
- <div class="row">
- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
- <div class="mid_row_div mr_top0 wdhy">
- <h1><i class="fa fa-1x fa-group"></i>我的会议<span class="text-danger">(${SysBulletinListHYCount})</span><a href="javaScript:openerLinkTo('${ctx}/platform/system/sysBulletin/getHYTG.ht?type=0','我的会议','tab')" >更多+</a></h1>
- <div class="myTabContent3" >
- <ul class="tab_ul">
- <c:forEach items="${SysBulletinListHY}" var="SysBulletinListHY" begin="0" end="3">
- <li><i class="fa fa-angle-double-right"></i>
- <a name="processDetail" onclick="javascript:getOnClick(${SysBulletinListHY.id})" href="javascript:void(0);" title='${SysBulletinListHY.subject}' >
- <script> sub('${SysBulletinListHY.subject}')</script><span style="float:right">【<span style="color:red"><fmt:formatDate value="${SysBulletinListHY.createtime}" pattern="yyyy-MM-dd"/></span>】</span><span class="label label-success" style="float:right">${SysBulletinListHY.creator}</span></a>
- </li>
- </c:forEach>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
- <div class="row">
- <div class="col-lg-6 col-md-4 col-sm-4 col-xs-12">
- <div class="top_row6 top_row clearfix">
- <div class="top_row_txt"> <a onclick="FlowUtil.startFlow(10000019860001,'bsszwfwhszhjsgljfwlc:1:10000018900185')" ><i class="fa fa-address-book-o fa-lg"></i>收文处理</a> </div>
- </div>
- </div>
-
- <div class="col-lg-6 col-md-4 col-sm-4 col-xs-12">
- <div class="top_row2 top_row clearfix">
- <div class="top_row_txt"> <a onclick="FlowUtil.startFlow(10000018900181,'bsszwfwhszhjsgljfwlc:1:10000018900185')"><i class="fa fa-file-text fa-lg"></i>发文拟稿</a> </div>
- </div>
- </div>
-
- <div class="col-lg-6 col-md-4 col-sm-4 col-xs-12">
- <div class="top_row4 top_row clearfix">
- <div class="top_row_txt"> <a href="javaScript:openerLinkTo('${ctx}/platform/system/sysBulletin/list.ht','通知公告','tab')" ><i class="fa fa-bullhorn fa-lg"></i>通知公告</a> </div>
- </div>
- </div>
- <div class="col-lg-6 col-md-4 col-sm-4 col-xs-12">
- <div class="top_row1 top_row clearfix">
- <div class="top_row_txt"> <a href="javaScript:openerLinkTo('${ctx}/platform/bpm/bpmDefinition/forMe.ht','流程办事','tab')" ><i class="fa fa-random fa-lg"></i>流程办事</a> </div>
- </div>
- </div>
- <div class="col-lg-6 col-md-4 col-sm-4 col-xs-12">
- <div class="top_row3 top_row clearfix">
- <div class="top_row_txt"> <a href="javaScript:openerLinkTo('${ctx}/platform/system/sysPlan/submit.ht','工作日志','tab')" ><i class="fa fa-indent fa-lg"></i>工作日志</a> </div>
- </div>
- </div>
- <div class="col-lg-6 col-md-4 col-sm-4 col-xs-12">
- <div class="top_row5 top_row clearfix">
- <div class="top_row_txt"> <a href="javaScript:openerLinkTo('${ctx}/platform/oa/oaLinkman/list.ht','我的通讯录','tab')" ><i class="fa fa-pencil-square fa-lg"></i>我的通讯录</a> </div>
- </div>
- </div>
- <%-- <div class="col-lg-6 col-md-4 col-sm-4 col-xs-12">
- <div class="top_row6 top_row clearfix">
- <div class="top_row_txt"> <a href="javaScript:openerLinkTo('${ctx}/platform/oa/oaLinkman/importOaLinkmanList.ht','内部通讯录','tab')" ><i class="fa fa-address-book-o fa-lg"></i>内部通讯录</a> </div>
- </div>
- </div> --%>
- </div>
- </div>
- </div>
-
- <!-- 第一部分 结束-->
- <!-- 第二部分 开始-->
- <div class="row">
- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
- <div class="row">
- <div class="col-lg-8 col-md-12 col-sm-12 col-xs-12">
- <div class="row">
- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
- <div class="mid_row_div wdtz">
- <h1><i class="fa fa-1x fa-bell"></i>我的通知<span class="text-danger">(${SysBulletinListCount })</span><a href="javaScript:openerLinkTo('${ctx}/platform/system/sysBulletin/getHYTG.ht?type=1','我的通知','tab')" >更多+</a></h1>
- <div class="myTabContent3" >
- <ul class="tab_ul">
- <c:forEach items="${SysBulletinList}" var="SysBulletinLists" begin="0" end="3">
- <c:choose>
- <c:when test="${SysBulletinLists.type != '0'}">
- <li><i class="fa fa-angle-double-right"></i>
- <a name="processDetail" onclick="javascript:getOnClick('${SysBulletinLists.id}')" href="javascript:void(0);" title='${SysBulletinLists.subject}' >
- <script> sub('${SysBulletinLists.subject}')</script><span style="float:right">【<span style="color:red"><fmt:formatDate value="${SysBulletinLists.createtime}" pattern="yyyy-MM-dd"/></span>】</span><span class="label label-success" style="float:right">${SysBulletinLists.creator}</span></a>
- </li>
- </c:when>
- </c:choose>
- </c:forEach>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
- <div class="mid_row_div wdsx_1">
- <h1><i class="fa fa-1x fa-tasks"></i>我的事项<a href="javaScript:openTo()">更多+</a></h1>
- <ul id="myTab" class="nav nav-tabs wdsx">
- <li class="active"> <a href="#tab1" data-toggle="tab"> 待办事项 <span class="text-danger">(${taskListCount })</span></a> </li>
- <li><a href="#tab2" data-toggle="tab">已办事项</a></li>
- <li><a href="#tab3" data-toggle="tab">办结事项</a></li>
- </ul>
- <div id="myTabContent" class="tab-content wdsx_con">
- <!-- 待办事宜 start -->
- <div class="tab-pane fade in active" id="tab1">
- <div class="table-responsive">
- <table class="table">
- <thead>
- <tr>
- <th>工单号</th>
- <th>事项类别</th>
- <th>事项名称</th>
- <th>创建人</th>
- <th>创建时间</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${taskList}" var="taskItem" begin="0" end="3">
- <%-- <c:if test="${!taskItem.typeName eq '发文流程'}"> --%>
- <tr>
- <td>${taskItem.globalFlowNo}</td>
- <td>${taskItem.typeName}</td>
- <td>
- <a href="javascript:void(0);" onclick="javascript:executeTask(${taskItem.id})" title="${taskItem.subject }">
- <script> sub('${taskItem.subject}')</script>
- <%-- ${f:subString(taskItem.subject)}--%>
- </a>
- </td>
- <td><span class="label label-success">${taskItem.creator}</span></td>
- <td><fmt:formatDate value="${taskItem.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
- </tr>
- <%-- </c:if> --%>
- </c:forEach>
- </tbody>
- </table>
- </div>
- </div>
- <!-- 待办事宜 end -->
- <!-- 已办事宜 start -->
- <div class="tab-pane fade" id="tab2">
- <div class="table-responsive">
- <table class="table">
- <thead>
- <tr>
- <th>工单号</th>
- <th>事项类别</th>
- <th>事项名称</th>
- <th>创建人</th>
- <th>创建时间</th>
- <!-- <th>状态</th> -->
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${alreadyMattersList}" var="alreadyMattersItem" begin="0" end="3">
- <tr>
- <td>${alreadyMattersItem.globalFlowNo}</td>
- <td>${alreadyMattersItem.typeName}</td>
- <td>
- <a name="processDetail" onclick="showDetail(this)" href="javascript:void(0);" action="${ctx }/platform/bpm/processRun/info.ht?runId=${alreadyMattersItem.runId}&prePage=myFinishedTask" title='${alreadyMattersItem.subject}' >
- <%-- ${f:subString(alreadyMattersItem.subject)}--%>
- <script> sub('${alreadyMattersItem.subject}')</script>
- </a>
- </td>
- <td><span class="label label-success">${alreadyMattersItem.creator}</span></td>
- <td><fmt:formatDate value="${alreadyMattersItem.createtime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- </div>
- </div>
- <!-- 已办事宜 end -->
- <!-- 办结事宜 start -->
- <div class="tab-pane fade" id="tab3">
- <div class="table-responsive">
- <table class="table">
- <thead>
- <tr>
- <th>工单号</th>
- <th>事项类别</th>
- <th>事项名称</th>
- <th>创建人</th>
- <!-- <th>创建时间</th> -->
- <th>结束时间</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${completedMattersList}" var="completedMattersItem" begin="0" end="3">
- <tr>
- <td>${completedMattersItem.globalFlowNo}</td>
- <td>${completedMattersItem.typeName}</td>
- <td>
- <a name="processDetail" onclick="showDetail(this)" href="javascript:void(0);" action="${ctx }/platform/bpm/processRun/info.ht?runId=${completedMattersItem.runId}&prePage=myFinishedTask" title='${completedMattersItem.subject}' >
- <%-- ${f:subString(completedMattersItem.subject)}--%>
- <script> sub('${completedMattersItem.subject}')</script></a>
- </td>
- <td><span class="label label-success">${completedMattersItem.creator}</span></td>
- <%-- <td><fmt:formatDate value="${completedMattersItem.createtime}" pattern="yyyy-MM-dd HH:mm:ss"/></td> --%>
- <td><fmt:formatDate value="${completedMattersItem.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- </div>
- </div>
- <!-- 办结事宜 end -->
- <!-- 督办任务 start -->
- <!-- <div class="tab-pane fade" id="tab4"> -->
- <!-- <div class="table-responsive"> -->
- <!-- <table class="table"> -->
- <!-- <thead> -->
- <!-- <tr> -->
- <!-- <th>工单号</th> -->
- <!-- <th>事项名称</th> -->
- <!-- <th>任务名称</th> -->
- <!-- <th>创建人</th> -->
- <!-- <th>创建时间</th> -->
- <!-- <th>类型</th> -->
- <!-- </tr> -->
- <!-- </thead> -->
- <!-- <tbody> -->
- <%-- <c:forEach items="${taskList}" var="taskItem" begin="0" end="7"> --%>
- <!-- <tr> -->
- <%-- <td>${taskItem.globalFlowNo}</td> --%>
- <%-- <td>${f:subString(taskItem.subject)}</td> --%>
- <%-- <td>${taskItem.processName}</td> --%>
- <%-- <td><span class="label label-success">${taskItem.creator}</span></td> --%>
- <%-- <td><fmt:formatDate value="${taskItem.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td> --%>
- <!-- <td> -->
- <%-- <c:choose> --%>
- <%-- <c:when test="${taskItem.description=='-1'}"> --%>
- <!-- <span class="green">待办</span> -->
- <%-- </c:when> --%>
- <%-- <c:when test="${taskItem.description eq '21' }" > --%>
- <!-- <span class="brown">转办</span> -->
- <%-- </c:when> --%>
- <%-- <c:when test="${taskItem.description eq '15' }" > --%>
- <!-- <span class="orange">沟通意见</span> -->
- <%-- </c:when> --%>
- <%-- <c:when test="${taskItem.description eq '26' }" > --%>
- <!-- <span class="brown">代理</span> -->
- <%-- </c:when> --%>
- <%-- <c:when test="${taskItem.description eq '38' }" > --%>
- <!-- <span class="red">流转意见</span> -->
- <%-- </c:when> --%>
- <%-- </c:choose> --%>
- <!-- </td> -->
- <!-- </tr> -->
- <%-- </c:forEach> --%>
- <!-- </tbody> -->
- <!-- </table> -->
- <!-- </div> -->
- <!-- </div> -->
- <!-- 督办任务 end -->
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
- <div class="mid_row_div div-bordered wdrc">
- <!-- 我的日程 -->
- <iframe src="${ctx}/platform/console/mySchedule.ht" style="border: 0;width: 100%;height: 70%;" id="ifm" name="ifm" ></iframe>
- <div class="list-group" id="myScheduleDIV">
- <!-- <a href="#" class="list-group-item text-ellipsis"> <span class="badge bg-danger">7:30</span> 事项1111111 </a> -->
- </div>
- <!-- 我的日程 -->
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 第二部分 结束-->
-
-
- <!-- 第三部分 开始-->
- <div class="row">
- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
- <div class="row">
- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
- <div class="mid_row_div ">
- <h1><i class="fa fa-1x fa-file-text"></i>我的公文<a href="javaScript:openTo2()">更多+</a></h1>
- <ul id="myTab2" class="nav nav-tabs wdsx">
- <li class="active"> <a href="#tab_gw1" data-toggle="tab"> 发文 <span class="text-danger">(${FWListCount })</span></a> </li>
- <li><a href="#tab_gw2" data-toggle="tab">收文<span class="text-danger">(${SWListCount} )</span></a></li>
- </ul>
- <div id="myTabContent2" class="tab-content wdsx_con">
- <div class="tab-pane fade in active" id="tab_gw1">
- <div class="table-responsive">
- <table class="table">
- <thead>
- <tr>
- <th>工单号</th>
- <th>事项类别</th>
- <th>事项名称</th>
- <th>创建人</th>
- <th>创建时间</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${FWList}" var="fwListItem" begin="0" end="3">
-
- <tr>
- <td>${fwListItem.globalFlowNo}</td>
- <td>${fwListItem.typeName}</td>
- <td>
- <a href="javascript:void(0);" onclick="javascript:executeTask(${fwListItem.id})" title="${fwListItem.subject}">
- <script> sub('${fwListItem.subject}')</script></a>
- </td>
- <td><span class="label label-success">${fwListItem.creator}</span></td>
- <td><fmt:formatDate value="${fwListItem.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
- </tr>
-
- </c:forEach>
- </tbody>
- </table>
- </div>
- </div>
- <div class="tab-pane fade" id="tab_gw2">
- <div class="table-responsive">
- <table class="table">
- <thead>
- <tr>
- <th>公文单号</th>
- <th>公文单类别</th>
- <th>公文单标题</th>
- <th>发起人</th>
- <th>发起时间</th>
- <!-- <th>是否督办</th> -->
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${SWList}" var="swListItem" begin="0" end="3">
- <tr>
- <td>${swListItem.globalFlowNo}</td>
- <td>${swListItem.typeName}</td>
- <td>
- <a href="javascript:void(0);" onclick="javascript:executeTask(${swListItem.id})" title="${swListItem.subject}">
- <script> sub('${swListItem.subject}')</script></a>
- </td>
- <td><span class="label label-success">${swListItem.creator}</span></td>
- <td><fmt:formatDate value="${swListItem.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <!-- 第三部分 结束-->
- </div>
- </body>
- </html>
|