⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 carryforwardplan_search.jsp

📁 java jsp教程
💻 JSP
字号:
<!-- /jsp/plan/CarryForwardPlan_Search.jsp -->

<!-- 描述:显示要结转的计划的列表

调用:
CarryForwardPlan_ViewPlanServlet
传入参数PlanNo

接收:PlanInfoList(要结转的计划列表)

显示控制:


对应Demo页面:plan_change.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 delMeeting()
{
	if(selectedMeeting==0)
	{
		alert("先选择一个计划");
		return;
	}
	if(confirm("确认删除吗?"))
	{
	}
}

function ModifySelected()
{
	if(selectedMeeting==0)
	{
		alert("先选择一个计划");
		return;
	}
	window.location.href="plan_add.html";
}

function Open(url){
window.open(url,"","width=470,height=400,scrollbars=yes");
}

function addMeeting()
{
	window.location.href="plan_add.html";
}
function viewMeetingInfo(muuid)
{
	
}
function serch()
{
	window.location.href="plan_search.html";
}
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>&nbsp;
					 </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('<%=planState%>','<%=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 href="#" title="<%=auditedOrgName%>" onClick="showunitinfo('<%=auditedorgid%>')" >
              		 <%=tempAuditedOrgName%></a><%if(num>1){%>&nbsp;&nbsp;
              		 <a href='#' onClick="ShowAllAudited('<%=planCode%>')">[更多..]<%}%>
			</td>
			<td title="<%=jhlbName%>"><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="27%" align="center">
	      <div align="right">
	        </div></td>
		<td width="24%" align="center">
	 <img src="../images/find.gif" style="cursor:hand;" alt="添加" onClick="_search()">
	 </td>
        <td width="5%" align="center">&nbsp;
	 </td>
   <td width="44%" align="center">
	 <div align="left" id="forwardDiv"><img src="../images/jz.gif" style="cursor:hand;" alt="结转" onClick="_forwardPlan()">
	   </div></td>
        </tr></table>

    </td></tr>
    </TBODY>
  </TABLE>
  <input type="hidden" name="state">
  <input type="hidden" name="creator">
  <input type="hidden" name="OPERATION">
</form>

<script language="javascript">
	var _radioSelected = false;
	
	function _rodioSelect(_state, _puuid) {
		_radioSelected = true;
		document.form1.state.value=_state;
		document.form1.creator.value = _puuid;
	}
	function _forwardPlan() {
		if (!_radioSelected) {
			alert("请选择要结转的计划");
			return;
		}
		document.form1.action = "<%=request.getContextPath()%>/servlet/CarryForwardPlan_ViewPlanServlet";
		document.form1.submit();
	}
	
	function _changeYear() {
		document.form1.action="<%=root%>/servlet/CarryForwardPlan_SearchServlet";
		document.form1.submit();
	}
	
	function _delPlan() {
		if(!_radioSelected) {
			alert("请先选择要删除的计划");
			return;
		}
		var _state = document.form1.state.value;
		var _puuid = document.form1.creator.value;
		if (!_canModify(_state, _puuid)) {
			alert("不可删除此计划");
			return;
		}
		document.form1.OPERATION.value = "DELETE";
		document.form1.action="";
		document.form1.submit();
	}
	
	function _modifyPlan() {
		if(!_radioSelected) {
			alert("请先选择要修改的计划");
			return;
		}
		var _state = document.form1.state.value;
		var _puuid = document.form1.creator.value;
		if (!_canModify(_state, _puuid)) {
			alert("不可修改此计划");
			return;
		}
		document.form1.OPERATION.value="TO_MODIFY";
		document.form1.action="<%=request.getContextPath()%>/servlet/AdminModifyPlanServlet1";
		document.form1.submit();
	}
	
	function _canModify(_state, _puuid) {
		if (_puuid != '<%=puuid%>') 
			return false;
		if (_state != "0" && _state != "3" && _state != "5") {
			return false;
		}
		return true;
	}
	
	function _search() {
		window.location = "<%=root%>/jsp/plan/CarryForward_SearchPlan_Condition.jsp";
	}
	
	function checkYear(year) {
		var date = new Date();
		var currentYear = date.getYear();
		if (year != currentYear && year != "null") {
			forwardDiv.style.display="none";
		}
	}
   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 + -