struts2标签

匿名 (未验证) 提交于 2019-12-03 00:38:01
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="../../common/header.jsp"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>${activityName }</title>
<base target="_self"></base>
<jsp:include page="../../common/meta.jsp" />
<link rel="stylesheet" type="text/css"
href="${root}/css/dialogStyle.css" />
<link rel="stylesheet" type="text/css"
href="${root}/css/datagrid2.css" />
<style>
.sel {
width: 145px
}
.btn {
display: none;
}
.tab05{border-bottom:1px solid #2d2d2d; border-right:0px solid #000000; height:30px; line-height:30px; padding-left:5px;}
.mtr{
height:30px;
border-bottom:1px solid #fcfcfc;
}
.sgin{
border-right:1px solid #000000;
<%-- border-left:1px solid #000000;--%>
border-bottom:1px solid #000000;
}
.td06{
border-bottom: 1px solid black; border-right: 1px solid black; border-top: 1px solid black;
}
.td07{
border-bottom: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; border-top: 1px solid black;
}
.td08{
border-bottom: 1px solid black; border-left: 1px solid black; border-right: 1px solid black;
}
.td09{
border-bottom: 1px solid black; border-right: 1px solid black;
}
</style>
<script type="text/javascript">
</script>
</head>
<body>
<form name="scya" id="scya" method="post" action="${root}${url}"
enctype="multipart/form-data">
<table align="center" width="90%" border="0" cellpadding="1" cellspacing="0" style="margin: 0px auto; border: 0px solid #fcfcfc;">
<tr>
<td colspan="2" style="line-height: 100px;" align="center">
<font size="14" color="red"><b>电网运行风险预警通知单22</b></font>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<font size="5" >编号:${warningForm.serial }</font>
<input type="hidden" name="warningForm.serial"
value="${warningForm.serial }" />
</td>
</tr>
<tr style="line-height: 50px;">
<td style="font-size: 14;padding-left: 30px;">
<s:if test="warningForm.isGw==\"直\"">国家电力调度控制中心</s:if>
<s:elseif test="warningForm.isGw==\"网\"">国网华东电力调度控制分中心</s:elseif>
<s:else>${warningForm.rootOrgName}电力调控中心</s:else>
</td>
<td align="right" style="font-size: 14;padding-right: 30px;"><s:date name="warningForm.publishTime" format="yyyy 年 M 月 d 日"/> </td>
</tr>
</table>

<table width="90%" border="0" cellpadding="0" cellspacing="0"
style="margin: 0px auto; border: 1px solid #2d2d2d;border-bottom: #000000 0px solid;"" align="center">
<tr class="mtr">
<td class="tab05" colspan="2" >
标题:
<s:if test=" canModify && ( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<input type="text" id="title" name=" warningForm.title" value="${(warningForm.title!=null)?(warningForm.title):(defultTitle)}" style="width: 89%;border-left:0px; border-right:0px;border-top:0px; border-bottom: #000000 1px solid;" class="easyui-validatebox" required="true"/></s:if>
<s:else>
${warningForm.title}
</s:else>
</td>
</tr>
<tr>
<td class="tab05" colspan="2">
主送:
<span id="viewOrgName">
${ warningForm.mainOrgNames}${(empty warningForm.mainOrgNames)?(‘‘):((empty warningForm.cityOrgNames)?(‘‘):(‘,‘))}${warningForm.cityOrgNames }
</span>
<input id="cityOrgIds" type="hidden"
value="${ warningForm.cityOrgIds}" name="warningForm.cityOrgIds" />
<input id="mainOrgNames" type="hidden"
value="${ warningForm.mainOrgNames}" name="warningForm.mainOrgNames" />
<input id="mainOrgIds" type="hidden"
value="${ warningForm.mainOrgIds}" name="warningForm.mainOrgIds" />
<input id="cityOrgNames" type="hidden" width="100%"
value="${ warningForm.cityOrgNames}" name="warningForm.cityOrgNames" />
</td>
</tr>
<!-- 国网的不用显示 -->
<tr>

<td colspan="2" class="tab05" style="font-size: 14;">
<b>承办单位</b><input type="hidden" name=" warningForm.selfFeedbackIds" value="${ warningForm.selfFeedbackIds }" id="selfFeedbackIds"/>
</td>

</tr>
<tr>
<td colspan="2" class="tab05">
<s:iterator value="#request.directorIdsMap.keySet()" var="st">


<div style="width: 100%">
<s:if test="( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘,‘GW_RELEASE_POWER_GRID_WARING‘} ||(#request.controlType!=null && ( #request.controlType.indexOf(‘安监‘)!=-1|| #request.controlType.indexOf(#st)!=-1))) || #request.dataType==‘feedback‘">
<s:if test="operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} ||( operationTag!= ‘operation_view‘ && #request.controlType!=null && ( #request.controlType.indexOf(#st)!=-1))">
<div style="display: inline;float: left;width: 85%">
${st }:<input type="text" value="${directorNamesMap[st] }${(st==‘调控‘)?(warningForm.dkFeedbackNames):(‘‘)}" style="width: 90%;border-left:0px; border-right:0px;border-top:0px; border-bottom: #000000 1px solid;" name="${controlTypeMap[st]}_directorViewNames" id="${controlTypeMap[st]}_directorViewNames" onclick="selectDirectorOrg(‘${controlTypeMap[st]}‘);" readonly="readonly"/>
<input type="hidden" value="${directorNamesMap[st] }" style="width: 90%;border-left:0px; border-right:0px;border-top:0px; border-bottom: #000000 1px solid;" name="${controlTypeMap[st]}_directorNames" id="${controlTypeMap[st]}_directorNames" onclick="selectDirectorOrg(‘${controlTypeMap[st]}‘);" readonly="readonly"/>
</div>
<div style="display: inline;float: right;width: 15%">
<s:if test="#st.indexOf(‘调控‘)==-1">
<input type="checkbox" value="${majorOrgMap[st].orgId}"
<s:if test="warningForm.selfFeedbackIds.indexOf(#request.majorOrgMap[#st].orgId)!=-1 ">
checked=‘checked‘
</s:if>
onclick="editSelfFeedbackIds(this);" />本专业反馈
</s:if>
</div>
</s:if>
<s:else>
<div style="display: inline;float: left;width: 85%">
<s:if test="#st==‘运检‘" >
<input type="hidden" id="majorName" name="majorName" value="${directorNamesMap[st] }">
</s:if>
${st }:${directorNamesMap[st] }${(((empty warningForm.dkFeedbackNames)||(st!=‘调控‘))?(‘‘):(‘,‘)) }${(st==‘调控‘)?(warningForm.dkFeedbackNames ):(‘‘)}
</div>
<div style="display: inline;float: right;width: 15%">
<s:if test="#st.indexOf(‘调控‘)==-1">
<input type="checkbox" value="${majorOrgMap[st].orgId}"
<s:if test="warningForm.selfFeedbackIds.indexOf(#request.majorOrgMap[#st].orgId)!=-1 ">
checked=‘checked‘
</s:if>
disabled="disabled"/>本专业反馈
</s:if>
</div>
<input style="width:80%" type="hidden" value="${directorNamesMap[st] }" name="${controlTypeMap[st]}_directorNames" id="${controlTypeMap[st]}_directorNames" />
</s:else>
</s:if>
<s:else>
<input style="width:80%" type="hidden" value="${directorNamesMap[st] }" name="${controlTypeMap[st]}_directorNames" id="${controlTypeMap[st]}_directorNames" />
</s:else>
<input type="hidden" value="${majorOrgMap[st].orgId}" id="${controlTypeMap[st]}_orgId"/>
<input type="hidden" value="${directorIdsMap[st] }" name="${controlTypeMap[st]}_directorIds" id="${controlTypeMap[st]}_directorIds" />
</div>
</s:iterator>

</td>
</tr>
<tr>
<td class="tab05" colspan="2">
<div style="float: left;width: 15%;" >
<font style="font-size: 14;"><b>停电设备类型</b></font>
</div>
<div style="float: right;width: 85%" align="left">
<s:if test=" canModify && ( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<s:checkboxlist list="#request.POWER_DEVICE_TYPES" class="powerDeviceType easyui-validatebox" value="#request.powerDeviceTypeList" required="true" listKey="key" listValue="key" name="warningForm.powerDeviceType" ></s:checkboxlist>
</s:if>
<s:else>
<s:property value="warningForm.powerDeviceType"/>
</s:else>
</div>
</td>

</tr>
<tr>
<td class="tab05" colspan="2">
<div style="float: left;width: 15%;" >
<font style="font-size: 14;"><b>预警设备类型</b></font>
</div>
<div style="float: right;width: 85%" align="left">
<s:if test=" canModify && ( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<s:checkboxlist list="#request.WARNING_DEVICE_TYPES" class="warningDeviceType easyui-validatebox" value="#request.warningDeviceTypeList" listKey="key" listValue="key" required="true" name="warningForm.warningDeviceType" ></s:checkboxlist>
</s:if>
<s:else>
<s:property value="warningForm.warningDeviceType"/>
</s:else>
</div>
</td>
</tr>
<tr>
<td class="tab05" colspan="2">
<div style="float: left;width: 49%;" >
<div style="float: left;width: 29%;" align="left" >
<font style="font-size: 14;"><b>停电事由</b></font>
</div>
<div style="float: right;width: 70%;" align="left">
<s:if test=" canModify && ( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<s:select list="#request.POWER_FAILURE_REASON" headerKey="" headerValue="" name="warningForm.powerFailureReason" id="powerFailureReason" listKey="key" listValue="key" cssClass="easyui-validatebox" cssStyle="width:99%;" theme="simple" required="true"></s:select>
</s:if>
<s:else>
<s:property value="warningForm.powerFailureReason"/>
</s:else>
</div>
</div>
<div style="float: right;width: 49%;">
<div style="float: left;width: 29%;" align="left">
<font style="font-size: 14;"><b>风险后果类型</b></font>
</div>
<div style="float: right;width: 70%" align="left">
<s:if test=" canModify && ( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<s:select list="#request.RISK_CONSEQUENCE_TYPES"
name="warningForm.riskConsequenceType" headerKey="" headerValue="" cssStyle="width:99%;" listKey="key" listValue="key" cssClass="easyui-validatebox" required="true" ></s:select>
</s:if>
<s:else>
${warningForm.riskConsequenceType }
</s:else>
</div>
</div>
</td>
</tr>
<tr>
<td class="tab05" width="50%" colspan="2">
<div style="width: 22%;float: left;" >
<div style="float: left;width: 40%;" >
<font style="font-size: 14;"><b>预警报备</b></font>
</div>
<div style="float: right;width: 60%;" align="left" >
<s:if test=" canModify && ( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<s:select list="#{‘否‘:‘否‘,‘是‘:‘是‘}" onchange="changeShow(this,‘answerUnit‘)" headerKey="" headerValue="" name="warningForm.warningAnswer" id="warningAnswer" cssClass="easyui-validatebox" cssStyle="padding: 15px 0;width:70%;" required="true" ></s:select>
</s:if>
<s:else>
<s:property value="warningForm.warningAnswer"/>
</s:else>
</div>
</div>
<div class="answerUnit" id="answerUnits" <s:if test="warningForm.warningAnswer !=\"是\"">style="width:78%;float: right;display: none;"</s:if><s:else>style="width:78%;float: right;"</s:else> >
<div style="float: left;width: 12%;" align="left">
<font style="font-size: 14;"><b>报备单位</b></font>
</div>
<div style="float: right;width: 88%;" align="left">
<s:if test=" canModify && ( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<s:checkboxlist list="#request.ANSWER_UNITS" headerKey="" headerValue="" name="warningForm.answerUnit" value="#request.answerUnitList" listKey="key" listValue="key" id="answerUnit" cssClass="answerUnit easyui-validatebox"></s:checkboxlist>
</s:if>
<s:else>
<s:property value="warningForm.answerUnit"/>
</s:else>
</div>
</div>
</td>
</tr>
<tr>
<td class="tab05" colspan="2">
<div style="width: 22%;float: left;">
<div style="float: left;width: 40%;" align="left">
<font style="font-size: 14;"><b>预警告知</b></font>
</div>
<div style="float: right;width: 60%" align="left">
<s:if test=" canModify && ( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<s:select list="#{‘否‘:‘否‘,‘是‘:‘是‘}"
name="warningForm.warningInform" id="warningInform" onchange="changeShow(this,‘userLevel‘)" headerKey="" headerValue="" cssStyle="width:70%;" cssClass="easyui-validatebox" required="true" ></s:select>
</s:if>
<s:else>
${warningForm.warningInform }
</s:else>
</div>
</div>
<div class="userLevel" <s:if test="warningForm.warningInform !=\"是\"">style="width:78%;float: right;display: none;"</s:if><s:else>style="width:78%;float: right;"</s:else>>
<div style="float: left;width: 12%;" align="left" >
<font style="font-size: 14;"><b>用户等级</b></font>
</div>
<div style="float: right;width:88%" align="left">
<s:if test=" canModify && ( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<s:select list="#request.USER_LEVELS" name="warningForm.userLevel" id="userLevel" headerKey="" headerValue="" listKey="key" listValue="key" cssStyle="width:50%;top:5px;" required="true" ></s:select>
</s:if>
<s:else>
${warningForm.userLevel }
</s:else>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="2" class="tab05" >
<div style="float: left;width: 29%;" >
<font style="font-size: 14;"><b>停电设备及工期</b></font>
</div>
<div style="float: right;width: 70%;">
<div style="float: left;width: 49%;">
开始预警时间:
<s:if test="canModify && (operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<input
onClick="WdatePicker({startDate:‘%y-%M-%d 08:30:00‘,doubleCalendar:true,dateFmt:‘yyyy-MM-dd HH:mm‘,maxDate: ‘#F{$dp.$D(\‘scyaProjectfinishTime\‘)}‘})"
readonly="readonly" style="width: *;border-left: 0px;border-right:0px;border-top:0px; border-bottom: #000000 1px solid;" class="easyui-validatebox"
id="scyaProjectStartTime"
name="warningFormStartTime"
value="<s:date format="yyyy-MM-dd HH:mm" name="warningForm.startTime" />"
class="easyui-datebox" required="true">
</s:if>
<s:else>
<s:date format="yyyy-MM-dd HH:mm" name="warningForm.startTime" />
</s:else>
</div>
<div style="float: right;width: 49%;">
结束预警时间:
<s:if test=" canModify && ( operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} )">
<input onClick="WdatePicker({startDate:‘%y-%M-%d 20:30:00‘,doubleCalendar:true,dateFmt:‘yyyy-MM-dd HH:mm‘,minDate: ‘#F{$dp.$D(\‘scyaProjectStartTime\‘)}‘ })"
readonly="readonly" class="easyui-validatebox" style="width:*;border-left: 0px;border-right:0px;border-top:0px; border-bottom: #000000 1px solid;"
id="scyaProjectfinishTime" name="warningFormFinishTime"
value="<s:date format="yyyy-MM-dd HH:mm" name="warningForm.finishTime" />"
class="easyui-datebox" required="true">
</s:if>
<s:else>
<s:date format="yyyy-MM-dd HH:mm" name="warningForm.finishTime" />
</s:else>
</div>
</div>
</td>
</tr>
<tr class="mtr" >
<td colspan="2" class="tab05" style="padding: 10px;">
<span copy=‘true‘> ${warningForm.station}<br/>
${warningForm.content}</span>
</td>
</tr>
<tr>
<td colspan="1" class="tab05" style="font-size: 14;">
<b>运行风险分析</b>
</td>
<td class="tab05" align="center">
电压等级:${warningForm.voltageLevel }
</td>
</tr>
<tr>
<td colspan="2" class="tab05">
<span copy=‘true‘> ${warningForm.analyses}</span>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top: 10px;">
<tr class="mtr">
<td colspan="1" style="" width="50%">
风险等级:${warningForm.beforeLevel }
</td>
<td colspan="1" style="" width="50%">
措施后风险等级:${warningForm.laterLevel }
</td>
</tr>
<s:if test="isShowPowerTime == ‘true‘">
<%-- 停送电时间 --%>
<tr>
<td colspan="1" style="" width="50%">
停电时间:
<s:date format="yyyy-MM-dd HH:mm" name="warningForm.powerOffTime" />
</td>
<td colspan="1" style="" width="50%">
送电时间:
<s:date format="yyyy-MM-dd HH:mm" name="warningForm.powerOnTime" />
</td>
</tr>
</s:if>
</table>
</td>
</tr>
<tr>
<td colspan="2" class="tab05" style="font-size: 14;">
<b>运行方式调整和控制限额</b>
</td>
</tr>

<tr>
<td colspan="2" class="tab05">
<span copy=‘true‘>
${warningForm.adjust}<br/>
${warningForm.quoat}
</span>
</td>
</tr>
<tr >
<td colspan="2">
<table id="warning_control" width="100%" border="0" cellpadding="1" cellspacing="1" style="margin: 0px auto;"
<s:if test="#request.warnControlList==null"> style="display: none;" </s:if>>
<tr class="mtr">
<td class="tab05" colspan="2" style="font-size: 14;border-right:0px solid #000000;" width="70%"><b>风险预控措施会签</b></td>
</tr>
<s:if test="#request.warnControlList!=null">
<s:iterator value="#request.controlTypeMap.keySet()" var="kk" >
<s:iterator value="#request.warnControlList" var="st">
<s:if test="#st.type==#kk">
<!-- 有权限提交 -->
<s:if test="canModify && (#request.controlType.indexOf(#st.type)!=-1 && (operationTag!= ‘operation_view‘ ||( warningForm.status == \"D\" && operationKey.indexOf(‘_FILL_RISK_WARING_CONTROL‘)!=-1 && #request.cantModifyControl!=‘true‘)))">
<tr id="${controlTypeMap[st.type]}_TR">
<td class="tab05" colspan="2" style="width:100%;border-right:0px solid #000000;">
${majorOrgMap[st.type].orgName }:${st.submitFullName}&nbsp;&nbsp;<s:date name="#st.submitTime" format="yyyy-MM-dd HH:mm:ss"/><br/>
<textarea style="overflow: auto;" onpropertychange="checkLength(this,2000);" required="true" class="easyui-validatebox inputText" rows="" cols=""
name="${controlTypeMap[st.type]}_CONTROL">${st.content }</textarea>
</td>
</tr>
</s:if>
<s:else>
<tr>
<td class="tab05" colspan="2" style="width:100%;border-right:0px solid #000000;">
<div style="width: 100%;" ><div style="float: left;width: 90%;">${majorOrgMap[st.type].orgName}:${st.submitFullName}&nbsp;&nbsp;<s:date name="#st.submitTime" format="yyyy-MM-dd HH:mm:ss"/></div>
<div style="float: right;width: 9%;text-align: right;"><s:if test="#st.status==\"N\""><img alt="未反馈" src="${root}/images/icon/wfk.png"></s:if><s:elseif test="#st.status==\"Y\""><img alt="延时反馈" src="${root}/images/icon/wfk.png"></s:elseif></div>
</div>
<div style="width: 100%;"><span copy=‘true‘>${st.content }</span></div>
<%-- <span copy=‘true‘>${majorOrgMap[st.type].orgName}:<br/>${st.content }</span>--%>
</td>
</tr>
</s:else>
</s:if>
</s:iterator>
</s:iterator>
</s:if>
</table>
</td>
</tr>

<s:if test=" operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘}">
<tr>
<td colspan="2">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin: 0px auto;">
<tr class="tab05" style="border-right:1px solid #000000;">
<td width="10%" align="center" class="sgin">编制</td>
<td width="20%" align="center" class="sgin">
<s:if test="canModify &&( (operationTag!= ‘operation_view‘ || #request.canEdit==‘true‘ )&& operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘})">
<s:if test="#request.WARN_CREATE_USER==null">
<input required="true" class="easyui-validatebox" type="text" name="warningForm.createUser" value="${warningForm.createUser }" style="border-left: 0px;border-right:0px;border-top:0px; border-bottom: #000000 1px solid;" width="95%" />
</s:if>
<s:else>
<s:select required="true" cssClass="easyui-validatebox" list="#request.WARN_CREATE_USER"
name="warningForm.createUser" cssStyle="width: 95%;"></s:select>
</s:else>
</s:if>
<s:else>
${warningForm.createUser }
</s:else>
&nbsp;
</td>
<td width="10%" align="center" class="sgin">审核</td>
<td width="20%" align="center" style="border-bottom:1px solid #000000;">
<s:if test="canModify && ((operationTag!= ‘operation_view‘ || #request.canEdit==‘true‘ ) && operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘})">
<s:if test="#request.WARN_AUDIT_USER==null">
<input required="true" class="easyui-validatebox" type="text" name="warningForm.auditUser" value="${warningForm.auditUser }" style="border-left: 0px;border-right:0px;border-top:0px; border-bottom: #000000 1px solid;" width="80%"/>
</s:if>
<s:else>
<s:select required="true" cssClass="easyui-validatebox" list="#request.WARN_AUDIT_USER"
name="warningForm.auditUser" cssStyle="width: 80%;"></s:select>
</s:else>
</s:if>
<s:else>
${warningForm.auditUser }
</s:else>
&nbsp;
</td>
<td width="10%" align="center" class="sgin">批准</td>
<td width="30%" align="center" style="border-bottom:1px solid #000000;">
<s:if test="canModify && ((operationTag!= ‘operation_view‘ || #request.canEdit==‘true‘ ) && operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘})">
<s:if test="#request.WARN_SIGN_USER==null">
<input required="true" class="easyui-validatebox" type="text" name="warningForm.signUser" value="${warningForm.signUser }" style="border-left: 0px;border-right:0px;border-top:0px; border-bottom: #000000 1px solid;" width="22%"/>
</s:if>
<s:else>
<s:select list="#request.WARN_SIGN_USER"
name="warningForm.signUser" cssStyle="width: 22%;"></s:select>
</s:else>
</s:if>
<s:else>
${warningForm.signUser }
</s:else>
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
</s:if>

<!-- 变更-->
<s:if test="#request.canChange">
<tr>
<td colspan="1" class="tab05" style="font-size: 14;">
<b>风险预警变更</b>
</td>
<td colspan="1" class="tab05" style="font-size: 14;" align="right">
<s:if test="operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘}">
<img src="${root}/images/icon/no_bg_add.png" style="margin-bottom: 1px; margin-right: 5px;" onClick="openDialogBox(‘${root}/warn/toAddCF.action?operationClassKey=${operationClassKey}&warningForm.warningFormId=${warningForm.warningFormId}‘, ‘840‘, ‘740‘)" alt="添加变更">
</s:if>
&nbsp;
</td>
</tr>
<s:if test="#request.list!=null">
<tr>
<td colspan="2" style="display: block;" class="tab05" >
<table width="99%" border="0" align="center" cellspacing="0" cellpadding="0" style="text-align: center;margin-top:5px; margin-bottom: 5px;" >
<thead>
<tr>
<th align="center" style="width: 20%;" class="td07" height="25px;">操作</th>
<th style="width: 20%" align="center" class="td06" colName="serial" sort="true">编号${state}</th>
<th style="width: 50%" align="center" class="td06" colName="change_content" sort="true">变更内容</th>
<th style="width: 10%" align="center" class="td06" colName="create_user" sort="true">编制人</th>
</tr>
</thead>
<tbody>
<s:iterator var="hisTask" value="#request.list" status="st1">
<tr ondblclick="$(‘#btnView‘,this).click();" id="tr_${hisTask.waringFormChangeId}">
<td style="width: 20%" class="td08" height="25px;">
<s:if test="operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘}">
<a id="btnView" onclick="edit(‘${hisTask.waringFormChangeId}‘)" href="javascript:void(0);">编辑</a>&nbsp;|&nbsp;
<a onclick="delChange(‘${hisTask.waringFormChangeId}‘)" href="javascript:void(0);">删除</a>&nbsp;|&nbsp;
</s:if>
<a onclick="detial(‘${root}/warn/detialCF.action?formChange.waringFormChangeId=${hisTask.waringFormChangeId}&operationClassKey=${operationClassKey}‘, ‘840‘, ‘740‘)" href="javascript:void(0);">查看</a>
</td>
<td style="width: 20%" class="td09">
<s:property value="serial"/>
</td>
<td style="width: 50%" limit="25" class="td09">
<s:property value="changeContent" />
</td>
<td style="width: 10%" class="td09">&nbsp;<s:property value="createUser"/></td>
</tr>
</s:iterator>
</tbody>
</table>
</td>
</tr>
</s:if>
</s:if>
<!-- 专职可以给建议 -->
<s:if test="(#request.formFeedbacks!=null && #request.formFeedbacks.size()>0) || (#request.canAddMajorAdvice==‘true‘ && operationTag== ‘operation_view‘ &&( warningForm.status==\"E\" || warningForm.status==\"S\"))">
<tr id="${warningForm.warningFormId}">
<td class="tab05" style="font-size: 14;" width="80%">
<b>专业建议</b>
</td>
<td class="tab05" align="right" width="*">
&nbsp;
<s:if test="#request.canAddMajorAdvice==‘true‘ && operationTag== ‘operation_view‘ &&( warningForm.status==\"E\" || warningForm.status==\"S\")">
<img alt="建议" src="${root}/images/icon/hf.png" onclick="addChildFeedback(this,‘${warningForm.warningFormId}‘,‘form‘)" />
</s:if>
</td>
</tr>
</s:if>
<s:iterator value="#request.formFeedbacks" var="wcf">
<tr id="${wcf.warningFormId}">
<td class="tab05" width="100%" height="20px;" colspan="2">
<div style="width: 100%;">
<div style="float: left;width: 80%;">
<div style="float:left;width: 30%">
<s:date name="#wcf.addDate" format="yyyy-MM-dd HH:mm:ss"/>
</div>
<div style="float:left;width: 50%">
${wcf.toOrgNames }
</div>
<div style="float:right;width:*">
${wcf.addUserFullName }
</div>
</div>
<div style="float: right;width: *;">
<%--<s:if test="#wcf.content!=null && #request.hasDocMap[#wcf.warnChildFeedbackId]!=null">--%>
<img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘childformfalse‘,‘${wcf.warnChildFeedbackId }‘)">
<%--</s:if>--%>
<s:if test="#wcf.canEdit==‘true‘">
<img alt="更新" src="${root}/images/icon/gx.png" onclick="editFeedback(this,‘${wcf.warnChildFeedbackId}‘,‘${warningForm.warningFormId}‘)">
</s:if>
</div>
</div>
<div style="width: 100%;" id="c${wcf.warnChildFeedbackId}${warningForm.warningFormId}" >
<span
<s:if test="#wcf.content!=null">
copy=‘true‘>
${wcf.content}
</s:if>
<s:else>
>
<s:iterator value="#request.hasDocMap[#wcf.warnChildFeedbackId]" var="dd">
<div onclick="downFile(this,‘${dd.warningFormDocId}‘)" style="float: left;cursor: pointer;">
<img border=‘0‘ type=‘image/x-icon‘ style="width: 20px;height: 20px;float: left;"
onerror="this.onerror=‘‘;this.src=‘${root}/images/icos/css.gif‘"
src=‘${root}/images/icos/${dd.docType }.gif‘ />${dd.docName }</div>

</s:iterator>
</s:else>


</span>
</div>
</td>
</tr>

</s:iterator>

<tr>
<td colspan="2" >
<table width="100%">
<input type="hidden" value=‘${zpParentId }‘ id="zpParentId"/>
<input type="hidden" value="${recordFeecbackId }" id="recordFeecbackId" name="recordFeecbackId"/>
<s:if
test="#request.warnFeedbackList!=null && #request.warnFeedbackList.size()>0 && (operationTag== ‘operation_view‘ || #request.feedBackType!=null || operationKey.indexOf(‘POWER_GRID_REMOVE‘)!=-1)">
<tr>
<td class="tab05" style="font-size: 14;">
<b>落实情况</b>
</td>
</tr>
<s:iterator value="#request.warnFeedbackList.keySet()" var="wList">
<s:if test="operationKey.indexOf(‘UPLOAD_FILE‘)==-1 || (operationKey.indexOf(‘UPLOAD_FILE‘)!=-1 && #request.orgId == #request.warnFeedbackList[#wList][0].orgId)">
<tr>
<td class="tab05">
<div style="width:49%;float:left;border:1px">
<h5>${wList }</h5>
</div>
<s:if test="(#request.warnFeedbackList[#wList][0].orgId==#request.sj || #request.sjCodeMap[#request.warnFeedbackList[#wList][0].orgId]!=null) && ( (operationKey.indexOf(‘UPLOAD_FILE‘)!=-1 && #request.orgId == #request.warnFeedbackList[#wList][0].orgId) || (operationKey.indexOf(‘RELEASE_POWER_GRID_WARING‘)!=-1 && #request.formEdit))">
<div style="width:49%;float:right;text-align:right">
<div>
<a href="#" onclick="expAllFk(‘<s:property value="#request.warnFeedbackList[#wList][0].orgId" />‘)" target="download"><img style="border:0px" alt="生成反馈单" src="${root}/images/icon/fzfk.png" ></a>
<img alt="附件" src="${root}/images/icon/fj.png" onclick="upFk(‘fkUpload‘,‘<s:property value="#request.warnFeedbackList[#wList][0].orgId" />‘)">
</div>
</div>
</s:if>
</td>

</tr>
<s:iterator value="#request.warnFeedbackList[#wList]" var="st" status="st1">
<input type="hidden" id="feedbackId" name="feedbackId" value="${st.feedbackId }">
<input type="hidden" id="majorType" name="majorType" value="${st.type }">
<input type="hidden" id="majorOrgName" name="majorOrgName" value="${st.signOrgName }">
<input type="hidden" id="rootOrgId" name="rootOrgId" value="${st.orgId }">
<input type="hidden" id="feedbackType" fid="${st.feedbackId }" value="${st.type }" />
<input type="hidden" id="sysUserIds" value="${st.sysUserIds }" />
<input type="hidden" id="${st.feedbackId }_type" value="${st.type }" />
<s:if test="(#st.content ==null || #st.content==‘‘ || #st.status!=\"E\") && operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)!=-1&& operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL_TASK‘)==-1">
<!-- 可编辑 -->
<tr id="${st.feedbackId}">
<td class="tab05" width="100%" height="50px;">
<div style="width: 100%;">
<div style="float: left;width: 50%;">
<h6><s:if test="#request.AllRootOrgIds.indexOf(#st.orgId)!=-1 || #st.type == null">${st.type}${(empty st.type)?(st.signOrgName):(‘部门‘)}:</s:if>${(empty st.sysUserNames)?(‘‘):(‘已指派给:‘)}${st.sysUserNames }</h6>
</div>
<div style="float: right;width:*;">
<s:if test="#st.sysUserIds !=‘‘ && canSendWarnSms == ‘true‘ && (((#request.feedBackType==‘‘ && #st.type== null && #st.orgId==taskOrgId ) || #st.type.indexOf(#request.feedBackType.split(‘,‘)[0])!=-1 || #request.feedBackType.indexOf(#st.type.split(‘,‘)[0])!=-1) && ( operationTag!= ‘operation_view‘ || #request.canEdit==‘true‘ )) ">
<%-- 指派别人 才可以 发送短信 --%>
<img alt="短信" src="${root}/images/icon/send_msg.png" onclick="sendMsg(‘${st.sysUserIds}‘)">
</s:if>
<s:if test="operationKey.indexOf(‘POWER_GRID_REMOVE‘)==-1">
<s:if test="#request.sjCodeMap[#request.warnFeedbackList[#st.signOrgName][0].orgId]==null ">
<a href="#" onclick="expFk(‘${st.feedbackId}‘)" target="download"><img style="border:0px" alt="生成反馈单" src="${root}/images/icon/fzfk.png" ></a>
</s:if>
<img alt="复制反馈" src="${root}/images/icon/fzfk.png" onclick="warningFormList(‘feedback‘,‘${st.feedbackId}‘)">
</s:if>
<!-- <img alt="复制巡视" src="${root}/images/icon/fzfj.png" onclick="warnRecordList(‘${st.feedbackId}‘)"> -->
<img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘feedback‘,‘${st.feedbackId}‘)">
<s:if test="#request.canCopyFromCountryForm == ‘true‘">
<img alt="复制" src="${root}/images/icon/fuzhi.png" onclick="toCopyFromForm(‘${st.feedbackId}‘)">
</s:if>

</div>
</div>
<!-- 报备单位、用户等级 -->
<s:if test="warningForm.warningInform == \"是\" || warningForm.warningAnswer == \"是\"">
<div style="border-top:1px solid;border-bottom:1px solid;height:30px">
<s:if test="warningForm.warningAnswer == \"是\"">
<div style="width: 100%;" align="left">
<font style="font-size: 14;"><b>报备单位:</b></font>
<s:if test="operationTag!= ‘operation_view‘ && (#st.content == null || #st.content ==‘‘ ||#st.status!=‘\"E\"‘) ">
<s:iterator var="k" value="#request.ANSWER_UNITS.keySet()" status="stus">
<input type="checkbox" <s:if test="#st.readyOrgan.indexOf(#k)!=-1">checked="checked"</s:if> name="${st.feedbackId }_readyOrgan" value="${k }"/>${k }
</s:iterator>
</s:if>
<s:else>
<s:property value="st.readyOrgan" />
</s:else>
</div>
</s:if>
<s:if test="warningForm.warningInform == \"是\"">
<div style="width: 100%;border-top:1px solid;height:30px" align="left">
<font style="font-size: 14;"><b>用户等级:</b></font>
<s:if test="operationTag!= ‘operation_view‘ && (#st.content == null || #st.content ==‘‘ ||#st.status!=‘\"E\"‘)">
<span>特级:</span><input class="easyui-numberbox" precision="0" type="text" style="width:50px;" name="${st.feedbackId }_levelNum" value="${st.levelNum }"/>个
<span>一级:</span><input class="easyui-numberbox" precision="0" type="text" style="width:50px;" name="${st.feedbackId }_level1Num" value="${st.level1Num }"/>个
<span>二级:</span><input class="easyui-numberbox" precision="0" type="text" style="width:50px;" name="${st.feedbackId }_level2Num" value="${st.level2Num }"/>个
<input type="checkbox" <s:if test="#st.isOther.indexOf(‘是‘)!=-1">checked="checked"</s:if> value="是" name="${st.feedbackId }_isOther" />其他
</s:if>
<s:else>
<span>特级:</span>${st.levelNum }个
<span>一级:</span>${st.level1Num }个
<span>二级:</span>${st.level2Num }个
<span>其他:</span>${st.isOther }
</s:else>
</div>
</s:if>
</div>
</s:if>
<div>
<font style="font-size: 13;"><b>预控措施反馈:</b></font>
</div>
<div style="width: 100%;">
<textarea feed_type=‘feedback‘ onpropertychange="checkLength(this,2000);" required="true" style="overflow: auto;" class="easyui-validatebox inputText" rows="" cols="" id="ID${st.feedbackId }" name="${st.feedbackId }">${st.content }</textarea>
</div>
<s:if test="#st.status != null && #st.status != ‘‘">
<div style="width:100%">
<div style="width:49%;float:left">
<font style="font-size: 13;"><b>措施实施后反馈:</b></font>
</div>
<div style="width:49%;float:right;text-align:right">
<s:if test="operationKey.indexOf(‘UPLOAD_FILE‘)==-1 &&(#request.updateContext || #request.queryOverTime==‘false‘)"><img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘feedback2‘,‘${st.feedbackId}‘)"></s:if><br/>
</div>
</div>
<div>
<textarea <s:if test="!(operationKey.indexOf(‘UPLOAD_FILE‘)==-1 && (#request.updateContext || #request.queryOverTime==‘false‘))">readonly="readonly"</s:if> feed_type=‘feedback‘ onpropertychange="checkLength(this,2000);" style="overflow: auto;" class="easyui-validatebox inputText" rows="" cols="" id="ID${st.feedbackId }" name="${st.feedbackId }_2">${st.content2 }</textarea>
</div>
</s:if>
</td>
</tr>
</s:if>
<s:else>
<!-- 不可编辑 -->
<tr id="${st.feedbackId}">
<td class="tab05" width="100%"">
<div style="width: 100%;">
<div style="float: left;width: 50%;">
<font style="font-weight: bold;"><s:if test="#request.AllRootOrgIds.indexOf(#st.orgId)!=-1 || #st.type == null">${st.type}${(empty st.type)?(st.signOrgName):(‘部门‘)}:</s:if>${(empty st.sysUserNames)?(‘‘):(‘已指派给:‘)}${st.sysUserNames }</font>
</div>
<div style="float: right;width: *;">
<s:if test="#st.status==\"N\"">
<img id="${st.feedbackId }_unFk" alt="未反馈" src="${root}/images/icon/wfk.png" <s:if test="operationKey.indexOf(‘RELEASE_POWER_GRID_WARING‘) && #request.formEdit">onclick="toEditTime(‘${st.feedbackId }‘)"</s:if>>
</s:if>
<s:elseif test="#st.status==\"Y\""><img alt="延时反馈" id="${st.feedbackId }_ysFk" src="${root}/images/icon/wfk.png" <s:if test="operationKey.indexOf(‘RELEASE_POWER_GRID_WARING‘) && #request.formEdit">onclick="toEditTime(‘${st.feedbackId }‘)"</s:if>></s:elseif>
<s:if test="#st.sysUserIds !=‘‘ && canSendWarnSms == ‘true‘ && (((#request.feedBackType==‘‘ && #st.type== null && #st.orgId==taskOrgId ) || #st.type.indexOf(#request.feedBackType.split(‘,‘)[0])!=-1 || #request.feedBackType.indexOf(#st.type.split(‘,‘)[0])!=-1) && ( operationTag!= ‘operation_view‘ || #request.canEdit==‘true‘ )) ">
<%-- 指派别人 才可以 发送短信 --%>
<img alt="短信" src="${root}/images/icon/send_msg.png" onclick="sendMsg(‘${st.sysUserIds}‘)">
</s:if>
<s:if test="#request.updateContext || operationKey.indexOf(‘POWER_GRID_REMOVE‘)==-1">
<s:if test="(#request.warnFeedbackList[#st.signOrgName] !=null && #request.sjCodeMap[#request.warnFeedbackList[#st.signOrgName][0].orgId]==null) || (#request.sjCodeMap[#request.warnFeedbackList[#wList][0].orgId]==null)">
<a href="#" onclick="expFk(‘${st.feedbackId}‘)" target="download"><img style="border:0px" alt="生成反馈单" src="${root}/images/icon/fzfk.png" ></a>
</s:if>
<s:if test="#request.updateContext">
<img id="${st.feedbackId}_update" alt="更新" src="${root}/images/icon/gx.png" onclick="updateFeedback(this,‘${st.feedbackId}‘,‘${warningForm.warningFormId}‘)" />
<img id="${st.feedbackId}_save" style="display:none" alt="保存" src="${root}/images/icon/gx.png" onclick="saveFeedback(this,‘${st.feedbackId}‘,‘${warningForm.warningFormId}‘)" />
</s:if>
<img alt="回复" src="${root}/images/icon/hf.png" onclick="addChildFeedback(this,‘${st.feedbackId}‘,‘feed‘)">
<s:if test="#st.status==\"E\"&& (#request.canBackAll==‘true‘||(#request.canBackType.indexOf(‘安监‘)!=-1) || (#st.type==null && (#request.canBackType.indexOf(‘调控‘)!=-1 || #st.orgId==taskOrgId)) || (#request.canBackType.indexOf(#st.type)!=-1)) ">
<img alt="退回" src="${root}/images/icon/th.png" onclick="backToFeedback(‘${st.feedbackId}‘)">
</s:if>
</s:if>
<s:if test="operationKey.indexOf(‘RELEASE_POWER_GRID_WARING‘)!=-1 && #request.formEdit">
<img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘feedback‘,‘${st.feedbackId}‘)">
</s:if>
<s:else>
<img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘feedback‘,‘${st.feedbackId}‘)">
</s:else>
</div>
</div>
<div style="width: 100%;">
<div style="float: left;width: 80%;">
<div style="float:left;width: 40%">
<span id="${st.feedbackId }_showTime">
<s:date name="#st.submitTime" format="yyyy-MM-dd HH:mm:ss"/>
</span>

</div>
<div style="float:right;width:59%;">
<span id="${st.feedbackId }_upName"> ${st.submitUserName }</span>
</div>
</div>
<div style="float: right;width:*;">
<input type="hidden" feed_type=‘feedback‘ name="${st.feedbackId}" value="${st.content}" />
<s:if test="operationKey.indexOf(‘RELEASE_POWER_GRID_WARING‘)==-1 && (canModify && #st.status not in {\"N\",\"Y\",\"E\"} && (((#request.feedBackType==‘‘ && #st.type== null && #st.orgId==taskOrgId ) || #st.type.indexOf(#request.feedBackType.split(‘,‘)[0])!=-1 || #request.feedBackType.indexOf(#st.type.split(‘,‘)[0])!=-1) && ( operationTag!= ‘operation_view‘ || #request.canEdit==‘true‘ )) ||#request.hasDocMap[#st.feedbackId]!=null)">
<img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘feedback‘,‘${st.feedbackId}‘)">
</s:if>
<s:if test="canModify && #st.status not in {\"N\",\"Y\",\"E\"} && (((#request.feedBackType==‘‘ && #st.type== null && #st.orgId==taskOrgId ) || #st.type.indexOf(#request.feedBackType.split(‘,‘)[0])!=-1 || #request.feedBackType.indexOf(#st.type.split(‘,‘)[0])!=-1) && ( operationTag!= ‘operation_view‘ || #request.canEdit==‘true‘ ))">
<img alt="更新" src="${root}/images/icon/gx.png" onclick="editFeedback(this,‘${st.feedbackId}‘,‘${st.feedbackId}‘)">
<s:if test="#request.canCopyFromCountryForm == ‘true‘">
<img alt="复制" src="${root}/images/icon/yjlb.gif" onclick="toCopyFromForm(‘${st.feedbackId}‘)">
</s:if>
</s:if>
<s:if test="#request.warnBackMap[#st.feedbackId]!=null">
<img alt="意见" src="${root}/images/icon/yjlb.gif" onclick="listBack(‘${st.feedbackId}‘)">
</s:if>
</div>
</div>
<div style="width:100%;height:30px;">
<s:if test="warningForm.warningAnswer == \"是\"">
<div id="${st.feedbackId}_showReadyOrgan" >
<span style="font-weight:bold;fontsize:12px;">报备单位:</span><span id="${st.feedbackId}_showOrgans">${st.readyOrgan }</span>
</div>
<div id="${st.feedbackId}_readyOrgan" style="display:none">
<span style="font-weight:bold;fontsize:12px;">报备单位:</span>
<s:iterator var="k" value="#request.ANSWER_UNITS.keySet()" status="stus">
<input type="checkbox" <s:if test="#st.readyOrgan.indexOf(#k)!=-1">checked="checked"</s:if> name="${st.feedbackId }_readyOrgan" value="${k }"/>${k }
</s:iterator>
</div>
</s:if>
<s:if test="warningForm.warningInform == \"是\"">
<div id="${st.feedbackId}_showUserLevel">
<span style="font-weight:bold;fontsize:12px;">用户等级:</span>
<s:if test="#st.levelNum!=‘‘ && #st.levelNum != null"><span id="showLevelNum">特级:${st.levelNum }个</span>&nbsp;&nbsp;</s:if>
<s:if test="#st.level1Num!=‘‘ && #st.level1Num != null"><span id="showLevel1Num">一级:${st.level1Num }个</span>&nbsp;&nbsp;</s:if>
<s:if test="#st.level2Num!=‘‘ && #st.level2Num != null"><span id="showLevel2Num">二级:${st.level2Num }个</span>&nbsp;&nbsp;</s:if>
<s:if test="#st.isOther.indexOf(‘是‘)!=-1"><span id="showIsOther">其他</span>&nbsp;&nbsp;</s:if>
</div>
<div id="${st.feedbackId}_userLevel" style="display:none">
<span style="font-weight:bold;fontsize:12px;">用户等级:</span>
<span>特级:</span><input class="easyui-numberbox" precision="0" type="text" style="width:50px;" name="${st.feedbackId }_levelNum" value="${st.levelNum }"/>个
<span>一级:</span><input class="easyui-numberbox" precision="0" type="text" style="width:50px;" name="${st.feedbackId }_level1Num" value="${st.level1Num }"/>个
<span>二级:</span><input class="easyui-numberbox" precision="0" type="text" style="width:50px;" name="${st.feedbackId }_level2Num" value="${st.level2Num }"/>个
<input type="checkbox" <s:if test="#st.isOther.indexOf(‘是‘)!=-1">checked="checked"</s:if> value="是" name="${st.feedbackId }_isOther" />其他
</div>
</s:if>
</div>
<div>
<font style="font-size: 13;"><b>预控措施反馈:</b></font>
</div>
<div style="width: 100%;" id="c${st.feedbackId}${st.feedbackId}">
<span copy=‘true‘>${st.content}</span>
</div>
<div style="width:100%">
<div style="width:49%;float:left">
<font style="font-size: 13;"><b>措施实施后反馈:</b></font>
</div>
<div style="width:49%;float:right;text-align:right">
<img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘feedback2‘,‘${st.feedbackId}‘)"><br/>
</div>
</div>
<div>

<div style="width: 100%;" id="c2${st.feedbackId}${st.feedbackId}">
<span copy=‘true‘>${st.content2}</span>
</div>
</div>
</td>
</tr>
</s:else>
<s:if test="#request.childFeedbackMap!=null && #request.childFeedbackMap[#st.feedbackId]!=null ">

<s:iterator value="#request.childFeedbackMap[#st.feedbackId]" var="wcf">
<tr id="${st.feedbackId}">
<td class="tab05" width="100%" height="20px;">
<div style="width: 100%;">
<div style="float: left;width: 70%;">
<div style="float:left;width: 30%;">
<s:date name="#wcf.addDate" format="yyyy-MM-dd HH:mm:ss"/>
</div>
<div style="float:left;width: 30%;">
${wcf.forFullNames }
</div>
<div style="float:right;width:*;">
${wcf.addUserFullName }
</div>
</div>
<div style="float: right;width:*;">
<%--<s:if test="#wcf.content!=null && #request.hasDocMap[#wcf.warnChildFeedbackId]!=null">--%>
<img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘childfeedbackfalse‘,‘${wcf.warnChildFeedbackId}‘)">
<%--</s:if>--%>
<s:if test="#wcf.canEdit==‘true‘">
<%-- <img alt="更新" src="${root}/images/icon/gx.png" onclick="editFeedback(this,‘${wcf.warnChildFeedbackId}‘,‘${st.feedbackId}‘)">--%>
</s:if>
</div>
</div>
<div style="width: 100%;" id="c${wcf.warnChildFeedbackId}${st.feedbackId}" >
<span
<s:if test="#wcf.content!=null">
copy=‘true‘>
${wcf.content}
</s:if>
<s:else>
>
<s:iterator value="#request.hasDocMap[#wcf.warnChildFeedbackId]" var="dd">
<div onclick="downFile(this,‘${dd.warningFormDocId}‘)" style="float: left;cursor: pointer;">
<img border=‘0‘ type=‘image/x-icon‘ style="width: 20px;height: 20px;float: left;"
onerror="this.onerror=‘‘;this.src=‘${root}/images/icos/css.gif‘"
src=‘${root}/images/icos/${dd.docType }.gif‘ />${dd.docName }</div>

</s:iterator>
</s:else>


</span>
</div>
</td>
</tr>
</s:iterator>
</s:if>
</s:iterator>
</s:if>
</s:iterator>

</s:if>
<s:if test="#request.childFeedBack!=null">
<tr>
<td class="tab05" style="font-size: 14;">
<b>指派落实情况</b>
</td>
</tr>
<tr>
<td class="tab05" colspan="1" width="100%" height="20px;">
<div style="width: 100%;">
<div style="float: left;width: 50%;">
<h6>
${childFeedBack.mWarnFeedback.signOrgName}指派给:${childFeedBack.mWarnFeedback.sysUserNames} ${childFeedBack.type } ${(empty childFeedBack.type)?(""):(":")}
</h6>
</div>
<div style="float: right;width:*;">
<s:if test=" operationTag!= ‘operation_view‘ && operationKey.indexOf(‘POWER_GRID_REMOVE‘)==-1 ">
<input type="hidden" id="rootOrgId" name="rootOrgId" value="${childFeedBack.orgId }">
<input type="hidden" id="childType" value="${childFeedBack.type }" />
<input type="hidden" id="childbackType" fid="${childFeedBack.feedbackId }" value="${childFeedBack.type }" />
<a href="#" onclick="expFk(‘${childFeedBack.feedbackId}‘)" target="download"><img style="border:0px" alt="生成反馈单" src="${root}/images/icon/fzfk.png" /></a>
<img alt="复制反馈" src="${root}/images/icon/fzfk.png" onclick="warningFormList(‘feedback‘,‘${childFeedBack.feedbackId}‘)">
<!-- <img alt="复制巡视" src="${root}/images/icon/fzfj.png" onclick="warnRecordList(‘${childFeedBack.feedbackId}‘)"> -->
</s:if>
<img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘feedback‘,‘${childFeedBack.feedbackId}‘)">
</div>
</div>
<s:if test="#zpRequest != ‘‘"><div><span><font style="font-weight: bold;">指派要求:</font></span>${zpRequest }</div></s:if>
<s:if test="warningForm.warningInform == \"是\" || warningForm.warningAnswer == \"是\"">
<div style="border-top:1px solid;height:30px">
<s:if test="warningForm.warningAnswer == \"是\"">
<div style="width: 100%;" align="left">
<font style="font-size: 14;"><b>报备单位:</b></font>
<s:if test="operationTag!= ‘operation_view‘ && (#request.childFeedBack.content!=null || #request.childFeedBack.content !=‘‘ || #request.childFeedBack.status!=\"E\")">
<s:iterator var="k" value="#request.ANSWER_UNITS.keySet()" status="stus">
<input type="checkbox" <s:if test="#request.childFeedBack.readyOrgan.indexOf(#k)!=-1">checked="checked"</s:if> name="${childFeedBack.feedbackId }_readyOrgan" value="${k }"/>${k }
</s:iterator>
</s:if>
<s:else>
<s:property value="#request.childFeedBack.readyOrgan" />
</s:else>
</div>
</s:if>
<s:if test="warningForm.warningInform == \"是\"">
<div style="width: 100%;height:30px" align="left">
<font style="font-size: 14;"><b>用户等级:</b></font>
<s:if test="operationTag!= ‘operation_view‘ && (#request.childFeedBack.content!=null || #request.childFeedBack.content !=‘‘ || #request.childFeedBack.status!=\"E\")">
<span>特级:</span><input class="easyui-numberbox" precision="0" type="text" style="width:50px;" name="${childFeedBack.feedbackId }_levelNum" value="${childFeedBack.levelNum }"/>个
<span>一级:</span><input class="easyui-numberbox" precision="0" type="text" style="width:50px;" name="${childFeedBack.feedbackId }_level1Num" value="${childFeedBack.level1Num }"/>个
<span>二级:</span><input class="easyui-numberbox" precision="0" type="text" style="width:50px;" name="${childFeedBack.feedbackId }_level2Num" value="${childFeedBack.level2Num }"/>个
<input type="checkbox" <s:if test="#request.childFeedBack.isOther.indexOf(‘是‘)!=-1">checked="checked"</s:if> value="是" name="${childFeedBack.feedbackId }_isOther" />其他
</s:if>
<s:else>
<s:if test="#request.childFeedBack.levelNum!=‘‘ && #request.childFeedBack.levelNum != null"><span>特级:</span>${childFeedBack.levelNum }个</s:if>
<s:if test="#request.childFeedBack.level1Num!=‘‘ && #request.childFeedBack.level1Num != null"><span>一级:</span>${childFeedBack.level1Num }个</s:if>
<s:if test="#request.childFeedBack.level2Num!=‘‘ && #request.childFeedBack.level2Num != null"><span>二级:</span>${childFeedBack.level2Num }个</s:if>
<s:if test="#request.childFeedBack.isOther.indexOf(‘是‘)!=-1"><span>其他</span></s:if>
</s:else>
</div>
</s:if>
</div>
</s:if>
<div style="width: 100%;">
<s:if test=" operationTag!= ‘operation_view‘ ">
<div>
<font style="font-size: 13;"><b>预控措施反馈:</b></font>
</div>
<textarea feed_type="feedback" onpropertychange="checkLength(this,2000);" style="overflow: auto;" class="easyui-validatebox inputText" rows="" cols="" id="ID${childFeedBack.feedbackId }" name="${childFeedBack.feedbackId }">${childFeedBack.content }</textarea>
<s:if test="#childFeedBack.status != null && #childFeedBack.status != ‘‘">
<div style="width:100%">
<div style="width:49%;float:left">
<font style="font-size: 13;"><b>措施实施后反馈:</b></font>
</div>
<div style="width:49%;float:right;text-align:right">
<s:if test="operationKey.indexOf(‘UPLOAD_FILE‘)==-1 && (#request.updateContext || !#request.isOver)"><img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘feedback2‘,‘${childFeedBack.feedbackId}‘)"></s:if><br/>
</div>
</div>

<div>
<textarea <s:if test="!(operationKey.indexOf(‘UPLOAD_FILE‘)==-1 && (#request.updateContext || !#request.isOver))">readonly="readonly"</s:if> feed_type=‘feedback‘ onpropertychange="checkLength(this,2000);" style="overflow: auto;" class="easyui-validatebox inputText" rows="" cols="" id="ID${childFeedBack.feedbackId }" name="${childFeedBack.feedbackId }_2">${childFeedBack.content2 }</textarea>
</div>
</s:if>
</s:if>

<s:else>
<div>
<font style="font-size: 13;"><b>预控措施反馈:</b></font>
</div>
<span copy=‘true‘>${childFeedBack.type }${(empty childFeedBack.type)?(""):(":")}<br/>${childFeedBack.content }</span>
<div style="width:100%">
<div style="width:49%;float:left">
<font style="font-size: 13;"><b>措施实施后反馈:</b></font>
</div>
<div style="width:49%;float:right;text-align:right">
<s:if test="operationKey.indexOf(‘UPLOAD_FILE‘)==-1 && (#request.updateContext || !#request.isOver)"><img alt="附件" src="${root}/images/icon/fj.png" onclick="fileList(‘feedback2‘,‘${childFeedBack.feedbackId}‘)"></s:if><br/>
</div>
</div>
<div>
<textarea <s:if test="!(operationKey.indexOf(‘UPLOAD_FILE‘)==-1 &&(#request.updateContext || !#request.isOver))">readonly="readonly"</s:if> feed_type=‘feedback‘ onpropertychange="checkLength(this,2000);" style="overflow: auto;" class="easyui-validatebox inputText" rows="" cols="" id="ID${childFeedBack.feedbackId }" name="${childFeedBack.feedbackId }_2">${childFeedBack.content2 }</textarea>
</div>
</s:else>
</div>
</td>
</tr>
</s:if>
</table>


</td>

</tr>

<!-- 发布步骤 修改 发送短信 -->
<s:if test="canModify && operationKey in {‘SGS_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘XJ_RELEASE_POWER_GRID_WARING‘} ">
<tr><td colspan="2" class="tab05">
短信提醒:<textarea onpropertychange="checkLength(this,2000);" style="overflow: auto;" class="easyui-validatebox inputText" rows="" cols="" name="releaseFormSms"></textarea>
</td></tr>

</s:if>
<!-- 上传附件 -->
<!-- 功能按钮 -->
<s:if test="operationKey.indexOf(‘POWER_GRID_REMOVE‘)!=-1">
<tr>
<td colspan="4">
<div style="border-bottom:1px solid">
<div>
<span style="font-size:14px;font-weight:bold;margin-left:7px;">解除信息:</span>
<s:if test="operationTag!=‘operation_view‘">
<textarea name="warningForm.removeContent" style="width:100%;height:60px;">${warningForm.removeContent }</textarea>
</s:if>
<s:else>
<span style="font-size:14px">${warningForm.removeContent }</span>
</s:else>
</div>
<div>
<span style="font-size:14px;font-weight:bold;margin-left:7px;">调度员:</span>
<s:if test="operationTag!=‘operation_view‘">
<input type="text" id="dispatchUser" name="warningForm.dispatchUser" value="${warningForm.dispatchUser }" onclick="selUser(‘${warningForm.rootOrgId}‘)" readonly="readonly"/>
<input type="hidden" id="dispatchUserId" name="warningForm.dispatchUserId" value="${warningForm.dispatchUserId }" />
</s:if>
<s:else>
${warningForm.dispatchUser }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</s:else>
<span style="font-size:14px;font-weight:bold;margin-left:7px;">联系电话:</span>
<s:if test="operationTag!=‘operation_view‘">
<input type="text" id="dispatchUserTel" name="warningForm.dispatchUserTel" value="${warningForm.dispatchUserTel }" />
</s:if>
<s:else>
${warningForm.dispatchUserTel }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</s:else>

<span style="font-size:14px;font-weight:bold;margin-left:7px;">解除时间:</span>
<s:if test="operationTag!=‘operation_view‘">
<input type="text" name="warningForm.removeDate" onClick="WdatePicker({dateFmt:‘yyyy-MM-dd HH:mm:ss‘,minDate:‘<s:date name="warningForm.publishTime" format="yyyy-MM-dd HH:mm:ss"/>‘})" value="<s:date name="warningForm.removeDate" format="yyyy-MM-dd HH:mm:ss" />" />
</s:if>
<s:else>
<s:date name="warningForm.removeDate" format="yyyy-MM-dd HH:mm:ss" />&nbsp;&nbsp;&nbsp;&nbsp;
</s:else>
</div>
</div>
</td>
</tr>
</s:if>
<tr height="40px">

<td colspan="4" align="right">
<br />
<input id="dkFeedbackNames" type="hidden" name="warningForm.dkFeedbackNames" value="${warningForm.dkFeedbackNames}" />
<input id="dkFeedbackIds" type="hidden" name="warningForm.dkFeedbackIds" value="${warningForm.dkFeedbackIds}" />
<input maxlength="100" style="width: 100%"
class="easyui-validatebox" id="major"
value="${warningForm.major}" name="warningForm.major"
type="hidden" />
<input type="hidden" id="warningFormId"
name="warningForm.warningFormId"
value="${warningForm.warningFormId}" />
<input type="hidden" name="isFB" value="" id="isFB" />
<input type="hidden" name="type" value="${type}">
<input type="hidden" name="zpUserIds" value="" id="zpUserIds" />
<input type="hidden" name="zpUserNames" value="" id="zpUserNames" />
<input type="hidden" name="warningForm.status"
value="${warningForm.status}">
<input type="hidden" name="warningForm.publishTime"
value="${warningForm.publishTime}">
<input type="hidden" name="warnOverTime" value="${warnOverTime }" />
<!-- 流程所需参数 -->
<input type="hidden" id="oldSysUserId" name="oldSysUserId"
value="${oldSysUserId }" />
<input type="hidden" id="forPreFilled" name="forPreFilled"
value="${forPreFilled }" />
<input type="hidden" id="operationKey" name="operationKey"
value="${operationKey}" />
<input type="hidden" id="otherTag" name="otherTag"
value="${otherTag}" />
<input type="hidden" id="operationClassKey"
name="operationClassKey" value="${operationClassKey}" />
<input type="hidden" id="taskId" name="taskId" value="${taskId}" />
<input type="hidden" id="activityName" name="activityName"
value="${activityName}" />
<input type="hidden" id="processInstanceId"
name="processInstanceId" value="${processInstanceId}" />
<s:if test="#request.controlFile == ‘true‘">
<input type="button" class="btn" style="width: 80px" value="先降后控附件" onclick="controlFile();" />
</s:if>
<s:if test="#request.recordList > 0 ">
<input class="btn" type="button" style="width: 60px" onclick="patrolRecord();" value="巡视记录">
</s:if>
<s:else>
<s:if test="operationKey==\"PATROL\"">
<input type="button" class="btn" style="width: 60px" value="巡视" onclick="patrolRecord();" />
</s:if>
</s:else>
<s:if test="#request.wsListsize > 0 ">
<input class="btn" type="button" style="width: 60px" onclick="querySupervise(‘${warningForm.warningFormId }‘)" value="监督记录"/>
</s:if>
<s:if test="#request.forPreFilled !=‘true‘ && (operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)!=-1 || operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL_TASK‘)!=-1)">
<input type="button" class="btn" style="width: 60px" value="巡视班组" onclick="patrolUser();" />
</s:if>
<s:if test="operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)!=-1 || operationKey.indexOf(‘_RELEASE_POWER_GRID_WARING‘)!=-1">
<input class="btn" type="button" style="width: 60px" onclick="fileList(‘releaseForm‘,‘‘)" value="附件" />
</s:if>
<s:if test="canModify && (operationTag!= ‘operation_view‘ ||(operationKey.indexOf(‘_FILL_RISK_WARING_CONTROL‘)!=-1&& warningForm.status == \"D\" ) || (#request.dataType==‘feedback‘ && #request.canEdit==‘true‘) ||(operationKey in {‘XJ_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘SGS_RELEASE_POWER_GRID_WARING‘}))">
<input id="subBtn" class="btn" type="submit" style="width: 60px"
value="保存" />
</s:if>
<s:if test=" operationTag!= ‘operation_view‘">
<%-- <input type="button" class="btn" onclick="delWarn()" id="del"--%>
<%-- <s:if test="warningForm.warningFormId ==null || operationKey not in {‘SJ_FXYJ‘,‘SGS_FXYJ‘,‘XJ_FXYJ‘}"> style="width:60px;display: none;" </s:if>--%>
<%-- value="废弃 " />--%>
<s:if
test="#request.forPreFilled !=‘true‘ && operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)!=-1 && operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL_TASK‘)==-1">
<input type="button" class="btn" style="width: 60px" value="指派" onclick="zpchildren();" />
</s:if>
<s:if test="#request.forPreFilled !=‘true‘">
<input id="broadcastBtn" class="btn" type="button"
style="width: 60px" onclick="star()" value="提交" />
</s:if>
</s:if>
<s:if test="operationKey in {‘XJ_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘SGS_RELEASE_POWER_GRID_WARING‘}">
<input id="toPrinterBtn" class="btn" type="button"
style="width: 60px" onclick="toPrinter()" value="导出" />
</s:if>
<button class="btn" style="width: 60px" onClick="window.close()">
关闭
</button>
&nbsp;
</td>
</tr>



</table>
</form>

<form name="changeForm" id="changeForm" method="post"></form>
<form name="downform" id="downform" method="post"></form>
<form name="expform" id="expform" action="${root }/warn/expFkWF.action" method="post">
<input type="hidden" id="expId" name="id" value="" />
</form>
<iframe id="download" name="download" height="0px" width="0px"></iframe>
<script type="text/javascript">
function delWarn(){

}

function openDialogBox(_url, _w, _h){
_url+="&windowTitle="+encodeURI(encodeURI(‘预警通变更知单填写‘));
var isReload = new winapp({
url: _url,
w: _w +"px",
h: _h +"px",
scroll: ‘yes‘
}).openWin();
if(isReload){
$(‘#changeForm‘).attr(‘action‘,window.location.href);
$(‘#changeForm‘).submit();
}
}

function edit(formChangeId){
var url = "${root}/warn/toAddCF.action?warningForm.warningFormId=${warningForm.warningFormId}&operationClassKey="+$(‘#operationClassKey‘).val()+"&formChange.waringFormChangeId="+formChangeId+"&windowTitle="+encodeURI(encodeURI("编辑风险预警变更通知单"));
var winRtn = new winapp({url:url,h:"740px",w:"840px",scroll:"yes"}).openWin();
if(winRtn){
$(‘#changeForm‘).attr(‘action‘,window.location.href);
$(‘#changeForm‘).submit();
}
}

function detial(_url, _w, _h){
_url+="&windowTitle="+encodeURI(encodeURI(‘变更单详情‘));
var isReload = new winapp({
url: _url,
w: _w +"px",
h: _h +"px",
scroll: ‘yes‘
}).openWin();
}

function delChange(formChangeId){
if(!confirm(‘确定要删除所选择的风险预警通知单?‘)){
return false;
}
$.ajax({
type: "POST",
url: "${root}/warn/delCF.action?formChange.waringFormChangeId=" + formChangeId,
dataType : ‘json‘,
success: function(jo) {
if(jo.success == true){
$(‘#tr_‘+formChangeId).remove();
}
releasePage();
}
});

}


function zpchildren(){
var orgId = $("#zpParentId").val();
var rtval = new winapp({
url:"${root}/warn/toSelectZpUser.action?orgId="+orgId,
w:"740px",
h:"460px",
scroll:"yes"
}).openWin();
if(rtval){
$("#zpUserIds").val(rtval.id);
$.post(‘${root}/warn/zpChildFeedBack.action‘,{
processInstanceId:‘${processInstanceId}‘,
operationClassKey:‘${operationClassKey}‘,
operationKey:‘${operationKey}‘,
taskId:‘${taskId}‘,
‘warningForm.warningFormId‘:‘${warningForm.warningFormId}‘,
//isNotBack:rtval.isNotBack,
zpUserIds:rtval.id,
zpUserNames:rtval.name,
zpRequest:rtval.zpRequest
},function(data){
if(data.success){
alert("指派成功!");
window.returnValue = true;
m_close();
}else{
alert(data.msg);
}


},‘json‘);
}


}

function selectMajor(obj){
var flag = false;
var paks=document.getElementsByName("majorAttribute");
for(var i=0;i<paks.length;i++){
if(paks[i].checked){
flag = true;
break;
}
}
var magors = ${MAJORS};
var key = magors[obj.value];
if(flag==false){
$("#"+key+"_TR").remove();
$("#warning_control").hide();
}else{
$("#warning_control").show();
if(obj.checked==true){
if($("#"+key+"_TR")!=null){
$("#"+key+"_TR").show();
}else{
//var conet = ‘<tr id="‘+key+‘_TR"><td class="tab02" style="width:20%">&nbsp;&nbsp;‘+obj.value+‘部门:</td><td class="tab01" style="width:80%"><textarea onpropertychange="checkLength(this,2000);" style="overflow: auto;" class="easyui-validatebox inputText" rows="" cols="" name="‘+key+‘_CONTROL"></textarea></td></tr>‘;
var conet = ‘<tr id="‘+key+‘_TR" class="mtr"><td class="tab05" style="width:70%;border-right:1px solid #000000;">&nbsp;&nbsp;‘+obj.value+‘部门:<textarea style="overflow: auto;margin: 6px;" onpropertychange="checkLength(this,2000);" class="easyui-validatebox inputText" rows="" cols="" name="‘+key+‘_CONTROL"></textarea></td><td class="tab05" align="center" style="width:30%;">&nbsp;</td></tr>‘;
$("#warning_control").append(conet);
}
}else{
$("#"+key+"_TR").hide();
}
}


}
function star(){
var msg=‘确认提交?‘;
var directorValidate="";
var magors = ${MAJORS};
var mojors =$("#major").val();
var controlTyp=‘${controlType}‘;
if(controlTyp!=‘‘ ){
mojors=controlTyp;
}
var flag=false;
var mjs=mojors.replaceAll(‘安监‘,‘‘).split(‘,‘);
for(var i=0;i<mjs.length;i++){
if(mjs[i] && !$("#"+magors[mjs[i]]+"_directorIds").val() && $("#selfFeedbackIds").val().indexOf($("#"+magors[mjs[i]]+"_orgId").val())==-1 ){
if((mjs[i]==‘调控‘ && !$("#dkFeedbackIds").val())||mjs[i]!=‘调控‘ ){
directorValidate+=mjs[i]+",";
}
}else if(mjs[i] ){
flag=true;
}
}
if(directorValidate){
<s:if test="operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)==-1">
msg=directorValidate.substring(0,directorValidate.length-1)+"未设置承办单位,确认提交吗?";
</s:if>
<s:if test="operationKey in {‘XJ_RELEASE_POWER_GRID_WARING‘,‘CITY_RELEASE_POWER_GRID_WARING‘,‘SGS_RELEASE_POWER_GRID_WARING‘,‘GW_RELEASE_POWER_GRID_WARING‘}">
if(!flag){
alert(directorValidate.substring(0,directorValidate.length-1)+"未设置承办单位!请至少设置一个专业的承办单位!");
return;
}
</s:if>
}


var recordFeecbackId=$("#recordFeecbackId").val();
var majorName =$("#majorName").val();
var majorType=$("#majorType").val();
var majorOrgName=$("#majorOrgName").val();
var operationKey=$("#operationKey").val();

var flagValue=true;
if(operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)!=-1 && operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL_TASK‘)==-1){

if(majorType.indexOf("运检")!=-1 && majorName.indexOf(majorOrgName)!=-1){
$.ajax({
type:"post",
async:false,
data:{recordFeecbackId:recordFeecbackId},
dataType:‘json‘,
url:‘${root}/warn/selectPatrolTemaSize.action‘,
success:function(data){
if(data.success){

}else {
if(confirm(‘确实不选择巡视班组吗?‘)){
flagValue=true;
}else{
flagValue=false;
}
}
}
});
}
}
var id = "";
var sysUserIds = $("#sysUserIds").val();
var type = "";
if(operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)!=-1 && operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL_TASK‘)==-1){
id= "feedbackType";
type = "fk";
}else if(operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL_TASK‘)!=-1){
id="childbackType";
type = "zpfk";
}
if(operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)!=-1 || operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL_TASK‘)!=-1){
if(!majorType){
majorType = $("#childType").val();
}
var warningAnswer = ‘${warningForm.warningAnswer}‘;
var warningInform = ‘${warningForm.warningInform}‘;
if(majorType && majorType.indexOf("营销")!=-1){
var warnType = $("[id=‘"+id+"‘]");
for(var i =0;i<warnType.length;i++){
var wType = warnType[i].value;
if(wType.indexOf(‘营销‘)!=-1){
var fid = warnType[i].fid;
var rOrgan = "";
var readyOrgan = $("[name=‘"+fid+"_readyOrgan‘]:checked");
for(var j=0;j<readyOrgan.length;j++){
rOrgan += readyOrgan[j].value;
}
/* if(warngingAnswer==‘是‘ && rOrgan == ‘‘ && (type!=‘fk‘||(type==‘fk‘ && (sysUserIds=="" || sysUserIds == null)))){
alert("主送营销且预警报备为是时,营销专业反馈至少需选择一个报备单位!");
return;
} */
var level1Num = $("[name=‘"+fid+"_level1Num‘]").val();
var level2Num = $("[name=‘"+fid+"_level2Num‘]").val();
var levelNum = $("[name=‘"+fid+"_levelNum‘]").val();
/* if(warningInform==‘是‘ && (type!=‘fk‘||(type==‘fk‘ && (sysUserIds=="" || sysUserIds == null))) && (level1Num=="" || level1Num ==null) && (level2Num=="" || levelNum ==null) && (levelNum==‘‘||levelNum == null)){
alert("主送营销且预警告知为是时,营销专业反馈需要填写用户等级!");
return;
} */
}
}
}
}
//
if(operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)!=-1){
if(id==""|| id==null){
id="feedbackType";
}
var warnType = $("[id=‘"+id+"‘]");
var backOrgan = "";
var backLevelNum = "";
var backLevel1Num = "";
var backLevel2Num = "";
var showMsg = "";
var warningAnswer = ‘${warningForm.warningAnswer}‘;
var warningInform = ‘${warningForm.warningInform}‘;
for(var i =0;i<warnType.length;i++){
var wType = warnType[i].value;
var fid = warnType[i].fid;
var readyOrgan = $("[name=‘"+fid+"_readyOrgan‘]:checked");
for(var j=0;j<readyOrgan.length;j++){
backOrgan += readyOrgan[j].value;
}
backLevel1Num = $("[name=‘"+fid+"_level1Num‘]").val();
backLevel2Num = $("[name=‘"+fid+"_level2Num‘]").val();
backLevelNum = $("[name=‘"+fid+"_levelNum‘]").val();
if(wType.indexOf(‘营销‘)!=-1){
if(warningAnswer == ‘是‘ && (backOrgan==‘‘ && backOrgan ==null)){
showMsg += "报备单位为空,";
}
if(warningInform ==‘是‘ && ((backLevel1Num =="" && backLevel1Num ==null) || (backLevel2Num ==‘‘ && backLevel2Num ==null) || (backLevelNum==‘‘ && backLevelNum ==null))){
showMsg += "用户等级中特级、一级、二级数量为空,"
}
if(showMsg!=""){
showMsg += "是否确认提交?";
}
}
}}


if(flagValue){
if(showMsg){
if(window.confirm(showMsg)){
if(window.confirm(msg)){
$("#isFB").val("true");
$("#scya").submit();
}
}
}else{
if(window.confirm(msg)){
$("#isFB").val("true");
$("#scya").submit();
}
}

}
}
function refreshCityOrgIdAndNames(){
var majors=$("#major").val();
var strs=majors.replace(‘安监,‘,‘‘).replace(‘,安监‘,‘‘).replace(‘安监‘,‘‘).split(",");
var controlType=${MAJORS};
var cityOrgIds =$("#cityOrgIds").val();
var cityOrgNames =$("#cityOrgNames").val();
var cityIdss=cityOrgIds.split(",");
var cityNamess=cityOrgNames.split(",");
var selfOrgIds=$("#selfFeedbackIds").val();
for(var j=0;j<cityIdss.length;j++){
var k=0;

for(var i=0;i<strs.length;i++){
if((!$("#"+controlType[strs[i]]+"_directorIds") ||!$("#"+controlType[strs[i]]+"_directorIds").val() || $("#"+controlType[strs[i]]+"_directorIds").val().indexOf(cityIdss[j])==-1 ) && selfOrgIds.indexOf(cityIdss[j])==-1){
k+=1;
}
}
if(k==strs.length){

cityOrgIds=cityOrgIds.replace(cityIdss[j],‘‘);
}
}
var newOrgIds=cityOrgIds.split(",");
cityOrgIds=‘‘;
cityOrgNames=‘‘;
for(var i=0;i<newOrgIds.length;i++){
if(newOrgIds[i]){
if(cityOrgIds==‘‘){
cityOrgIds=cityIdss[i];
cityOrgNames=cityNamess[i];
}else{
cityOrgIds+=","+cityIdss[i];
cityOrgNames+=","+cityNamess[i];
}
}
}
$("#cityOrgIds").val(cityOrgIds);
$("#cityOrgNames").val(cityOrgNames);
}
function selectDirectorOrg(type){
var directorOrgIds=$("#"+type+"_directorIds").val();
var dkFeedbackIds=$("#dkFeedbackIds").val();
var cityOrgIds=$("#cityOrgIds").val();
var cityOrgNames=$("#cityOrgNames").val();
var rtval = new winapp({
url:"${root}/warn/toSelectDirectorWF.action?orgids="+directorOrgIds+","+dkFeedbackIds+"&operationClassKey=${operationClassKey}&org_type="+type+"&cityOrgNames="+encodeURI(encodeURI(cityOrgNames))+"&cityOrgIds="+cityOrgIds,
w:"740px",
h:"460px",
scroll:"yes"
}).openWin();
if(rtval){
if(rtval.dkName){
$("#dkFeedbackNames").val(rtval.dkName);
$("#dkFeedbackIds").val(rtval.dkIds);
}else if(type==‘DK‘){
$("#dkFeedbackNames").val("");
$("#dkFeedbackIds").val("");
}
if(rtval.orgids){
$("#"+type+"_directorIds").val(rtval.orgids);
var orgs=rtval.orgids.split(",");
var orgn=rtval.orgnames.split(",");
var cityOrgIds=$("#cityOrgIds").val();
var cityOrgNames=$("#cityOrgNames").val();
for(var i=0;i<orgs.length;i++){
if(cityOrgIds.indexOf(orgs[i])==-1){
cityOrgIds+=","+orgs[i];
if(rtval.selfId && rtval.selfId.indexOf(orgs[i])!=-1){
cityOrgNames+=","+rtval.selfName;
}else{
cityOrgNames+=","+orgn[i];
}
}
}
$("#cityOrgIds").val(cityOrgIds);
$("#cityOrgNames").val(cityOrgNames);
}else{
$("#"+type+"_directorIds").val(‘‘);
}
if(rtval.orgnames){
$("#"+type+"_directorNames").val(rtval.orgnames);
}else{
$("#"+type+"_directorNames").val(‘‘);
}
if(rtval.selfId ){
var cityOrgIds=$("#cityOrgIds").val();
if(cityOrgIds.indexOf(rtval.selfId)!=-1){
var idss=cityOrgIds.split(",");
var cityOrgNames=$("#cityOrgNames").val().split(",");
for(var j=0;j<idss.length;j++){
if(rtval.selfId.indexOf(idss[j])!=-1){
cityOrgNames[j]=rtval.selfName;
break;
}
}
var newOrgNames="";
for(var j=0;j<cityOrgNames.length;j++){
if(newOrgNames==‘‘){
newOrgNames=cityOrgNames[j];
}else{
newOrgNames+=","+cityOrgNames[j];
}
}
$("#cityOrgNames").val(newOrgNames);
}
}
var directName=$("#"+type+"_directorNames").val();
if(type && type==‘DK‘){
var dkName=$("#dkFeedbackNames").val();
$("#"+type+"_directorViewNames").val(directName+((directName && dkName)?‘,‘:‘‘)+dkName);
}else{
$("#"+type+"_directorViewNames").val(directName);
}
refreshCityOrgIdAndNames();
refershViewOrgName();
}
}
function selectChildrenOrg(){
var dkFeedback = $("#dkFeedbackNames").val();
var dkFeedbackId =$("#dkFeedbackIds").val();
var rtval = new winapp({
url:"${root}/warn/toSelectOrgWF.action?orgids="+$("#cityOrgIds").val()+‘,‘+$("#mainOrgIds").val()+‘,‘+dkFeedbackId+"&operationClassKey=${operationClassKey}",
w:"740px",
h:"460px",
scroll:"yes"
}).openWin();
if(rtval){
if(rtval.dkName){
$("#dkFeedbackNames").val(rtval.dkName);
$("#dkFeedbackIds").val(rtval.dkIds);
}else{
$("#dkFeedbackNames").val("");
$("#dkFeedbackIds").val("");
}
if(rtval.orgids)
$("#cityOrgIds").val(rtval.orgids);
if(rtval.orgnames)
$("#cityOrgNames").val(rtval.orgnames);
if(rtval.mojors)
$("#major").val(rtval.mojors);
if(rtval.mojorsNames)
$("#mainOrgNames").val(rtval.mojorsNames);
if(rtval.mojorsIds)
$("#mainOrgIds").val(rtval.mojorsIds);

var cityAndMain = $("#mainOrgNames").val()+($("#cityOrgNames").val()?‘‘:(‘,‘+$("#cityOrgNames").val()));
if(rtval.dkName){
cityAndMain+=","+rtval.dkName;
}
$("#cityAndMainOrgNames").val( cityAndMain);
}
}

function toPrinter(){
var urls=$(‘#checkform‘).attr("action");
var url="${root}/warn/expForWF.action?warningFormId=${warningForm.warningFormId}";
$(‘base‘).attr(‘target‘,‘download‘);
$(‘#downform‘).form(‘submit‘, {
url:url
});
$(‘base‘).attr(‘target‘,‘_self‘);
}
function refershViewOrgName(){
var cityAndMain = $("#mainOrgNames").val();
if($("#cityOrgNames").val()){
cityAndMain +=","+$("#cityOrgNames").val();
}
<%-- if( $("#dkFeedbackNames").val() ){--%>
<%-- cityAndMain+=","+$("#dkFeedbackNames").val();--%>
<%-- }--%>
$("#viewOrgName").html( cityAndMain);
}
function fileList(dataType,id){
var obj = "operationKey=${operationKey}&operationClassKey=${operationClassKey}&warningForm.warningFormId=${warningForm.warningFormId}"
var childCanEdit=dataType.replace(‘childfeedback‘,‘‘).replace(‘childform‘,‘‘).replace(‘feedback2‘,‘‘);
if(dataType!=null && dataType.indexOf(‘childfeedback‘)!=-1){
dataType=‘childfeedback‘;
obj+="&childfeedbackId="+id;
}else{
if(dataType!=null && dataType.indexOf(‘childform‘)!=-1){
dataType=‘childform‘;
obj+="&childfeedbackId="+id;
}else{
obj+="&feedbackId="+id;
}
}
var delType = ‘${delType}‘;
var isOver = ‘${isOver}‘;
var operationKey = ‘${operationKey}‘;
var rtval = new winapp({
url:"${root}/warn/getFileListWF.action?operationTag=${operationTag}&delType=${delType}"+"&dataType="+dataType+"&childCanEdit="+childCanEdit+"&isOver="+isOver+"&operationKey="+operationKey+"&"+obj,
w: "700px",
h: "600px",
scroll:"yes"
}).openWin();

}
function listBack(id){
var rtval = new winapp({
url:"${root}/warn/listBackReason.action?feedbackId="+id,
w: "700px",
h: "600px",
scroll:"yes"
}).openWin();
if(rtval){
window.close();
}
}
function backToFeedback(id){
var obj = "warningFormId=${warningForm.warningFormId}&processInstanceId=${processInstanceId}";
var rtval = new winapp({
url:"${root}/warn/toBackToFeed.action?feedbackId="+id+"&"+obj,
w: "400px",
h: "300px",
scroll:"yes"
}).openWin();
if(rtval){
window.close();
}

}
function cancelFocus(){
$(".btn").each(function(){
$(this).show();
});
$("img[alt]").each(function(){
var hasStatus = "false";//若延时反馈或未反馈有点击事件,不加入a标签
var cl=$(this).attr("onclick");
var ee;
var al=$(this).attr("alt");
var id = $(this).attr("id");
var style = $(this).attr("style");
if(!style){
style = "";
}
if(id != "" && id !=null){
if(id.indexOf(‘unFk‘)!=-1 || id.indexOf(‘ysFk‘)!=-1){
hasStatus = "true";
}
}
if(al==‘添加变更‘) al=‘添加‘;
if(cl && "false" == hasStatus){
cl=cl.replace(/\"/g,‘\‘‘);
ee="<a href=‘javascript:void(0);‘ style=‘"+style+"‘ id=‘"+id+"_a‘ onclick=\""+cl+"\" style=‘vertical-align:inherit;‘>"+al+"</a>";
}else{
ee="<a id=‘"+id+"_a‘ style=‘vertical-align:inherit;‘>"+al+"</a>";
}
$(this).after(ee);
});
}
function sendMsg(sysUserIds){
var rtval = new winapp({
url:"${root}/warn/city/toSendMsg.action?sysUserIds="+sysUserIds,
w: "600px",
h: "400px",
scroll:"no"
}).openWin();
}

jQuery(document).ready(function() {
$(‘td[limit]‘).limit();
cancelFocus();
$(‘#scya‘).form({
url: $(‘#scya‘).attr(‘action‘),
onSubmit: function() {
var sta = ‘${warningForm.status}‘;
if($("#isFB").val() == "true" || sta==‘E‘ ||sta==‘S‘){
if($.trim($("#title").val())==‘${defultTitle}‘ && $("#title").size()>0){
  alert("请修改预警单标题!");
  return false;
}
if($(":checkbox.powerDeviceType:checked").size()== 0 && $(‘:checkbox.powerDeviceType‘).size()!=0){
alert("请选择停电设备类型!");
return false;
}
if($(":checkbox.warningDeviceType:checked").size()== 0 && $(‘:checkbox.warningDeviceType‘).size()!=0){
 alert("请选择预警设备类型!");
  return false;
}
if($(":checkbox.answerUnit:checked").size()== 0 && $(‘#answerUnits‘).is(‘:visible‘) && $(‘:checkbox.answerUnit‘).size()!=0){
 alert("请选择报备单位!");
 return false;
}
if($(‘#warningInform‘).val()==‘是‘ && ($(‘#userLevel‘).val()==‘‘ || $(‘#userLevel‘).val()==null)){
alert("请选择用户等级!");
return false;
}
var ret = $(this).form(‘validate‘);
if(ret == false ){
$("#isFB").val("");
return false;
}
}
// if($("#isFB").val() == "true"){
// var win=toAddGridFeedback();
// if(win){
// forbiddenPage();
// }
// return win;
// }
forbiddenPage();
},
success: function(msg) {
releasePage();
var jo = jQuery.parseJSON(msg);
if(jo.success){
if($("#isFB").val() == "true"){
alert("提交成功!");
window.returnValue = true;
m_close();
}else{
$("#del").show();
if($("#processInstanceId").val()==‘‘){
$("#processInstanceId").val(jo.processInstanceId);
}
if($("#warningFormId").val()==‘‘){
$("#warningFormId").val(jo.warningFormId);
}
if($("#taskId").val()==‘‘){
$("#taskId").val(jo.taskId);
}
alert("保存成功!");
}
}else{
if($("#isFB").val() == "true"){
$("#isFB").val(‘‘);
alert(jo.msg);
}else{
$("#isFB").val(‘‘);
alert(jo.msg);
// alert(‘保存失败!‘);
}
}
}
});

});
function editSelfFeedbackIds(obj){


var selfFeedbackIds=$("#selfFeedbackIds").val();
if(obj.checked==true){
if( !selfFeedbackIds || selfFeedbackIds.indexOf(obj.value)==-1){
if(selfFeedbackIds){
selfFeedbackIds+=‘,‘+obj.value;
}else{
selfFeedbackIds=obj.value;
}
}
var rtval = new winapp({
url:"${root}/warn/toSetAliasWF.action",
w: "300px",
h: "100px",
scroll:"no"
}).openWin();
if(rtval && rtval.alias){
//如果 别名不为空在主送单位里加上
$("#cityOrgIds").val($("#cityOrgIds").val()+","+obj.value);
$("#cityOrgNames").val($("#cityOrgNames").val()+","+rtval.alias);
}

}else{
if( selfFeedbackIds && selfFeedbackIds.indexOf(obj.value)!=-1){
selfFeedbackIds=selfFeedbackIds.replace(obj.value+‘,‘,‘‘).replace(‘,‘+obj.value,‘‘).replace(obj.value,‘‘);
}
}
$("#selfFeedbackIds").val(selfFeedbackIds);
refreshCityOrgIdAndNames();
refershViewOrgName();
}
function editFeedback(okl,cid,pid){
var objdiv=$("#c"+cid+pid);
var obj=objdiv.first();
var oldHtml=obj.text().replace(new RegExp(‘<BR>‘,‘gm‘),‘\n‘);
var newobj = document.createElement(‘textarea‘);//创建新的input元素
newobj.id=‘child_content‘;
newobj.onpropertychange=‘checkLength(this,2000);‘;
newobj.required=‘true‘;
newobj.overflow = ‘auto‘;//为新增元素添加类型
newobj.value=oldHtml;
var svObj=document.getElementsByName(cid);
newobj.onblur = function(){
var d=this.value;
var content=d.replace(new RegExp(‘\n‘,‘gm‘),‘<BR>‘);
obj.html(content ? content : oldHtml);//当触发时判断新增元素值是否为空,为空则不修改,并返回原有值
if(svObj){
$(svObj).val(content ? content : oldHtml);
}
//ajax保存数据
$.post(‘${root}/warn/saveChildWarnFeedback.action‘,{childWarnFeedbackId:cid,feedbackId:pid,warningFormId:‘${warningForm.warningFormId}‘,child_content:(content ? content : oldHtml)},function(data){
if(!data.success){
alert(data.msg);
}

},‘json‘);

}
obj.text(‘‘);
obj.append($(newobj));
newobj.focus();
}

//原方法废弃,改为打开一个对话框 用来 附件和内容 回复人 或者 建议单位 一起选择
function addChildFeedback(okl,pid,type){
var operationKey=$(‘#operationKey‘).val();
var taskId=‘‘;
if(operationKey!=‘‘ && operationKey!=null && operationKey.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)!=-1){
taskId=‘&taskId=‘+$(‘#taskId‘).val();
}
var data = new winapp({
url:"${root}/warn/toSaveBackFormOrFeedWF.action?pid="+pid+"&type="+type+"&warningForm.warningFormId=${warningForm.warningFormId}"+taskId,
w:"740px",
h:"460px",
scroll:"yes"

}).openWin();
//根据返回的值 页面插入新的对象 一个tr

if(data){

var html="<tr id=‘"+pid+"‘><td class=‘tab05‘";
html+="<td class=‘tab05‘ width=‘100%‘ height=‘20px;‘ ";
if(type && type==‘form‘){
html +=" colspan=‘2‘ ";
}
html+=" >";
html+="<div style=‘width: 100%;‘>"
html+=" <div style=‘float: left;width: 70%;‘><div style=‘float:left;width: 30%‘>";
html+= data.time?data.time:"";
html+=" </div>" ;
html+=" <div style=‘float:left;width: 50%‘>";
html+= data.reback?data.reback:"";
html+=" </div>";
html+=" <div style=‘float:right;width:*‘>";
html+= data.name?data.name:"";
html+=" </div>";
html+="</div>";
html+="<div style=‘float: right;width: *;‘>";
if(data.docIds){
if(type && type==‘form‘){
html+="<img alt=‘附件‘ src=‘${root}/images/icon/fj.png‘ onclick=fileList(‘childformfalse‘,‘"+data.id+"‘)><a href=‘#1‘ style=‘vertical-align:inherit;‘ onclick=fileList(‘childformfalse‘,‘"+data.id+"‘)>附件</a>";
}else if(type && type==‘feed‘){
html+="<img alt=‘附件‘ src=‘${root}/images/icon/fj.png‘ onclick=fileList(‘childfeedbackfalse‘,‘"+data.id+"‘)><a href=‘#1‘ style=‘vertical-align:inherit;‘ onclick=fileList(‘childfeedbackfalse‘,‘"+data.id+"‘)>附件</a>";
}
}
html+="</div>";
html+="</div>";
html+="<div style=‘width: 100%;‘ id=‘c"+data.id+pid+"‘ >";
html+=" <span copy=‘true‘>";
if(data.content){
html+= data.content;
}else{
var files="";
var docIds=data.docIds.split(",");
var docNames=data.docNames.split(",");
for(var a=0;a<docIds.length;a++){
var typ=docNames[a].substring(docNames[a].lastIndexOf(‘.‘)+1);
files+="<div onclick=downFile(this,‘"+docIds[a]+"‘) style=‘float: left;cursor: pointer;‘>"+
" <img border=‘0‘ type=‘image/x-icon‘ style=‘width: 20px;height: 20px;float: left;‘"+
" onerror=this.onerror=‘‘;this.src=‘${root}/images/icos/css.gif‘"+
" src=‘${root}/images/icos/"+typ+".gif‘ />"+docNames[a]+"</div>";

}
var di="<div style=‘width: 100%;‘ id=‘c"+data.id+pid+"‘><span>"+files+"</span></div>"
html+=id;
}
html+="</span>";
html+="</div>";
html+="</td></tr>";


var objtr=$("tr[id="+pid+"]");
var obj=objtr.last();
obj.after(html);
}
}
function oldaddChildFeedback(okl,pid,type){

var objtr=$("tr[id="+pid+"]");
var obj=objtr.last();
var html="<tr id=‘"+pid+"‘><td class=‘tab05‘";
if(type && type==‘form‘){
html +=" colspan=‘2‘ "
}
html+=" width=‘100%‘><div style=‘width: 100%;‘>";
html+="<div style=‘float: left;width: 80%;‘ ><div style=‘float:left;width: 30%‘></div><div style=‘float:left;width: 50%‘></div><div style=‘float:right;width:*‘></div></div>";
html+="<div style=‘float: right;width: *;‘></div></div><div style=‘width: 100%;‘><textarea onpropertychange=‘checkLength(this,2000);‘ required=‘true‘ style=‘overflow: auto;‘ class=‘easyui-validatebox inputText‘ onblur=txtonblur(this,‘"+pid+"‘,‘"+type+"‘); ></textarea></div></td></tr>";
obj.after(html);
$(‘div‘).find(‘textarea‘).focus();
}

function toCopyFromForm(id){
var rtval = new winapp({
url:"${root}/warn/city/listFormForCopy.action?feedbackId="+id,
w:"740px",
h:"460px",
scroll:"yes"
}).openWin();
if(rtval){
$(‘#changeForm‘).attr(‘action‘,window.location.href);
$(‘#changeForm‘).submit();
}

}

function txtonblur(th,pid,type){
var d=th.value;
var content=d.replace(new RegExp(‘\n‘,‘gm‘),‘<BR>‘);
if(!content){
$(th).parent().first().parent().first().parent().first().remove();
return ;
}

var toTels=‘‘;
var toOrgIds=‘‘;
var toOrgnamesAndMajor=‘‘;
var forFullNames=‘‘;
var forSysUserIds=‘‘;
if(type &&‘feed‘==type){
//选择要回复的人
var rtval = new winapp({
url:"${root}/warn/toSelectForUserWF.action?warningForm.warningFormId=${warningForm.warningFormId}",
w:"740px",
h:"460px",
scroll:"yes"
}).openWin();
if(rtval){
if(rtval.fullNames){
forFullNames=rtval.fullNames;
}
if(rtval.sysUserIds){
forSysUserIds=rtval.sysUserIds;
}
}

}else if(type && ‘form‘==type){
//选择提醒的单位和专业
var rtval = new winapp({
url:"${root}/warn/toSelectToOrgWF.action?warningForm.warningFormId=${warningForm.warningFormId}",
w:"740px",
h:"460px",
scroll:"yes"
}).openWin();
if(rtval){
if(rtval.tels){
toTels=rtval.tels;
}
if(rtval.orgnamesAndMajor){
toOrgnamesAndMajor=rtval.orgnamesAndMajor;
}
}

}
//ajax保存数据
$.post(‘${root}/warn/saveChildWarnFeedback‘,
{childWarnFeedbackId:‘‘,
‘feedbackId‘:pid,
child_content:content,
feedType:type,
warningFormId:‘${warningForm.warningFormId}‘,
toTels:toTels,
toOrgnamesAndMajor:toOrgnamesAndMajor,
forFullNames:forFullNames,
forSysUserIds:forSysUserIds

},

function(data){
if(!data.success){
alert(data.msg);
}else{
var fjbt="<img alt=‘附件‘ src=‘${root}/images/icon/fj.png‘ onclick=fileList(‘childfeedbacktrue‘,‘"+data.id+"‘) />";
if(type && ‘form‘==type){
fjbt="<img alt=‘附件‘ src=‘${root}/images/icon/fj.png‘ onclick=fileList(‘childformtrue‘,‘"+data.id+"‘) />";
}
var bjbt="<img alt=‘更新‘ src=‘${root}/images/icon/gx.png‘ onclick=editFeedback(this,‘"+data.id+"‘,‘"+pid+"‘) />";
$(th).parent().parent().children().first().children().first().children().first().append(data.time);
$(th).parent().parent().children().first().children().first().children().first().next().append(data.reback);
$(th).parent().parent().children().first().children().first().children().last().append(data.name);
$(th).parent().parent().children().first().children().last().append(fjbt);
<%-- $(th).parent().parent().children().first().children().last().append(bjbt);--%>
$(th).parent().first().replaceWith("<div style=‘width: 100%;‘ id=‘c"+data.id+pid+"‘><span>"+content+"</span></div>");
}
},‘json‘);
}
function toAddGridFeedback(){
if(‘${operationKey}‘.indexOf(‘_FEEDBACK_CONTROL_FULFIL‘)!=-1){
var warnFeedbackId = $("[feed_type=‘feedback‘]").first().attr("name");
var content =$("[feed_type=‘feedback‘]").first().val();
if(warnFeedbackId){
var flag = false;
$.ajax({
type:"post",
async:false,
data:{warnFeedbackId:warnFeedbackId,content:content},
dataType:‘json‘,
url:‘${root}/warn/saveContentwgfb.action‘,
success:function(data){
if(data.success){
var win = new winapp({
url:"${root}/warn/toAddwgfb.action?warnFeedbackId="+warnFeedbackId,
w:"210mm",
h:$(window).height()*0.9+"px",
scroll:"yes"
}).openWin();
if(!win){
flag = toAddGridFeedback();
}
flag = ( win==true?true:false);
}
}
});
return flag;

}
}
return true;
}

//选择巡视班组
function patrolUser(){
var orgId = $("#zpParentId").val();
var recordFeecbackId=$("#feedbackId").val();
if(recordFeecbackId==null || recordFeecbackId==‘‘ || recordFeecbackId==‘undefined‘){
recordFeecbackId=$("#recordFeecbackId").val();
}
var returnValue = new winapp({
url:"${root}/warn/toSelectPatrolUser.action?orgId="+orgId+"&recordFeecbackId="+recordFeecbackId,
w:"740px",
h:"460px",
scroll:"yes"
}).openWin();
}

//巡视记录
function patrolRecord(){
var operationKey = "${operationKey }";
var feedbackId=$("#feedbackId").val();
if(feedbackId==null || feedbackId==‘‘ || feedbackId==‘undefined‘){
feedbackId=$("#recordFeecbackId").val();
}
var formId="${warningForm.warningFormId }";

var url="${root}/warn/patrolRecord.action?recordFeecbackId="+feedbackId+"&operationKey="+operationKey+"&warningFormId="+formId+"&taskId="+$("#taskId").val()+"&otherTag="+$("#otherTag").val()+"&taskOrgId=${taskOrgId}&overTime=${overTime}";
var rtval = new winapp({
url:url,
w: "750px",
h: "600px",
scroll:"yes"
}).openWin();
}

//监督记录
function querySupervise(id){
var newSupervise = ‘${newSupervise}‘;
var url="${root}/warn/querySupervise.action?warningFormId="+id;
if(newSupervise==‘true‘){
url = "${root}/warn/createSupervise.action?warningFormId="+id;
}
var rtval = new winapp({
url:url,
w: "700px",
h: "550px",
scroll:"yes"
}).openWin();
}
//查看本单位下的预警单
function warningFormList(dataType,feedbackId){

var warningFormId=$("#warningFormId").val();
var rootOrgId=$("#rootOrgId").val();


var url="${root}/warn/warningFormList.action?recordFeecbackId="+feedbackId+"&warningFormId="+warningFormId+"&dataType="+dataType+"&operationClassKey=${operationClassKey}&identify=warn";

var returnValue = new winapp({
url:url,
w: window.screen.width*0.8+"px",
h: window.screen.height*0.9+"px",
scroll:"yes"
}).openWin();

if(returnValue){
$("#ID"+feedbackId).val(returnValue.contents);
}
}
//查看本单位下的巡视记录
function warnRecordList(feedbackId){

var warningFormId=$("#warningFormId").val();
var rootOrgId=$("#rootOrgId").val();

var url="${root}/warn/warningFormList.action?recordFeecbackId="+feedbackId+"&warningFormId="+warningFormId+"&operationClassKey=${operationClassKey}&identify=patrol";


var returnValue = new winapp({
url:url,
w: window.screen.width*0.8+"px",
h: window.screen.height*0.7+"px",
scroll:"yes"
}).openWin();
}


function updateFeedback(okl,fbid,wfid){
/* var operationKey = ‘${operationKey}‘;
var formEdit = ‘${formEdit}‘;
if(operationKey.indexOf(‘RELEASE_POWER_GRID_WARING‘)!=-1 && formEdit==‘true‘){
$("#"+fbid+"_showTime").hide();
$("#"+fbid+"_updateTime").show();
} */
$("#"+fbid+"_update").hide();
$("#"+fbid+"_update_a").hide();
$("#"+fbid+"_save").show();
$("#"+fbid+"_save_a").show();
var warningAnswer = ‘${warningForm.warningAnswer}‘;
var warningInform = ‘${warningForm.warningInform}‘;
if(warningAnswer == ‘是‘){
$("#"+fbid+"_showReadyOrgan").hide();
$("#"+fbid+"_readyOrgan").show();
}
if(warningInform == ‘是‘){
$("#"+fbid+"_showUserLevel").hide();
$("#"+fbid+"_userLevel").show();
}
/* $("#"+fbid+"_showReadyOrgan").hide();
$("#"+fbid+"_readyOrgan").show();
$("#"+fbid+"_showUserLevel").hide();
$("#"+fbid+"_userLevel").show(); */
var obj2div=$("#c2"+fbid+fbid);//二次反馈
var obj2=obj2div.first();
var oldHtml2=obj2.text().replace(new RegExp(‘<BR>‘,‘gm‘),‘\n‘);
var newobj2 = document.createElement(‘textarea‘);//创建新的input元素
newobj2.id=fbid+‘feedback_content2‘;
newobj2.onpropertychange=‘checkLength(this,2000);‘;
newobj2.required=‘true‘;
newobj2.overflow = ‘auto‘;//为新增元素添加类型
newobj2.value=oldHtml2;
var objdiv=$("#c"+fbid+fbid);
var obj=objdiv.first();
var oldHtml=obj.text().replace(new RegExp(‘<BR>‘,‘gm‘),‘\n‘);
var newobj = document.createElement(‘textarea‘);//创建新的input元素
newobj.id=fbid+‘feedback_content‘;
newobj.onpropertychange=‘checkLength(this,2000);‘;
newobj.required=‘true‘;
newobj.overflow = ‘auto‘;//为新增元素添加类型
newobj.value=oldHtml;
var svObj=document.getElementsByName(fbid);
newobj.onblur = function(){
var d=this.value;
var content=d.replace(new RegExp(‘\n‘,‘gm‘),‘<BR>‘);
obj.html(content ? content : oldHtml);//当触发时判断新增元素值是否为空,为空则不修改,并返回原有值
if(svObj){
$(svObj).val(content ? content : oldHtml);
}
var organs = "";
var readyOrgan = $("[name=‘"+fbid+"_readyOrgan‘]:checked");
for(var i=0;i<readyOrgan.length;i++){
if(organs==""){
organs += readyOrgan[i].value;
}else{
organs += ","+readyOrgan[i].value;
}
}
var levelNum = $("[name=‘"+fbid+"_levelNum‘]").val();
var level1Num = $("[name=‘"+fbid+"_level1Num‘]").val();
var level2Num = $("[name=‘"+fbid+"_level2Num‘]").val();
var isOther = $("[name=‘"+fbid+"_isOther‘]:checked").val();
var content2 = $("#"+fbid+"feedback_content2").val();
obj2.html(content2);
var majorType=$("#majorType").val();
var warningAnswer = ‘${warningForm.warningAnswer}‘;
var warningInform = ‘${warningForm.warningInform}‘;
if(majorType && majorType.indexOf("营销")!=-1){
var wType = $("#"+fbid+"_type").val();
if(wType.indexOf(‘营销‘)!=-1){
/* if(organs == ‘‘ && warningAnswer == ‘是‘){
alert("主送营销且预警报备为是时,营销专业反馈至少需选择一个报备单位!");
$("#showReadyOrgan").show();
$("#readyOrgan").hide();
$("#showUserLevel").show();
$("#userLevel").hide();

return;
} */
/* if(warningInform ==‘是‘ && (level1Num=="" || level1Num ==null) && (level2Num=="" || levelNum ==null) && (levelNum==‘‘||levelNum == null)){
alert("主送营销且预警告知为是时,营销专业反馈需要填写用户等级!");
$("#showReadyOrgan").show();
$("#readyOrgan").hide();
$("#showUserLevel").show();
$("#userLevel").hide();

return;
} */
}
}
/* var upTime = $("#"+fbid+"_timeVal").val();
if(upTime == "" || upTime == null){
alert("更改反馈时间时,时间不能为空!");
} */
//ajax保存数据
$.post(‘${root}/warn/saveWarnFeedback.action‘,{feedbackId:fbid,warningFormId:wfid,readyOrgan:organs,‘levelNum‘:levelNum,‘level2Num‘:level2Num,‘level1Num‘:level1Num,‘isOther‘:isOther,‘content2‘:content2,feedback_content:(content ? content : oldHtml)},function(data){
if(!data.success){
alert(data.msg);
}else{
var content = ‘<span style="font-weight:bold;fontsize:12px;">用户等级:</span>‘;
if(levelNum !=‘‘ && levelNum!=null){
content += ‘<span id="showLevelNum">特级:‘+levelNum+‘个</span>&nbsp;&nbsp;‘;
}
if(level1Num != ‘‘ && level1Num != null){
content += ‘<span id="showLevel1Num">一级:‘+level1Num+‘个</span>&nbsp;&nbsp;‘;
}
if(level2Num != ‘‘ && level2Num != null){
content += ‘<span id="showLevel2Num">二级:‘+level2Num+‘个</span>&nbsp;&nbsp;‘;
}
if(isOther == ‘是‘){
content += ‘<span id="showIsOther">其他</span>&nbsp;&nbsp;‘;
}
$("#"+fbid+"_showOrgans").text(organs);
$("#"+fbid+"_showUserLevel").html(content);
/* $("#showLevelNum").text("特级:"+levelNum+"个");
$("#showLevel1Num").text("一级:"+level1Num+"个");
$("#showLevel2Num").text("二级:"+level2Num+"个");
$("#showIsOther").text("其他:"+);
if(upTime != ‘‘ && upTime != null){
$("#"+fbid+"_showTime").html(upTime);
if("E"==data.msg){
$("#"+fbid+"_unFk").hide();
$("#"+fbid+"_ysFk").hide();
$("#"+fbid+"_unFk_a").hide();
$("#"+fbid+"_ysFk_a").hide();
}
}*/
}
},‘json‘);
$("#"+fbid+"_update").show();
$("#"+fbid+"_update_a").show();
$("#"+fbid+"_save").hide();
$("#"+fbid+"_save_a").hide();


if(warningAnswer == ‘是‘){
$("#"+fbid+"_showReadyOrgan").show();
$("#"+fbid+"_readyOrgan").hide();
}
if(warningInform == ‘是‘){
$("#"+fbid+"_showUserLevel").show();
$("#"+fbid+"_userLevel").hide();
}
/* $("#"+fbid+"_showTime").show();
$("#"+fbid+"_updateTime").hide(); */
}
obj.text(‘‘);
obj.append($(newobj));
obj2.text(‘‘);
obj2.append($(newobj2));
//newobj.focus();
}
function changeShow(thiss,classs){
var value=$(thiss).val();
if(value==‘是‘){
$(‘.‘+classs).show();
}else{
$(‘.‘+classs).hide();
$(‘.‘+classs).removeAttr(‘checked‘);
$(‘#‘+classs).val(‘‘);
}
}

function expFk(id){
var url = "${root}/warn/expFkWF.action?id="+id;
window.open(url,"download");
}

function selUser(id){
var userId = $("#dispatchUserId").val();
var returnValue = new winapp({url:"${root}/warn/selUser.action?orgId="+id+"&userId="+userId,w:"600px",h:"600px",scroll:"yes"}).openWin();
if(returnValue){
$("#dispatchUser").val(returnValue.name);
$("#dispatchUserId").val(returnValue.id);
$("#dispatchUserTel").val(returnValue.tel);
}
}

function expAllFk(id){
var warningFormId = ‘${warningForm.warningFormId}‘;
var url = "${root}/warn/expAllFkWF.action?id="+id+"&warningFormId="+warningFormId;
window.open(url,"download");
}

function upFk(type,id){
var warningFormId = ‘${warningForm.warningFormId}‘;
var operationKey = ‘${operationKey}‘;
var rtval = new winapp({
url:"${root}/warn/upFkWF.action?operationTag=${operationTag}&id="+id+"&warningFormId="+warningFormId+"&type="+type+"&operationKey="+operationKey,
w: "700px",
h: "600px",
scroll:"yes"
}).openWin();
}

function saveFeedback(okl,fbid,wfid){
$("#"+fbid+"feedback_content").blur();
}

function toEditTime(fbid){
var returnValue = new winapp({
url:‘${root}/warn/toEditTime.action?fbid=‘+fbid+‘&processInstanceId=${processInstanceId}‘,
w : ‘400px‘,
h : ‘200px‘,
scroll : ‘no‘
}).openWin();
if(returnValue){
var time = returnValue.time;
var name = returnValue.name;
var status = returnValue.status;
$("#"+fbid+"_showTime").text(time);
$("#"+fbid+"_upName").text(name);
if("E"==status){
$("#"+fbid+"_unFk").hide();
$("#"+fbid+"_ysFk").hide();
$("#"+fbid+"_unFk_a").hide();
$("#"+fbid+"_ysFk_a").hide();
}
}
}

function controlFile(){
var warningFormId = $("#warningFormId").val();
if(!warningFormId){
alert("请先保存预警单!");
}else{
var rtval = new winapp({
url:"${root}/warn/getControlFileWF.action?warningFormId="+warningFormId+"&type=control",
w: "700px",
h: "600px",
scroll:"yes"
}).openWin();
}
}

</script>
</body>
</html>

原文:https://www.cnblogs.com/YuyuanNo1/p/9242679.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!