auditedorg.jsp

来自「java jsp教程」· JSP 代码 · 共 129 行

JSP
129
字号
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.util.*"%>
<%@ page import="com.icss.cnpc.base.vo.TexorginfoVO" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%String contextPath = request.getContextPath();%>
<%List exOrgList = (List) request.getAttribute("exOrgList");%>
<HTML>
<HEAD>
<TITLE>选择被审计单位</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv='expires' content='0'>
<meta http-equiv="Pragma" content="no-cache">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<link rel="stylesheet" type="text/css" href="/resourceone/include/style.css">
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function _init()
{     
     var a = window.dialogArguments; 
     var unitCode = a.unitCode;
     if(unitCode != ""){
       var unitCodeArray = unitCode.split(",");
       for(var i=0; i<unitCodeArray.length; i++){
        for(var j=0; j<document.frm.auditedUnit.options.length; j++){
          if(unitCodeArray[i] == document.frm.auditedUnit.options[j].value){
            document.frm.auditedUnit.options[j].selected = true;
            break;
          }
        }
       }          
     }
}

function _ok()
{       var a = window.dialogArguments;
        var b = new Object();        
        var unitCode = "";
        var unitName = "";
        var selected  =document.frm.auditedUnit;
        for(var i=0; i<selected.options.length; i++){
          if(selected.options[i].selected == true){
            unitCode += "," + selected.options[i].value; 
            unitName += "," + selected.options[i].innerText; 
          }        
        }
        if(unitCode != ""){
          unitCode = unitCode.substring(1);
        }else{
          unitCode = a.unitCode;
        }
        if(unitName != ""){
          unitName = unitName.substring(1);
        }else{
          unitName = a.unitName;
        }
        b.unitCode = unitCode;
        b.unitName = unitName;
        window.returnValue = b;
        window.close();
}

function cancleChange()
{
	var c = window.dialogArguments;
	window.returnValue = c;
	window.close();
}
//-->
</SCRIPT>
<body  topmargin="0"   class = "color1" >
<div align="center">
<form name="frm">
<table align="center" width="300" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
  <tr><td height="10" align="center"></td></tr>
  <tr>
    <td align="center" width="300" valign="top">
      <table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" >
        <tr>
          <td bgcolor="white" align="center">
            <table align="center" width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#666666">
              <tr>
                <td align="center" width="100%" height="25" bgcolor="#eeeeee" >
                  <div align="center"><font color="#000000">选择被审计单位</font></div>
                </td>
              </tr>
              <tr>
              <td align="center">
              <br>
               <select name="auditedUnit" size=15 style="width:180" multiple class="slect1">
               <%if(exOrgList != null && exOrgList.size() != 0){
                 for(int i=0; i<exOrgList.size();i++){
                 TexorginfoVO vo = (TexorginfoVO)exOrgList.get(i);
               %>               
                <option value="<%=vo.getUnitcode()%>"><%=vo.getUnitname()%></option>
                <%
                 }
               }
                %>
              </select>
              <br> &nbsp;   
              </td>
              </tr>
              
            </table>
          </td>
        </tr>         
      </table>
    </td>
  </tr>
  <tr><td height="50" align="center">
  <img src="/resourceone/images/conform.gif"  onclick="_ok()" style="cursor:hand;">
  <img src="/resourceone/images/cancel.gif"  onclick="cancleChange()" style="cursor:hand;">
  </td></tr>
</table>
</form>
</div>
<SCRIPT LANGUAGE=javascript>
<!--
_init()
//-->
</SCRIPT>
</body>
</html>

⌨️ 快捷键说明

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