| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib prefix="tms" uri="http://fzywtx.com/jsp/yw/tms" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <link rel="stylesheet" href="/shares/fullcalendar/jquery/themes/base/jquery.ui.all.css">
- <link rel="stylesheet" href="/shares/fullcalendar/fullcalendar/cupertino/theme.css">
- <link href="${ pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
- <link href='/shares/fullcalendar/fullcalendar/fullcalendar.css' rel='stylesheet' />
- <link href='/shares/fullcalendar/fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />
- <script src='/shares/js/jquery-1.3.2.min.js'></script>
- <script src='/shares/fullcalendar/fullcalendar/fullcalendar.min.js'></script>
- <script src='${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js'></script>
- <script src='${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDialog.js'></script>
- <script src='${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js'></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script src="/shares/jquery.progressbar/js/jquery.progressbar.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
- <style type="text/css">
- .workDiaryTable{margin: 5px auto}
- .workDiaryTable tr{height: 25px; padding-bottom: 2px; margin: 10px auto}
- .workDiaryTable .left-text {width: 80px; font-weight: bold;}
- .workDiaryTable .short-input {width: 40px;height:18px; line-height: 18px;border: 1px solid #cccccc}
- .workdiary-file-style input[type='file'] {width:200px ;height:22px;}
- .workdiary-file-style{width: 250px; margin-bottom: 8px;}
- </style>
- <script type="text/javascript">
- var infoDialog = null;
- var treatTaskDialog = null;
- $(function (){
- $("#procFinishPer").progressBar(this.innerHTML,{width:100,increment:5,speed:1});
- loadCalendar();
- $("#maingrid").ligerGrid({
- columns: [
- { display: '办理时间', name: 'submitdate', width: 200},
- { display: '报工时间(报哪天的工)', name: 'start', width: 150},
- { display: '报工内容', name: 'logdtaile', width: 910}
- ],
- pageSize:10,
- url:"mtTaskCenterMgr.do?task=listWorkLog&taskId=${taskInfo.taskid }"+"&time=" + new Date().getTime(),
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- width: '99.8%',
- height: '300px'
- });
- });
-
- function loadTaskInfo(taskId){
- $.ajax({
- type:"POST",
- url:"mtTaskCenterMgr.do?task=loadTaskInfo&taskId=" + taskId + "&time=" + new Date().getTime(),
- dataType:"json",
- success:function(data){
- $("#tasktitle").html(data[0].tasktitle);
- $("#procFinishPer").html(data[0].progress);
- $("#createstaffer").html(data[0].createstaffer);
- $("#receiveid").html(data[0].receiveid);
- $("#createDate").html(data[0].createDate);
- $("#planjobtime").html(data[0].planjobtime);
- $("#worktime_count").html(data[0].worktime_count);
- $("#startDate").html(data[0].startDate);
- $("#prac_start_date").html(data[0].prac_start_date);
- $("#endDate").html(data[0].endDate);
- $("#prac_end_date").html(data[0].prac_end_date);
- }
- });
- }
-
- function loadCalendar(){
- $(document).ready(function() {
- var calendar = $('#calendar').fullCalendar({
- header: {
- left: '',
- center: 'prev, title, next, today',
- right: ''
- },
- theme: true,
- timeFormat:{agenda: 'HH:mm { - HH:mm }','': 'HH:mm { - HH:mm }' },
-
- columnFormat:{//每种视图每列显示的时间格式
- month: 'ddd',
- week: 'M/d(ddd)',
- day: 'M/d(ddd)'
- },
- titleFormat:{//视图标题时间显示的格式
- month: 'yyyy年 MMMM ',
- week: "yyyy年 MMM d{ '—'[ MMM] d日 }",
- day: 'dddd, MMM d, yyyy'
- },
- axisFormat:'HH:mm',//日视图左侧时间显示的格式
- allDaySlot:false,
- allDayText:'今天的任务',
- //contentHeight: 10000,
- //weekMode: "liquid",
- aspectRatio:1.9,
- minTime:'8:00',//在日视图和周视图显示起始时间的设置
- maxTime:'22:00',//在日视图和周视图显示结束时间的设置
- slotMinutes:30,//在日视图和周视图每一行间隔的分钟,目前设为30分钟
- defaultView: 'month',
- monthNames: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
- monthNamesShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
- dayNames: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
- dayNamesShort: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
- today: ["今天"],
- firstDay: 1,
- buttonText: {
- today: '今天',
- month: '月视图',
- week: '周视图',
- day: '日视图',
- prev: '<<',
- next: '>>'
- },
-
- eventSources: [
- {
- url: 'mtTaskCenterMgr.do?task=listUncompleteWorkLog&taskId=${taskInfo.taskid }' ,// 把从后台取出未完成的工作日志以fullCalendar的方式进行显示
- color:'green'
- },
- {
- url: 'mtTaskCenterMgr.do?task=listcompleteWorkLog&taskId=${taskInfo.taskid }', //把从后台取出已经完成的工作日志以fullCalendar的方式进行显示
- color:'green'
- }
- ],
-
-
-
- eventMouseover: function (event, jsEvent, view) {
- var logdate = $.fullCalendar.formatDate(event.start, "yyyy-MM-dd");
- var worktime = event.worktime;
- var progress = event.progress_;
- var tasktitle = event.tasktitle;
- var logdtaile = event.logdtaile;
- $(this).attr('title', "任务进度:" + progress + "%\n" + "用时:" + worktime + "小时\n工作内容:" + logdtaile );
- $(this).css('font-weight', 'normal');
- },
- selectable: true,
- selectHelper: true,
- });
- });
- }
-
- function toTreatTask(type,taskid){
- var planjobtime_ = "${taskInfo.planjobtime }";
- var planjobtime = planjobtime_ * 10;
- $("#is_credit").val(planjobtime);
- $("#type").val(type);
- treatTaskDialog=$.ligerDialog.open({width:380, target: $("#treatTask"),title:"同意" });
- }
-
- function treatTask(){
- var is_credit = $("#is_credit").val();
- var result_msg = "";
- if ($("#type").val() == "5"){
- result_msg = "审核已通过!";
- } else if ($("#type").val() == "-1"){
- result_msg = "审核已驳回!";
- }
- var rs = true;
- if ($("#is_credit").length != 0){
-
- $("#is_creditMsgBox").empty();
- rs = $.validate({
- name : "is_credit",
- model : [ {
- type : "isNumber",
- msg : "请输入数字!"
- } ,{
- type : "require",
- msg : "积分评定不能为空!"
- }]
- });
-
- if (rs){
- if ($("#is_credit").val().match(/^[1-9]\d*$/) == null && $("#is_credit").val().replace(/(^\s*)|(\s*$)/g, "") != ""){
- $("#is_creditMsgBox").append("<font color=\"red\"> 积分评定应为正整数!</font>");
- document.all.is_credit.focus();
- rs = false;
- } else {
- rs = true;
- }
- }
- }
- if (rs){
- $.ajax({
- type:"POST",
- url:"mtTaskCenterMgr.do?task=treatTask&taskId=${taskInfo.taskid }&time=" + new Date().getTime()
- + "&task_suggestion=" + encodeURI(encodeURI($("#task_suggestion").val()))
- + "&type=" + $("#type").val()+ "&is_credit=" + is_credit + "&credittype_id=" + "${taskInfo.credittype_id }"
- + "&receiveid=" + "${taskInfo.receiveid_ }"+ "&tasktitle=" + encodeURI(encodeURI("${taskInfo.tasktitle }")),
- timeout:30000,
- cache:false,
- dataType:"json",
- beforeSend:function(){
- if(treatTaskDialog != null){
- treatTaskDialog.hidden();
- }
- },
- success:function(data){
- var i = data[0].i;
- if(i>0){
- $.ligerDialog.open({content:result_msg, "title":result_msg, "type":"success",allowClose:false,
- buttons: [ { text: '确定', onclick: function (item, dialog) { location.href="mtTaskCenterMgr.do?task=task_check_list"; dialog.hidden(); } } ]
- });
- }else{
- showAjaxError(null, data.error);
- }
- },
- error:showAjaxError
- });
- }
- }
-
- function toBackTask(type,taskid){
- $("#type").val(type);
- if(confirm("您确定要驳回该任务吗?")){
- $.ajax({
- type: "POST", //使用post方法访问后台
- url: "mtTaskCenterMgr.do?task=operateTask&universalid="+taskid + "&status=" + type + "&receiveId=" + "${taskInfo.receiveid_ }", //要访问的后台地址
- success: function (data) {
- $.ligerDialog.open({content:"审核已驳回!", "title":"审核已驳回", "type":"success",allowClose:false,
- buttons: [ { text: '确定', onclick: function (item, dialog) { location.href="mtTaskCenterMgr.do?task=task_check_list"; dialog.hidden(); } } ]
- });
- },
- error : function() {
- showAjaxError(null, data.error);
- }
- });
- }
- }
-
- function reSendTask (universalid){
- item('mtTaskMgr.do?task=resource_view&universalid=' + universalid);
- }
-
- function backTask (id,status,receiveId){
- if(confirm("您确定要撤销该任务吗?")){
- $.ajax({
- type: "POST", //使用post方法访问后台
- url: "mtTaskCenterMgr.do?task=operateTask&universalid="+id + "&status=" + status + "&receiveId=" + receiveId, //要访问的后台地址
- success: function (data) {
- $.ligerDialog.open({content:"任务已撤销!", "title":"任务已撤销", "type":"success",allowClose:false,
- buttons: [ { text: '确定', onclick: function (item, dialog) { location.href="mtTaskCenterMgr.do?task=taskcenter"; dialog.hidden(); } } ]
- });
- },
- error : function() {
- alert("任务撤销失败!");
- }
- });
- }
- }
-
- </script>
- </head>
- <body>
- <div id="wrap">
- <div class="container-layout">
- <div id="title" class="form-button" >
- <input type="button" id="back" class="l-button" value="返回" onclick="history.back(-1);" />
- <c:if test="${taskInfo.status == '4'}">
- <input type="button" id="back" class="l-button" value="同意" onclick="toTreatTask('5',${taskInfo.taskid });" />
- <input type="button" id="back" class="l-button" value="驳回" onclick="toBackTask('-1',${taskInfo.taskid });" />
- </c:if>
- <c:if test="${taskInfo.status == '2'}">
- <input type="button" id="back" class="l-button" value="重派" onclick="reSendTask(${taskInfo.taskid });" />
- </c:if>
- <c:if test="${taskInfo.status == '0'}">
- <input type="button" id="back" class="l-button" value="修改" onclick="reSendTask(${taskInfo.taskid });" />
- <input type="button" id="back" class="l-button" value="撤销" onclick="backTask(${taskInfo.taskid },'3',${taskInfo.receiveid_ })" />
- </c:if>
- </div>
- </div>
- <div class="forum-container-2">
- <div class="l-title-bar">任务基本信息</div>
- <div style="padding-left: 10px;">
- <table class="l-default-panel">
- <tr>
- <td class="l-table-head" colspan="4" id="tasktitle">任务名称:${taskInfo.tasktitle }
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text ">任务状态:</td>
- <td class="l-table-edit-content">
- <c:if test="${taskInfo.status == '0' }"><font color="red" style="font-size: 14px; font-weight: bold;">待接收</font></c:if>
- <c:if test="${taskInfo.status == '1' }"><font color="blue" style="font-size: 14px; font-weight: bold;">进行中</font></c:if>
- <c:if test="${taskInfo.status == '2' }"><font color="red" style="font-size: 14px; font-weight: bold;">已退回</font></c:if>
- <c:if test="${taskInfo.status == '4' }"><font color="green" style="font-size: 14px; font-weight: bold;">待审核</font></c:if>
- <c:if test="${taskInfo.status == '5' }"><font color="gray" style="font-size: 14px; font-weight: bold;">已完成</font></c:if>
- <c:if test="${taskInfo.status == '-1' }"><font color="purple" style="font-size: 14px; font-weight: bold;">被驳回</font></c:if>
- </td>
- <td class="l-table-edit-text ">任务进度:</td>
- <td class="l-table-edit-content"><label id="procFinishPer">${taskInfo.progress }</label></td>
- </tr>
- <tr>
-
- <td class="l-table-edit-text ">任务类型:</td>
- <td class="">${taskInfo.tasktype }</td>
- <td class="l-table-edit-text ">指派人:</td>
- <td class="l-table-edit-content" id="createstaffer">${taskInfo.createstaffer }</td>
- </tr>
- <tr>
- <td class="l-table-edit-text ">负责人:</td>
- <td class="l-table-edit-content" id="receiveid">${taskInfo.receiveid }</td>
- <td class="l-table-edit-text ">创建时间:</td>
- <td class="l-table-edit-content" id="createDate">
- ${taskInfo.createDate }
- </td>
- </tr>
- <tr>
- <td colspan="4"> </td>
- </tr>
- <tr>
- <td class="l-table-edit-text ">计划用时:</td>
- <td class="l-table-edit-content" id="planjobtime">${taskInfo.planjobtime } h</td>
- <td class="l-table-edit-text ">已用时:</td>
- <td class="" id="worktime_count">${taskInfo.worktime_count } h</td>
- </tr>
- <tr>
- <td class="l-table-edit-text ">计划开始时间:</td>
- <td class="l-table-edit-content" id="startDate">
- ${taskInfo.startDate }
- </td>
- <td class="l-table-edit-text ">实际开始时间:</td>
- <td class="" id="prac_start_date">
- ${taskInfo.prac_start_date }
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text ">计划完成时间:</td>
- <td class="l-table-edit-content" id="endDate">
- ${taskInfo.endDate }
- </td>
- <td class="l-table-edit-text ">实际完成时间:</td>
- <td class="" id="prac_end_date">
- ${taskInfo.prac_end_date }
- </td>
- </tr>
- </table>
- </div>
- <div class="l-title-bar">任务描述</div>
- <div class="l-default-panel" style="margin-top: 10px;margin-bottom: 20px;padding: 10px;" id="taskDetail">${taskInfo.taskDetail }</div>
- <div class="l-default-panel" style="margin-top: 10px;margin-bottom: 20px;padding: 10px;" id="taskFile">
-
- </div>
- <div class="l-title-bar" id="diaryPanel" >
- <a name="workDiaryPos" id="workDiaryPos" href="#"></a>
- <div class="text_left">工作日志</div>
- <!-- <div class="text_right"><a href="#" id="recordBtn">收缩</a></div> -->
- </div>
- </div>
- <div style="margin-bottom: 10px;"></div>
- <div id='calendar'></div>
- <div class="forum-container-2">
- <div class="l-title-bar" >
- <div class="text_left">办理过程</div>
- </div>
- </div>
- </div>
- <div id="maingrid" style="margin:0 auto "></div>
- <%--点击同意弹出页面框 --%>
- <div id="treatTask" class="forum-container2" style="display: none">
- <input type="hidden" name="wd_id" id="wd_id" />
- <table class="workDiaryTable">
- <c:if test="${taskInfo.is_credit=='1' }">
- <tr>
- <td class="left-text" >积分评定:<font color='red'><b>*</b></font></td>
- <td>
- <input id="is_credit" name="is_credit" class="short-input "/>
- <div id="is_creditMsgBox" style="display: inline;"></div>
- </td>
- </tr>
- </c:if>
- <tr>
- <td class="left-text" >意见:</td>
- <td>
- <textarea id="task_suggestion" name="task_suggestion" cols="34" rows="4"></textarea>
- </td>
- </tr>
-
- <tr>
- <td colspan="2" style="text-align: center" >
- <input type="button" value="确定" class="l-button" onclick="treatTask();" id="editWorkDiaryBtn"/>
- <input type="button" value="取消" class="l-button" onclick="treatTaskDialog.hidden()"/>
- <input type="hidden" id="type" />
- <input type="hidden" id="credittype_id" value="${taskInfo.credittype_id }"/>
- </td>
- </tr>
- </table>
- </div>
- </body>
- </html>
|