📄 adjustplan_search.jsp
字号:
<!-- /jsp/plan/AdjustPlan_Search.jsp, by sq 2005-09-07 -->
<!-- 描述:显示可以调整的计划列表
调用:
AdjustPlan_ModifyServlet
传入参数PlanNo
接收:
PlanInfoList(审批通过的计划列表)
显示控制:
对应Demo页面:plan_biangeng.html -->
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import=" java.util.* "%>
<%@ page import=" com.icss.resourceone.sdk.framework.*" %>
<%@ page import="com.icss.cnpc.util.*" %>
<%@ page import="com.icss.cnpc.plan.vo.*" %>
<%
List list = (List) request.getAttribute("list");
Iterator itor = list.iterator();
String root = request.getContextPath();
String chosenYear = (String) request.getAttribute("chosenYear");
Integer year = null;
if (chosenYear != null) {
year = new Integer(chosenYear);
}
Person person = Context.getInstance().getCurrentPerson();
String puuid = "";
if (person != null)
puuid = person.getUuid();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0047)http://midi/application/common/FrameControl.htm -->
<HTML><HEAD><TITLE>查询计划</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link rel="stylesheet" href="<%=root%>/css/style.css">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<style type="text/css">
<!--
.style1 {font-size: 16px}
.style2 {
font-size: 12px;
font-weight: bold;
}
-->
</style>
</HEAD>
<SCRIPT language=JavaScript src="<%=root%>/common/common.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="<%=root%>/common/calendar.js"></SCRIPT>
<SCRIPT language=JavaScript>
selectedMeeting=0;
function RadioSelected(muuid,state)
{
selectedMeeting=1;
}
function viewinfo()
{
wx=600;
wy=400;
urlstr="plan_viewinfo.html";
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"查看计划信息","width="+wx+",height="+wy+",scrollbars=yes,status=no"+wposition);
}
function showunitinfo()
{
wx=600;
wy=400;
urlstr="../base/base_unit_info.html";
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"查看计划信息","width="+wx+",height="+wy+",scrollbars=yes,status=no"+wposition);
}
</SCRIPT>
<BODY text=#000000 leftMargin=0 background="<%=root%>/images/grid.gif"
topMargin=10>
<form name="form1" method="post">
<TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
<TBODY>
<TR>
<TD align=middle> <TABLE cellSpacing=1 borderColorDark=#dfdfff cellPadding=2
width="100%" align=center bgColor=#b3c4db borderColorLight=#003366
border=0>
<TBODY>
<TR bgcolor="#a6d0f2">
<TD align=middle colSpan=7 height=30><div align="center" class="style1">
<select name="planYear" onChange="_changeYear()">
<OPTION VALUE="9999">全部</OPTION>
<%= CommUtil.mkYearOptions(year) %>
</select>
年 度
项 目 计 划 列 表</div></TD>
</TR>
<TR onmouseover="this.bgColor='#EBEBEB';" onmouseout="this.bgColor='#EEF4FF';" bgColor=#eef4ff>
<TD width="5%" align=center>
</TD>
<TD width="15%" align=middle><div align="center"><span class="unnamed1"><strong>项目计划编号</strong></span></div></TD>
<TD width="25%" height="25" align=middle>
<div align="center" class="style2">审计计划名称</div>
</TD>
<TD width="22%" height="25" align=middle>
<div align="center" class="style2">被审计单位</div>
</TD>
<TD width="12%" align=center><div align="center" class="style2">计划类别</div></TD>
<TD width="12%" align=center>
<div align="center" class="style2">项目类别</div>
</TD>
<TD align=center>
<div align="center" class="style2">状态</div>
</TD>
</TR>
<%
while(itor.hasNext())
{
PlanInfo plan = (PlanInfo) itor.next();
String planCode = plan.getPlanno();
String planName = plan.getPlanname();
String auditedOrgName = plan.getAuditedorgname();
String jhlbName = plan.getPlantypename();
String xmlbName = plan.getProjecttypename();
String planState = plan.getState();
String planStateName = CommUtil.getPlanStateNameByState(planState);
String creatorUuid = plan.getCreatorid();
String auditedorgid=plan.getAuditedorgcode();
Integer count=plan.getAuditedorgcount();
int num=0;
String others="";
if(count!=null)
num=count.intValue();
String tempPlanName = planName;
String tempAuditedOrgName = auditedOrgName;
String tempJhlbName = jhlbName;
String tempXmlbName = xmlbName;
String tempPlanStateName = planStateName;
if (planName != null && planName.length() > 13) {
tempPlanName = planName.substring(0,12) + "..";
}
if (auditedOrgName != null && auditedOrgName.length() > 7) {
tempAuditedOrgName = auditedOrgName.substring(0,6) + "..";
}
if (jhlbName != null && jhlbName.length() > 6) {
tempJhlbName = jhlbName.substring(0,5) + "..";
}
if (xmlbName != null && xmlbName.length() > 6) {
tempXmlbName = xmlbName.substring(0,5) + "..";
}
if (planStateName != null && planStateName.length() > 4) {
tempPlanStateName = planStateName.substring(0,3) + "..";
}
%>
<tr onmouseover="this.bgColor='#EBEBEB';" onmouseout="this.bgColor='#EEF4FF';" bgColor=#eef4ff>
<td><input type="radio" name="planRadio" value="<%=planCode%>" onClick="_rodioSelect('<%=creatorUuid%>')"></td>
<td><div align="center"><%=planCode%></div></td>
<TD align=middle><div align="center"><a href="#" title="<%=planName%>" onClick="viewPlanInfo('<%=planCode%>')"><%=tempPlanName%></a></div></td>
<TD align=<%if(num>1){%>right<%}else{%>center<%}%>>
<a title="<%=auditedOrgName%>" href="#" onClick="showunitinfo('<%=auditedorgid%>')" >
<%=tempAuditedOrgName%></a><%if(num>1){%>
<a href='#' onClick="ShowAllAudited('<%=planCode%>')">[更多..]<%}%>
</td>
<td title="<%=jhlbName%>"><div align="center"></div> <div align="center"><%=tempJhlbName%></div></td>
<td title="<%=xmlbName%>"><div align="center"><%=tempXmlbName%></div></td>
<TD align=middle><div align="center" title="<%=planStateName%>"><%=planStateName%></div></td>
</tr>
<%
}
%>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
<table align="center" width="90%">
<tr><td>
<div align="center"></div>
<div align="center">
<%@ include file="../.././include/defaultPageScrollBar.jsp" %>
</div>
</tr></td>
</table>
</TD>
</TR>
<TR>
<td align="center" height="23" colspan="7">
</td>
</TR><tr>
<td align="left">
<br>
<br>
<table align="center" width="90%">
<tr><td width="18%" align="center">
<div align="center">
</div></td>
<td width="19%" align="center"><img src="../images/find.gif" style="cursor:hand;" alt="查询" onClick="_search()"></td>
<td width="33%" align="center">
<div align="left"><img src="../images/biangeng.gif" style="cursor:hand;" alt="调整" onClick="_adjustPlan()">
</div></td>
</tr></table>
</td></tr>
</TBODY>
</TABLE>
<input type="hidden" name="creator">
<input type="hidden" name="OPERATION">
</form>
<script language="javascript">
var _radioSelected = false;
function _rodioSelect(_puuid) {
_radioSelected = true;
document.form1.creator.value = _puuid;
}
function _canModify(_puuid) {
if (_puuid != '<%=puuid%>')
return false;
return true;
}
function _search() {
window.location = "<%=root%>/jsp/plan/Adjust_SearchPlan_Condition.jsp";
}
function _changeYear() {
document.form1.action="<%=root%>/servlet/AdjustPlan_SearchServlet";
document.form1.submit();
}
function _adjustPlan() {
if (!_radioSelected) {
alert("请先选择要调整的计划");
return;
}
var creator = document.form1.creator.value;
if ( !_canModify(creator)) {
alert("此计划不是您所创建,您不能调整!");
return;
}
if (confirm("您确定要调整此计划吗?")) {
document.form1.OPERATION.value="TO_ADJUST";
document.form1.action="<%=request.getContextPath()%>/servlet/AdjustPlan_ModifyServlet";
document.form1.submit();
}
}
function viewPlanInfo(planno)
{
wx=600;
wy=400;
urlstr="<%=request.getContextPath()%>/servlet/ViewPlanInfoServlet?planno="+planno;
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"查看计划信息","width="+wx+",height="+wy+",scrollbars=yes,status=no"+wposition);
}
function showunitinfo(auditedorgid)
{
wx=800;
wy=500;
urlstr="<%=request.getContextPath()%>/servlet/ViewAuditedOrgInfoServlet?auditedorgid="+auditedorgid;
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"查看被审单位信息","width="+wx+",height="+wy+",scrollbar=yes,status=no"+wposition);
}
function ShowAllAudited(planno)
{
wx=600;
wy=400;
urlstr="<%=request.getContextPath()%>/servlet/GetAllAuditedListOfPlanServlet?planno="+planno;
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"计划的所有被审单位","width="+wx+",height="+wy+",scrollbar=yes,status=no"+wposition);
// showx = event.screenX - 250; // + deltaX;
// showy = event.screenY ; // + deltaY;
// retval = window.showModalDialog("<%=request.getContextPath()%>/servlet/GetAllAuditedListOfPlanServlet?planno="+planno, "计划的所有被审单位", "dialogWidth:250px; dialogHeight:250px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scroll:auto;Resizable:yes; " );
}
</script>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -