weeklyMeeting-add.jsp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <style>
  4. #detail_table tbody td{
  5. border-color:#e7e7e7;
  6. border-width: 0 1px 1px 0;
  7. border-style: solid;
  8. padding: 10px 8px;
  9. }
  10. </style>
  11. <!DOCTYPE html>
  12. <html>
  13. <head>
  14. <title>weeklyMeeting</title>
  15. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  16. <script src="plug-in/layer/layer.js"></script>
  17. <script>
  18. function callback() {
  19. location.reload();
  20. }
  21. $(function(){
  22. if('${diffWeek}'!='0'){
  23. $('#detail_table').find('input,select').attr('disabled','disabled')
  24. // $('#addBtn').hide();
  25. // $('#removeBtn').hide();
  26. $('#operateSpan').hide();
  27. }
  28. $('#urgent').val('${param.urgent}');
  29. $('#importance').val('${param.importance}');
  30. $('#executionStatus').val('${param.executionStatus}');
  31. $('#search').find(':input').bind('keyup', function(event) {
  32. if (event.keyCode == "13") {
  33. queryList();
  34. }
  35. });
  36. $('#tableheader td').css('font-size',"12px");
  37. })
  38. function viewTask(taskId) {
  39. var url = 'projecttaskController.do?goExeTaskView&entrance=weeklyMeeting&load=detail&id='+taskId;
  40. createdetailwindow("查看任务",url, 800,450);
  41. }
  42. function reexecution(taskId) {
  43. $.post('weeklyMeetingController.do?reexecution', {"taskId" : taskId}, function (d) {
  44. if(d.code == 200){
  45. location.reload();
  46. }
  47. }, "json");
  48. }
  49. function revokeTask(taskId) {
  50. $.post('weeklyMeetingController.do?revokeTask', {"taskId" : taskId}, function (d) {
  51. if(d.code == 200){
  52. location.reload();
  53. }
  54. }, "json");
  55. }
  56. </script>
  57. </head>
  58. <body style="background-color:white">
  59. <div>
  60. <span id="search">
  61. <span>
  62. <span>
  63. 紧急度:
  64. </span>
  65. <select id="urgent" name="urgent">
  66. <option value="">---请选择---</option>
  67. <option value="1">1</option>
  68. <option value="2">2</option>
  69. <option value="3">3</option>
  70. <option value="4">4</option>
  71. <option value="5">5</option>
  72. </select>
  73. </span>
  74. <span>
  75. <span>
  76. 重要性:
  77. </span>
  78. <select id="importance" name="importance">
  79. <option value="">---请选择---</option>
  80. <option value="1">1</option>
  81. <option value="2">2</option>
  82. <option value="3">3</option>
  83. <option value="4">4</option>
  84. <option value="5">5</option>
  85. </select>
  86. </span>
  87. <span>
  88. <span>
  89. 执行状态:
  90. </span>
  91. <select id="executionStatus" name="executionStatus">
  92. <option value="">---请选择---</option>
  93. <option value="1">未完成</option>
  94. <option value="20">已完成</option>
  95. <option value="30">逾期未完成</option>
  96. <option value="40">逾期已完成</option>
  97. <option value="50">已撤销</option>
  98. </select>
  99. </span>
  100. </span>
  101. </div>
  102. <div style="margin-top:5px;">
  103. <c:if test="${generalManagerOffice}">
  104. <span id="operateSpan">
  105. <a href="#" class="easyui-linkbutton l-btn" icon="icon-add" operationCode="add" id="addBtn" onclick="addRow()">
  106. <span>添加</span>
  107. </a>
  108. <a href="#" class="easyui-linkbutton l-btn" icon="icon-remove" operationCode="remove" id="removeBtn" onclick="removeRow()">
  109. <span>删除</span>
  110. </a>
  111. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-save" onclick="btn_ok()"> 保 存</a>
  112. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-synchronization " onclick="btn_issue()"> 下 发</a>
  113. </span>
  114. </c:if>
  115. <span style="float:right">
  116. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-left" onclick="goBefore()" id="upper">
  117. <span>上一周</span>
  118. </a>
  119. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-right" onclick="goNext()" id="lower">
  120. <span>下一周</span>
  121. </a>
  122. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-search" onclick="queryList()">
  123. <span>查询</span>
  124. </a>
  125. </span>
  126. </div>
  127. <div style="clear:both"></div>
  128. <div style="margin-top:5px;"></div>
  129. <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" tiptype="1" tipSweep="true"
  130. callback="callback"
  131. action="weeklyMeetingController.do?addAndModify"
  132. >
  133. <input type="hidden" id="diffWeek" name="diffWeek" value="${diffWeek}"/>
  134. <input type="hidden" id="watchType" name="watchType" value="${watchType}"/>
  135. <input type="hidden" id="weekNum" name="weekNum" value="${weekNum}"/>
  136. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  137. <table border="0" cellpadding="2" cellspacing="0" id="detail_table" style="width:100%">
  138. <tr bgcolor="#E6E6E6" style="width:100%;font-weight: bold;font-size:14px;" id="tableheader">
  139. <td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
  140. <td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
  141. <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
  142. 会议时间
  143. </td>
  144. <td align="left" bgcolor="#EEEEEE" >
  145. 会议内容
  146. </td>
  147. <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
  148. 紧急度
  149. </td>
  150. <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
  151. 重要性
  152. </td>
  153. <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
  154. 提出人
  155. </td>
  156. <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
  157. 落实人
  158. </td>
  159. <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
  160. 预计完成时间
  161. </td>
  162. <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
  163. 实际完成时间
  164. </td>
  165. <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
  166. 执行状态
  167. </td>
  168. <td align="left" bgcolor="#EEEEEE" style="width: 160px;">
  169. 操作
  170. </td>
  171. </tr>
  172. <tbody id="add_table">
  173. <c:if test="${fn:length(list) > 0 }">
  174. <c:forEach items="${list}" var="poVal" varStatus="stuts">
  175. <tr id="${poVal.id}">
  176. <td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
  177. <td align="center">
  178. <input style="width:20px;" type="checkbox" name="ck" <c:if test="${poVal.issue==1||poVal.createBy!=userName}">disabled="disabled"</c:if> />
  179. </td>
  180. <td align="left">
  181. <input type="hidden" name="weeklyMeetingEntitiyList[${stuts.index }].id" id="id${stuts.index }" value="${poVal.id}"/>
  182. <input type="hidden" name="weeklyMeetingEntitiyList[${stuts.index }].weekNum" value="${poVal.weekNum}"/>
  183. <input name="weeklyMeetingEntitiyList[${stuts.index }].meetingTime" id="meetingTime${stuts.index }" type="text" readonly="readonly"
  184. style="width: 80px" class="Wdate" value="<fmt:formatDate value='${poVal.meetingTime}' pattern="yyyy-MM-dd"/>"
  185. <c:if test="${poVal.createBy==userName}">onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"</c:if>datatype="*" nullmsg="会议时间不可为空!" />
  186. <label class="Validform_label" style="display: none;">会议时间</label>
  187. </td>
  188. <td align="left">
  189. <input type="text" name="weeklyMeetingEntitiyList[${stuts.index }].meetingContent" id="meetingContent${stuts.index }"
  190. style="width:98%;" value="${poVal.meetingContent}" <c:if test="${poVal.createBy!=userName}">readonly="readonly"</c:if>/>
  191. <label class="Validform_label" style="display: none;">会议内容</label>
  192. </td>
  193. <td align="left">
  194. <select name="weeklyMeetingEntitiyList[${stuts.index }].urgent" id="urgent${stuts.index }" style="width:80px;" <c:if test="${poVal.createBy!=userName}">onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;"</c:if>>
  195. <option value="1" <c:if test="${poVal.urgent==1}">selected="selected"</c:if>>1</option>
  196. <option value="2" <c:if test="${poVal.urgent==2}">selected="selected"</c:if>>2</option>
  197. <option value="3" <c:if test="${poVal.urgent==3}">selected="selected"</c:if>>3</option>
  198. <option value="4" <c:if test="${poVal.urgent==4}">selected="selected"</c:if>>4</option>
  199. <option value="5" <c:if test="${poVal.urgent==5}">selected="selected"</c:if>>5</option>
  200. </select>
  201. <label class="Validform_label" style="display: none;">紧急度</label>
  202. </td>
  203. <td align="left">
  204. <select name="weeklyMeetingEntitiyList[${stuts.index }].importance" id="importance${stuts.index }" value="${poVal.importance}" style="width:80px;" <c:if test="${poVal.createBy!=userName}">onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;"</c:if>>
  205. <option value="1" <c:if test="${poVal.importance==1}">selected="selected"</c:if>>1</option>
  206. <option value="2" <c:if test="${poVal.importance==2}">selected="selected"</c:if>>2</option>
  207. <option value="3" <c:if test="${poVal.importance==3}">selected="selected"</c:if>>3</option>
  208. <option value="4" <c:if test="${poVal.importance==4}">selected="selected"</c:if>>4</option>
  209. <option value="5" <c:if test="${poVal.importance==5}">selected="selected"</c:if>>5</option>
  210. </select>
  211. <label class="Validform_label" style="display: none;">重要性</label>
  212. </td>
  213. <td align="left">
  214. <input type="hidden" name="weeklyMeetingEntitiyList[${stuts.index }].proposeId" id="proposeId${stuts.index }" value="${poVal.proposeId}"/>
  215. <input type="text" name="weeklyMeetingEntitiyList[${stuts.index }].proposeName" id="proposeName${stuts.index }" value="${poVal.proposeName}"
  216. <c:if test="${poVal.createBy==userName}">onclick="openAllSelect('propose', this.id)"</c:if> style="width:80px;" <c:if test="${poVal.createBy!=userName}">readonly="readonly"</c:if>/>
  217. <label class="Validform_label" style="display: none;">提出人</label>
  218. </td>
  219. <td align="left">
  220. <input type="hidden" name="weeklyMeetingEntitiyList[${stuts.index }].implementationId" id="implementationId${stuts.index }" value="${poVal.implementationId}"/>
  221. <input type="text" name="weeklyMeetingEntitiyList[${stuts.index }].implementationName" id="implementationName${stuts.index }" value="${poVal.implementationName}"
  222. <c:if test="${poVal.createBy==userName}">onclick="openAllSelect('implementation', this.id)"</c:if> style="width:80px;" <c:if test="${poVal.createBy!=userName}">readonly="readonly"</c:if>/>
  223. <label class="Validform_label" style="display: none;">落实人</label>
  224. </td>
  225. <td align="left">
  226. <input name="weeklyMeetingEntitiyList[${stuts.index }].expectedCompletion" id="expectedCompletion${stuts.index }" type="text" readonly="readonly" class="Wdate" <c:if test="${poVal.createBy==userName}">onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"</c:if> datatype="*" nullmsg="预计完成时间不可为空!"
  227. value="<fmt:formatDate value='${poVal.expectedCompletion}' pattern="yyyy-MM-dd"/>" style="width:80px;" />
  228. <label class="Validform_label" style="display: none;">预计完成时间</label>
  229. </td>
  230. <td align="left">
  231. <input name="weeklyMeetingEntitiyList[${stuts.index }].actualCompletion" id="actualCompletion${stuts.index }" type="text" disabled="disabled"
  232. value="<fmt:formatDate value='${poVal.actualCompletion}' pattern="yyyy-MM-dd"/>" style="width:80px;"/>
  233. <label class="Validform_label" style="display: none;">实际完成时间</label>
  234. </td>
  235. <td align="left">
  236. <select name="weeklyMeetingEntitiyList[${stuts.index }].executionStatus" id="executionStatus${stuts.index }" disabled="disabled" style="width:80px;" >
  237. <option value="1" <c:if test="${poVal.executionStatus==1 || poVal.executionStatus==0}">selected="selected"</c:if>>未完成</option>
  238. <option value="20" <c:if test="${poVal.executionStatus==20}">selected="selected"</c:if>>已完成</option>
  239. <option value="30" <c:if test="${poVal.executionStatus==30}">selected="selected"</c:if>>逾期未完成</option>
  240. <option value="40" <c:if test="${poVal.executionStatus==40}">selected="selected"</c:if>>逾期已完成</option>
  241. <option value="50" <c:if test="${poVal.executionStatus==50}">selected="selected"</c:if>>已撤销</option>
  242. </select>
  243. <input type="hidden" value="0" name="weeklyMeetingEntitiyList[${stuts.index }].issue" id="issue${stuts.index }"/>
  244. <label class="Validform_label" style="display: none;">执行状态</label>
  245. </td>
  246. <td>
  247. <c:if test="${not empty poVal.projectTaskId and poVal.showProjectTask}">
  248. <a href="#" class="ace_button" onclick="viewTask('${poVal.projectTaskId}')">
  249. <i class=" fa fa-search" style="margin-right:5px;"></i>查看结果
  250. </a>
  251. </c:if>
  252. <c:if test="${poVal.createBy==userName}">
  253. <c:if test="${poVal.executionStatus==20}">
  254. <a href="#" class="ace_button" onclick="reexecution('${poVal.projectTaskId}')">
  255. <i class=" fa fa-search" style="margin-right:5px;"></i>重新执行
  256. </a>
  257. </c:if>
  258. <c:if test="${poVal.executionStatus==0 || poVal.executionStatus==1 || poVal.executionStatus==30}">
  259. <a href="#" class="ace_button" onclick="revokeTask('${poVal.projectTaskId}')">
  260. <i class=" fa fa-search" style="margin-right:5px;"></i>撤销任务
  261. </a>
  262. </c:if>
  263. </c:if>
  264. </td>
  265. </tr>
  266. </c:forEach>
  267. </c:if>
  268. </tbody>
  269. </table>
  270. </t:formvalid>
  271. <table style="display:none">
  272. <tbody id="add_template">
  273. <tr>
  274. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  275. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  276. <td align="left">
  277. <input type="hidden" name="weeklyMeetingEntitiyList[#index#].weekNum" value="${weekNum}"/>
  278. <input name="weeklyMeetingEntitiyList[#index#].meetingTime" id="meetingTime#index#" type="text" readonly="readonly" style="width: 80px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="*" nullmsg="会议时间不可为空!" />
  279. <label class="Validform_label" style="display: none;">会议时间</label>
  280. </td>
  281. <td align="left">
  282. <input type="text" name="weeklyMeetingEntitiyList[#index#].meetingContent" id="meetingContent#index#" style="width: 98%;" datatype="*"/>
  283. <label class="Validform_label" style="display: none;">会议内容</label>
  284. </td>
  285. <td align="left">
  286. <select name="weeklyMeetingEntitiyList[#index#].urgent" id="urgent#index#" style="width: 80px" datatype="*">
  287. <option value="" selected="selected" disabled="disabled">请选择</option>
  288. <option value="1">1</option>
  289. <option value="2">2</option>
  290. <option value="3">3</option>
  291. <option value="4">4</option>
  292. <option value="5">5</option>
  293. </select>
  294. <label class="Validform_label" style="display: none;" style="width: 80px">紧急度</label>
  295. </td>
  296. <td align="left">
  297. <select name="weeklyMeetingEntitiyList[#index#].importance" id="importance#index#" style="width: 80px" datatype="*">
  298. <option value="" selected="selected" disabled="disabled">请选择</option>
  299. <option value="1">1</option>
  300. <option value="2">2</option>
  301. <option value="3">3</option>
  302. <option value="4">4</option>
  303. <option value="5">5</option>
  304. </select>
  305. <label class="Validform_label" style="display: none;">重要性</label>
  306. </td>
  307. <td align="left">
  308. <input type="hidden" name="weeklyMeetingEntitiyList[#index#].proposeId" id="proposeId#index#"/>
  309. <input type="text" name="weeklyMeetingEntitiyList[#index#].proposeName" id="proposeName#index#" onclick="openAllSelect('propose', this.id)" style="width: 80px" datatype="*" readonly="readonly"/>
  310. <label class="Validform_label" style="display: none;">提出人</label>
  311. </td>
  312. <td align="left">
  313. <input type="hidden" name="weeklyMeetingEntitiyList[#index#].implementationId" id="implementationId#index#"/>
  314. <input type="text" name="weeklyMeetingEntitiyList[#index#].implementationName" id="implementationName#index#" onclick="openAllSelect('implementation', this.id)" style="width: 80px" datatype="*" readonly="readonly"/>
  315. <label class="Validform_label" style="display: none;">落实人</label>
  316. </td>
  317. <td align="left">
  318. <input name="weeklyMeetingEntitiyList[#index#].expectedCompletion" id="expectedCompletion#index#" type="text" readonly="readonly" style="width: 80px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="*" nullmsg="预计完成时间不可为空!" />
  319. <label class="Validform_label" style="display: none;">预计完成时间</label>
  320. </td>
  321. <td align="left">
  322. <input name="weeklyMeetingEntitiyList[#index#].actualCompletion" id="actualCompletion#index#" type="text" disabled="disabled" style="width: 80px"/>
  323. <label class="Validform_label" style="display: none;">实际完成时间</label>
  324. </td>
  325. <td align="left">
  326. <select name="weeklyMeetingEntitiyList[#index#].executionStatus" id="executionStatus#index#" style="width: 80px" onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;">
  327. <option value="0" selected="selected">未完成</option>
  328. <option value="20">已完成</option>
  329. <option value="30">逾期未完成</option>
  330. <option value="40">逾期已完成</option>
  331. <option value="50">已撤销</option>
  332. </select>
  333. <input type="hidden" value="0" name="weeklyMeetingEntitiyList[#index#].issue" id="issue#index#" />
  334. <label class="Validform_label" style="display: none;">执行状态</label>
  335. </td>
  336. </tr>
  337. </tbody>
  338. </table>
  339. </body>
  340. <script src="webpage/cn/com/lzt/useractiviti/select_user_tools.js"></script>
  341. <script src = "webpage/com/xcgl/weeklyMeeting/weeklyMeeting.js"></script>
  342. </html>