📄 querychangeprint.jsp
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.util.*"%>
<%@page import="java.util.*,com.gs.util.*"%>
<%@ page import="com.gs.control.event.PageBuilderEvent;"%>
<%@ page import="com.gs.pageBuilder.model.*;"%>
<%@ page import="com.gs.pageBuilder.util.*,"%>
<%@ page import="com.gs.component.enterprise.model.*"%>
<%
//获取页面参数
String innerID=(String)request.getAttribute("innerID");
String selectPrintNum=(String)request.getAttribute("selectPrintNum");
ArrayList queryResultList= (ArrayList)request.getAttribute("queryResultList");
QuerytBusinessInfoModel querytBusinessInfoModel=(QuerytBusinessInfoModel)request.getAttribute("querytBusinessInfoModel");
//获得打印日期
Calendar calendar=Calendar.getInstance();
String querytoShowNowDate=PageBuildUtil.dataTypeConversion((String)PubFunc.getDateStr(calendar),"4","");
QueryPageChangeFieldDefine queryPageChangeFieldDefine = null;
int i=0;
int j=-1;
String tempStrSelect="";
String td="";
int changeNum=0;//变更次
String tempStr="";//临时变量
String tempStr2="";//
String businessName="";//企业名称;
String businessRegID="";//注册号
if(querytBusinessInfoModel!=null){
businessName=(String) querytBusinessInfoModel.getBusinessName();
businessRegID=(String) querytBusinessInfoModel.getBusinessRegID();
}
String showTitleStr=businessName+"变更情况";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=showTitleStr%></title>
<link href="<%=request.getContextPath()%>/include/style/style01/style.css" rel="stylesheet" type="text/css">
<style>
div.divStyle{
width:100%;
height:57%;
z-index:1;
overflow:auto;
}
div.divStyle2{
width:100%;
height:100%;
z-index:1;
overflow:auto;
}
</style>
</head>
<body class="businessBody01">
<center>
<font class="textFormTitle" style="height:40"><font class=textLeft18>企 业 变 更 情 况</font></font>
<table border="0" width="620" >
<tr>
<td width="100%"><font class=textLeft12>企业名称:</font><font class=textshowContent><%=businessName%></font></td>
</tr>
<tr>
<td width="100%"><font class=textLeft12>注 册 号:</font><font class=textshowContent><%=businessRegID%></font></td>
</tr>
</table>
<%
if(queryResultList!=null){
//按选择项输出
StringTokenizer subTokenizer = new StringTokenizer(selectPrintNum,"/");
for(i=0;i<queryResultList.size();i++){
queryPageChangeFieldDefine=(QueryPageChangeFieldDefine)queryResultList.get(i);
td=td=="businessTd01LeftBig"?"businessTd00LeftBig":"businessTd01LeftBig";
//变更次
if(i==0){
changeNum++;
}else{
if(queryPageChangeFieldDefine.getSN()!=null&&(!((queryPageChangeFieldDefine.getSN()).equals(tempStr)))){
changeNum++;
}
}
tempStr=queryPageChangeFieldDefine.getSN();
//if(queryPageChangeFieldDefine.getEnterpriseID()!=null){
if(queryPageChangeFieldDefine.getInnerID()!=null){
//按选择项输出
if(j==-1){
if(subTokenizer.hasMoreTokens()){
j= Integer.parseInt((String) (subTokenizer.nextToken()));
}
}
if(i==j){
if(subTokenizer.hasMoreTokens()){
j= Integer.parseInt((String) (subTokenizer.nextToken()));
}
%>
<br><br>
<table border="1" class=showTable01 width="620">
<tr>
<td width="30%" class=showTd01Left> 变 更 次: <font class="textShowContent"><%=changeNum%></font> 次</td>
<td width="70%" class=showTd01Left> 变 更 事 项(编码): <font class="textShowContent"><%if(queryPageChangeFieldDefine.getExplain()==null&&queryPageChangeFieldDefine.getChangeItem()!=null){
out.print(queryPageChangeFieldDefine.getChangeItem());
}else{out.print(queryPageChangeFieldDefine.getExplain());}%></font></td>
</tr>
<tr>
<td width="100%" colspan="2" class=showTd01Left > 变更前内容: <font class="textShowContent">
<%try{
out.print(PageBuildUtil.dataTypeConversion(PubFunc.toShow(queryPageChangeFieldDefine.getValueBefChange()),"9",queryPageChangeFieldDefine.getFormatType()));
}catch(Exception ex){}
%></font></td>
</tr>
<tr>
<td width="100%" colspan="2" class=showTd01Left> 变更后内容: <font class="textShowContent">
<%try{
out.print(PageBuildUtil.dataTypeConversion(PubFunc.toShow(queryPageChangeFieldDefine.getValueAftChange()),"9",queryPageChangeFieldDefine.getFormatType()));
}catch(Exception ex){}
%></font></td>
</tr>
<tr>
<td width="100%" colspan="2" class=showTd01Left>核 准 日 期:<font class="textShowContent">
<%try{
out.print(PageBuildUtil.dataTypeConversion(queryPageChangeFieldDefine.getOperaDate(),"4",""));
}catch(Exception ex){}
%>
</font></td>
</tr>
</table>
<%}
}
}
}%>
<table class="showTable02" border="0" width="620" >
<tr>
<td class=showTd02Right>
<font class=textshowContent><%=querytoShowNowDate%></font>
</td>
</tr>
</table>
<br>
<input type="button" name="Submit1" value="打印预览" title="打印预览" onclick="javascript:doPrintPreview();" class="button" textNoPrint onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'">
<input type="button" name="Submit1" value="页面设置" title="页面设置" onclick="javascript:doPrintSetup();" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<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'" style="color:red">
<input type="button" name="Submit1" value=" 返 回 " title=" 返 回 " onclick="javascript:history.back();" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
</center>
<div id=printID>
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=WB name=WB width=0></OBJECT>
</div>
<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以上的版本!");
}
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -