📄 queryyearcheckuplist.jsp
字号:
<input type="button" name="Submit1" value=" 年检信息 " title="年检信息" onclick="functionInstance(4,'stockmanID')" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'" style="color:red">
<%}%>
<%if("02".equals(yearcheckupSelect)){%>
<input type="hidden" name=businessMan value=""><input type="hidden" name=yearCheckupYear value="'<%=yearCheckupYear%>'">
<input type="button" name="Submit1" value=" 年检信息 " title="年检信息" onclick="functionInstance(4,'stockmanID')" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'" style="color:red">
<input type="button" name="Submit1" value="被驳回名单" title="年检被驳回名单" onclick="functionInstance(7,'stockmanID')" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<input type="button" name="Submit1" value=" 受理统计 " title="受理统计" onclick="functionInstance(8,'stockmanID')" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<input type="button" name="Submit1" value=" 受理查询 " title="受理查询" onclick="functionInstance(9,'stockmanID')" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<%}%>
<%if("03".equals(yearcheckupSelect)||"04".equals(yearcheckupSelect)||"07".equals(yearcheckupSelect)||"01".equals(yearcheckupSelect)){%>
<input type="button" name="Submit1" value="打印信封条" title="打印信封条" onclick="functionInstance(1,'stockmanID')" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<%}%>
<%if("03".equals(yearcheckupSelect)||"04".equals(yearcheckupSelect)||"07".equals(yearcheckupSelect)){%>
<input type="button" name="Submit1" value="选择项EXCEL输出" title="选择项EXCEL输出" onclick="functionInstance(12,'stockmanID')" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<%}%>
<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="functionInstance(2,'stockmanID')" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<input type="button" name="Submit1" value=" 关 闭 " title="关闭" onclick="parent.window.close();" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<script>
function changeItem(stockman,selectnum,xName,selectSN,selectBID,xnameV){
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;
document.all.selectItemName.value=xName;
document.all.selectSN.value=selectSN;
document.all.selectBID.value=selectBID;
document.all.selectItem.value=xnameV;
//选择企业
selectBussiness.innerHTML="<font class=textLeft12><b>您选择的企业是:<font color=red>"+document.all.selectItemName.value+"</font></b></font>";
}
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;
}
}
window.open("<%=request.getContextPath()%>/pageBuilderAction.do?action=<%=PageBuilderEvent.query_printSelectALL%>&pagePrintSelectAllFlag="+state,"","toolbar=no,resizable,scrollbars,dependent,width=300,height=160,top="+(screen.availHeight/2-160/2)+",left="+(screen.availWidth/2-300/2));
}
function functionInstance(id,stockman,nexpageNum){
var w = screen.availWidth-10;
var h = screen.availHeight-30;
if(id==null||id=="")return false;
//取消选择
var rowT=document.all(stockman);
var i=0;
var j=0;
var rowsNum=rowT.rows.length;
//打印信封条
if(id==1){
if(rowsNum==2){
if(rowT.rows[1].cells[0].children[0].checked){
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>));
theObj.value="1";
}else{
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>));
theObj.value="0";
}
}else{
for(i=1;i<rowsNum;i++){
if(rowT.rows[i].cells[0].children[0].checked){
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>+i-1));
theObj.value="1";
}else{
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>+i-1));
theObj.value="0";
}
}
}
document.forms[0].target="_blank";
document.forms[0].action.value="<%=PageBuilderEvent.query_unpassYearCheckupPrintMail%>";
document.forms[0].submit();
}else
//打印选项(保存Excel)glt
if(id==2){
var rowselectCheckItemT=document.all("selectCheckItem");
var j=0;
for(i=0;i<rowselectCheckItemT.rows[0].cells.length;i++){
j++;
if(rowselectCheckItemT.rows[0].cells[i].children[0].checked){
tempObject=eval("document.all.titleStr"+j);
tempObject.value="ON";
}else{
tempObject=eval("document.all.titleStr"+j);
tempObject.value="OFF";
}
}
if(rowsNum==2){
if(rowT.rows[1].cells[0].children[0].checked){
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>));
//alert("1"+theObj.name);
theObj.value="1";
}else{
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>));
//alert("2"+theObj.name);
theObj.value="0";
}
}else{
for(i=1;i<rowsNum;i++){
if(rowT.rows[i].cells[0].children[0].checked){
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>+i-1));
//alert("3"+theObj.name);
theObj.value="1";
}else{
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>+i-1));
//alert("4"+theObj.name);
theObj.value="0";
}
}
}
document.forms[0].target="_self";
document.forms[0].action.value="<%=PageBuilderEvent.query_yearCheckupSelectPrint%>";
document.forms[0].submit();
}else
//打印选项保存Excel
if(id==12){
var rowselectCheckItemT=document.all("selectCheckItem");
var j=0;
for(i=0;i<rowselectCheckItemT.rows[0].cells.length;i++){
j++;
if(rowselectCheckItemT.rows[0].cells[i].children[0].checked){
tempObject=eval("document.all.titleStr"+j);
tempObject.value="ON";
}else{
tempObject=eval("document.all.titleStr"+j);
tempObject.value="OFF";
}
}
if(rowsNum==2){
if(rowT.rows[1].cells[0].children[0].checked){
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>));
theObj.value="1";
}else{
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>));
theObj.value="0";
}
}else{
for(i=1;i<rowsNum;i++){
if(rowT.rows[i].cells[0].children[0].checked){
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>+i-1));
theObj.value="1";
}else{
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>+i-1));
theObj.value="0";
}
}
}
document.forms[0].target="_blank";
document.forms[0].action.value="<%=PageBuilderEvent.query_yearCheckupSelectPrintToExcel%>";
document.forms[0].submit();
}else
//企业现状态
if(id==3){
if(document.all.selectItem.value==""){
alert("请选择企业!");
return false;
}
window.open("<%=request.getContextPath()%>/pageBuilderAction.do?action=<%=PageBuilderEvent.query_defineFrame%>&actionTo=<%=PageBuilderEvent.query_defineList%>&BID="+document.all.selectBID.value+"&innerID="+document.all.selectItem.value,"","toolbar=no,resizable,scrollbars,dependent,width="+w+",height="+h+",top=0,left=0");
}else
//年检情况
if(id==4){
if(document.all.selectItem.value==""){
alert("请选择企业!");
return false;
}
var yearCheckupY="";
yearCheckupY=prompt("请输入年检年度:",'<%=tempdate%>');
if(yearCheckupY==null){
return false;
}else{
if((document.all.selectBID.value).length>2){
window.open("<%=request.getContextPath()%>/pageBuilderAction.do?action=<%=PageBuilderEvent.query_defineFrame%>&actionTo=<%=PageBuilderEvent.query_defineList%>&BID=07"+(document.all.selectBID.value).substring(2,(document.all.selectBID.value).length)+"&innerID="+document.all.selectItem.value+"&yearCheckupY="+yearCheckupY,"","toolbar=no,resizable,scrollbars,dependent,width="+w+",height="+h+",top=0,left=0");
}else{
alert("您选择企业的业务类型不正确!");
}
}
}else
//变更情况
if(id==5){
if(document.all.selectItem.value==""){
alert("请选择企业!");
return false;
}else{
window.open("<%=request.getContextPath()%>/pageBuilderAction.do?action=<%=PageBuilderEvent.query_change_list%>&SN="+document.all.selectSN.value+"&orderID="+document.all.selectItem.value+"&BID=03"+(document.all.selectBID.value).substring(2,(document.all.selectBID.value).length),"","toolbar=no,resizable,scrollbars,dependent,width="+w+",height="+h+",top=0,left=0");
}
}else
//翻页
if(id==10){
//如果为单行
if(rowsNum==2){
if(rowT.rows[1].cells[0].children[0].checked){
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>));
theObj.value="1";
}else{
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>));
theObj.value="0";
}
}else{
for(i=1;i<rowsNum;i++){
if(rowT.rows[i].cells[0].children[0].checked){
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>+i-1));
theObj.value="1";
}else{
var theObj = eval("document.forms[0].querySelectPrintItem" + (<%=(pageNum-1)*(Integer.parseInt(queryShowNum))%>+i-1));
theObj.value="0";
}
}
}
document.forms[0].target="_self";
document.forms[0].nowPageNum.value=nexpageNum;
document.forms[0].action.value="<%=PageBuilderEvent.query_yearCheckupList%>";
document.forms[0].submit();
}else
//被驳回名单
if(id==7){
document.forms[0].action.value="1002";
document.forms[0].page_code.value="query010";
document.forms[0].submit();
}else
//受理名单统计
if(id==8){
document.forms[0].action.value="1002";
document.forms[0].page_code.value="query011";
document.forms[0].submit();
}
//受理人统计
if(id==9){
document.forms[0].action.value="1002";
document.forms[0].page_code.value="query012";
var queryMan="";
queryMan=prompt("请输入受理人的工号:",document.forms[0].businessMan.value);
if(queryMan==null){
return false;
}else{
if(queryMan==""){
document.forms[0].businessMan.value="未知";
}else{
document.forms[0].businessMan.value=queryMan;
}
document.forms[0].submit();
}
}
}
//设置页面显示数量
function updatePageNUM(){
var queryShowNum="";
queryShowNum=prompt("请输入页面显示记录数量:",'<%=queryShowNum%>');
if(queryShowNum==null){
return false;
}else{
location="pageBuilderAction.do?action=<%=PageBuilderEvent.query_yearCheckupList%>&nowPageNum=<%=pageNum%>&queryShowNum="+queryShowNum+"&yearCheckupYear=<%=yearCheckupYear%>";
}
}
//刷新当前页
function refurbishPage(){
functionInstance(10,'stockmanID','<%=pageNum%>');
}
<%=tempStrSelect%>
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -