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

📄 bssinter8.java

📁 电信的网厅的整站代码
💻 JAVA
字号:
package com.doone.fj1w.fjmgr.order;

import java.io.IOException;
import java.util.Hashtable;

import com.doone.iossp.EMessage;
import com.doone.iossp.FormBody;
import com.doone.data.DataTable; 

public class BssInter8 {

    public BssInter8() {
        super();
        // TODO Auto-generated constructor stub
    }
    
    /**
     * <code>密码验证</code>
     * @param account
     * @param password
     * @param citycode
     * @return
     */
    static public boolean callWebAuthServPwd(String account,String password,String citycode){
        
        try {
            Hashtable ht = new Hashtable();
            ht.put("SERV_ACC_NBRiSERV_ACC_NBR",account);
            ht.put("SO_PWDiPASSWORD",password);
            String methodname = "WebAuthServPwd";
            String result = CallTuxdoInter.callTuxdo(ht,
                                            CallTuxdoInter.BSS_SERVICENAME,
                                            citycode,
                                            methodname);
            FormBody _formBody = new FormBody();
            _formBody.fromXML(result);
            String flag = _formBody.getString("AuthenticateRusult").toString(); 
            
            return flag != null && flag.equals("1")?true:false;
        }
        catch (Exception e) {
            // TODO: handle exception
        }
        return false;
    }
    
    /**
     * <code>程控列表</code>
     * @param citycode
     * @return
     *        PRODiPROD_ID  程控功能代码  String  20
     *        PRODiPROD_NAME  程控功能名称  String  20
     *        PROD_TYPEiSERV_TYPE_ID  产品类型    String  3
     */
    static public DataTable callWebGetAllNwk(String citycode)
    throws IOException,RuntimeException{
     
            String methodname = "WebGetAllNwk";

            Hashtable ht = new Hashtable();
            ht.put("OPER_LOG_ID","QZ00015822");
            ht.put("STAFF_ID","QZ02900");
            ht.put("AREA_ID","33");
            ht.put("SERIAL1","20030318200330342682032");
            ht.put("SERIAL2","1");
            ht.put("SERIAL3","1");
            ht.put("MODULE_ID","1");
            ht.put("MENU_ID","1");
            ht.put("OPER_CODE","A");
            
            String result = CallTuxdoInter.callTuxdo(ht,
                                                     CallTuxdoInter.BSS_SERVICENAME,
                                                     citycode,
                                                     methodname);
            EMessage msg = new EMessage(result);
            if("".equals(msg.getBody())) return null;

            return msg.getDataTableBody();
  
    }
    
    /**
     * <code>
     *   判断此新装IPTV所选地址是否合理
     * </code>
     * 
     * @param ADDRiSUB_ADDR_ID	分段地址编码
     * @return
     *       TEMP_STS_WORDS1	业务是否允许办理 0:不允许 1:允许			
     *       ERROR_INFO	        不允许办理原因					
     *       				
     *       服务说明: 
     *       ((ServTypeId = '44') and (SoTypeId = '1')) or ((ServTypeId = '48') and (SoTypeId = '1'))
     *       or ((ServTypeId = '44') and (SoTypeId = '330'))在选择地址完后的时候需要调用
     *       
     */
    static public DataTable callWebCheckIPTV(String addr_id,String citycode)
    throws IOException,RuntimeException{
     
            String methodname = "WebCheckIPTV";
            Hashtable ht = new Hashtable();
            ht.put("ADDRiSUB_ADDR_ID",addr_id);
           
            String result = CallTuxdoInter.callTuxdo(ht,
                                                     CallTuxdoInter.BSS_SERVICENAME,
                                                     citycode,
                                                     methodname);
            EMessage msg = new EMessage(result);
            if("".equals(msg.getBody())) return null;

            return msg.getDataTableBody();
  
    }
    
    /**
     * <code>
     *   查询数据接入方式
     * </code>
     * 
     * @param citycode
     * @return
     *       DATA_LINE_ACCEIDATA_LINE_ACC_ID	数据接入方式ID		
     *       DATA_LINE_ACCESSIACC_NAME	        数据接入方式名称					
     *       				
     *       
     */
    static public DataTable callWebQryDataLine(String citycode)
    throws IOException,RuntimeException{
    	String methodname = "WebQryDataLine";
    	Hashtable ht = new Hashtable();
    	
    	String result = CallTuxdoInter.callTuxdo(ht,
    			CallTuxdoInter.BSS_SERVICENAME,
    			citycode,
    			methodname);
    	EMessage msg = new EMessage(result);
    	if("".equals(msg.getBody())) return null;
    	
    	return msg.getDataTableBody();
    	
    }
    
    /**
     * <code>
     *   查询数据接入方式
     * </code>
     * 
     * @param citycode
     * @return
     *       DATA_TERM_ACCESSITERM_ACC_ID	终端接入方式ID	
     *       DATA_TERM_ACCESSIACC_NAME	    终端接入方式名称					
     *       				
     *       
     */
    static public DataTable callWebQryTerm(String citycode)
    throws IOException,RuntimeException{
    	String methodname = "WebQryTerm";
    	Hashtable ht = new Hashtable();
    	
    	String result = CallTuxdoInter.callTuxdo(ht,
    			CallTuxdoInter.BSS_SERVICENAME,
    			citycode,
    			methodname);
    	EMessage msg = new EMessage(result);
    	if("".equals(msg.getBody())) return null;
    	
    	return msg.getDataTableBody();
    	
    }
    
    /**
     * <code>
     *   查询数据接入方式
     * </code>
     * 
     * @param citycode
     * @return
     *       ACC_PURPOSEIACC_PURPOSE_ID	  入网目的ID	
     *       ACC_PURPOSEINAME	          入网目的名称					
     *       				
     *       
     */
    static public DataTable callWebQryAccPURP(String citycode)
    throws IOException,RuntimeException{
    	String methodname = "WebQryAccPURP";
    	Hashtable ht = new Hashtable();
    	
    	String result = CallTuxdoInter.callTuxdo(ht,
    			CallTuxdoInter.BSS_SERVICENAME,
    			citycode,
    			methodname);
    	EMessage msg = new EMessage(result);
    	if("".equals(msg.getBody())) return null;
    	
    	return msg.getDataTableBody();
    	
    }
    
}

⌨️ 快捷键说明

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