sysPlanSubscribeToExchange.jsp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html"%>
  3. <html>
  4. <head>
  5. <%@include file="/commons/include/form.jsp"%>
  6. <title>日程交流--我的订阅</title>
  7. <style type="text/css">
  8. .owner-span{
  9. font-size: 13px;
  10. background-color: #EFF2F7;
  11. border: 1px solid #CCD5E4;
  12. border-radius: 5px 5px 5px 5px;
  13. cursor: default;
  14. float: left;
  15. height: auto !important;
  16. margin: 3px;
  17. overflow: hidden;
  18. padding: 2px 4px;
  19. white-space: nowrap;
  20. }
  21. </style>
  22. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/FlexUploadDialog.js"></script>
  23. <script type="text/javascript" src="${ctx}/js/hotent/platform/form/CommonDialog.js"></script>
  24. <script type="text/javascript" src="${ctx}/codegen/js/AttachMent.js"></script>
  25. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/SysDialog.js"></script>
  26. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/SysPlanScript.js"></script>
  27. <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
  28. <script type="text/javascript" src="${ctx}/servlet/ValidJs?form=sysPlan"></script>
  29. <script type="text/javascript">
  30. $(function(){
  31. //初始化选择器
  32. initData();
  33. //初始化点击人员事件
  34. openDetailEvent();
  35. });
  36. </script>
  37. </head>
  38. <body>
  39. <div class="panel">
  40. <div class="panel-top">
  41. <div class="tbar-title">
  42. <span class="tbar-label">日程交流--我的订阅</span>
  43. </div>
  44. <div class="panel-toolbar">
  45. <div class="toolBar">
  46. <div class="group">
  47. <a class="link back" href="${ctx}/platform/system/sysPlan/subscribe.ht?currentViweDate=${currentViweDate}"><span></span>返回</a>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="panel-body">
  53. <form id="sysPlanExchange" method="post" action="">
  54. <div class="panel-detail">
  55. <input type="hidden" name="id" value="${sysPlan.id}"/>
  56. <input type="hidden" name="currentViweDate" value="${currentViweDate}"/>
  57. <input type="hidden" name="type" value="subscribe"/>
  58. <table class="table-detail" cellpadding="0" cellspacing="0" border="0">
  59. <tr>
  60. <th width="20%">日志时间:</th>
  61. <td>
  62. ${sysPlan.taskName}
  63. </td>
  64. <th width="20%">提交人:</th>
  65. <td>
  66. <input type="hidden" name="submitId" value="${sysPlan.submitId}" />
  67. <input type="hidden" name="submitor" value="${sysPlan.submitor}" />
  68. <div id='submitDiv'></div>
  69. </td>
  70. </tr>
  71. <tr>
  72. <th width="20%">负责人:</th>
  73. <td>
  74. <input type="hidden" name="chargeId" value="${sysPlan.chargeId}" />
  75. <input type="hidden" name="charge" value="${sysPlan.charge}" />
  76. <div id='chargeDiv'></div>
  77. </td>
  78. <th width="20%">参与人:</th>
  79. <td>
  80. <input type="hidden" name="participantIds" value="${participantIds}" />
  81. <input type="hidden" name="participants" value="${participants}" />
  82. <div id='participantDiv'></div>
  83. </td>
  84. </tr>
  85. <tr>
  86. <th width="20%">开始时间:</th>
  87. <td>
  88. <fmt:formatDate value='${sysPlan.startTime}' pattern='yyyy-MM-dd HH:mm:ss'/>
  89. </td>
  90. <th width="20%">结束时间:</th>
  91. <td>
  92. <fmt:formatDate value='${sysPlan.endTime}' pattern='yyyy-MM-dd HH:mm:ss'/>
  93. </td>
  94. </tr>
  95. <tr>
  96. <th width="20%">日志名称:</th>
  97. <td>
  98. ${sysPlan.projectName}
  99. </td>
  100. <th width="20%">日程进度:</th>
  101. <td>
  102. ${sysPlan.rate}%
  103. </td>
  104. </tr>
  105. <tr>
  106. <th width="20%">相关客户:</th>
  107. <td>
  108. <input type="hidden" name="customerId" value="${sysPlan.chargeId}" />
  109. <input type="hidden" name="customer" value="${sysPlan.charge}" />
  110. <div id='customerDiv'></div>
  111. </td>
  112. <th width="20%">相关文档:</th>
  113. <td>
  114. <div name="div_attachment_container" >
  115. <div class="attachement" ></div>
  116. <textarea style="display:none" controltype="attachment" name="doc" lablename="相关文档">${sysPlan.doc}</textarea>
  117. </td>
  118. </tr>
  119. <tr>
  120. <th width="20%">工单:</th>
  121. <td colspan="3">
  122. <input type="hidden" name="runId" value="${sysPlan.runId}" />
  123. <input type="hidden" name="runName" value="${sysPlan.runName}" />
  124. <div id='runDiv'></div>
  125. </td>
  126. </tr>
  127. <tr>
  128. <th width="20%">内容:</th>
  129. <td colspan="3">
  130. ${sysPlan.description}
  131. </td>
  132. </tr>
  133. <tr>
  134. <th width="20%">字数:</th>
  135. <td colspan="3">
  136. <font color="green">${sysPlan.numberCount}</font>个字
  137. </td>
  138. </tr>
  139. <tr>
  140. <th width="20%">交流信息:</th>
  141. <td colspan="3">
  142. <div>
  143. <table id="exchangeTable" style="float: left;" class="table-grid table-list" cellpadding="0" cellspacing="0" border="0">
  144. <thead>
  145. <tr>
  146. <th width="10%;" style="text-align: center;"><input type="checkbox" id="all_exchangeId" onclick="selectCheckbox('all_exchangeId')"/></th>
  147. <th width="35%;" style="text-align: center;">提交内容</th>
  148. <th width="20%;" style="text-align: center;">提交人</th>
  149. <th width="20%;" style="text-align: center;">提交时间</th>
  150. <th width="15%;" style="text-align: center;">管理</th>
  151. </tr>
  152. </thead>
  153. <c:choose>
  154. <c:when test="${fn:length(sysPlanExchangeList)>0 }">
  155. <c:forEach items="${sysPlanExchangeList}" var="exchange">
  156. <tr>
  157. <td style="text-align: center;">
  158. <input type="checkbox" name="exchangeId" value="${exchange.id}" parentId="${exchange.planId}">
  159. </td>
  160. <td style="text-align: center;" >
  161. <c:choose>
  162. <c:when test="${fn:length(exchange.content)>21}">
  163. <c:out value="${fn:substring(exchange.content, 0, 20)}..." />
  164. </c:when>
  165. <c:otherwise>
  166. <c:out value="${exchange.content}" />
  167. </c:otherwise>
  168. </c:choose>
  169. </td>
  170. <td>
  171. <c:if test="${fn:length(exchange.submitor)>0}">
  172. <span class="owner-span">
  173. <a class="moreinfo" ownerid="${exchange.submitId}" hrefstr="${ctx}/platform/system/sysUser/get.ht?openType=detail&userId=${exchange.submitId}" href="#">
  174. ${exchange.submitor}
  175. </a>
  176. </span>
  177. </c:if>
  178. </td>
  179. <td style="text-align: center;" >
  180. <fmt:formatDate value='${exchange.createTime}' pattern='yyyy-MM-dd HH:mm:ss'/>
  181. </td>
  182. <td style="text-align: center;" >
  183. <%-- <a class="link" onclick="editSysPlanExchange('${exchange.id}','${exchange.planId}')" href="#">编辑</a> --%>
  184. <a class="link" onclick="openSysPlanExchange('${exchange.id}','${exchange.planId}')" href="#">查看</a>
  185. </td>
  186. </tr>
  187. </c:forEach>
  188. </c:when>
  189. <c:otherwise>
  190. <tr class="empty-div" >
  191. <td colspan="5" style="text-align: center;">
  192. 暂没有交流信息
  193. </td>
  194. </tr>
  195. </c:otherwise>
  196. </c:choose>
  197. </table>
  198. </div>
  199. </td>
  200. </tr>
  201. <tr>
  202. <th width="20%">评论信息:</th>
  203. <td colspan="3">
  204. <br/>
  205. <div>
  206. <table id="exchangeTable" style="float: left;" class="table-grid table-list" cellpadding="0" cellspacing="0" border="0">
  207. <thead>
  208. <tr>
  209. <th width="15%;" style="text-align: center;">评论等级</th>
  210. <th width="35%;" style="text-align: center;">评论内容</th>
  211. <th width="20%;" style="text-align: center;">提交人</th>
  212. <th width="20%;" style="text-align: center;">提交时间</th>
  213. <th width="15%;" style="text-align: center;">管理</th>
  214. </tr>
  215. </thead>
  216. <c:choose>
  217. <c:when test="${fn:length(sysPlanCommentList)>0 }">
  218. <c:forEach items="${sysPlanCommentList}" var="comment">
  219. <tr>
  220. <td style="text-align: center;" value=value="${comment.commentgrade}">
  221. <c:if test="${comment.commentgrade eq '1'}">优</c:if>
  222. <c:if test="${comment.commentgrade eq '2'}">良</c:if>
  223. <c:if test="${comment.commentgrade eq '3'}">中</c:if>
  224. <c:if test="${comment.commentgrade eq '4'}">差</c:if>
  225. </td>
  226. <td style="text-align: center;" >
  227. <c:choose>
  228. <c:when test="${fn:length(comment.commentcontent)>21}">
  229. <c:out value="${fn:substring(comment.commentcontent, 0, 20)}..." />
  230. </c:when>
  231. <c:otherwise>
  232. <c:out value="${comment.commentcontent}" />
  233. </c:otherwise>
  234. </c:choose>
  235. </td>
  236. <td>
  237. <c:if test="${fn:length(comment.submitor)>0}">
  238. <span class="owner-span">
  239. <a class="moreinfo" ownerid="${comment.submitId}" hrefstr="${ctx}/platform/system/sysUser/get.ht?openType=detail&userId=${comment.submitId}" href="#">
  240. ${comment.submitor}
  241. </a>
  242. </span>
  243. </c:if>
  244. </td>
  245. <td style="text-align: center;" >
  246. <fmt:formatDate value='${comment.createTime}' pattern='yyyy-MM-dd HH:mm:ss'/>
  247. </td>
  248. <td style="text-align: center;" >
  249. <%-- <a class="link" onclick="editSysPlanExchange('${exchange.id}','${exchange.planId}')" href="#">编辑</a> --%>
  250. <a class="link" onclick="openSysPlanExchange('${comment.id}','${comment.planId}')" href="#">查看</a>
  251. </td>
  252. </tr>
  253. </c:forEach>
  254. </c:when>
  255. <c:otherwise>
  256. <tr class="empty-div" >
  257. <td colspan="5" style="text-align: center;">
  258. 暂没有评论信息
  259. </td>
  260. </tr>
  261. </c:otherwise>
  262. </c:choose>
  263. </table>
  264. </div>
  265. </td>
  266. </tr>
  267. </table>
  268. </div>
  269. </form>
  270. </div>
  271. </div>
  272. </body>
  273. </html>