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

📄 remote_control_trans.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@page contentType="text/html;charset=GBK"%>

<%@ page import="com.doone.fj1w.fjmgr.order.CommonMethod"%>
<%@ 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.SelectNbrBean"%>
<%@page import="com.doone.fj1w.fjmgr.order.Bss_infoEntity.RemoteControlBean"%>

<%
		  /**程控功能*/
		  request.setCharacterEncoding("GBK");
		  
		  FlowsEngie _flowEngie  = (FlowsEngie)session.getAttribute("TF_BSSENTITY");
		  String citycode = (String)session.getAttribute("CUST_CITY_ID");
		  com.doone.data.DataTable _dt = null;
		  
		  /**初始化*/
		  String init = request.getParameter("init");
		  if(init != null && !init.equals("")){
		     %>
		      for(i=document.all.remotecon_id.options.length;i>0-1;i--)
		          document.all.remotecon_id.options[i]=null;
		     <%
		     try{
		       _dt = com.doone.fj1w.fjmgr.order.BssInter8.callWebGetAllNwk(citycode);
		     }catch(Exception ex){}
		     
		     if(_dt == null){
		     %>
		       alert("程控列表获取失败。");
		     <%
		     return;
		     }
		     
		     for(int i=0;i<_dt.getRows().getCount();i++){
		       %>
		        tpt = new Option();  
		        tpt.text ="<%=_dt.getRow(i).getString("PRODIPROD_NAME")%>";
		        tpt.value ="<%=_dt.getRow(i).getString("PRODiPROD_ID")%>";
		        document.all.remotecon_id.options.add(tpt); 
		       <%
		     }
		     
		     /**********************获取程控列表*******************************/
		     
		     if(_flowEngie.getRecordIDS(ExtraBssParameter.NP_REMOTE_LENGTH_PT) != null){
		        //为管理平台审核过的程控功能
		        
		        int length = 0;
		         try{
		            length = Integer.parseInt((String)
		                     _flowEngie.getRecordIDS(ExtraBssParameter.NP_REMOTE_LENGTH_PT));
	             }catch(Exception ex){
	                length = 0;
	             }
	              
	             if(length == 0) return;
	             //管理平台所选程控
	       	     for(int i= 0; i < length ; i++ ){
	               //获取一条列表数据
	               if(_flowEngie.getRecordFrom(ExtraBssParameter.NP_REMOTE_TBL+i)!= null){
	                  RemoteControlBean _rcBean = new RemoteControlBean();
	                  try{
	                  _rcBean.parseDataTable(_flowEngie.getRecordFrom(ExtraBssParameter.NP_REMOTE_TBL+i));
	                  }catch(Exception ex){
	                    continue;
	                  }
	                  //放入脚本
	                  
	                  %>
	                   var text = '<%=_rcBean.getSO_NWKiPROD_NAME()%>';
	                   var values = '<%=_rcBean.getSO_NWKiPROD_ID()%>';
	                   var pass = '<%=_rcBean.getSO_NWKiPROD_PWD()%>';
	                   
					   var oRow = toresult_tbl.insertRow(toresult_tbl.rows.length);
					   var aRows = toresult_tbl.rows;
					   var aCells= oRow.cells;
					
					   var oCell1_1 = aRows(oRow.rowIndex).insertCell(aCells.length);
					   var oCell1_2 = aRows(oRow.rowIndex).insertCell(aCells.length);
					   var oCell1_3 = aRows(oRow.rowIndex).insertCell(aCells.length);
					   var oCell1_4 = aRows(oRow.rowIndex).insertCell(aCells.length);
					
					   oCell1_1.innerHTML="<input type='checkbox' title='还原' name='return_ckx'"+
					                      " />"+text+"<input type='hidden'"+
					                      " name='remotevalue_hdn' value="+values+" />"+
					                      "<input type='hidden' name='remotetext_hdn' value="+text+" />";
					   oCell1_2.innerHTML="<input type='password' name='remotepass_psd' style='width:100px' maxlength='4' />";
					   oCell1_3.innerHTML="<input type='text' name='money_text' style='width:100px' />";
					   oCell1_4.innerHTML="<input type='text' name='vfax_text' style='width:120px' />";
					  
					   var i = 0;
					   for(;
					       i < document.all.remotecon_id.options.length
					       && document.all.remotecon_id.options[i].value != values;
					       i++);

                       if(i < document.all.remotecon_id.options.length)  {
                          document.all.remotecon_id.remove(i);   
                         }
	                  <%
	                  
	               }
	               
	             }
		    
		     }else{
		      
		        //当为空时,说明是第一次进入,获取前台预选的程控功能
		       
		        String[] tempFun = CommonMethod.getRemoteList(String.valueOf(_flowEngie.getProdOrderId()));
		        if(tempFun != null ){
		           
		           for(int i = tempFun.length; --i >= 0;){
		              String[] fun_List = tempFun[i].split("~");
		           
		               %>
	                   var text = '<%=fun_List[0]%>';
	                   var values = '<%=fun_List[1]%>';
	                   var pass = '';
	                   
					   var oRow = toresult_tbl.insertRow(toresult_tbl.rows.length);
					   var aRows = toresult_tbl.rows;
					   var aCells= oRow.cells;
					
					   var oCell1_1 = aRows(oRow.rowIndex).insertCell(aCells.length);
					   var oCell1_2 = aRows(oRow.rowIndex).insertCell(aCells.length);
					   var oCell1_3 = aRows(oRow.rowIndex).insertCell(aCells.length);
					   var oCell1_4 = aRows(oRow.rowIndex).insertCell(aCells.length);
					
					   oCell1_1.innerHTML="<input type='checkbox' title='还原' name='return_ckx'"+
					                      " />"+text+"<input type='hidden'"+
					                      " name='remotevalue_hdn' value="+values+" />"+
					                      "<input type='hidden' name='remotetext_hdn' value="+text+" />";
					   oCell1_2.innerHTML="<input type='password' name='remotepass_psd' style='width:100px' maxlength='4' />";
					   oCell1_3.innerHTML="<input type='text' name='money_text' style='width:100px' />";
					   oCell1_4.innerHTML="<input type='text' name='vfax_text' style='width:120px' />";
					  
					   var i = 0;
					   for(;
					       i < document.all.remotecon_id.options.length
					       && document.all.remotecon_id.options[i].value != values;
					       i++);

                       if(i < document.all.remotecon_id.options.length)  {
                          document.all.remotecon_id.remove(i);   
                         }
	                  <%
		           }
		        
		        }
		      
		     }
		     /**********************获取程控列表完成*******************************/
		     
		    return;
		  }
		   
		  
		  
		  
		  /**提交**/
		   String p_name = request.getParameter("name");
		   String p_nbr  = request.getParameter("value");
		   String p_pass = request.getParameter("pass");
		  
		   if(p_nbr != null && !p_nbr.equals("")){
		      
		      String[] p_name_temp = p_name.split("~");
		      String[] p_nbr_temp  = p_nbr.split("~");
		      String[] p_pass_temp = p_pass.split("~");
		      
		      SelectNbrBean _selctNbr = new SelectNbrBean(); 
		      _selctNbr.parseDataTable(_flowEngie.getRecordFrom(ExtraBssParameter.NP_ABOUTTELE_TBL));
		      //预选号码
		      String     abouttel  = _selctNbr.getSERV_NBRiSERV_NBR_NAME();
		      
		     int length = p_nbr_temp.length;
		      
		     for(int i = 0 ; i < length; i++){
		      
		        RemoteControlBean _rcBean = new RemoteControlBean();
		        _rcBean.setSO_NWKiACC_NBR(abouttel);
		        _rcBean.setSO_NWKiACTION_TYPE("A");
		        _rcBean.setSO_NWKiPROD_ID(p_nbr_temp[i]);
		        _rcBean.setSO_NWKiPROD_NAME(p_name_temp[i]);
		        _rcBean.setSO_NWKiPROD_PWD(p_pass_temp[i].equals("一")?"":p_pass_temp[i]);
		        
		        //多条程控功能入多表
		        _flowEngie.setRecordFrom(_rcBean.toFormBody().toDataTable(),
						                 ExtraBssParameter.NP_REMOTE_TBL+i);
		      }
		      
		      if(length > 0){
		          /**选中程控功能的条数*/
			      _flowEngie.setRecordIDS(ExtraBssParameter.NP_REMOTE_LENGTH_PT,
			                              String.valueOf(length));
			      _flowEngie.setStepSN(ExtraBssParameter.STEP_6);
			      _flowEngie.save();
		      }
		     }
%>  
              window.location.href="select_device.jsp";

⌨️ 快捷键说明

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