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

📄 reportbuild.jsp

📁 一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs12315src里,没有打包数据库.
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java"%>
<%@ page import="java.util.*"%>
<%@ page import="com.gs.util.*"%>
<%@ page import="com.gs.pageBuilder.model.*"%>
<%@ page import="com.gs.component.sysadmin.model.*"%>
<%
try{
ArrayList reportDJJGList=(ArrayList)request.getAttribute("reportDJJGList");
String reportYWLX=(String)request.getAttribute("reportYWLX");
ArrayList pageDefineShowList = (ArrayList)request.getAttribute("pageDefineShowList");
PageDefineModel pageDefineModel=null;
UserModel userModel = (UserModel)session.getAttribute("userModel");
Calendar al=Calendar.getInstance();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>报表列表</title>
<base target="_self">
<link href="<%=request.getContextPath()%>/include/style/style01/style.css" rel="stylesheet" type="text/css">
<SCRIPT language="javascript1.2" src="<%=request.getContextPath()%>/include/js/function.js"></SCRIPT></head>
<body class="businessBody01" oncontextmenu="return false" ondragstart="return false" onselectstart="return false"  onmouseout="this.style.cursor = 'default';" onmouseover="this.style.cursor = 'default';">
<script>
	var today = new Date();
	var nowdateYear=today.getYear();
</script>
<style>
td{
	FONT-SIZE: 9pt;
}
</style>
<form method="POST" name="report" action="" target=_blank onsubmit="return check();">
<input type="hidden" value="" name=reportViewYear>
<input type="hidden" value="" name=reportViewMonth>
<input type="hidden" value="<%=PubFunc.getDateStr(al)%>" name=build_date>
<input type="hidden" value="月报" name=report_type>
<input type="hidden" value="本局" name=report_extent>
<input type="hidden" value="<%=userModel.getAreaCoding()%>" name=SourceReportDJJG>
<input type="hidden" value="<%=userModel.getAreaCoding()%>" name=reportDJJG>
<center>
<table  border="0" width="98%" >
  <tr>
	<td><img src="<%=request.getContextPath()%>/images/bg3.gif" border="0" >&nbsp;<font class="textBusinessTitle">报表生成</font></td>
  </tr>
</table>
<table width="98%" border="1" class="businessTable00">
 <tr>
    <td width="60%" colspan="2" class="businessTdTitle00" >报表生成</td>
  </tr>
  <tr>
    <td width="50%" class="businessTd00">
    <table border="0" width="95%">
      <tr>
        <td width="100%">
    <fieldset style="padding: 2;" >
    <legend><b>报表列表</b></legend>
    <select name="page_code" size="10"  style="WIDTH: 98%;">
				 <%
                for (int i=0;i<pageDefineShowList.size();i++) {
			    	pageDefineModel = (PageDefineModel)pageDefineShowList.get(i);
				 %><option value=<%=pageDefineModel.getCode()%>><%=pageDefineModel.getExplain()%></option><%
                 }%>
				 </select></fieldset>
				 </td>
      </tr>
    </table>
				 </td>
    <td class="businessTd00"><center>
    <table border="0" width="100%" height="100%">
      <tr>
        <td width="100%" height="100%">
<fieldset style="padding: 2; height:100%">
<legend><b>填表时间</b></legend>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="95%" id="AutoNumber2" height="103" >
  <tr>
    <td width="20%" align="right" height="40">年度:</td>
    <td width="80%" height="40">
    <select name=selectYear onchange="changeYear(document.all.selectYear)">
    <option value=1990>1990</option>
    <option value=1991>1991</option>
    <option value=1992>1992</option>
    <option value=1993>1993</option>
    <option value=1994>1994</option>
    <option value=1995>1995</option>
    <option value=1996>1996</option>
    <option value=1997>1997</option>
    <option value=1998>1998</option>
    <option value=1999>1999</option>
    <option value=2000>2000</option>
    <option value=2001>2001</option>
    <option value=2002>2002</option>
    <option value=2003>2003</option>
    <option value=2004>2004</option>
    <option value=2005>2005</option>
    <option value=2006>2006</option>
    <option value=2007>2007</option>
    <option value=2008>2008</option>
    <option value=2009>2009</option>
    <option value=2010>2010</option>
    <option value=2011>2011</option>
    <option value=2012>2012</option>
    <option value=2013>2013</option>
    <option value=2014>2014</option>
    <option value=2015>2015</option>
    <option value=2016>2016</option>
    <option value=2017>2017</option>
    <option value=2018>2018</option>
    <option value=2019>2019</option>
    <option value=2020>2020</option>
    </select>
  <script>
  	document.all.selectYear.value=nowdateYear;
    </script>
    </td>
  </tr>
  <tr>
    <td width="20%" align="right" height="32">自:</td>
    <td width="80%" height="32">
    <input type="text" readonly name="tempReportFrom" value="" size="15">
    	&nbsp;
  		<IMG alt="" id=IMG1 src="<%=request.getContextPath()%>/images/datetime.gif" 
  			title=点击这儿输入日期 style="cursor:hand"   LANGUAGE=javascript 
  				onclick="return showDateDialog(document.all.tempReportFrom)">
    
    </td>
  </tr>
  <tr>
    <td width="20%" align="right" height="31">至:</td>
    <td width="80%" height="31">
    <input type="text" readonly name="tempReportTo" value="" size="15">
    &nbsp;
  		<IMG alt="" id=IMG1 src="<%=request.getContextPath()%>/images/datetime.gif" 
  			title=点击这儿输入日期 style="cursor:hand"   LANGUAGE=javascript 
  				onclick="return showDateDialog(document.all.tempReportTo)">
    </td>
  </tr>
</table>
</fieldset>
 </td>
      </tr>
    </table>
</td>
  </tr>
  <tr>
    <td width="60%" class="businessTd01" valign="top">
    <table border="0" width="95%" id="AutoNumber5">
      <tr>
        <td width="100%">
    <fieldset style="padding: 2">
    <legend><b>填表设置</b></legend>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4">
      <tr>
        <td width="100%" colspan="4">填表单位:</td>
      </tr>
      <tr>
        <td width="100%" colspan="4">
        <input type="text" name="tianbiaodanwei" style="WIDTH: 98%; POSITION: relative" value="<%=userModel.getEdepartment()%>" size="20" ></td>
      </tr>
      <tr>
        <td width="100%" colspan="4">填表备注:</td>
      </tr>
      <tr>
        <td width="100%" colspan="4">
                        <textarea rows="3" name="report_remark" style="WIDTH: 98%; POSITION: relative" cols="20"></textarea></td>
      </tr>
      <tr>
        <td width="16%" align="right">填表人:</td>
        <td width="34%"><input type="text" name="tianbiaoren" style="WIDTH: 98%; POSITION: relative" value="<%=userModel==null?"":PubFunc.toShow(userModel.getEname())%>" size="20" ></td>
        <td width="13%">
        <p align="right">负责人:</td>
        <td width="37%"><input type="text" name="fuzeren" style="WIDTH: 98%; POSITION: relative" value="<%=userModel==null?"":PubFunc.toShow(userModel.getEname())%>" size="20" ></td>
      </tr>
      <tr>
        <td width="20%" align="right">报出日期:</td>
        <td width="80%" colspan="3">
        <input type="text" readonly name="baochuriqi" style="WIDTH: 88%; POSITION: relative" 
        	value=<%=PubFunc.getDateStr(al)%> size="18">&nbsp;
        		<IMG alt="" id=IMG1 src="<%=request.getContextPath()%>/images/datetime.gif" title=点击这儿输入日期 style="cursor:hand"   LANGUAGE=javascript onclick="return showDateDialog(document.all.baochuriqi)">
        </td>
      </tr>
    </table>
    </fieldset><fieldset style="padding: 2">
    <legend><b>报表范围</b></legend>

  <input type="radio" value="本局" checked name="fanwei" onclick="changefanwei(1)">本局报表&nbsp;
  <input type="radio" value="全局"  name="fanwei" onclick="changefanwei(2)">全局汇总报表&nbsp;
  <input type="radio" value="其他局"  name="fanwei" onclick="changefanwei(3)"> 其它局&nbsp;<br>
  <select name=selectOtherDJJG onchange="changeOtherDJJG()" style="width:260" disabled>
  <%for(int i=0;i<reportDJJGList.size();i++){
  ArrayList tempList=(ArrayList)reportDJJGList.get(i);
  %>
    <option value="<%=tempList.get(1)%>"><%=tempList.get(1)%>&nbsp;&nbsp;<%=tempList.get(0)%></option>
   <%}%>
  </select>
  </fieldset>

    </td>
      </tr>
    </table>
    </td>
    <td class="businessTd01" valign="top">
    <center><table border="0"  width="100%" >
      <tr>
        <td width="100%"><fieldset style="padding: 2">
    <legend><b>报表期别</b></legend>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="95%" id="AutoNumber3">
      <tr>
        <td width="100%">年报:</td>
      </tr>
      <tr>
        <td width="100%">
	<input type="radio" value="VR1" name="R1" onclick="changeDate('年报','-01-01','-12-31')">全年&nbsp;
        <input type="radio" name="R1" value="V29" onclick="changeDate('半年报','-01-01','-06-30')">上半年&nbsp;
        <input type="radio" name="R1" value="V30" onclick="changeDate('半年报','-07-01','-12-31')">下半年</td>
      </tr>
      <tr>
        <td width="100%"><br>季报:</td>
      </tr>
      <tr>
        <td width="100%">
        <input type="radio" value="VR1" name="R1" onclick="changeDate('季报','-01-01','-03-31')">第一季度&nbsp;
        <input type="radio" name="R1" value="V33" onclick="changeDate('季报','-04-01','-06-30')">第二季度<br>
        <input type="radio" name="R1" value="V34" onclick="changeDate('季报','-07-01','-09-30')">第三季度&nbsp;
        <input type="radio" name="R1" value="V35" onclick="changeDate('季报','-10-01','-12-31')">第四季度</td>
      </tr>
      <tr>
        <td width="100%"><br>月报:</td>
      </tr>
      <tr>
        <td width="100%">
        <input type="radio" value="R1" checked name="R1" onclick="changeDate('月报','-01-01','-01-31')">一月
	<input type="radio" name="R1" value="V45" onclick="changeDate('月报','-02-01','-02-29')">二月
	<input type="radio" name="R1" value="V46" onclick="changeDate('月报','-03-01','-03-31')">三月
	<input type="radio" name="R1" value="V47" onclick="changeDate('月报','-04-01','-04-30')">四月<br>
	<input type="radio" name="R1" value="V48" onclick="changeDate('月报','-05-01','-05-31')">五月
	<input type="radio" name="R1" value="V49" onclick="changeDate('月报','-06-01','-06-30')">六月
	<input type="radio" name="R1" value="V50" onclick="changeDate('月报','-07-01','-07-31')">七月
	<input type="radio" name="R1" value="V51" onclick="changeDate('月报','-08-01','-08-31')">八月<br>
	<input type="radio" name="R1" value="V52" onclick="changeDate('月报','-09-01','-09-30')">九月
	<input type="radio" name="R1" value="V53" onclick="changeDate('月报','-10-01','-10-31')">十月
	<input type="radio" name="R1" value="V54" onclick="changeDate('月报','-11-01','-11-30')">十一月<input type="radio" name="R1" value="V55" onclick="changeDate('月报','-12-01','-12-31')">十二月</td>
      </tr>
    </table>
    </fieldset>
    </td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
<input type="submit" value="统计报表" name="B1" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<input type="button" value="重新填写" name="B1" onclick="restDate()" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
</FORM>
<script>
	//初始化
	document.all.tempReportFrom.value =nowdateYear+"-01-01";
	document.all.tempReportTo.value = nowdateYear+"-01-31";

//选择日期
function changeDate(reportType,dateFrom,dateTo){
	try{
    		document.all.tempReportFrom.value =nowdateYear+dateFrom;
		document.all.tempReportTo.value = nowdateYear+dateTo;
		document.all.report_type.value =reportType;
	}catch(Exception){
		alert("错误操作!");
	}
}

//选择其他局
function changeOtherDJJG(){
	document.all.reportDJJG.value=document.all.selectOtherDJJG.value;
}
function check(){
try{
	if(document.all.page_code.value==""){
		alert("请选择报表!");
		return false;
	}
	if(document.all.baochuriqi.value==""){
		alert("请选择报出日期!");
		document.all.baochuriqi.select();
		return false;
	}
	if(document.all.tempReportTo.value==""||document.all.tempReportFrom.value==""){
		alert("请选择填表期别!");
		return false;
	}
	document.all.reportViewYear.value=(document.all.tempReportTo.value).substring(0,4);
	document.all.reportViewMonth.value=(document.all.tempReportTo.value).substring(5,7);
	document.report.action="<%=request.getContextPath()%>/pageBuilderAction.do?action=5001&reportYWLX='<%=reportYWLX%>'&reportTo='"+document.all.tempReportTo.value+"'&reportFrom='"+document.all.tempReportFrom.value+"'";
	return true;

}catch(Exception){
	alert("错误操作!");
	return false;
}
}

function changeYear(xname){
	document.all.tempReportFrom.value =xname.value+"-01-01";
	document.all.tempReportTo.value = xname.value+"-01-31";
	nowdateYear=xname.value;
}
function restDate(){
	nowdateYear=today.getYear();
	document.all.tempReportFrom.value =nowdateYear+"-"+today.getMonth()+"-01";
	document.all.tempReportTo.value = nowdateYear+"-"+today.getMonth()+"-31";
	document.all.tianbiaoren.value = "";
	document.all.fuzeren.value = "";
	document.all.page_code.value = "";
}

function changefanwei(selectNum){
	//本局
	if(selectNum==1){
		document.all.report_extent.value="本局";
		document.all.selectOtherDJJG.disabled=true;
		document.all.reportDJJG.value=document.all.SourceReportDJJG.value;
	}else
	//全局
	if(selectNum==2){
		document.all.report_extent.value="全局";
		document.all.selectOtherDJJG.disabled=true;
		//省局:看前2位 370000
		if((document.all.SourceReportDJJG.value).substring(2,6)=="0000"){
			document.all.reportDJJG.value=(document.all.SourceReportDJJG.value).substring(0,2)+"%";
		}else
		//市局:看前4位
		if((document.all.SourceReportDJJG.value).substring(4,6)=="00"){
			document.all.reportDJJG.value=(document.all.SourceReportDJJG.value).substring(0,4)+"%";
		}else{
			//其他:不变
			document.all.reportDJJG.value=document.all.SourceReportDJJG.value;
		}
	}else
	//其他局 :选择其他局范围是包括当前的下级所有单位
	if(selectNum==3){
		document.all.report_extent.value="其他局("+document.all.selectOtherDJJG.value+")";
		document.all.selectOtherDJJG.disabled=false;
		document.all.reportDJJG.value=document.all.selectOtherDJJG.value;
	}else{
		document.all.report_extent.value="本局";
	}
	alert(document.all.report_extent.value);
	alert(document.all.reportDJJG.value);
}
</script>
</body>
</html>
<%}catch(Exception ex){
	Debug.println("reportBuild.jsp exception:"+ex.getMessage());
}%>

⌨️ 快捷键说明

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