querychangelist.jsp
来自「一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs」· JSP 代码 · 共 229 行
JSP
229 行
<%@ 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.*,"%>
<%
//获取页面参数
String innerID=(String)request.getAttribute("innerID");
String BID=(String)request.getAttribute("BID");
String OBID=(String)request.getAttribute("OBID");
String yearCheckupY=(String)request.getAttribute("yearCheckupY");
ArrayList queryResultList= (ArrayList)request.getAttribute("queryResultList");
QuerytBusinessInfoModel querytBusinessInfoModel=(QuerytBusinessInfoModel)request.getAttribute("querytBusinessInfoModel");
QueryPageChangeFieldDefine queryPageChangeFieldDefine = null;
int i=0;
String tempStrSelect="";
String td="";
int changeNum=0;//变更次
String tempStr="";//SN临时变量
String tempStr2="";//
String tempStr3="";//
String businessName="";//企业名称;
String businessRegID="";
if(querytBusinessInfoModel!=null){
businessName=(String) querytBusinessInfoModel.getBusinessName();
businessRegID=(String) querytBusinessInfoModel.getBusinessRegID();
}
if(businessName==null)businessName="";
if(businessRegID==null)businessRegID="";
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">
<table border="0" width="98%">
<tr>
<td><font class=textNoPrint><img src="<%=request.getContextPath()%>/images/bg3.gif" border="0" > <font class="textBusinessTitle"><%=showTitleStr%></font></font></td>
</tr>
</table>
<div id="Layer1" class=divStyle>
<FORM name=queryChangListForm action=<%=request.getContextPath()%>/pageBuilderAction.do method=post>
<table border="1" class="businessTable01" id=stockmanID width="100%" >
<tr>
<td width="5%" class="businessTdTitle03" >选择</td>
<td width="10%" class="businessTdTitle03" >变更次数</td>
<td width="15%" class="businessTdTitle03" >变更事项</td>
<td width="22%" class="businessTdTitle03" >变更前内容</td>
<td width="22%" class="businessTdTitle03" >变更后内容</td>
<td width="12%" class="businessTdTitle03" >操作员</td>
<td width="14%" class="businessTdTitle03" >核准日期</td>
</tr>
<%
if(queryResultList!=null)
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.getInnerID()==null){%>
<tr onmouseout="this.style.cursor ='default'" onmouseover="this.style.cursor ='hand'" >
<%}else{%>
<tr onclick="changeItem('stockmanID',<%=i+1%>)" onmouseout="this.style.cursor ='default'" onmouseover="this.style.cursor ='hand'">
<%}%>
<%if(i==0){tempStrSelect="changeItem('stockmanID',"+(i+1)+");";}%>
<td class="<%=td%>"><input type="checkbox" name="C1" value="ON" ></td>
<td class="<%=td%>"> <%=changeNum%></td>
<td class="<%=td%>"> <%if(queryPageChangeFieldDefine.getExplain()==null&&queryPageChangeFieldDefine.getChangeItem()!=null){
out.print(queryPageChangeFieldDefine.getChangeItem());
}else{out.print(queryPageChangeFieldDefine.getExplain());}%></td>
<td class="<%=td%>"> <%
//String getValueBefChangeValue=
String getValueBefChangeValue="";
String getValueAftChangeValue="";
try{
getValueBefChangeValue=(String)PageBuildUtil.dataTypeConversion(queryPageChangeFieldDefine.getValueBefChange(),"9",queryPageChangeFieldDefine.getFormatType());
getValueAftChangeValue=(String)PageBuildUtil.dataTypeConversion(queryPageChangeFieldDefine.getValueAftChange(),"9",queryPageChangeFieldDefine.getFormatType());
}catch(Exception ex){}
tempStr2=PubFunc.toShow(getValueBefChangeValue);
if(tempStr2!=null&&tempStr2.length()>9){
tempStr2=tempStr2.substring(0,9)+"...";
}
out.print(tempStr2);
%></td>
<td class="<%=td%>"> <%
tempStr3=PubFunc.toShow(getValueAftChangeValue);
if(tempStr3!=null&&tempStr3.length()>9){
tempStr3=tempStr3.substring(0,9)+"...";
}
out.print(tempStr3);
%></td>
<td class="<%=td%>"> <%=PubFunc.toShowForm(queryPageChangeFieldDefine.getOperator())%></td>
<td class="<%=td%>"> <%=PubFunc.toShowForm(queryPageChangeFieldDefine.getOperaDate())%></td>
</tr>
<input type=hidden name=valueBefChange value="<%=PubFunc.toShowForm(getValueBefChangeValue)%>">
<input type=hidden name=valueAftChange value="<%=PubFunc.toShowForm(getValueAftChangeValue)%>">
<%}%>
</table>
<input type=hidden name=yearCheckupY value="<%=yearCheckupY%>">
<input type=hidden name=innerID value="<%=innerID%>">
<input type=hidden name=BID value="<%=BID%>">
<input type=hidden name=OBID value="<%=OBID%>">
<input type=hidden name=selectRow value="">
<input type=hidden name=selectPrintNum value="">
<input type=hidden name=action value="<%=PageBuilderEvent.query_change_print%>">
</form>
</div>
<center><br><br>
<table border="1" class="businessTable01" width="690" >
<tr>
<td width="50%" class="businessTdTitle03">变更前内容</td>
<td width="50%" class="businessTdTitle03" >变更后内容</td>
</tr>
<tr>
<td class="businessTd01LeftBig" style="height:80"><div id="Layer2" class=divStyle2 ></div></td>
<td class="businessTd01LeftBig" ><div id="Layer3" class=divStyle2 ></div></td>
</tr>
</table>
<br>
<input type="button" name="Submit1" value=" 全部选择 " title="全部选择" onclick="selectallItem('1','stockmanID')" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<input type="button" name="Submit1" value=" 取消选择 " title="取消选择" onclick="selectallItem('0','stockmanID')" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<input type="button" name="Submit1" value="打印选择项" title="打印选择项" onclick="javascript:check('stockmanID');" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'" style="color:red">
<input type="button" name="Submit1" value=" 关 闭 " title=" 关 闭 " onclick="javascript:window.close();" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'"><br>
<script>
function changeItem(stockman,selectnum){
var rowT=document.all(stockman);
var i=0;
var j=0;
var rowsNum=rowT.rows.length;
if(document.all.selectRow.value!=""){
for(j=0;j<rowT.rows[document.all.selectRow.value].cells.length;j++){
if((document.all.selectRow.value)%2==0){
rowT.rows[document.all.selectRow.value].cells[j].className="businessTd00LeftBig";
}else{
rowT.rows[document.all.selectRow.value].cells[j].className="businessTd01LeftBig";
}
}
}
for(j=0;j<rowT.rows[selectnum].cells.length;j++){
rowT.rows[selectnum].cells[j].className="businessTd03LeftBig";
}
document.all.selectRow.value=selectnum;
//获取详细变更信息
if(document.all.valueBefChange){
if(document.all.valueBefChange.length==null){
Layer2.innerHTML=document.all.valueBefChange.value;
Layer3.innerHTML=document.all.valueAftChange.value;
}
else{
Layer2.innerHTML=document.all.valueBefChange[selectnum-1].value;
Layer3.innerHTML=document.all.valueAftChange[selectnum-1].value;
}
}
}
function selectallItem(state,stockman){
//取消选择
var rowT=document.all(stockman);
var i=0;
var j=0;
var rowsNum=rowT.rows.length;
if(state=="0"){
for(i=1;i<rowsNum;i++){
rowT.rows[i].cells[0].children[0].checked=false;
}
}else{
//全部选择
for(i=1;i<rowsNum;i++){
rowT.rows[i].cells[0].children[0].checked=true;
}
}
}
function check(stockman){
var rowT=document.all(stockman);
var i=0;
var j=0;
var rowsNum=rowT.rows.length;
document.all.selectPrintNum.value="";
for(i=1;i<rowsNum;i++){
if(rowT.rows[i].cells[0].children[0].checked==true){
if(i==1)
document.all.selectPrintNum.value=document.all.selectPrintNum.value+""+(i-1);
else
document.all.selectPrintNum.value=document.all.selectPrintNum.value+"/"+(i-1);
}
}
document.queryChangListForm.submit();
}
<%=tempStrSelect%>
</script>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?