taskResultListByTaskID.jsp 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  4. <%
  5. String url= "taskResultController.do?datagrid&taskid=" +(String)request.getParameter("taskid");
  6. %>
  7. <div class="easyui-layout" fit="true">
  8. <div region="center" style="padding:0px;border:0px">
  9. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  10. <tr>
  11. <td align="left" style="width: 100px;">
  12. <label class="Validform_label">
  13. 工作名称:
  14. </label>
  15. </td>
  16. <td class="value">
  17. <input id="code" name="code" type="text" style="width: 100%;border: 0px;" class="inputxt" ignore="ignore" readonly="readonly" value='${name}'/>
  18. <span class="Validform_checktip"></span>
  19. <label class="Validform_label" style="display: none;">工作编码</label>
  20. </td>
  21. </tr>
  22. <tr>
  23. <td align="left" style="width: 100px;">
  24. <label class="Validform_label">
  25. 工作执行说明:
  26. </label>
  27. </td>
  28. <td class="value">
  29. <textarea id="name" name="name" type="text" style="width: 100%" readonly="readonly"rows="12" >${memo}</textarea>
  30. <!-- <span class="Validform_checktip"></span> -->
  31. <label class="Validform_label" style="display: none;"></label>
  32. </td>
  33. </tr>
  34. <%-- <td align="left">
  35. <label class="Validform_label">
  36. 本次服务评分:
  37. </label>
  38. </td>
  39. <td class="value">
  40. <label class="Validform_label" >&nbsp;&nbsp;${taskresult.taskObjectScore}分</label>
  41. </td>
  42. </tr> --%>
  43. <%-- <c:if test='${task.tasktype == "pmdept"}'> --%>
  44. <tr>
  45. <td align="left" style="width: 100px;">
  46. <label class="Validform_label">附件:</label>
  47. </td>
  48. <td class="value">
  49. <t:webUploader auto="true" busiId="${taskresult.id}"
  50. readOnly="true"
  51. busiTable="p_taskresult"
  52. bizType="projecttaskresult"
  53. name="attachment" duplicate="true" fileNumLimit="10"
  54. nullMsg="附件不可为空"></t:webUploader>
  55. <span class="Validform_checktip"></span>
  56. <label class="Validform_label" style="display: none;">附件</label>
  57. </td>
  58. </tr>
  59. <%-- </c:if> --%>
  60. <tr style="height: 15px;">
  61. </tr>
  62. <tr>
  63. <td colspan="2" height="300px">
  64. <t:datagrid name="taskResultList" pagination="false" checkbox="false" fitColumns="true" title="图片列表"
  65. actionUrl="taskResultController.do?datagrid&taskid=${taskid}" idField="id" fit="true" queryMode="group">
  66. <%-- ='<%=url%>' --%>
  67. <t:dgCol title="工作" field="taskid" queryMode="single" dictionary="p_projecttask,id,name" width="100"></t:dgCol>
  68. <t:dgCol title="现场图片" field="picture" queryMode="single" width="400"></t:dgCol>
  69. <t:dgCol title="现场图片" field="id" hidden="true" width="100"></t:dgCol>
  70. <t:dgCol title="操作" field="opt"></t:dgCol>
  71. <t:dgFunOpt title="查看" funname="showViewFile" urlclass="ace_button" urlfont="fa-check" > </t:dgFunOpt> <%-- exp="isPreviewFlg#eq#1" --%>
  72. </t:datagrid>
  73. </td>
  74. </tr>
  75. <%-- <tr>
  76. <td align="right">
  77. <label class="Validform_label">
  78. &nbsp;
  79. </label>
  80. </td></tr>
  81. <td align="right">
  82. <label class="Validform_label">
  83. 品质部任务执行结果评价:
  84. </label>
  85. </td>
  86. <td class="value">
  87. <t:myDictSelect field="reviewScore" type="radio" typeGroupCode="reviewScore" hasLabel="false" title="分数" split="8" defaultVal="30"></t:myDictSelect>
  88. <span class="Validform_checktip"></span>
  89. <label class="Validform_label" style="display: none;"></label>
  90. </td>
  91. </tr> --%>
  92. <tr>
  93. <td height="50px" align="center" colspan="8">
  94. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  95. <!-- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">提交</a> -->
  96. <a style="margin-left:20px" href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="btn_back()">返回</a>
  97. </td>
  98. </tr>
  99. </table>
  100. </div>
  101. <%-- <div region="center" style="padding:0px;border:0px">
  102. </div> --%>
  103. </div>
  104. <script type="text/javascript">
  105. $(document).ready(function(){
  106. });
  107. function btn_back(){
  108. this.closeCurrentDialog();
  109. }
  110. function btn_ok(){
  111. this.closeCurrentDialog();
  112. }
  113. function showViewFile(index) {
  114. var rows = $('#taskResultList').datagrid('getRows');//获取所有当前加载的数据行
  115. var fileUrl = rows[index].id;
  116. // 默认文件不是在阿里云
  117. var aliyunflg = "1";
  118. $.dialog.setting.zIndex = getzIndex();
  119. $.dialog(
  120. {
  121. content : 'url:taskResultController.do?showPictureview&fileUrl=' + fileUrl + '&aliyunflg=' + aliyunflg,
  122. //content : 'url:'+ urlSee,
  123. zIndex : getzIndex(),
  124. title : '查看文件',//选择框标题
  125. lock : true,//是否锁定 当为true 时 下层有蒙版,不允许用户在弹出窗口以外有其它操作
  126. width : '600px',// 选择框宽度
  127. height : '600px',//选择框高度
  128. opacity : 0.4,//透明度 (经过测试 效果好像不太明显 )
  129. button : [ {
  130. name : '上报素材库',
  131. focus : true,
  132. callback : function() {
  133. }},{
  134. name : '关闭',
  135. focus : true,
  136. callback : function() {
  137. }
  138. } ]
  139. }).zindex();
  140. };
  141. </script>