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

📄 querydefineshow.jsp

📁 一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs12315src里,没有打包数据库.
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK"
    import="java.util.*,com.gs.util.*,
    com.gs.control.event.*,
    com.gs.pageBuilder.model.*,
    com.gs.pageBuilder.util.*;"
%>
<%
try{
	String isPrintPage=(String)request.getAttribute("isPrintPage");
	String isPrintPageNoWithNull=(String)request.getAttribute("isPrintPageNoWithNull");
	String autoPageStr = (String)request.getAttribute("autoPageStr");
	ArrayList queryFieldList = (ArrayList)request.getAttribute("queryFieldList");
	QueryPageDefine queryPageDefine = (QueryPageDefine)request.getAttribute("queryPageDefine");
	QueryPageFieldDefine queryPageFieldDefine;
	String tempStr="";
	String tempStr2="";
	String tempStr3="";//单位
	String outPrintlnPage;
	String BID=(String)request.getAttribute("BID");
	int log;
	Calendar calendar=Calendar.getInstance();	
	String querytoShowNowDate=PageBuildUtil.dataTypeConversion((String)PubFunc.getDateStr(calendar),"4","");
	
	QuerytBusinessInfoModel querytBusinessInfoModel = (QuerytBusinessInfoModel)request.getAttribute("querytBusinessInfoModel");
	String businessName="";
	String businessRegID="";
	
	if(querytBusinessInfoModel!=null){	
		businessName=(String) querytBusinessInfoModel.getBusinessName();
		businessRegID=(String) querytBusinessInfoModel.getBusinessRegID();
	}
	
	if(queryPageDefine==null){
		out.println("<center><p><p>该页面不存在!");
	}else{
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=queryPageDefine.getExplain()%></title>
<script language="javascript">
function openWin(url){
	var w = 794;
	var h = 550;	
	if (screen.width == 1024){
		w = 1018;
		h = 720;
	}
	window.open(url,"","toolbar=no,resizable,scrollbars,dependent,width="+w+",height="+h+",top=0,left=0");	
}
</script>
<link href="<%=request.getContextPath()%>/include/style/style01/style.css" rel="stylesheet" type="text/css">
</head>
<body class="businessBody01">
 <center>
 <%if("2".equals(queryPageDefine.getPageType())){
 	out.print(autoPageStr);
 }else{%>
 <font  class="textFormTitle" style="height:40"><font class=textLeft18><%=queryPageDefine.getExplain()%></font></font>
 <table border="0" width="620" >
  <tr>
    <td width="100%"><font class=textLeft12>企业名称:</font><font class=textshowContent><%=PubFunc.toShow(businessName)%></font></td>
  </tr>
  <%if(BID!=null&&BID.length()>2&&!BID.startsWith("01")){%>
  <tr>
    <td width="100%"><font class=textLeft12>注 册 号:</font><font class=textshowContent><%=PubFunc.toShow(businessRegID)%></font></td>
  </tr>
  <%}%>
</table> 
 <%
 log=0;//换行
 outPrintlnPage="";
 for(int i=0;i<queryFieldList.size();i++){
 	queryPageFieldDefine=(QueryPageFieldDefine)queryFieldList.get(i); 	
 	
 	try{
 		Debug.println("i="+i);
 		tempStr=PageBuildUtil.dataTypeConversion(queryPageFieldDefine.getFieldValue(),"9",queryPageFieldDefine.getFormatType()); 	 	 	
 	}catch(Exception ex){}
 	
        if(tempStr==null||"".equals(tempStr.trim())||"&nbsp;".equals(tempStr.trim())){
        	tempStr="&nbsp;";
        	tempStr3="";
        }else{
        	tempStr=tempStr.trim();
        	tempStr3=PubFunc.toShowForm(queryPageFieldDefine.getFormatUnit());
        }                        
        if(tempStr.length()>30){
        	//是否打印页                	
        	if("1".equals(isPrintPage)){
        		if(queryPageFieldDefine.getPrintFlag()!=null&&"1".equals((queryPageFieldDefine.getPrintFlag()).substring(1,2))){        			
        			if(!("1".equals(isPrintPageNoWithNull)&&"&nbsp;".equals(tempStr))){        				
        				outPrintlnPage+="<tr>";
			        	outPrintlnPage=outPrintlnPage+"<td class=showTd01 width=120 style='height:80'>"+PubFunc.toShow(queryPageFieldDefine.getExplain())+"</td>";
			        	outPrintlnPage=outPrintlnPage+"<td class=showTd01Left width=500 colspan=3>&nbsp;<font class=textshowContent>"+tempStr+tempStr3+"</font></td>";
			        	outPrintlnPage+="</tr>";
		        	}
		        }
	        }else
	        if(queryPageFieldDefine.getPrintFlag()!=null&&"1".equals((queryPageFieldDefine.getPrintFlag()).substring(0,1))){	        
	        	outPrintlnPage+="<tr>";
	        	outPrintlnPage=outPrintlnPage+"<td class=showTd01 width=120 style='height:80'>"+PubFunc.toShow(queryPageFieldDefine.getExplain())+"</td>";
	        	outPrintlnPage=outPrintlnPage+"<td class=showTd01Left width=500 colspan=3>&nbsp;<font class=textshowContent>"+tempStr+tempStr3+"</font></td>";
	        	outPrintlnPage+="</tr>";
	        }
 	}else{
 		
 		if(log==0){
 			//是否打印页         			
	        	if("1".equals(isPrintPage)){
	        		if(queryPageFieldDefine.getPrintFlag()!=null&&"1".equals((queryPageFieldDefine.getPrintFlag()).substring(1,2))){
	        			if(!("1".equals(isPrintPageNoWithNull)&&"&nbsp;".equals(tempStr))){
	        				tempStr2="<tr>";
			        		tempStr2=tempStr2+"<td class=showTd01 width=120>"+PubFunc.toShow(queryPageFieldDefine.getExplain())+"</td>";
			        		tempStr2=tempStr2+"<td class=showTd01Left width=200>&nbsp;<font class=textshowContent>"+tempStr+tempStr3+"</font></td>";
			        		log=1;
			        	}
			        }
		        }else
		        if(queryPageFieldDefine.getPrintFlag()!=null&&"1".equals((queryPageFieldDefine.getPrintFlag()).substring(0,1))){		        	
	 			tempStr2="<tr>";
	        		tempStr2=tempStr2+"<td class=showTd01 width=120>"+PubFunc.toShow(queryPageFieldDefine.getExplain())+"</td>";
	        		tempStr2=tempStr2+"<td class=showTd01Left width=200>&nbsp;<font class=textshowContent>"+tempStr+tempStr3+"</font></td>";
	        		log=1;
	        	}
 		}else{
 			//是否打印页       			
	        	if("1".equals(isPrintPage)){	 	        		       		
	        		if(queryPageFieldDefine.getPrintFlag()!=null&&"1".equals((queryPageFieldDefine.getPrintFlag()).substring(1,2))){		
	        			if(!("1".equals(isPrintPageNoWithNull)&&"&nbsp;".equals(tempStr))){
	        				outPrintlnPage+=tempStr2;
			 			outPrintlnPage=outPrintlnPage+"<td class=showTd01 width=120>"+PubFunc.toShow(queryPageFieldDefine.getExplain())+"</td>";
			 			outPrintlnPage=outPrintlnPage+"<td class=showTd01Left width=200>&nbsp;<font class=textshowContent>"+tempStr+tempStr3+"</font></td>";
			        		outPrintlnPage+="</tr>";
			 			log=0; 			
			        	}
			        }
			}else
		        if(queryPageFieldDefine.getPrintFlag()!=null&&"1".equals((queryPageFieldDefine.getPrintFlag()).substring(0,1))){		        	
	 			outPrintlnPage+=tempStr2;
	 			outPrintlnPage=outPrintlnPage+"<td class=showTd01 width=120>"+PubFunc.toShow(queryPageFieldDefine.getExplain())+"</td>";
	 			outPrintlnPage=outPrintlnPage+"<td class=showTd01Left width=200>&nbsp;<font class=textshowContent>"+tempStr+tempStr3+"</font></td>";
	        		outPrintlnPage+="</tr>";
	 			log=0; 	
 			}		
 		}
 	}	
}

if(log==1){
	outPrintlnPage=outPrintlnPage+tempStr2+"<td class=showTd01 width=120>&nbsp;</td><td class=showTd01 width=200>&nbsp;</td></tr>";
}
%>
<table class="showTable01" border="1" width="620" >
<%=outPrintlnPage%>
</table>
<table class="showTable02" border="0" width="620" >
<tr>
<td class=showTd02Right>
&nbsp;<font class=textshowContent><%=querytoShowNowDate%></font>
</td>
</tr>
</table>
 <%}%>
 <%
 	//是否打印页        	
	if("1".equals(isPrintPage)){%>
	<input type="button" name="Submit1" value="  打  印  " title="  打  印  " onclick="javascript:window.print(0);" class="button textNoPrint" onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'">&nbsp;&nbsp;
	<input type="button" name="Submit1" value="  关  闭  " title="  关  闭  " onclick="javascript:window.close();" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'"><br>
	<%}
 %>
 <div id=printID>
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=WB name=WB width=0></OBJECT> 
</div>
<script>
function doPrintPage(){
	var w = 794;
	var h = 550;	
	if (screen.width == 1024){
		w = 1018;
		h = 720;
	}	
	
	if(confirm('是否按打印格式输出!')){		
		queryDefineShowWindow=window.open(location+"&isPrintPage=1","","toolbar=no,resizable,scrollbars,dependent,width="+w+",height="+h+",top=0,left=0");
		queryDefineShowWindow.window.print(0);
	}else{
		this.WB.ExecWB(6,1);
	}
}	
</script>
</body>
</html>
<%
	}
}catch(Exception ex ){
Debug.println("[queryDefineShow.jsp]--->>>Exception:"+ex.getMessage());
}%>

⌨️ 快捷键说明

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