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

📄 project_list.jsp

📁 java jsp教程
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="com.icss.cnpc.util.Config" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/runqianReport.tld" prefix="report" %>
<%@ page import="com.icss.cnpc.util.CommUtil" %>
<%
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>
<%	
	
%>
<HTML><HEAD><TITLE>项目查询列表</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<style type="text/css">
<!--
.style5 {font-size: 16px; font-weight: bold; }
-->
</style>
</HEAD>

<SCRIPT language=JavaScript src="<%=request.getContextPath()%>/common/common.js"></SCRIPT>
<SCRIPT language=JavaScript src="<%=request.getContextPath()%>/common/project.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="<%=request.getContextPath()%>/common/calendar.js"></SCRIPT>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/xtree.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/xmlextras.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/xloadtree.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/codeDict.js"></script>
<script type="text/javascript">
webFXTreeConfig.rootIcon		= "<%=request.getContextPath()%>/images/xp/folder.png";
webFXTreeConfig.openRootIcon	= "<%=request.getContextPath()%>/images/xp/openfolder.png";
webFXTreeConfig.folderIcon		= "<%=request.getContextPath()%>/images/xp/folder.png";
webFXTreeConfig.openFolderIcon= "<%=request.getContextPath()%>/images/xp/openfolder.png";
webFXTreeConfig.fileIcon		= "<%=request.getContextPath()%>/images/xp/file.png";
webFXTreeConfig.lMinusIcon		= "<%=request.getContextPath()%>/images/xp/Lminus.png";
webFXTreeConfig.lPlusIcon		= "<%=request.getContextPath()%>/images/xp/Lplus.png";
webFXTreeConfig.tMinusIcon		= "<%=request.getContextPath()%>/images/xp/Tminus.png";
webFXTreeConfig.tPlusIcon		= "<%=request.getContextPath()%>/images/xp/Tplus.png";
webFXTreeConfig.iIcon			= "<%=request.getContextPath()%>/images/xp/I.png";
webFXTreeConfig.lIcon			= "<%=request.getContextPath()%>/images/xp/L.png";
webFXTreeConfig.tIcon			= "<%=request.getContextPath()%>/images/xp/T.png";
webFXTreeConfig.blankIcon		= "<%=request.getContextPath()%>/images/xp/blank.png";
</script><SCRIPT language=JavaScript>
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("<%=request.getContextPath()%>/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 ShowAllAudited(planno)
{
	wx=600;
	wy=400;
	urlstr="/cnpc/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+",scrollbars=yes,status=no"+wposition);
}
function selectUnit()
{
	wx=200;
	wy=200;
	urlstr="<%=request.getContextPath()%>/jsp/advancesearch/auditedtree.jsp?nameField=auditedorgname&idField=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+",scrollbars=yes,status=no"+wposition); 
}

//function selectAuditingUnit() {
	//wx=200;
	//wy=200;
	//urlstr="<%=request.getContextPath()%>/jsp/advancesearch/auditingtree.jsp?nameField=auditingorgname&idField=auditingorgid";
	//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 selectAuditingUnit() {
	wx=200;
	wy=200;
	urlstr="/cnpc/jsp/advancesearch/orgtree.jsp";
	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 viewPlanInfo(planno)
{
	wx=600;
	wy=400;
	urlstr="/cnpc/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,resizable=yes,status=no"+wposition);
}

</SCRIPT>
<BODY text=#000000 leftMargin=0 background="<%=request.getContextPath()%>/images/grid.gif" topMargin="10">
  <form name="form1" method="post" action="<%= request.getContextPath()%>/servlet/SearchProjectServlet" >
  <input type="hidden" name="auditedorgid" value='<c:out value="${param.auditedorgid}"/>'>
  <input type="hidden" name="auditingOrgId" value='<c:out value="${param.auditingOrgId}"/>'>
  <input type="hidden" name="projecttype" value='<c:out value="${param.projecttype}"/>'>
  <TR>    </tr>
  <table width=90% border="0" cellspacing="1" cellpadding="4" bgcolor="#426199" align=center>
  <TR bgcolor="#a6d0f2">
              <TD colspan="6" height=25 align=middle>
              <div align="center">
              		<font size="2" color="red" size=4>项目&nbsp;</font>查询条件</font>
              </div>
              </TD>
     </TR>
      <tr bgcolor="#a6d0f2"> 
        <td width="90" height="20" align="right"><div align="right"> 项目年度:</div></td>
        <TD width="160" height="20" bgcolor="#a6d0f2">          
          <div align="left">
              <select name="projectyear" style="width:101 " >
              	<option value="9999" >全部</option>
	              <% 
	                String projectYear = request.getParameter("projectyear");
	              	if(projectYear != null) 
	              		out.print( CommUtil.mkYearOptions(Integer.valueOf(projectYear)) );
	              	else 	
	              		out.print( CommUtil.mkYearOptions(null) );
	              %>
              </select>
          </div></TD>
        <td width="70" bgcolor="#a6d0f2" align="right">项目类别:</td>
        <TD width="160" bgcolor="#a6d0f2"><div align="left">
            <input name="projecttypename" type="text" 
            value='<c:out value="${param.projecttypename}"/>' 
            size="15" readonly style="background:white" class="inp1">
         <img src="<%=request.getContextPath()%>/images/fuction.gif" width="20" 
         			height="15" style="cursor:hand;" onClick="showDiv('xmlbdiv')"> </div></TD>
      
        <td height="20" width="97" align="left"><div align="right">填报单位:</div></td>
        <td width="160" height="20" bgcolor="#a6d0f2"><div align="left">
          <input name="auditingOrgName" type="text" style="background:white" size="15" 
          	value='<c:out value="${param.auditingOrgName}"/>'
          	maxlength="32" readonly class="inp1">
          <img src="<%=request.getContextPath()%>/images/icon-15.gif" alt="选择填报单位" name="unit" width="22" height="15" class="bt1" style="cursor:hand;" onClick="selectAuditingUnit()"></div></td>
	  </tr>
      <tr bgcolor="#a6d0f2">          		 
        <td bgcolor="#a6d0f2" width="90" ><div align="right">被审计单位:</div></td>
        <td bgcolor="#a6d0f2" width="160"><div align="left">          
          <input name="auditedorgname" type="text" style="background:white" size="15" 
          	value='<c:out value="${param.auditedorgname}"/>'
          	maxlength="32" readonly class="inp1">
          <img src="<%=request.getContextPath()%>/images/icon-15.gif" 
          		 name="unit" width="22" height="15" class="bt1" style="cursor:hand;" 
          		 onClick="selectUnit()"></div></td>
        <td height="20" width="70" align="right">项目名称:</td>
        <td height="20" bgcolor="#a6d0f2">
        	<input name="projectname" type="text" size="15" 
        	value='<c:out value="${param.projectname}"/>'
        	style="background:white" class="inp1"></td>
        <td bgcolor="#a6d0f2" width="97" ><div align="right">项目状态:</div></td>
        <td bgcolor="#a6d0f2" >
        	<select name="projectstate" style="width:101 " >
              <option value="-1">--------</option>
              <option value="1">审计准备</option>
              <option value="2">审计实施</option>
              <option value="3">审计报告</option>
              <option value="4">审计处理</option>
              <option value="5">审计整改</option>
            </select></td>
      </tr>
      <tr bgcolor="#a6d0f2">
        <td height="20" align="left"><div align="right">项目时间 从:</div></td>
        <td height="20" width="160" bgcolor="#a6d0f2"><div align="left">
          <input name="begintime" type="text" 
          value='<c:out value="${param.begintime}"/>' size="15" readonly style="background:white" class="inp1">
        <img src="<%=request.getContextPath()%>/images/calendar.gif" style="cursor:hand;" 
        width="18" height="18" border=0 align="absmiddle" alt="弹出日历下拉菜单" 
        onClick="popUpCalendarDlg(begintime)"> </div></td>
        <td bgcolor="#a6d0f2"  width="70" align="right">至:</td>
        <td bgcolor="#a6d0f2" width="160"><div align="left">
          <input name="endtime" type="text" value='<c:out value="${param.endtime}"/>' 
          	size="15" readonly style="background:white" class="inp1">
        <img src="<%=request.getContextPath()%>/images/calendar.gif" style="cursor:hand;" 
        			width="18" height="18" border=0 align="absmiddle" alt="弹出日历下拉菜单" 
        			onClick="popUpCalendarDlg(endtime)"></div></td>
      <td colspan="2">&nbsp;</td>
    </tr>
    </table>
  </TBODY>
  </TABLE>   
   </form>
  
  <br>
  <div align="center">
  	   	<img src="<%=request.getContextPath()%>/images/search.gif" style="cursor:hand;" 
      	  border=0 align="absmiddle"  onclick="query()">
      	&nbsp;
      	<img src="<%=request.getContextPath()%>/images/chzh.gif" style="cursor:hand;" 
      	  border=0 align="absmiddle"  onclick="_reset()">  
	</div>
	<br>
 <TABLE cellSpacing=0 cellPadding=0 width="98%" align=center border=0>
    <TBODY>
      <TR>
      	<%
			String whereClause = (String)request.getAttribute("whereClause");
			whereClause = (whereClause == null)?"":whereClause;
			System.out.println("query sql " + whereClause );
		%>
		<TD align="center">
	<report:html 
		name="psdddd" reportFileName="project_search.raq"
		funcBarLocation="bottom"
		needPageMark="yes"
		separator=" " needSaveAsExcel="yes"
		needSaveAsPdf="no"	needPrint="no"
		firstPageLabel="第一页" prevPageLabel="上一页"
		nextPageLabel="下一页" lastPageLabel="最后页"
		pageMarkLabel="第{currpage}页/共{totalPage}页"
		printLabel="打印" 
		generateParamForm="no"
		displayNoLinkPageMark="yes"		
		params="<%=whereClause%>"
		submit="提交到服务器"
		needImportExcel="yes"
		excelPageStyle="0"
		importExcelLabel="导入excel" />
		</TD>
	  </TR>
   </TBODY>	  
</TABLE>	  	
</br>
<div id=xmlbdiv 
	style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:90001; 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?type=1&code=xmlb&codeField=form1.projecttype&nameField=form1.projecttypename&divId=xmlbdiv");
				document.write(tree);
			</script>
			  </td>
		    </tr>
	     </table>
	</div>
</BODY></HTML>
<script>
	drag(xmlbdiv);
	function query()
	{		
		var begintime = document.form1.begintime.value;
		var endtime = document.form1.endtime.value;
		if(begintime != "" && endtime != "")
		{
			if(!compareDate(begintime,endtime))
			{
				alert("结束时间必须大于开始时间!");
				return;
			}
		}	
		document.form1.submit();
	}
	function initPState()
	{
		var sel = document.form1.projectstate;
		var len = sel.length;
		var state = '<c:out value="${projectstate}"/>';
		for(var i=0; i<len; i++)
		{
			if(sel.options[i].value == state)
			{
				sel.options[i].selected = true;
				break;
			}
		}
	}
	function _reset()
	{
		var sForm = document.form1;
		sForm.projecttype.value = "";
		sForm.projecttypename.value = "";
		sForm.auditingOrgId.value = "";
		sForm.auditingOrgName.value = "";
		sForm.auditedorgid.value = "";
		sForm.auditedorgname.value = "";
		sForm.projectname.value = "";
		sForm.begintime.value = "";
		sForm.endtime.value = "";
		sForm.projectstate.options[0].selected = true;
	}
	initPState();

	function _view(pno)
	{
		if(pno == "")
			return;
		var url = "<%=request.getContextPath()%>/servlet/ShowProjectViewInfoServlet?projNo=" + pno;
		wx=800;
		wy=600;
		x=(window.screen.width-wx)/2;
		y=(window.screen.height-wy)/2;
		wposition=",left="+x+",top="+y;
		window.open(url,"_blank","width=800,height=600,menu=no,scrollbars=yes,resizable=yes"+wposition);
	}

	function initPState()
	{
		var state = '<c:out value="${param.projectstate}"/>';
		var sForm = document.form1;
		var len = sForm.projectstate.length;
		for(var i=0; i < len;i++)
		{
			if(sForm.projectstate.options[i].value == state)
			{
				sForm.projectstate.options[i].selected = true;
				break;
			}
		}	
	}
		
	initPState();
</script>

⌨️ 快捷键说明

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