| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <%@ 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>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>任务中心</title>
- <link href="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css"></link>
- <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
- <script type=text/javascript src="/shares/js/jquery-1.3.2.min.js"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script src="/shares/jquery.progressbar/js/jquery.progressbar.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
- <script type="text/javascript">
- var task_sort = "";
- var url="mtTaskCenterMgr.do?task=mytask";
- $(function(){
- url ="mtTaskCenterMgr.do?task=taskCheckList";
- $("#task_title").html("任务审核");
- $("#task_status_name").ligerComboBox({ isShowCheckBox: true, isMultiSelect: true,
- data: [
- { text: '待审核', id: '4' },
- { text: '审核通过', id: '5' },
- { text: '已驳回', id: '-1' },
- { text: '进行中', id: '1' }
- ],
- valueFieldID: 'task_status_id',
- initValue : '4',
- split :',',
- onSelected : function (value, text){
- $('#conf_model_name').val("输入任务名称");
- searchByKword();
- }
- });
- searchByKword();
- });
-
- function operateMyTask(id,status){
- if (status != '-1'){
- var boo = "";
- var msg_success = "";
- var msg_error = "";
- if (status == '1'){
- msg_success = "任务已接收!";
- msg_error = "任务接收失败!";
- boo = confirm("您确定要接收该任务吗?");
- } else if (status == '2'){
- msg_success = "任务已退回!";
- msg_error = "任务退回失败!";
- boo = confirm("您确定要退回该任务吗?");
- }
- if(boo){
- $.ajax({
- type: "POST", //使用post方法访问后台
- url: "mtTaskCenterMgr.do?task=operateTask&universalid="+id + "&status=" + status, //要访问的后台地址
- success: function (data) {
- searchByKword();
- $.ligerDialog.open({content:msg_success, "title":msg_success, "type":"success",allowClose:false,
- buttons: [ { text: '确定', onclick: function (item, dialog) { dialog.hidden(); } } ]
- });
- },
- error : function() {
- alert(msg_error);
- }
- });
- }
- }
-
- }
-
- 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) {
- searchByKword();
- $.ligerDialog.open({content:"任务已驳回!", "title":"任务已驳回!", "type":"success",allowClose:false,
- buttons: [ { text: '确定', onclick: function (item, dialog) { dialog.hidden(); } } ]
- });
- },
- error : function() {
- alert("任务驳回失败!");
- }
- });
- }
- }
-
-
- function reSendTask (universalid){
- item('mtTaskMgr.do?task=resource_view&universalid=' + universalid);
- }
-
-
- function myTaskWrok(universalid){
- item('mtTaskCenterMgr.do?task=taskWrok&universalid=' + universalid);
- }
-
- function checkTask(universalid){
- item('mtTaskCenterMgr.do?task=toCheckTask&universalid=' + universalid);
- }
-
- function search_ing(url,s){
- var p = $("#p").val();
- var pSize = $("#pSize").val();
- var param={"p":p,"pSize":pSize};
- sendAsyncAjax(param, url+"&time="+ new Date().getTime()+s, "json", function(data) {
- var num = data.Total;
- page(num,pSize,p);
- var datas = data.Rows;
- var item_name = $('#contentDiv');
- $(item_name).empty();//初始化table,清空table
- var html = '';
- if(datas.length == 0){
- html = notquery();
- }else{
- var j=0;
- for (var i = 0; i < datas.length; i++){
- var arr = datas[i];
- var bdiv = 1;
- bdiv = 1 + j;
- if (j < 7) {
- j++
- } else {
- j = 0;
- }
- html+= '<div class="tr_cont_new mar4 f5_new">';
- html+= '<a href="#" onclick="checkTask('+arr.universalid+')">';
- html+= '<div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
- html += '<div class="tr_rw_d_new fl">';
- html+= '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />';
- html+='[非项目任务] ';
- html+= '[任务名称:'+arr.tasktitle+'] [任务进度:<font color="red">'+ (arr.progress == null ? 0 : arr.progress)+'%</font>]</p>';
- html+='<p class=\'mar5\'>';
- if (arr.status == '4'){
- html+='[<font color="purple">待审核</font>] ';
- } else if (arr.status == '5'){
- html+='[<font color="green">审核通过</font>] ';
- } else if (arr.status == '-1'){
- html+='[<font color="red">被驳回</font>] ';
- } else if (arr.status == '1'){
- html+='[<font color="blue">进行中</font>] ';
- }
- html+='任务负责人:'+arr.receivestaffer;
- if (arr.startdate != null && arr.enddate != null) {
- html+= ',计划开始时间'+arr.startdate+', 计划结束时间'+arr.enddate;
- } else {
- html+= ' <font color="red">(手机派发)</font>';
- }
- html+='</p>';
- html+= '</div>';
- html+= '</a>';
- html+= '<div class="tr_rw_btn_new fr" >';
- if (arr.status == '4') {
- html+= '<div class="div_btn">';
- html+='<input type="button" class="btn_c" value="驳回" onclick="backTask('+arr.universalid+',\'-1\','+arr.receiveid + ')" />';
- html+='</div>';
- html+= '<div class="div_btn">';
- html+='<input type="button" class="btn_c" value="审核" onclick="checkTask('+arr.universalid + ')" />';
- html+='</div>';
- }
- html+= '</div>';
- html+= '</div>';
-
- }
- }
- $(item_name).html(html);
- });
- }
-
- //条件查询
- function searchByKword(){
- var s = "";
- var task_status_id = $("#task_status_id").val();
- var conf_model_name = $("#conf_model_name").val();
- if (conf_model_name != "" && typeof (conf_model_name) != "undefined" && conf_model_name !="输入任务名称") {
- s += "&task_name=" + encodeURI(encodeURI(conf_model_name));
- }
- if (task_status_id != "" && typeof (task_status_id) != "undefined") {
- s += "&status=" + encodeURI(encodeURI(task_status_id));
- }
- search_ing(url,s);
- $("#task_title").html("任务审核");
- }
- </script>
- </head>
- <body>
- <div class="tc_b">
- <div id="left" style="float:left;width:100%;">
- <div class="tc_r">
- <div class="tr_con b5 f4">
- <div class="fl f4">
- <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" /> <span id="task_title"></span>
- </div>
- <div class="fl f4" style="margin-left:30px;">
- 任务状态:
- </div>
- <div class="fl mar6">
- <input type="text" id="task_status_name" name="task_status_name" />
- <input type="hidden" id="task_status_id" name="task_status_id"/>
- </div>
- <div class="div_ck_k fr">
- <input class="div_cx fl" name="conf_model_name" id="conf_model_name" type="text" value="输入任务名称" />
- <input class="btn_ck fl" type="button" id="button" onclick="searchByKword();"/>
- </div>
- </div>
- <div class="tr_right_bg">
- <div id="contentDiv"></div>
- <jsp:include page="/yw/master1/page.jsp">
- <jsp:param name="functionName" value="searchByKword"/>
- </jsp:include>
- </div>
- </div>
- </div>
- <%@ include file="/yw/master1_pm/taskcenter/info/left_taskcenter.jsp"%>
- </div>
- </body>
- </html>
|