processRunSelectSignForContent.jsp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%@taglib prefix="f" uri="http://www.jee-soft.cn/functions" %>
  4. <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  5. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  6. <c:set var="ctx" value="${pageContext.request.contextPath}" />
  7. <head>
  8. <meta charset="utf-8">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11. <link title="index" name="styleTag" rel="stylesheet" type="text/css" href="${ctx}/styles/blue/css/web.css">
  12. <%@include file="/commons/include/customForm.jsp" %>
  13. <title>协同办公</title>
  14. <script>
  15. function closeThis(){
  16. window.parent.closeDia();
  17. }
  18. function renderFile(fileid){
  19. //获取正文
  20. if(fileid==""||fileid==null) return;
  21. //判断是否已经上传了文件
  22. if(fileid!=""){
  23. //将文件渲染到表单中
  24. var jsonObj = {};
  25. jsonObj.id = fileid;
  26. jsonObj.name = fileid+".pdf";
  27. var JsonStr=JSON.parse("["+JSON.stringify(jsonObj)+"]");
  28. var divObj = $("#fileidDiv"+fileid);
  29. var textareaObj=$("#fileidArea"+fileid);
  30. var html=AttachMent.getHtml(JsonStr,"w");
  31. divObj.empty();
  32. divObj.append(html);
  33. textareaObj.empty();
  34. textareaObj.val(JSON.stringify(JsonStr));
  35. }
  36. }
  37. </script>
  38. <style>
  39. .qs_link{
  40. font-weight: 400;
  41. text-align: center;
  42. white-space: nowrap;
  43. vertical-align: middle;
  44. -webkit-user-select: none;
  45. -moz-user-select: none;
  46. -ms-user-select: none;
  47. user-select: none;
  48. border: 1px solid transparent;
  49. padding: 0.2rem 1rem 0.2rem 0.6rem;
  50. font-size: 1rem;
  51. color: #fff!important;
  52. display: inline-block;
  53. line-height: 1.25;
  54. border-radius: .2rem;
  55. text-decoration: none;
  56. /* border-radius: .25rem; */
  57. transition: all .15s ease-in-out;
  58. /* width: 100%; */
  59. /* height: 100%; */
  60. background: #3094f1 !important;
  61. margin-bottom: 15px;
  62. }
  63. .qs_link span{
  64. font-size: 16px;
  65. font-weight: bold;
  66. color: #fff;
  67. margin-right: 5px;
  68. }
  69. .table td{
  70. text-align: center;
  71. }
  72. .qs_div .panel-toolbar{
  73. padding: 0px 5px 0px;
  74. }
  75. </style>
  76. </head>
  77. <body>
  78. <div class="panel qs_div">
  79. <div class="panel-top">
  80. <div class="panel-toolbar">
  81. <div class="toolBar">
  82. <div class="group"><a class="qs_link" onclick="closeThis()" href="#"><span>X</span>关闭</a></div>
  83. <div class="l-bar-separator"></div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="panel-body">
  89. <table class="table-detail qr_table" cellpadding="0" cellspacing="0" border="0" type="main">
  90. <tr class="qr_tr">
  91. <td width="50%">流转附件</td>
  92. </tr>
  93. <tr>
  94. <td width="50%">
  95. <div name="div_attachment_container">
  96. <div class="attachement" id="fileidDiv${selectSignForContent.CIRCULATIONFILE}"></div>
  97. <textarea style="display:none" id="fileidArea${selectSignForContent.CIRCULATIONFILE}" controltype="attachment" lablename="正文" validate="{}" validatable="true"></textarea>
  98. </div>
  99. <script>renderFile('${selectSignForContent.CIRCULATIONFILE}')</script>
  100. </td>
  101. </tr>
  102. <tr class="qr_tr">
  103. <td width="50%">反馈意见</td>
  104. </tr>
  105. <tr>
  106. <td width="50%">${selectSignForContent.FEEDBACK}</td>
  107. </tr>
  108. </table>
  109. <p></p>
  110. </div>
  111. </body>