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

📄 item_pigeon.jsp

📁 java jsp教程
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="com.icss.cnpc.util.CommUtil" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/runqianReport.tld" prefix="report"%>
<%
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>
<%
	String ctx = request.getContextPath();
%>
<html>
<head>
<title>反置</title>
<meta http-equiv="Content-Type" content="text/html;charset=GBK">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<script language="JavaScript" src="<%=request.getContextPath()%>/common/common.js"></script>
<script type="text/javascript" src="<%=ctx%>/common/project.js"></script>
<script type="text/javascript" src="<%=ctx%>/common/xtree.js"></script>
<script type="text/javascript" src="<%=ctx%>/common/xmlextras.js"></script>
<script type="text/javascript" src="<%=ctx%>/common/xloadtree.js"></script>
<script type="text/javascript" src="<%=ctx%>/common/codeDict.js"></script>
<script type="text/javascript">
webFXTreeConfig.rootIcon		= "<%=ctx%>/images/xp/folder.png";
webFXTreeConfig.openRootIcon	= "<%=ctx%>/images/xp/openfolder.png";
webFXTreeConfig.folderIcon		= "<%=ctx%>/images/xp/folder.png";
webFXTreeConfig.openFolderIcon= "<%=ctx%>/images/xp/openfolder.png";
webFXTreeConfig.fileIcon		= "<%=ctx%>/images/xp/file.png";
webFXTreeConfig.lMinusIcon		= "<%=ctx%>/images/xp/Lminus.png";
webFXTreeConfig.lPlusIcon		= "<%=ctx%>/images/xp/Lplus.png";
webFXTreeConfig.tMinusIcon		= "<%=ctx%>/images/xp/Tminus.png";
webFXTreeConfig.tPlusIcon		= "<%=ctx%>/images/xp/Tplus.png";
webFXTreeConfig.iIcon			= "<%=ctx%>/images/xp/I.png";
webFXTreeConfig.lIcon			= "<%=ctx%>/images/xp/L.png";
webFXTreeConfig.tIcon			= "<%=ctx%>/images/xp/T.png";
webFXTreeConfig.blankIcon		= "<%=ctx%>/images/xp/blank.png";
</script>

<style type="text/css">
<!--
body {
	background-image: url("<%=ctx%>/images/grid.gif");
}
.inp1 {
 BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #999999 1px solid; COLOR: #000000; PADDING-TOP: 2px; BORDER-BOTTOM: #999999 1px solid; HEIGHT: 15px; BACKGROUND-COLOR: #ffffff;FONT-SIZE: 9pt

 }
-->
</style>
<script language="javascript">
function _viewCardInfo(projNo)
{
	wx=800;
	wy=500;
	var url = "<%=ctx%>/servlet/ShowCardBasicInfoServlet?projNo="
					+ projNo
					+ "&toJsp=/jsp/card/modify_card1.jsp&canEdit=false";
	x=(window.screen.width-wx)/2;
	y=(window.screen.height-wy)/2;
	wposition=",left="+x+",top="+y;
	window.open(url,"查看信息","width="+wx+",height="+wy+",scrollbars=yes,menu=no,resizable=yes,status=no"+wposition);				
}
</script>
</head>
<body>
<form name="form1" method="post" action="<%=ctx%>/servlet/ItemPigeonListServlet">	
  <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=95% border="0" cellspacing="1" cellpadding="4" bgcolor="#426199" align=center>
      <tr bgcolor="#a6d0f2"> 
        <td width="90" height="25" align="right"><div align="right"> 项目年度:</div></td>
        <TD width="160" height="25" bgcolor="#a6d0f2">          
          <div align="left">
              <select name="year" style="width:87 " >
              	<option value="9999" >全部</option>
	              <% 
	                String sYear  = request.getParameter("year");
	              	if(sYear  != null) 
	              		out.print( CommUtil.mkYearOptions(Integer.valueOf(sYear)) );
	              	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" 
          		 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" >
              <option value="-1">--------</option>              
              <option value="6"<c:if test="${param.projectstate == '6'}">selected</c:if>>未归档</option>
              <option value="7"<c:if test="${param.projectstate == '7'}">selected</c:if>>已归档</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>   
 <br/>
 <div align="center">
 		<img src="<%=ctx%>/images/search.gif" style="cursor:hand" onclick="_query()">&nbsp;&nbsp;
 		<img src="<%=ctx%>/images/chzh.gif" style="cursor:hand" onclick="_reset()">
 </div>
  </form>
<%
	String whereClause = (String)request.getAttribute("whereClause");
%>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
    <TBODY>
    <br>
      <TR>
        <TD align="center" width="100%" >
	        <report:html name="report1" reportFileName="item_pigeon.raq" 
	        	width="800"
						funcBarLocation="bottom"
						needPageMark="yes"
						separator=" "
						needSaveAsExcel="no"
						needSaveAsPdf="no"
						needPrint="no"
						firstPageLabel="第一页"
						prevPageLabel="上一页"
						nextPageLabel="下一页"
						lastPageLabel="最后页"
						pageMarkLabel="第{currpage}页/共{totalPage}页"
						printLabel="打印"
						generateParamForm="no"
						displayNoLinkPageMark="yes"
						canModifyBeforePrint="yes"
						params="<%=whereClause%>"
						submit="提交到服务器"
						needOfflineInput="yes"
						needImportExcel="yes"
						excelPageStyle="0"
						importExcelLabel="导入excel"
				/>
						</TD>
      </TR>
    </TBODY>
  </TABLE>
</form>
</body>
</html>
<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>
<script>
drag(xmlbdiv);
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("/cnpc/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 _query()
{
	var report_page = document.all.report1_currPage;
	/*if(report_page && report_page.value == "")
		report_page.value = 1;*/
	document.form1.submit();
}

function _pigeon(projno,state)
{
		var year = '<c:out value="${year}"/>';
		var quart = '<c:out value="${quart}"/>';
		var url = "<%=ctx%>/servlet/SaveCardInfoServlet?projNo=" + projno ;
		var pstate = "6";
		if(state == 6)
			pstate = "7";
		url += "&projectstate=" + pstate;			
		url += "&toJsp=/jsp/project/refresh_close.htm";
		window.open(url,"_blank","width=5,height=5");
}
function ShowAllAudited(planno)
{
	wx=600;
	wy=400;
	urlstr="<%=ctx%>/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="<%=ctx%>/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="<%=ctx%>/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 _view(pno)
	{
		if(pno == "")
			return;
		var url = "/cnpc/servlet/ShowProjectViewInfoServlet?projNo=" + pno;
		window.open(url,"_blank","width=800,height=600,menu=no,scrollbars=yes,resizable=yes");
	}
function _reset()
{
	var date = new Date();
	var len = form1.year.options.length;
	for(var i = 0; i < len; i++)
	{
		if(form1.year.options[i].value == date.getYear())
		{
			form1.year.options[i].selected = true;
			break;
		}
	}
	form1.projecttype.value = "";
	form1.projecttypename.value = "";
	form1.auditingorgname.value = "";
	form1.auditingorgid.value = "";
	form1.auditedorgid.value = "";
	form1.auditedorgname.value = "";
	form1.projectname.value = "";
	form1.projectstate.options[0].selected = true;
	form1.begintime.value = "";
	form1.endtime.value = "";
}	
</script>

⌨️ 快捷键说明

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