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

📄 select_device.jsp

📁 电信的网厅的整站代码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
      var inputs = outSideRole.selectedRow.getElementsByTagName("INPUT");
      if ( inputs != null && inputs.length > 0 && inputs[0].name=="PRODUCTID") {
          inputs[0].checked = ! inputs[0].checked;
          fn_checkClick(inputs[0]);
      }
  }
  
  function fn_checkClick(that){
      if ( that == null ) return ;
      
      if ( that.checked ) {
          fn_selectrow(that);
      }
      else {
          fn_unselectrow(that);
      }
  }
  
  function getFeeBySo(productId){
      try {
        var xmlHttp = new XMLHttpClient("<%= request.getContextPath()%>/XmlHttpService");
        xmlHttp.append("STAND_FEEiAREA_ID","<%= area_Id%>");
        xmlHttp.append("STAND_FEEiPROD_ID",productId);
        xmlHttp.append("STAND_FEEiACTION_TYPE","A");
        xmlHttp.append("STAND_FEEiFEE_TYPE_ID","8");
        xmlHttp.append("citycode","<%= cityCode%>");

        var str = xmlHttp.submitAsString("OrderService","getBSSFeeBySo");
        
        if ( str.substr(0,6) == new String("xml-->") ) {
        	try {
        		var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
        		xmlDoc.loadXML(str.substr(6));
                
        		if (xmlDoc.parseError.errorCode != 0) {
        			var myErr = xmlDoc.parseError;
        			throw myErr;
        		} else {
        			var root = xmlDoc.documentElement;
        			var oList = root.selectNodes("//body");
        			if ( oList.length != 1 ) throw "返回格式不正确。"
        			
        			var xmlStr = oList.item(i).text;
        			xmlDoc.loadXML(xmlStr);
        			
        			oList = xmlDoc.documentElement.selectNodes("//BBSFREEBYSO/STAND_FEEIPRICE");
        			if ( oList.length > 0 ) {
        			    return oList.item(0).text;
        			}
        		}
        	} catch(ex) {}
        }
        else {
        	alert("加载价格信息失败。");
        }
      }
      catch(ex){}
      
      return "";
  
  }
  
  function fuc_event_privious_page(){
    window.location.href="remote_control.jsp";
  }
  
  function fuc_event_next_page(){
    window.location.href="select_detail.jsp";
  }
  
</script>

<body onload="">
<form action="" method="post" name="form1">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
    class="OuterTable">
    <tr class="OuterHead">
        <td width="100%" class="title_td" align="left"><span
            id="ItemTitle"><font face="webdings">8</font>&nbsp;<strong>选择终端设备</strong></span></td>
    </tr>
    <tr>
        <td valign="top" class="InnerMain">
        <table width="100%" border="0"
                    class="InnerTable" id="outSideRole"
                    cellspacing="0" cellpadding="1"
                    style="behavior:url(../../../Resource/table.htc)"
                    DefaultClass="DefaltRow"
                    keyName="key"
                    SelectedClass="SelectedRow"
                    multiple="true"
                    onselected=""
                    ondblclick="fn_dblselect();"
                    onunselected="">
            <thead>
                <tr>
                    <td width="3%"  class="title_td" align="center" nowrap><strong>选择</strong></td>
                    <td width="20%" class="title_td" align="center" nowrap><strong>设备名称</strong></td>
                    <td width="5%"  class="title_td" align="center" nowrap><strong>价格</strong></td>
                    <td width="15%" class="title_td" align="center" nowrap><strong>颜色</strong></td>
                    <td width="14%" class="title_td" align="center" nowrap><strong>维护级别</strong></td>
                    <td width="15%" class="title_td" align="center" nowrap><strong>产品归属</strong></td>
                    <td width="14%" class="title_td" align="center" nowrap><strong>规称协议</strong></td>
                    <td width="14%" class="title_td" align="center" nowrap><strong>安装类型</strong></td>
                </tr>
            </thead>
            <tbody style="background-color: white;">
                <%
                if(device_dt != null && device_dt.getRows().getCount() > 0){
			        String checked[] = new String[device_dt.getRows().getCount()];
			        for(int i=0;i<device_dt.getRows().getCount();i++){
			            DataRow dr = device_dt.getRow(i);
			            String productName = dr.getString("PRODiPROD_NAME");
			            String productId = dr.getString("PRODiPROD_ID");
			            
			            //查看已经选择过的设备
			            if(select_device_dt != null){
			               LinkTerminalBean _linkTermi = new LinkTerminalBean();
			               _linkTermi.parseDataTable(select_device_dt);
			               if(productId.equals(_linkTermi.getSERV_ACC_TERMiPROD_ID())){
			                  checked[i] = "checked=\"checked\"";
			               }
			            }   
                    %>
	                <tr key="<%= productId%>">
	                    <td class="body_td" nowrap>
	                       <input type="checkbox" 
	                              onclick="fn_checkClick(this);" 
	                              name="PRODUCTID" 
	                              value="<%=productId%>"
	                              title="<%=productName%>" 
	                              <%=checked[i]%>/>
	                    </td>
	                    <td class="body_td" nowrap><%=productName%></td>
	                    <td class="body_td" nowrap>&nbsp;</td>
	                    <td class="body_td" nowrap>&nbsp;</td>
	                    <td class="body_td" nowrap>&nbsp;</td>
	                    <td class="body_td" nowrap>&nbsp;</td>
	                    <td class="body_td" nowrap>&nbsp;</td>
	                    <td class="body_td" nowrap>&nbsp;</td>
	                </tr>
				  <%}
				}%>
            </tbody>
        </table>
        </td>
    </tr>
    <tr class="OuterFoot">
      <td class="body_td">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td width="70%"><font color="red">提示:双击可以选中一行!</font></td>
                <td align="right" width="30%">
                <input type="button" 
                       name="cancel" 
                       class="button" 
                       style="width:80px" 
                       value="上一步"
                       onclick="fuc_event_privious_page();">
                       &nbsp;&nbsp; 
	                <%
				    if(_flowEngie.getStepSN() == ExtraBssParameter.STEP_14){
				     %>
                     <input type="button" 
                       name="Submit" 
                       class="button" 
                       style="width:80px"
                       onclick="return fuc_event_next_page();" 
                       value="下一步"> 
                    <%
				    }else{%>
                     <input type="button" 
                       name="Submit" 
                       class="button" 
                       style="width:80px"
                       onclick="return nextevent();" 
                       value="下一步"> 
                    <%}%>
                </td>
            </tr>
        </table>
      </td>
    </tr>
</table>
<div id="select_div" style="display:none;" title="以面的内容主要用于预先加载相应的Select数据。">
    <!--修改下面下接选择框的textFieldName和valueFieldName属性-->
    <custom:HtmlSelect style="width: 100%;" styleId="COLOR_LOAD" name="COLOR_LOAD" textFieldName="COLORNAME" valueFieldName="COLORCODE" dataSource="color_dt" disabled="true">
        <custom:HtmlOption value="-1">选择颜色</custom:HtmlOption>
    </custom:HtmlSelect>
    <custom:HtmlSelect style="width: 100%" styleId="SERVICE_LOAD" name="SERVICE_LOAD" textFieldName="SP_STATUSiSTS_WORDS" valueFieldName="SP_STATUSiSTS_ID" dataSource="service_dt" disabled="true">
        <custom:HtmlOption value="-1">选择级别</custom:HtmlOption>
    </custom:HtmlSelect>
    <custom:HtmlSelect style="width: 100%" styleId="PRODATTACH_LOAD" name="PRODATTACH_LOAD" textFieldName="SP_STATUSiSTS_WORDS" valueFieldName="SP_STATUSiSTS_ID" dataSource="prodattach_dt" disabled="true">
        <custom:HtmlOption value="-1">选择归属</custom:HtmlOption>
    </custom:HtmlSelect>
    <custom:HtmlSelect style="width: 100%" styleId="RULEPROTOCAL_LOAD" name="RULEPROTOCAL_LOAD" textFieldName="RULEPROTOCALNAME" valueFieldName="RULEPROTOCALCODE" dataSource="ruleprotocal_dt" disabled="true">
        <custom:HtmlOption value="-1">选择协议</custom:HtmlOption>
    </custom:HtmlSelect>
    <custom:HtmlSelect style="width: 100%" styleId="INSTALLTYPE_LOAD" name="INSTALLTYPE_LOAD" textFieldName="INSTALLTYPENAME" valueFieldName="INSTALLTYPECODE" dataSource="installtype_dt" disabled="true">
        <custom:HtmlOption value="-1">选择类型</custom:HtmlOption>
    </custom:HtmlSelect>
</div>
</form>
</body>
</html>

⌨️ 快捷键说明

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