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

📄 select_device.jsp

📁 电信的网厅的整站代码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@page contentType="text/html;charset=gb2312"%>

<%@ include file="verify.jsp"%>
<%@ page import="com.doone.uurm.WebAuth"%>
<%@ page import="com.doone.data.DataRow"%>
<%@ page import="com.doone.data.DataTable"%>
<%@ page import="com.doone.fj1w.fjmgr.order.BssInter2"%>
<%@ page import="com.doone.fj1w.fjmgr.order.BssInter4"%>
<%@ page import="com.doone.fj1w.fjmgr.order.BssParameter"%>
<%@ page import="com.doone.fj1w.fjmgr.order.BssReferCustBean"%>
<%@ page import="com.doone.fj1w.fjmgr.order.newphone.FlowsEngie"%>
<%@ page import="com.doone.fj1w.fjmgr.order.newphone.ExtraBssParameter"%>
<%@ page import="com.doone.fj1w.fjmgr.order.Bss_infoEntity.LinkTerminalBean"%>

<%@ taglib uri="/WEB-INF/curstom-tags.tld" prefix="custom" %>


<%request.setCharacterEncoding("gb2312");%>
<%
    String sPurvICode="NGB001001";
	WebAuth auth = WebAuth.getInstance(request);

    if ( ! auth.IsAuthed() ) {
	    out.write("<script language=\"javascript\">self.parent.location.replace(\"" + request.getContextPath() + "/view/login/login.jsp" + "\");</script>");
	    return;
    }
	else if ( ! auth.CheckPurv(sPurvICode) ) {
	    out.write("<script language=javascript src=\"../../../../common/script/RightForbidden.js\"></script>");
	    return;
	}
	
	/*取客户信息*/
	FlowsEngie _flowEngie  = (FlowsEngie)session.getAttribute("TF_BSSENTITY");
	BssReferCustBean _brCB = _flowEngie.getbssCustMess();                   

	String cityCode = _brCB.getCITYCODE(); //城市编号
	String area_Id  = _brCB.getCUSTiAREA_ID();//地区编码
	
	/*****init before detail*****/
	DataTable device_dt        = null;
	DataTable select_device_dt = null;
	if(_flowEngie.getRecordFrom(BssParameter.DEVICE_TABLE) != null){
	
	    device_dt        = _flowEngie.getRecordFrom(BssParameter.DEVICE_TABLE);
	    select_device_dt = _flowEngie.getRecordFrom(BssParameter.SELECT_DEVICE_TABLE);
	    
	}else{
	    device_dt = BssInter4.callWebQryProdType("1","1","PHONE","TERMINAL_DEVICE",area_Id,"",cityCode);
	    _flowEngie.setRecordFrom(device_dt,BssParameter.DEVICE_TABLE);
	    _flowEngie.save();
	
	}
	
	// TODO 完成所有实体表的数据获取。
	DataTable color_dt = null; // 将要添加该数据表,颜色选择表
	DataTable service_dt = BssInter2.callWebQrySPSTATUS("SO_ACC_TERM","MTN_GRADE",cityCode); //维护级别表
	DataTable prodAttach_dt = BssInter2.callWebQrySPSTATUS("SO_ACC_TERM","PROPERTY",cityCode); // 产品归属
	DataTable ruleProtocal_dt = null; // 归程协议
	DataTable installType_dt = null; // 安装类型
	
	if (color_dt != null) pageContext.setAttribute("color_dt",color_dt);
	if (service_dt != null) pageContext.setAttribute("service_dt",service_dt);
	if (prodAttach_dt != null) pageContext.setAttribute("prodattach_dt",prodAttach_dt);
	if (ruleProtocal_dt != null) pageContext.setAttribute("ruleProtocal_dt",ruleProtocal_dt);
	if (installType_dt != null) pageContext.setAttribute("installType_dt",installType_dt);
	
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../../common/style/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../../../common/script/ChangeStyle.js"></script>
<script language="JavaScript" src="../../../common/mainTool.js"></script>
<script language="JavaScript" src="../../../Resource/xmlhttpclient.js"></script>
<script id="saveInfo" language="javascript" src=""></script>

<title>终端设备</title>
</head>
<script language="JavaScript">
  
  function fuc_window_close(){ 
  }
  
  function nextevent(){
  
      var pel = document.getElementsByName("PRODUCTID");
      var ischeck  = "0";
      var id       = "?productId=";
      var name     = "&name=";
      var attachId = "&attachId=";
      var serivceId= "&serivceId=";
      
      for ( i=0; i< pel.length; i++){
          //只能选择一个终端设备
          if (pel(i).checked == true ) {
          
              var product = pel(i);
              ++ischeck;
              
              if(ischeck > 1){
               alert("终端设备只能选择一个!");
               return false;
              }
              
              id   += product.value;
              name += product.title;
              
	          var pel1 = document.getElementsByName("PRODATTACH");
		      for ( j=0; j< pel1.length; j++){
		          if (pel1(j).value == "-1" ) {
		              attachId = "";
		              alert("请选择产品归属!");
		              pel1(j).focus();
		              return false;
		          }
		          else{
		              attachId += pel1(j).value;
		              
		          }
		      }
		      var pel1 = document.getElementsByName("SERVICE");
		      for ( j=0; j< pel1.length; j++){
		          if (pel1(j).value == "-1" ) {
		              serivceId = "";
		              alert("请选择维护级别!");
		              pel1(j).focus();
		              return false;
		          }
		          else{
		              serivceId += pel1(j).value+"and";
		              
		          }
		      }
	      }
      }
      if(ischeck==0){
          alert("请选择终端设备!");
          return false;
      }
      
      var url = "select_device_trans.jsp";
          url += id;
          url += name;
          url += attachId;
          url += serivceId;
      
      saveInfo.src = url;
      
  }
  
  function fn_selectrow(that) {
      // 取价格信息。
      if ( that != null ) {
          var currRow = that;
          while ( currRow != null && currRow.tagName.toLowerCase() != "tr" ) {
              currRow = currRow.parentElement;
              }
          if ( currRow == null ) return ;

          var fee = getFeeBySo(that.value);
          if ( fee != "" ) currRow.cells(2).innerText = fee;
          
          var oColor = document.getElementById("COLOR_LOAD");
          var oService = document.getElementById("SERVICE_LOAD");
          var oProdAttach = document.getElementById("PRODATTACH_LOAD");
          var oRuleProtocal = document.getElementById("RULEPROTOCAL_LOAD");
          var oInstallType = document.getElementById("INSTALLTYPE_LOAD");
          
          if ( oColor != null ) switchRowToSelect(currRow.cells(3), oColor, "COLOR");
          if ( oService != null ) switchRowToSelect(currRow.cells(4), oService, "SERVICE");
          if ( oProdAttach != null ) switchRowToSelect(currRow.cells(5), oProdAttach, "PRODATTACH");
          if ( oRuleProtocal != null ) switchRowToSelect(currRow.cells(6), oRuleProtocal, "RULEPROTOCAL");
          if ( oInstallType != null ) switchRowToSelect(currRow.cells(7), oInstallType, "INSTALLTYPE");
      }
  }
  
  function switchRowToSelect(oTd, oSelect, sID) {
      oTd.innerHTML = "";
      var newSelect = oSelect.cloneNode(true);
      newSelect.id = sID;
      newSelect.disabled = false;
      oTd.appendChild(newSelect);
  }
  
  function fn_unselectrow(that) {
      if ( that != null ) {
          var currRow = that;
          while ( currRow != null && currRow.tagName.toLowerCase() != "tr" ) {
              currRow = currRow.parentElement;
             }
          if ( currRow == null ) return ;
          
          switchRowToText(currRow);
      }
  }
  
  function switchRowToText(oTr) {
      oTr.cells(3).innerHTML = "&nbsp;";
      oTr.cells(4).innerHTML = "&nbsp;";
      oTr.cells(5).innerHTML = "&nbsp;";
      oTr.cells(6).innerHTML = "&nbsp;";
      oTr.cells(7).innerHTML = "&nbsp;";
  }
  
  function fn_dblselect() {

⌨️ 快捷键说明

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