6161c8e3940797f8c05cc2db6ffdc739c64e028e.svn-base 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title></title>
  7. <%@include file="../../../../include.jsp"%>
  8. <style type="text/css">
  9. input{
  10. cursor: pointer;
  11. }
  12. .delete_btn{
  13. height:25px;
  14. margin-top: 7px;
  15. }
  16. .fxTitle{
  17. display: inline-block;
  18. background-color: #3b95c8;
  19. color: #000;
  20. margin: 05px;
  21. padding: 3px 15px;
  22. border-radius: 5px;
  23. cursor: pointer;
  24. }
  25. .fxTitle:hover{
  26. background-color: #042F66;
  27. }
  28. .fxTitle_current{
  29. background-color: #042F66;
  30. color:#fff;
  31. }
  32. </style>
  33. <script type="text/javascript">
  34. var fd_id = "<%=request.getParameter("fd_id")%>";
  35. var file_suoshu = "<%=request.getParameter("file_suoshu")%>";
  36. var FENGXIAN_TYPE = "<%=request.getParameter("FENGXIAN_TYPE")%>";
  37. //取得用户真实名字
  38. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  39. //部门id
  40. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  41. //部门名称
  42. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  43. //获取用户角色
  44. var role_id = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
  45. //获取当前日期
  46. var currDate = getNowFormatDate();
  47. //返回主页面
  48. function goBack() {
  49. //获取iframe中的元素值
  50. var iframe =parent.parent.document.getElementsByName("frmright")[0];
  51. iframe.src = "/nwyj/page/business/gps/taskManagement/taskManagement.jsp";
  52. }
  53. function formReset(){
  54. }
  55. var zhibiaoCol = [{
  56. display : '填报单位',
  57. name : 'INPUT_DEPT_614',
  58. align : 'center',
  59. width : "15%",
  60. showTitle:true
  61. }, {
  62. display : "风险评估指标",
  63. name : 'FILE_SUOSHU_614',
  64. align : 'center',
  65. width : "35%",
  66. render:function(rowdata,rowindex,value){
  67. return "<a onclick='_loadFile(&quot;" + rowdata.fileUrl + "&quot;)' style='color:blue'>"+value+"</a>";
  68. }
  69. }, {
  70. display : '填报时间',
  71. name : 'INPUT_TIME_614',
  72. align : 'center',
  73. width : "15%",
  74. isSort : true
  75. }, {
  76. display : '填报人',
  77. name : 'INPUT_NAME_614',
  78. align : 'center',
  79. width : "10%",
  80. showTitle:true
  81. }, {
  82. display : '操作',
  83. align : 'center',
  84. width : "10%",
  85. render:function(rowdata,rowindex,value){
  86. return "<a><input type='button' class='delete_btn' value='删除' onclick='_deleteRow("+rowindex+")'/></a>";
  87. }
  88. }];
  89. var baogaoCol = [{
  90. display : '填报单位',
  91. name : 'INPUT_DEPT_614',
  92. align : 'center',
  93. width : "15%",
  94. showTitle:true
  95. }, {
  96. display : "风险评估报告",
  97. name : 'FILE_SUOSHU_614',
  98. align : 'center',
  99. width : "35%",
  100. render:function(rowdata,rowindex,value){
  101. return "<a onclick='_loadFile(&quot;" + rowdata.fileUrl + "&quot;)' style='color:blue'>"+value+"</a>";
  102. }
  103. }, {
  104. display : '填报时间',
  105. name : 'INPUT_TIME_614',
  106. align : 'center',
  107. width : "15%",
  108. isSort : true
  109. }, {
  110. display : '填报人',
  111. name : 'INPUT_NAME_614',
  112. align : 'center',
  113. width : "10%",
  114. showTitle:true
  115. }, {
  116. display : '操作',
  117. align : 'center',
  118. width : "10%",
  119. render:function(rowdata,rowindex,value){
  120. return "<a><input type='button' class='delete_btn' value='删除' onclick='_deleteRow("+rowindex+")'/></a>";
  121. }
  122. }];
  123. var cols = zhibiaoCol;
  124. //页面初始化
  125. $(function(){
  126. if(!(role_id.indexOf("R002105430208")>0 || role_id.indexOf("R002105430209")>0 )){//保供电领导小组办公室人员或专业管理部门人员
  127. $(".quanxian").hide();
  128. }
  129. //$('#fileDiv').getUploadFileContent();
  130. $('#fileDiv').newAsyncFileUpload("",fd_id);//附件
  131. $("#fileListContainer").empty();
  132. $("#INPUT_DEPT_614").val(deptName);
  133. $("#INPUT_NAME_614").val(realName);
  134. $("#INPUT_TIME_614").val(currDate);
  135. $("#FD_TASK_614").val(fd_id);
  136. $("#FENGXIAN_TYPE_614").val(FENGXIAN_TYPE);
  137. //$("#titleShow2").text(suoshuName);
  138. $(".fxTitle").live("click",function(){
  139. $("#fileListContainer").empty();
  140. $(".fxTitle_current").removeClass("fxTitle_current");
  141. $(this).addClass("fxTitle_current");
  142. var fxType = $(this).attr("data");
  143. $("#FENGXIAN_TYPE_614").val(fxType);
  144. FENGXIAN_TYPE = fxType;
  145. if(fxType=="1"){
  146. cols = zhibiaoCol;
  147. loadGridData();
  148. initgrid(taskJson1,cols);
  149. }else{
  150. cols = baogaoCol;
  151. loadGridData();
  152. initgrid(taskJson1,cols);
  153. }
  154. })
  155. });
  156. </script>
  157. <script type="text/javascript" src="<%=path%>/scripts/business/gps/taskManagement/gpsTaskMsg/gpsFileFXEdit.js"></script>
  158. <script type="text/javascript" src="/nwyj/scripts/business/gps/taskManagement/setIframeHeight.js"></script>
  159. </head>
  160. <body >
  161. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
  162. <div style="height: 50px;background: #F8F8F8;" align="center">
  163. <a href="javascript:;">
  164. <img align="left" alt="返回" src="/nwyj/images/temp/back.png" onclick="goBack();"></img>
  165. </a>
  166. <font style="font-weight: bold;font-size: 20px;line-height: 45px;" id="titleShow1">保供电风险评估信息</font>
  167. </div>
  168. <form id="editForm" method="post" enctype="multipart/form-data">
  169. <input name="classid" value="614" type="hidden"/>
  170. <input type="hidden" id="FD_OBJECTID614" name="FD_OBJECTID614" value=""/>
  171. <input id="INPUT_DEPT_614" name="INPUT_DEPT_614" type="hidden"/><!-- 填报部门 -->
  172. <input id="INPUT_TIME_614" name="INPUT_TIME_614" type="hidden"/><!-- 填报时间 -->
  173. <input id="INPUT_NAME_614" name="INPUT_NAME_614" type="hidden"/><!-- 填报人 -->
  174. <input id="FD_TASK_614" name="FD_TASK_614" type="hidden"/><!-- 任务表序号 -->
  175. <input id="FILE_SUOSHU_614" name="FILE_SUOSHU_614" type="hidden" value="1" /><!-- 附件所属(1风险评估,2保供电方案,3工作简报,4总结报告) -->
  176. <input id="FENGXIAN_TYPE_614" name="FENGXIAN_TYPE_614" type="hidden" /><!-- 风险类型(1风险评估指标,2风险评估报告) -->
  177. <table style="border: none" width="100%">
  178. <tr>
  179. <td colspan="2"><div class="fxTitle fxTitle_current" data='1'>风险评估指标</div><div class="fxTitle" data='2'>风险评估报告</div></td>
  180. </tr>
  181. <tr class="quanxian">
  182. <td width="20%" style="font-size: 20px;font-weight: bold;color:#41A6D9;" id="titleShow2"></td>
  183. <td align="right" width="80%"><input value="保存" type="button"
  184. id="save" />&nbsp;&nbsp;<input value="重置" type="button" onclick="formReset()"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  185. </tr>
  186. </table>
  187. <fieldset style="border-color:#999999;" id="fileTable" class="quanxian">
  188. <legend>附件信息:</legend>
  189. <div id="fileDiv"></div>
  190. </fieldset>
  191. </form>
  192. <div style="padding:5px 0 0 0;"></div>
  193. <div id="dataGrid"></div>
  194. </div>
  195. </body>