123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
- <%@include file="../../../../include.jsp"%>
- <style type="text/css">
- input{
- cursor: pointer;
- }
- .delete_btn{
- height:25px;
- margin-top: 7px;
- }
- .fxTitle{
- display: inline-block;
- background-color: #3b95c8;
- color: #000;
- margin: 05px;
- padding: 3px 15px;
- border-radius: 5px;
- cursor: pointer;
- }
- .fxTitle:hover{
- background-color: #042F66;
- }
- .fxTitle_current{
- background-color: #042F66;
- color:#fff;
- }
- </style>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- var file_suoshu = "<%=request.getParameter("file_suoshu")%>";
- var FENGXIAN_TYPE = "<%=request.getParameter("FENGXIAN_TYPE")%>";
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- //部门名称
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- //获取用户角色
- var role_id = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
- //获取当前日期
- var currDate = getNowFormatDate();
-
- //返回主页面
- function goBack() {
- //获取iframe中的元素值
- var iframe =parent.parent.document.getElementsByName("frmright")[0];
- iframe.src = "/nwyj/page/business/gps/taskManagement/taskManagement.jsp";
- }
- function formReset(){
- }
-
- var zhibiaoCol = [{
- display : '填报单位',
- name : 'INPUT_DEPT_614',
- align : 'center',
- width : "15%",
- showTitle:true
- }, {
- display : "风险评估指标",
- name : 'FILE_SUOSHU_614',
- align : 'center',
- width : "35%",
- render:function(rowdata,rowindex,value){
- return "<a onclick='_loadFile("" + rowdata.fileUrl + "")' style='color:blue'>"+value+"</a>";
- }
- }, {
- display : '填报时间',
- name : 'INPUT_TIME_614',
- align : 'center',
- width : "15%",
- isSort : true
- }, {
- display : '填报人',
- name : 'INPUT_NAME_614',
- align : 'center',
- width : "10%",
- showTitle:true
- }, {
- display : '操作',
- align : 'center',
- width : "10%",
- render:function(rowdata,rowindex,value){
- return "<a><input type='button' class='delete_btn' value='删除' onclick='_deleteRow("+rowindex+")'/></a>";
- }
- }];
-
- var baogaoCol = [{
- display : '填报单位',
- name : 'INPUT_DEPT_614',
- align : 'center',
- width : "15%",
- showTitle:true
- }, {
- display : "风险评估报告",
- name : 'FILE_SUOSHU_614',
- align : 'center',
- width : "35%",
- render:function(rowdata,rowindex,value){
- return "<a onclick='_loadFile("" + rowdata.fileUrl + "")' style='color:blue'>"+value+"</a>";
- }
- }, {
- display : '填报时间',
- name : 'INPUT_TIME_614',
- align : 'center',
- width : "15%",
- isSort : true
- }, {
- display : '填报人',
- name : 'INPUT_NAME_614',
- align : 'center',
- width : "10%",
- showTitle:true
- }, {
- display : '操作',
- align : 'center',
- width : "10%",
- render:function(rowdata,rowindex,value){
- return "<a><input type='button' class='delete_btn' value='删除' onclick='_deleteRow("+rowindex+")'/></a>";
- }
- }];
- var cols = zhibiaoCol;
- //页面初始化
- $(function(){
- if(!(role_id.indexOf("R002105430208")>0 || role_id.indexOf("R002105430209")>0 )){//保供电领导小组办公室人员或专业管理部门人员
- $(".quanxian").hide();
- }
-
- //$('#fileDiv').getUploadFileContent();
- $('#fileDiv').newAsyncFileUpload("",fd_id);//附件
- $("#fileListContainer").empty();
- $("#INPUT_DEPT_614").val(deptName);
- $("#INPUT_NAME_614").val(realName);
- $("#INPUT_TIME_614").val(currDate);
- $("#FD_TASK_614").val(fd_id);
- $("#FENGXIAN_TYPE_614").val(FENGXIAN_TYPE);
- //$("#titleShow2").text(suoshuName);
- $(".fxTitle").live("click",function(){
- $("#fileListContainer").empty();
- $(".fxTitle_current").removeClass("fxTitle_current");
- $(this).addClass("fxTitle_current");
- var fxType = $(this).attr("data");
- $("#FENGXIAN_TYPE_614").val(fxType);
- FENGXIAN_TYPE = fxType;
- if(fxType=="1"){
- cols = zhibiaoCol;
- loadGridData();
- initgrid(taskJson1,cols);
- }else{
- cols = baogaoCol;
- loadGridData();
- initgrid(taskJson1,cols);
- }
- })
- });
- </script>
- <script type="text/javascript" src="<%=path%>/scripts/business/gps/taskManagement/gpsTaskMsg/gpsFileFXEdit.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/business/gps/taskManagement/setIframeHeight.js"></script>
-
- </head>
- <body >
- <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
- <div style="height: 50px;background: #F8F8F8;" align="center">
- <a href="javascript:;">
- <img align="left" alt="返回" src="/nwyj/images/temp/back.png" onclick="goBack();"></img>
- </a>
- <font style="font-weight: bold;font-size: 20px;line-height: 45px;" id="titleShow1">保供电风险评估信息</font>
- </div>
- <form id="editForm" method="post" enctype="multipart/form-data">
- <input name="classid" value="614" type="hidden"/>
- <input type="hidden" id="FD_OBJECTID614" name="FD_OBJECTID614" value=""/>
- <input id="INPUT_DEPT_614" name="INPUT_DEPT_614" type="hidden"/><!-- 填报部门 -->
- <input id="INPUT_TIME_614" name="INPUT_TIME_614" type="hidden"/><!-- 填报时间 -->
- <input id="INPUT_NAME_614" name="INPUT_NAME_614" type="hidden"/><!-- 填报人 -->
- <input id="FD_TASK_614" name="FD_TASK_614" type="hidden"/><!-- 任务表序号 -->
- <input id="FILE_SUOSHU_614" name="FILE_SUOSHU_614" type="hidden" value="1" /><!-- 附件所属(1风险评估,2保供电方案,3工作简报,4总结报告) -->
- <input id="FENGXIAN_TYPE_614" name="FENGXIAN_TYPE_614" type="hidden" /><!-- 风险类型(1风险评估指标,2风险评估报告) -->
- <table style="border: none" width="100%">
- <tr>
- <td colspan="2"><div class="fxTitle fxTitle_current" data='1'>风险评估指标</div><div class="fxTitle" data='2'>风险评估报告</div></td>
- </tr>
- <tr class="quanxian">
- <td width="20%" style="font-size: 20px;font-weight: bold;color:#41A6D9;" id="titleShow2"></td>
- <td align="right" width="80%"><input value="保存" type="button"
- id="save" /> <input value="重置" type="button" onclick="formReset()"/> </td>
- </tr>
- </table>
- <fieldset style="border-color:#999999;" id="fileTable" class="quanxian">
- <legend>附件信息:</legend>
- <div id="fileDiv"></div>
- </fieldset>
- </form>
- <div style="padding:5px 0 0 0;"></div>
- <div id="dataGrid"></div>
- </div>
- </body>
|