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

📄 card_manager.jsp

📁 java jsp教程
💻 JSP
字号:
<%
	/**
	 * 将该模块只配置给组长或主审
	 * 故不在程序中判断操作人的权限
	 */
%>
<%
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>
<%@ page contentType="text/html;charset=gb2312" %>
<%@ 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" %>

<HTML><HEAD><TITLE>资料卡管理</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<style type="text/css">
<!--
.style1 {font-size: 16px}
.style2 {
	font-size: 12px;
	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>
selectedCard="0";

function RadioSelected(num)
{
	selectedCard=num;
}
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 delCard()
{
	if(selectedCard=="0")
	{
		alert("先选择一个资料卡");
		return;
	}
	if(confirm("确认删除吗?"))
	{
		
	}
}

function ModifySelected()
{
	if(selectedCard=="0")
	{
		alert("先选择一个资料卡");
		return;
	}
	window.location = "<%=request.getContextPath()%>/servlet/ShowCardBasicInfoServlet?projNo="
					 + selectedCard
					 + "&toJsp=/jsp/card/modify_card1.jsp"
					 + "&canEdit=true";//&checkUser=false";
}

function _viewCardInfo(projNo)
{
	wx=800;
	wy=500;
	var url = "<%=request.getContextPath()%>/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);				
}

function viewinfo(pno)
{
	if(pno == "")
		return;
	wx=800;
	wy=500;
	var url = "/cnpc/servlet/ShowProjectViewInfoServlet?projNo=" + pno;
	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);
}
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); 
}
</SCRIPT>
<BODY text=#000000 leftMargin=0 background=<%=request.getContextPath()%>/images/grid.gif 
topMargin=10>
<form name="form1" method="post" action="<%=request.getContextPath()%>/servlet/ShowCardManageListServlet">
<input type="hidden" name="projecttype" value='<c:out value="${param.projecttype}"/>'>	
<input type="hidden" name="auditedorgid" value='<c:out value="${param.auditedorgid}"/>'>		
<input type="hidden" name="type" value='<c:out value="${param.type}"/>'>
<input type="hidden" name="auditingOrgId" value='<c:out value="${param.auditingorgid}"/>'>
	<table width=92% 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="25" align="right">项目年度:</td>
        <TD width="160" height="25" bgcolor="#a6d0f2" align="left">
        <%
        	String _projectyear = request.getParameter("projectyear");
        	Integer projectyear = (_projectyear == null)?null:Integer.valueOf(_projectyear);
        %>
          <select name="projectyear" style="width:97" >
					   		<option value="9999" >全部</option>
	              <%= CommUtil.mkYearOptions(projectyear) %>
               	       </select>
        </TD>
        <td width="91" bgcolor="#a6d0f2" ><div align="right">被审计单位:</div></td>
        <td width="160" bgcolor="#a6d0f2" >
        	<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()">
		</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 width="90" bgcolor="#a6d0f2" ><div align="right">项目类别:</div></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" align="absmiddle" style="cursor:hand;" 
         	  onClick="showDiv('xmlbdiv')"> </div></TD>
        <td height="20" align="left"><div align="right">项目时间 从:</div></td>
        <td bgcolor="#a6d0f2">
        	<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)"></td>
        <td bgcolor="#a6d0f2" width="90" align="right">至:</td>
        <td height="20" bgcolor="#a6d0f2"><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>	
      </tr>
	  <tr bgcolor="#a6d0f2">
	  	<td width="90" bgcolor="#a6d0f2" align="right">项目名称:</td>
        <td width="140" bgcolor="#a6d0f2" ><div align="left">
          <input name="projectname" type="text" size="15" 
        	value='<c:out value="${param.projectname}"/>'
        	style="background:white" class="inp1">
          </div></td>
		 <td colspan="4"></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="90%" align=center border=0>
    <TBODY>
      <TR>
        <TD align=middle>
        <%
			String whereClause = request.getParameter("where");			
			System.out.println(" whereClause " + whereClause);
			String reportFile = request.getParameter("reportFile");
			System.out.println(" reportFile " + reportFile);
		%>
		<TD align="center">
	<report:html 
		name="abc" reportFileName="<%=reportFile%>"
		funcBarLocation="bottom"
		needPageMark="yes"
		separator=" "
		needSaveAsExcel="yes"
		needSaveAsPdf="no"
		needPrint="no"
		firstPageLabel="第一页"
		prevPageLabel="上一页"
		nextPageLabel="下一页"
		lastPageLabel="最后页"
		pageMarkLabel="第{currpage}页/共{totalPage}页"
		generateParamForm="no"
		displayNoLinkPageMark="yes"
		canModifyBeforePrint="no"
		params="<%=whereClause%>"
		submit="提交到服务器"
		needImportExcel="yes"
		excelPageStyle="0"
		importExcelLabel="导入excel" />
        </TD>
      </TR>
    </TBODY>
  </TABLE></TD>
      </TR>
      <TR> 
    <td align="center" height="23" colspan="7">
    </td>
</TR>
<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>
<%
	String type= request.getParameter("type");
	if(type == null || !"list".equals(type) )
	{
%>
<table align="center" width="90%">
  <tr>
    <td width="45%" align="center">
		<div align="center">
<img src="<%=request.getContextPath()%>/images/modify.gif" 
		 style="cursor:hand;" alt="修改" onClick="ModifySelected()">
 </div>
	</td>
  </tr>
</table>
<%
	}
%>	
</BODY>
</HTML>
<script>
	
	function _reset()
	{
		var sForm = document.form1;
		sForm.projecttype.value = "";
		sForm.projecttypename.value = "";
		sForm.auditedorgid.value ="";
		sForm.auditedorgname.value = "";
		sForm.auditingOrgId.value = "";
		sForm.auditingOrgName.value = "";
		sForm.projectname.value = "";
		sForm.begintime.value = "";
		sForm.endtime.value = "";
		var year = (new Date()).getYear();
		var len = sForm.projectyear.options.length;
		for(var i = 0; i < len; i ++)
		{
			if(sForm.projectyear.options[i].value == year)
			{
				sForm.projectyear.options[i].selected = true;
				break;
			}
		}
	}
	
	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 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 query()
	{
		document.form1.submit();
	}
</script>

⌨️ 快捷键说明

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