taskCheck.jsp 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <%@ taglib prefix="tms" uri="http://fzywtx.com/jsp/yw/tms" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>我任务列表</title>
  9. <link href="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css"></link>
  10. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
  11. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css"/>
  12. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  14. <script src="/shares/jquery.progressbar/js/jquery.progressbar.js" type="text/javascript"></script>
  15. <link rel="stylesheet" href="/shares/fullcalendar/jquery/themes/base/jquery.ui.all.css" />
  16. <link rel="stylesheet" href="/shares/fullcalendar/fullcalendar/cupertino/theme.css" />
  17. <link href='/shares/fullcalendar/fullcalendar/fullcalendar.css' rel='stylesheet' />
  18. <link href='/shares/fullcalendar/fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />
  19. <script src='/shares/fullcalendar/fullcalendar/fullcalendar.min.js'></script>
  20. <script type="text/javascript" src="/shares/js/common.js"></script>
  21. <script type="text/javascript" src="/shares/js/constant.js"></script>
  22. <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
  23. <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
  24. <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
  25. <script type="text/javascript" src="/shares/js/yw/ytpm/task/pm_common.js"></script>
  26. <style type="text/css">
  27. .l-button
  28. .l-button[type='button'],.l-button[type='submit'] {
  29. width: 124px;
  30. }
  31. .tr_right_bg {
  32. height: 100%;
  33. }
  34. </style>
  35. <script type="text/javascript">
  36. var prjTree="";
  37. var grid="";
  38. var actionUrl="";
  39. var count=0;
  40. var infoDialog=null;
  41. var waittingDialog=null;
  42. var task_info=null;
  43. var ischecked_id="";
  44. $(function (){
  45. $("#listWorkDiary").hide();
  46. $("#wrap").hide();
  47. $("#layout1").ligerLayout({ leftWidth:250,height:'99%'});
  48. $("#task_state_name").ligerComboBox({ isShowCheckBox: true, isMultiSelect: true,
  49. url:"mtTaskMgr.do?task=getListTaskState",
  50. valueFieldID: 'task_state',
  51. initText : "未接收,待审核,退回",
  52. textField : "dname",
  53. valueField : "dvalue",
  54. split : ",",
  55. resize : false,
  56. selectBoxHeight: 180,
  57. onSelected : function (value, text){
  58. searchByKword();
  59. }
  60. });
  61. $("#unp_task_state_name").ligerComboBox({ isShowCheckBox: true, isMultiSelect: true,
  62. data: [
  63. { text: '未接收', id: '0' },
  64. { text: '进行中', id: '1' },
  65. { text: '已退回', id: '2' },
  66. { text: '待审核', id: '4' },
  67. { text: '审核通过', id: '5' },
  68. { text: '已驳回', id: '-1' }
  69. ],
  70. valueFieldID: 'unp_task_state',
  71. initValue : '0,2,4',
  72. split :',',
  73. resize : false,
  74. onSelected : function (value, text){
  75. searchByKword();
  76. }
  77. });
  78. $("#project_name").ligerComboBox({ isShowCheckBox: true, isMultiSelect: true,
  79. url: 'mtTaskMgr.do?task=getMyListProject',
  80. textField: 'project_name',
  81. valueField : 'universalid',
  82. valueFieldID: 'project_id',
  83. resize : false,
  84. selectBoxHeight: 180,
  85. split :',',
  86. onSelected : function (value, text){
  87. $("#navtab1").remove();
  88. searchByKword();
  89. }
  90. });
  91. $(":button").hide();
  92. });
  93. function searchByKword(){
  94. if ($('input:radio[name="task_type"]:checked').val() == "P"){
  95. var task_state = $("#task_state").val();
  96. var project_id = $("#project_id").val();
  97. actionUrl = "mtDiaryMgr.do?task=diarypagelist&task_state="+task_state+"&time="+ new Date().getTime()+"&project_id="+ project_id;
  98. } else if ($('input:radio[name="task_type"]:checked').val() == "UNP"){
  99. var unp_task_state = $("#unp_task_state").val();
  100. actionUrl = "mtTaskCenterMgr.do?task=taskCheckList&time="+ new Date().getTime() + "&status=" + unp_task_state;
  101. }
  102. initLigerGrid();
  103. }
  104. function initLigerGrid(){
  105. if ($("#navtab1").length==0){
  106. $("#my_tasks").append("<div id=\"navtab1\" style=\"overflow:scroll\"></div>");
  107. }
  108. grid = $("#navtab1").ligerGrid({
  109. columns: [
  110. { display: '状态', name: 'task_name',align:"center",width: 80,
  111. render: function (row){
  112. var html = "<font ";
  113. if (row.unproject == "unproject"){
  114. switch (parseInt(row.task_state)) {
  115. case 0: html += "color='red'>未接收"; //未接收
  116. break;
  117. case 1: html += "color='blue'>进行中";//进行中
  118. break;
  119. case 2: html += "color='red'>已退回";//已退回
  120. break;
  121. case 4: html += "color='green'>待审核";//待审核
  122. break;
  123. case 5: html += ">审核通过";//审核通过
  124. break;
  125. case -1: html += ">已驳回";//已驳回
  126. break;
  127. default: html += "";
  128. }
  129. html += "</font>";
  130. } else {
  131. switch (parseInt(row.task_state)) {
  132. case 1: html += "color='red'";//未接收
  133. break;
  134. case 2: html += "color='blue'";//进行中
  135. break;
  136. case 4: html += "color='red'";//已退回
  137. break;
  138. case 8: html += "";//已驳回
  139. break;
  140. case 6: html += "color='green'";//待审核
  141. break;
  142. case 7: html += "";//审核通过
  143. break;
  144. default: html += "";
  145. }
  146. html += ">"+row.task_state_name + "</font>";
  147. }
  148. return html;
  149. }
  150. },
  151. { display: '任务名称', name: 'task_name',align:"left",
  152. render: function (row){
  153. var html = "<a href=\"#\">" + row.task_name+ "</a>";
  154. return html;
  155. }
  156. }
  157. ],
  158. frozen:false,
  159. pageParmName: 'p', //页索引参数名,(提交给服务器)
  160. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  161. pageSize:20,
  162. pageSizeOptions: [20],
  163. url:actionUrl,
  164. showTitle: false,
  165. width:'106%',
  166. height: '99%',
  167. columnWidth:185,
  168. onSelectRow: function (data, rowindex, rowobj){
  169. task_info = data;
  170. $("#listWorkDiary").show();
  171. $("#wrap").show();
  172. showTaskInfo();
  173. }
  174. });
  175. }
  176. function change_P_Task(){
  177. $("input[name=task_type]").val(["P"]);
  178. $("#projects").show();
  179. $("#unp_project_").hide();
  180. $("#project_").show();
  181. $("#navtab1").remove();
  182. searchByKword();
  183. }
  184. function change_UNP_Task(){
  185. $("input[name=task_type]").val(["UNP"]);
  186. $("#projects").hide();
  187. $("#project_").hide();
  188. $("#unp_project_").show();
  189. $("#navtab1").remove();
  190. searchByKword();
  191. }
  192. function showWaittingDialog(){
  193. waittingDialog = $.ligerDialog.waitting("正在提交中,请稍后……");
  194. }
  195. function closeWaittingDialog(){
  196. waittingDialog.close();
  197. }
  198. function emptyCalendar(){
  199. $('#center').empty();
  200. }
  201. function showSuccessDialog(){
  202. $.ligerDialog.success('删除成功!');
  203. }
  204. function showSuccessDialog_submit(){
  205. $.ligerDialog.success('提交成功!');
  206. }
  207. function showTaskInfo(){
  208. $("#task_name").html("任务名称:");
  209. $("#task_state_").html("");
  210. $("#procFinishPer").html("");
  211. $("#prov_user_name").html("");
  212. $("#plan_hour").html("");
  213. $("#prac_hour").html("");
  214. $("#task_descript").html("");
  215. $("#receive_task_date").html("");
  216. $("#plan_start_date").html("");
  217. $("#prac_start_date").html("");
  218. $("#plan_end_date").html("");
  219. $("#prac_end_date").html("");
  220. $("#credit_num").val("");
  221. $("#task_type").val("");
  222. $("#task_name").html("任务名称:" + task_info.task_name);
  223. if (task_info.unproject == "unproject"){
  224. switch (parseInt(task_info.task_state)) {
  225. case 0:
  226. $("#task_state_").html("未接收");
  227. break;
  228. case 1:
  229. $("#task_state_").html("进行中");
  230. break;
  231. case 2:
  232. $("#task_state_").html("已退回");
  233. break;
  234. case 4:
  235. $("#task_state_").html("待审核");
  236. break;
  237. case 5:
  238. $("#task_state_").html("审核通过");
  239. break;
  240. case -1:
  241. $("#task_state_").html("已驳回");
  242. break;
  243. }
  244. $("#task_descript").html(task_info.task_detail);
  245. } else {
  246. $("#task_state_").html(task_info.task_state_name);
  247. $("#task_descript").html(task_info.task_descript);
  248. }
  249. $("#procFinishPer").html(task_info.finish_percent + "%");
  250. $("#prov_user_name").html(task_info.responsible_name);
  251. $("#plan_hour").html(task_info.plan_hour + "h");
  252. $("#prac_hour").html(task_info.prac_hour == null ? "0h" : task_info.prac_hour + "h");
  253. $("#receive_task_date").html(task_info.receive_task_date);
  254. $("#plan_start_date").html(task_info.plan_start_date);
  255. $("#prac_start_date").html(task_info.prac_start_date == null ? "" : task_info.prac_start_date.substr(0, 10));
  256. $("#plan_end_date").html(task_info.plan_end_date);
  257. $("#prac_end_date").html(task_info.prac_end_date == null ? "" : task_info.prac_end_date.substr(0, 10));
  258. $("#credit_num").val(task_info.plan_hour * 10);
  259. $("#task_type").val(task_info.unproject == null ? "project" : "unproject");
  260. getlistWorkDiary();
  261. if (task_info.unproject == "unproject"){
  262. if (task_info.task_state == 4){
  263. $("#l-default-panel").show();
  264. $("#l-title-bar").show();
  265. $(":button").show();
  266. $("#delTask").hide();
  267. $("#reTask").hide();
  268. } else if (task_info.task_state == 2 || task_info.task_state == 0) {
  269. $("#l-default-panel").hide();
  270. $("#l-title-bar").hide();
  271. $(":button").hide();
  272. $("#delTask").show();
  273. $("#reTask").show();
  274. } else {
  275. $("#l-default-panel").hide();
  276. $("#l-title-bar").hide();
  277. $(":button").hide();
  278. }
  279. if ($("#un_is_credit").val() != "1"){
  280. $("#is_credit_TR").hide();
  281. } else {
  282. $("#is_credit_TR").show();
  283. }
  284. } else {
  285. if (task_info.task_state == 6){
  286. $("#l-default-panel").show();
  287. $("#l-title-bar").show();
  288. $(":button").show();
  289. $("#delTask").hide();
  290. $("#reTask").hide();
  291. }else if (task_info.task_state == 4 || task_info.task_state == 1){
  292. $("#l-default-panel").hide();
  293. $("#l-title-bar").hide();
  294. $(":button").hide();
  295. $("#delTask").show();
  296. $("#reTask").show();
  297. } else {
  298. $("#l-default-panel").hide();
  299. $("#l-title-bar").hide();
  300. $(":button").hide();
  301. }
  302. if ($("#is_credit").val() != "1"){
  303. $("#is_credit_TR").hide();
  304. } else {
  305. $("#is_credit_TR").show();
  306. }
  307. }
  308. }
  309. function delTask(){
  310. var action_url = "";
  311. if (confirm("您确认要删除该任务吗?")){
  312. if (task_info.unproject == "unproject"){
  313. action_url = "mtTaskCenterMgr.do?task=operateTask_ajax&universalid="+task_info.universalid + "&status=3&receiveId=" + task_info.receiveid;
  314. } else {
  315. action_url = "mtTaskMgr.do?task=deltask&time=" + new Date().getTime() + "&task_id=" + task_info.universalid;
  316. }
  317. $.ajax({
  318. type:"POST",
  319. url:action_url,
  320. timeout:30000,
  321. cache:false,
  322. dataType:"json",
  323. beforeSend:function(){},
  324. success:function(data){
  325. if(data.i>0){
  326. $.ligerDialog.success('任务已删除!');
  327. $(":button").hide();
  328. $("#task_name").html("任务名称:");
  329. $("#task_state_").html("");
  330. $("#procFinishPer").html("");
  331. $("#prov_user_name").html("");
  332. $("#plan_hour").html("");
  333. $("#prac_hour").html("");
  334. $("#task_descript").html("");
  335. $("#receive_task_date").html("");
  336. $("#plan_start_date").html("");
  337. $("#prac_start_date").html("");
  338. $("#plan_end_date").html("");
  339. $("#prac_end_date").html("");
  340. $("#credit_num").val("");
  341. $("#task_type").val("");
  342. grid.loadData();
  343. task_info = {"universalid":-1,"receiveid":-1};
  344. getlistWorkDiary();
  345. }else{
  346. $.ligerDialog.error('任务删除失败!');
  347. }
  348. },
  349. error:function(err){
  350. showAjaxError(err);
  351. }
  352. });
  353. }
  354. }
  355. function reTask(){
  356. if (task_info.unproject == "unproject"){
  357. item("mtTaskMgr.do?task=reTask&project=unProject&task_id=" + task_info.universalid+ "&receiveid=" + task_info.receiveid);
  358. } else {
  359. item("mtTaskMgr.do?task=reTask&project=project&task_id=" + task_info.universalid );
  360. }
  361. }
  362. function getlistWorkDiary(){
  363. var url = "";
  364. if($('input:radio[name="task_type"]:checked').val() == "UNP"){
  365. url = 'mtTaskCenterMgr.do?task=listWorkLog&taskId='+task_info.universalid + '&userid=' + task_info.receiveid;
  366. } else {
  367. url = 'mtDiaryMgr.do?task=wd_fc&task_id='+task_info.universalid;
  368. }
  369. $("#listWorkDiary").ligerGrid({
  370. columns: [
  371. { display: '办理时间', name: 'act_diary_date', width: 200},
  372. { display: '报工日期', name: 'start', width: 100},
  373. { display: '工时(小时)', name: 'man_hour', width: 100},
  374. { display: '报工内容', name: 'comments', width: 250},
  375. { display: '备注', name: 'remark', width: 200}
  376. ],
  377. pageSize:10,
  378. url: url + '&time=' + new Date().getTime(),
  379. pageParmName: 'p', //页索引参数名,(提交给服务器)
  380. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  381. width: '99.8%',
  382. height: '300px'
  383. });
  384. $("#pageloading").hide();
  385. }
  386. function check_diary(state){
  387. var is_credit="${credit_map.is_credit}";
  388. var rs =$.validate({
  389. name : "descript",
  390. model : [ {
  391. type : "require",
  392. msg : "请填写审核意见!",
  393. msgBox: "descriptMsg"
  394. },{
  395. type : "len",
  396. min : 0,
  397. max : 200,
  398. msg : "描述长度须少于200个字符,一个汉字占2个字符!",
  399. msgBox: "descriptMsg"
  400. }]
  401. });
  402. if(is_credit=="1" && "7"==state){
  403. rs = $.validate({
  404. name : "credit_num",
  405. model : [{
  406. type : "require",
  407. msg : "请填写积分!",
  408. msgBox: "credit_numMsg"
  409. },{
  410. type : "isNumber",
  411. msg : "请填写正确的数字!",
  412. msgBox: "credit_numMsg"
  413. },{
  414. type : "size",
  415. min:0,
  416. max:10000,
  417. msg : "积分不能超过10000",
  418. msgBox: "credit_numMsg"
  419. }]
  420. }) && rs;
  421. }
  422. var msg = "";
  423. if ($("#task_type").val() == "unproject"){ // 如果是非项目任务
  424. var type = "";
  425. if(rs){
  426. if ("7"==state){
  427. type = "5";
  428. msg = '任务审核已通过!';
  429. if (!confirm("您确认审核通过该任务吗?")){
  430. return;
  431. }
  432. } else if ("8"==state){
  433. type = "-1";
  434. msg = '任务已驳回!';
  435. if (!confirm("您确认驳回该任务吗?")){
  436. return;
  437. }
  438. }
  439. $.ajax({
  440. type:"POST",
  441. url:"mtTaskCenterMgr.do?task=treatTask&taskId="+ task_info.universalid+ "&time=" + new Date().getTime()
  442. + "&task_suggestion=" + encodeURI(encodeURI($("#descript").val())) + "&credit_num=" + $("#credit_num").val()
  443. + "&type=" + type + "&receiveid=" + task_info.receiveid+ "&tasktitle=" + encodeURI(encodeURI(task_info.task_name)),
  444. timeout:30000,
  445. cache:false,
  446. dataType:"json",
  447. success:function(data){
  448. var i = data[0].i;
  449. if(i>0){
  450. $.ligerDialog.success(msg);
  451. $("#task_name").html("任务名称:");
  452. $("#task_state_").html("");
  453. $("#procFinishPer").html("");
  454. $("#prov_user_name").html("");
  455. $("#plan_hour").html("h");
  456. $("#prac_hour").html("h");
  457. $("#task_descript").html("");
  458. $("#receive_task_date").html("");
  459. $("#plan_start_date").html("");
  460. $("#prac_start_date").html("");
  461. $("#plan_end_date").html("");
  462. $("#prac_end_date").html("");
  463. $("#credit_num").val("");
  464. $("#descript").val("");
  465. $("#listWorkDiary").empty();
  466. grid.loadData();
  467. }else{
  468. showAjaxError(null, data.error);
  469. }
  470. },
  471. error:showAjaxError
  472. });
  473. }
  474. } else { // 如果是项目任务
  475. if(rs){
  476. $("#task_state").val(state);
  477. if("7"==state){
  478. $("#result").val("审核通过");
  479. msg = '任务审核已通过!';
  480. if (!confirm("您确认审批通过该任务吗?")){
  481. return;
  482. }
  483. }else if("8"==state){
  484. $("#result").val("审核驳回");
  485. msg = '任务已驳回!';
  486. if (!confirm("您确认驳回该任务吗?")){
  487. return;
  488. }
  489. }
  490. $.ajax({
  491. type:"POST",
  492. url:"mtDiaryMgr.do?task=addCheckDiary&time=" + new Date().getTime(),
  493. data : {"task_id":task_info.universalid,"result":encodeURI($("#result").val()),"task_state":$("#task_state").val(),"is_credit":$("#is_credit").val(),
  494. "credit_type":$("#credit_type").val(),"descript":encodeURI($("#descript").val()),"credit_num":$("#credit_num").val()},
  495. cache:false,
  496. async:false,
  497. dataType:"text",
  498. success:function(data){
  499. if (data > 0){
  500. $.ligerDialog.success(msg);
  501. $("#task_name").html("任务名称:");
  502. $("#task_state_").html("");
  503. $("#procFinishPer").html("");
  504. $("#prov_user_name").html("");
  505. $("#plan_hour").html("h");
  506. $("#prac_hour").html("h");
  507. $("#task_descript").html("");
  508. $("#receive_task_date").html("");
  509. $("#plan_start_date").html("");
  510. $("#prac_start_date").html("");
  511. $("#plan_end_date").html("");
  512. $("#prac_end_date").html("");
  513. $("#credit_num").val("");
  514. $("#descript").val("");
  515. $("#listWorkDiary").empty();
  516. grid.loadData();
  517. } else{
  518. $.ligerDialog.error('任务审核失败!');
  519. }
  520. },
  521. error:showAjaxError
  522. });
  523. }
  524. }
  525. }
  526. </script>
  527. </head>
  528. <body>
  529. <div class="tc_b">
  530. <div id="left" style="float:left;width:100%;">
  531. <div class="tc_r">
  532. <div class="tr_con b5 f4">
  533. <div class="fl f4">
  534. <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" />&nbsp;任务审核<span id="addUser" ></span>
  535. </div>
  536. <div class="fl f4" style="margin-left:30px;">
  537. 任务状态:
  538. </div>
  539. <div class="fl mar6">
  540. <div id="project_">
  541. <input name="task_state_name" id="task_state_name" type="text"/>
  542. <input name="task_state" id="task_state" type="hidden"/>
  543. </div>
  544. <div id="unp_project_" style="display: none">
  545. <input name="unp_task_state_name" id="unp_task_state_name" type="text"/>
  546. <input name="unp_task_state" id="unp_task_state" type="hidden"/>
  547. </div>
  548. </div>
  549. </div>
  550. <div class="tr_right_bg" style="position:relative;">
  551. <div id="layout1">
  552. <div position="left" title="我分配的任务" id="my_tasks">
  553. <div class="forum-container task-form" id="taskForm">
  554. <table style="width:95%">
  555. <tr>
  556. <td style="width:90px;text-align: center;height: 30px;" colspan="2" >
  557. <input name="task_type" id="project_task" type="radio" value="P" onclick="change_P_Task();" checked="checked"/><a onclick="change_P_Task();">项目任务</a> &nbsp;&nbsp;&nbsp;&nbsp;
  558. <input name="task_type" id="unProject_task" type="radio" value="UNP" onclick="change_UNP_Task();"/><a onclick="change_UNP_Task();">非项目任务</a>
  559. <br>
  560. </td>
  561. </tr>
  562. <!-- <tr id="projects">
  563. <td style="width:90px;text-align: center;">
  564. </td>
  565. <td style="width:90px;text-align: left;">
  566. <input name="project_name" id="project_name" type="text"/>
  567. <input name="project_id" id="project_id" type="hidden"/>
  568. </td>
  569. </tr> -->
  570. <input name="project_id" id="project_id" type="hidden"/>
  571. </table>
  572. </div>
  573. <div id="navtab1" style=" overflow:scroll"></div>
  574. </div>
  575. <div position="center" id="center" title="任务信息"style=" overflow:scroll">
  576. <div id="wrap">
  577. <input type="button" onclick="check_diary(7)" class="l-button" value="通过" />
  578. <input type="button" onclick="check_diary(8)" class="l-button" value="驳回" />
  579. <input type="button" id="reTask" onclick="reTask()" class="l-button" value="重派" />
  580. <input type="button" id="delTask" onclick="delTask()" class="l-button" value="删除" />
  581. <div class="forum-container-2">
  582. <div class="l-title-bar" id="l-title-bar">填写审核信息</div>
  583. <div class="l-default-panel" id="l-default-panel" style="margin-top: 10px;margin-bottom: 20px;padding: 10px;">
  584. <form id="check_diary" method="post" action="mtDiaryMgr.do?task=addCheckDiary">
  585. <input type="hidden" id="task_type" />
  586. <input type="hidden" name="task_id" value="${map.universalid}" />
  587. <input type="hidden" name="task_state" id="task_state" />
  588. <input type="hidden" name="result" id="result" />
  589. <input type="hidden" name="is_credit" id="is_credit" value="${credit_map.is_credit}" />
  590. <input type="hidden" name="un_is_credit" id="un_is_credit" value="${info.is_credit}" />
  591. <input type="hidden" name="un_credit_type" id="un_credit_type" value="${info.credittype_id }" />
  592. <input type="hidden" name="credit_type" id="credit_type" value="${credit_map.credittype_id }" />
  593. <table class="l-default-panel">
  594. <tr>
  595. <td class="l-table-head" colspan="4">审核意见<font color="red">*</font>:<input type="text" name="descript" id="descript" /><label id="descriptMsg"></label>
  596. </td>
  597. </tr>
  598. <c:if test="${credit_map.is_credit==1 }">
  599. <tr id="is_credit_TR">
  600. <td class="l-table-head" colspan="4">任务积分<font color="red">*</font>:<input type="text" name="credit_num" id="credit_num" value=""/> <label id="credit_numMsg"></label>
  601. </td>
  602. </tr>
  603. </c:if>
  604. </table>
  605. </form>
  606. </div>
  607. <div class="l-title-bar">任务基本信息</div>
  608. <div style="padding-left: 10px;">
  609. <table class="l-default-panel">
  610. <tr>
  611. <td class="l-table-head" colspan="4" id="task_name">任务名称:
  612. </td>
  613. </tr>
  614. <tr>
  615. <td class="l-table-edit-text ">任务状态:</td>
  616. <td class="l-table-edit-content">
  617. <font color="#BCBCBC" style="font-size: 14px; font-weight: bold;" id="task_state_">${map.task_state_name }</font>
  618. </td>
  619. <td class="l-table-edit-text ">责任人:</td>
  620. <td class="l-table-edit-content" id="prov_user_name">${map.prov_user_name }</td>
  621. <%-- <td class="l-table-edit-text ">任务进度:</td>
  622. <td class="l-table-edit-content"><label id="procFinishPer">${map.finish_percent==null?0:map.finish_percent}%</label></td> --%>
  623. </tr>
  624. <%-- <tr>
  625. <td class="l-table-edit-text ">责任人:</td>
  626. <td class="l-table-edit-content" id="prov_user_name">${map.prov_user_name }</td>
  627. <td class="l-table-edit-text ">接收任务时间:</td>
  628. <td class="l-table-edit-content" id="receive_task_date">
  629. <fmt:formatDate value="${map.receive_task_date }" pattern="yyyy-MM-dd HH:mm:ss"/>
  630. </td>
  631. </tr> --%>
  632. <tr>
  633. <td class="l-table-edit-text ">计划用时:</td>
  634. <td class="l-table-edit-content" id="plan_hour">${map.plan_hour }&nbsp;h</td>
  635. <td class="l-table-edit-text ">已用时:</td>
  636. <td class="" id="prac_hour">${map.prac_hour==null?0:map.prac_hour }&nbsp;h</td>
  637. </tr>
  638. <tr>
  639. <td class="l-table-edit-text ">计划开始时间:</td>
  640. <td class="l-table-edit-content" id="plan_start_date">
  641. <fmt:formatDate value="${map.plan_start_date }" pattern="yyyy-MM-dd HH:mm:ss"/>
  642. </td>
  643. <td class="l-table-edit-text ">实际开始时间:</td>
  644. <td class="" id="prac_start_date">
  645. <c:if test="${map.prac_start_date !=null }">
  646. <fmt:formatDate value="${map.prac_start_date }" pattern="yyyy-MM-dd"/>
  647. </c:if>
  648. </td>
  649. </tr>
  650. <tr>
  651. <td class="l-table-edit-text" >计划完成时间:</td>
  652. <td class="l-table-edit-content" id="plan_end_date">
  653. <fmt:formatDate value="${map.plan_end_date}" pattern="yyyy-MM-dd HH:mm:ss"/>
  654. </td>
  655. <td class="l-table-edit-text ">实际完成时间:</td>
  656. <td class="" id="prac_end_date">
  657. <c:if test="${map.prac_end_date !=null }">
  658. <fmt:formatDate value="${map.prac_end_date}" pattern="yyyy-MM-dd"/>
  659. </c:if>
  660. </td>
  661. </tr>
  662. </table>
  663. </div>
  664. <div class="l-title-bar">任务描述</div>
  665. <div class="l-default-panel" style="margin-top: 10px;margin-bottom: 20px;padding: 10px;" id="task_descript">${map.task_descript }</div>
  666. <div class="l-title-bar">审核记录</div>
  667. <div class="l-default-panel" style="margin-top: 10px;margin-bottom: 20px;padding: 10px;">
  668. <c:forEach items="${list }" var="obj">
  669. [<font color="red">${obj.result }</font>]&nbsp;${obj.descript }<br/>
  670. &nbsp;&nbsp;&nbsp;&nbsp;审核人:${obj.check_user_name }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;审核日期:<fmt:formatDate value="${obj.create_date}" pattern="yyyy-MM-dd"/><br/>
  671. </c:forEach>
  672. </div>
  673. <div class="l-title-bar" id="diaryPanel" >
  674. <a name="workDiaryPos" id="workDiaryPos" href="#"></a>
  675. <div class="text_left">工作日志</div>
  676. </div>
  677. </div>
  678. </div>
  679. <div id="listWorkDiary">
  680. </div>
  681. </div>
  682. </div>
  683. </div>
  684. </div>
  685. </div>
  686. <%@ include file="/yw/master1_ytpm/task/info/left_task.jsp"%>
  687. </div>
  688. </body>
  689. </html>