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

📄 adjust_searchplan_condition.jsp

📁 java jsp教程
💻 JSP
字号:
<!-- /jsp/plan/Adjust_SearchPlan_Condition.jsp, by sq, 2005-09-07 -->

<!-- 描述:通过诸多条件查询计划

调用:
AdminSearchPlanServlet
传入参数:SearchInfo(PlanYear,AuditedOrgID,PlanName,PlanType,ProjectType,PlanState,BegainTime,EndTime)

接收:无

显示控制:
1。年度:前5年、当前年度、后1年
2。计划状态:全部、草稿、审核通过、审批通过、审核不通过、审批不通过、执行中、结束

校验:
1。选计划开始时间时,校验BegainTime小于EndTime

对应Demo页面:plan_search.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.*" %>

<% 
	String root = request.getContextPath();
	
%>

<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></HEAD>
<script type="text/javascript" src="<%=root%>/common/codeDict.js"></script>

<script type="text/javascript" src="<%=root%>/common/xtree.js"></script>
<script type="text/javascript" src="<%=root%>/common/xmlextras.js"></script>
<script type="text/javascript" src="<%=root%>/common/xloadtree.js"></script>
<script type="text/javascript" src="<%=root%>/common/common.js"></script>
<script type="text/javascript">
webFXTreeConfig.rootIcon		= "<%=root%>/images/xp/folder.png";
webFXTreeConfig.openRootIcon	= "<%=root%>/images/xp/openfolder.png";
webFXTreeConfig.folderIcon		= "<%=root%>/images/xp/folder.png";
webFXTreeConfig.openFolderIcon= "<%=root%>/images/xp/openfolder.png";
webFXTreeConfig.fileIcon		= "<%=root%>/images/xp/file.png";
webFXTreeConfig.lMinusIcon		= "<%=root%>/images/xp/Lminus.png";
webFXTreeConfig.lPlusIcon		= "<%=root%>/images/xp/Lplus.png";
webFXTreeConfig.tMinusIcon		= "<%=root%>/images/xp/Tminus.png";
webFXTreeConfig.tPlusIcon		= "<%=root%>/images/xp/Tplus.png";
webFXTreeConfig.iIcon			= "<%=root%>/images/xp/I.png";
webFXTreeConfig.lIcon			= "<%=root%>/images/xp/L.png";
webFXTreeConfig.tIcon			= "<%=root%>/images/xp/T.png";
webFXTreeConfig.blankIcon		= "<%=root%>/images/xp/blank.png";
</script>

<BODY text=#000000 leftMargin=0 background="<%=root%>/images/grid.gif" topMargin=10>
<br>
<br>
  <form name="form1" method="post" >
  <TR>
      
    <table width=720 border="0" cellspacing="1" cellpadding="4" bgcolor="#426199" align=center>
      <tr> 
        <td colspan="4" align="center" bgcolor="#A6D0F2" height="23">计划检索</td>
      </tr>
      <tr bgcolor="EEF4FF"> 
        <td align="left" bgcolor="EEF4FF"><div align="right">计划年度:</div></td>
        <TD width="246" height="25"> <div align="left">
          <select name="planYear" class="bt2" style="width:160">
           	<%= CommUtil.mkYearOptions() %>

          </select> 
          </div></TD>
        <TD><div align="right">被审计单位:</div></TD>
        <TD width="233">
		<input type="hidden" name="auditedOrgCode">
		<input name="auditedOrgName" type="text" class = "bt2" style="background:white" size="25" maxlength="32" readonly="">
        <img src="<%=root%>/images/icon-15.gif" name="unit" alt="选择被审计单位" class="bt1" style="cursor:hand;" onClick="selectUnit()">
        </TD>
      </tr>
      <tr bgcolor="EEF4FF"> 
        <td align="left"><div align="right">计划名称:</div></td>
        <td bgcolor="EEF4FF" colspan="3"> <div align="left">
          <input name="planName" type="text" class = "bt2" size="25" style="background:white">
          </div></td>
       
      </tr>
      <tr bgcolor="EEF4FF">
        
        <td bgcolor="EEF4FF" ><div align="right">计划类别:</div></td>
        <td bgcolor="EEF4FF" ><input type="hidden" name="jhlbCode"><input name="jhlb" type="text" class="bt2" style="background:white" value="" size="25" readonly>
          <img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('jhlbdiv')"> </td>
		   <td bgcolor="EEF4FF" ><div align="right">项目类别:</div></td>
        <td bgcolor="EEF4FF" ><input type="hidden" name="xmlbCode"><input name="xmlb" type="text" id="xmlb" value="" size="25" readonly>
          <img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('xmlbdiv')"> </td>
      </tr>
      <tr bgcolor="EEF4FF"> 
        <td align="center" ><div align="right">计划开始时间 从:</div></td>
        <td ><input name="begintime" type="text" class = "bt2" value="" size="25" readonly style="background:white">
        <img src="<%=root%>/images/calendar.gif" style="cursor:hand;" width="18" height="18" border=0 align="absmiddle" alt="弹出日历下拉菜单" onClick="popUpCalendarDlg(begintime)"> 
        </td>
        <td ><div align="center">至:</div></td>
        <td ><input name="endtime" type="text" class = "bt2" value="" size="25" readonly style="background:white"> 
        <img src="<%=root%>/images/calendar.gif" style="cursor:hand;" width="18" height="18" border=0 align="absmiddle" alt="弹出日历下拉菜单" onClick="popUpCalendarDlg(endtime)"></td>
      </tr>
      <tr bgcolor="EEF4FF"> 
        <td colspan="4" align="center" > <div align="center">            &nbsp;&nbsp;&nbsp;
          </div></td>
      </tr>
    </table>
	  </td>
    </tr></TBODY>
  </TABLE> 
 	<div id=jhlbdiv style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'"  onMouseOut="this.style.display='none'">
	  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
	    <tr bgcolor="#EEFFF7">
    	  <td height="150" valign="top">
			<script>
				var tree = new WebFXLoadTree("计划类别", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=jhlb&codeField=jhlbCode&nameField=jhlb&divId=jhlbdiv");
				document.write(tree);
			</script>
			</td>
		 </tr>
	 </table>
	</div>
	<div id=xmlbdiv style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'"  onMouseOut="this.style.display='none'">
		  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
		    <tr bgcolor="#EEFFF7">
    		  <td height="150" valign="top">
		<script>
				var tree = new WebFXLoadTree("项目类别", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=xmlb&codeField=xmlbCode&nameField=xmlb&divId=xmlbdiv");
				document.write(tree);
			</script>
			  </td>
		    </tr>
	     </table>
	</div>
  </form>
<script>
function selectState()
{
	a=document.form1.stateselect.selectedIndex;
	aa=document.form1.stateselect[a].title;
	document.form1.confstate.value=aa;
}
function popUpCalendarDlg(ctrlobj) {
	showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
	showy = event.screenY - event.offsetY + 18; // + deltaY;
	newWINwidth = 210 + 4 + 18;
	retval = window.showModalDialog("<%=root%>/include/date.htm", "", "dialogWidth:220px; dialogHeight:220px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scroll:no;Resizable:no; "  );
	if( retval != null ){
		ctrlobj.value = retval;
	}
}
function searchstart()
{
	begintime=document.form1.begintime.value;
	endtime=document.form1.endtime.value;
	if(begintime>endtime)
	{
		alert("结束日期不能比起始日期小,请重新选择");
		return;
	}
	else
		window.location.href="plan_modify.html";
}
function selectUnit()
{
	wx=200;
	wy=200;
	urlstr="<%=request.getContextPath()%>/servlet/AuditedOrgListServlet?wayPoint=to_search";
	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=yes"+wposition); 
}
function selectxmlbtype()
{
   var x = event.clientX;
   var y = event.clientY;
   document.all.xmlbdiv.style.posLeft=x-180;
   document.all.xmlbdiv.style.posTop=y;
   document.all.xmlbdiv.style.visibility="visible";
	document.getElementById("xmlbdiv").style.display="block";
}
function selecttype()
{
   var x = event.clientX;
   var y = event.clientY;
   //alert('x-'+x+',y-'+y);
   document.all.jhlbdiv.style.posLeft=x;
   document.all.jhlbdiv.style.posTop=y;
   //document.all.adminMenuDiv.style.position="absolute; left:"+x+";top:"+y+";width:110;visibility:hidden;z-index:901";
   document.all.jhlbdiv.style.visibility="visible";
	document.getElementById("jhlbdiv").style.display="block";
}
</script>
<center>
<img src="<%=root%>/images/search.gif" name="Submit" style="cursor:hand;" alt="查   询" class="bt1" onClick="_search()">&nbsp;&nbsp;&nbsp;
<img src="<%=root%>/images/return.gif" style="cursor:hand;" align="absmiddle" alt="返回" onClick="fanhui()">
</center>
<script>
	function _search() {

		if ( Compare_Date(document.form1.begintime.value,document.form1.endtime.value) ) {
			alert("开始时间要小于结束时间");
			return;
		}
		document.form1.action = "<%=root%>/servlet/AdjustPlan_SearchServlet";
		document.form1.submit();
	}
	function fanhui() {
		window.location="<%=root%>/servlet/AdjustPlan_SearchServlet";
	}
</script>
</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -