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

📄 queryprintmail.jsp

📁 一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs12315src里,没有打包数据库.
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.util.*"%>
<%@page import="java.util.*,com.gs.util.*"%>
<%@ page import="com.gs.pageBuilder.model.*,com.gs.pageBuilder.util.*;"%>
<%
try{
	String td="businessTd01Left";
	ArrayList queryResultList= null;
	queryResultList=(ArrayList)request.getAttribute("queryResultList"); 
	QuerySuperResultModel querySuperResultModel= null;
	int i=0;
	Calendar calendar=Calendar.getInstance();	
	String querytoShowNowDate=PageBuildUtil.dataTypeConversion((String)PubFunc.getDateStr(calendar),"4","");
	
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查询结果</title>
<link href="<%=request.getContextPath()%>/include/style/style01/style.css" rel="stylesheet" type="text/css">
</head>
<body><center>
<input type="button" name="Submit1" value=" 打印预览" onclick="doPrintPreview();this.className='textNoPrint';" class="button textNoPrint" onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'">
<input type="button" name="Submit1" value=" 打印设置" onclick="doPrintSetup();this.className='textNoPrint';"  class="button textNoPrint" onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'">
<input type="button" name="Submit1" value=" 打 印 " onclick="this.className='textNoPrint';window.print(0);"  class="button textNoPrint" onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'">
<input type="button" name="Submit1" value=" 关 闭 " onclick="javascript:window.close()"  class="button textNoPrint" onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'">
<br>
	<%
	if(queryResultList!=null)
	for(i=0;i<queryResultList.size();i++){
		querySuperResultModel=(QuerySuperResultModel)queryResultList.get(i);
		td=td=="businessTd01Left"?"businessTd00Left":"businessTd01Left";	
		String tempStr=""+(i+1);
		if(tempStr.length()==1)
			tempStr="000"+tempStr;
		else
		if(tempStr.length()==2)
			tempStr="00"+tempStr;
		else
		if(tempStr.length()==3)
			tempStr="0"+tempStr;		
		%> 
	<table style="BORDER-LEFT-COLOR: #ffffff; BORDER-BOTTOM-COLOR: #ffffff; BORDER-TOP-STYLE: solid; BORDER-TOP-COLOR: #ffffff; BORDER-RIGHT-STYLE: solid; BORDER-LEFT-STYLE: solid; BORDER-RIGHT-COLOR: #ffffff; BORDER-BOTTOM-STYLE: solid" cellSpacing="0" borderColorDark="#ffffff" cellPadding="0" borderColorLight="#000000" border="1">
	        <tr>
	          <td style="BORDER-RIGHT: black 0px solid; BORDER-TOP: black 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 14pt; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 0px solid; HEIGHT: 31px; TEXT-ALIGN: center" align="middle" width="100" height="31">
	          <%=PubFunc.nullToHtmlStr(querySuperResultModel.getPostalcode())%></td>
	          <td style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 14pt; BORDER-LEFT: black 0px solid; BORDER-BOTTOM: black 0px solid; TEXT-ALIGN: left" align="left" width="400">
	          <%=PubFunc.toShow(querySuperResultModel.getAbode())%></td>
	        </tr>
	        <tr>
	          <td style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 0px solid; FONT-WEIGHT: bold; FONT-SIZE: 16pt; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 0px solid; HEIGHT: 52px; TEXT-ALIGN: center" align="middle" colSpan="2" height="52">
	          <%=PubFunc.toShow(querySuperResultModel.getCorporationName())%></td>
	        </tr>
	        <tr>
	          <td style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 0px solid; FONT-SIZE: 13pt; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; HEIGHT: 31px; TEXT-ALIGN: center" align="middle" colSpan="2" height="31">
	          注册号:<%=PubFunc.toShow(querySuperResultModel.getRegID())%>&nbsp;&nbsp;编号:<%=tempStr%></td>
	        </tr>	         	          
	</table>&nbsp;
	<%}%>  
<br>
<input type="button" name="Submit1" value=" 打印预览" onclick="doPrintPreview();this.className='textNoPrint';" class="button textNoPrint" onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'">
<input type="button" name="Submit1" value=" 打印设置" onclick="doPrintSetup();this.className='textNoPrint';"  class="button textNoPrint" onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'">
<input type="button" name="Submit1" value=" 打 印 " onclick="this.className='textNoPrint';window.print(0);"  class="button textNoPrint" onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'">
<input type="button" name="Submit1" value=" 关 闭 " onclick="javascript:window.close()"  class="button textNoPrint" onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'">

<script>
	function doPrintSetup(){
		try
		{
			//打印设置
			printID.innerHTML="<OBJECT classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2' height=0 id=WB name=WB  width=0></OBJECT>"
			WB.ExecWB(8,1);
		}
		catch(exception)
		{
			alert("您的IE浏览器不支持此功能,请使用IE5.5以上的版本!");		
		}
		
	}
	function doPrintPreview(){
		try
		{		
			//打印预览
			printID.innerHTML="<OBJECT classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2' height=0 id=WB name=WB  width=0></OBJECT>";
			WB.ExecWB(7,1);
		}
		catch(exception)
		{
			alert("您的IE浏览器不支持此功能,请使用IE5.5以上的版本!");		
		}
	}
	function doPrint(){
		try
		{
			//打印or 6,2
			printID.innerHTML="<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB name=WB  width=0></OBJECT>"
			WB.ExecWB(6,1);
		}
		catch(exception)
		{
			alert("您的IE浏览器不支持此功能,请使用IE5.5以上的版本!");		
		}
	}
</script>
<div id=printID>
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 name=WB width=0></OBJECT> 
</div>		
</body>
</html> 
<%}
catch(Exception ex){
	Debug.println("querySuperPrintToExcel.jsp exception :"+ex.getMessage());
}
%>

⌨️ 快捷键说明

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