bssinter6.java

来自「电信的网厅的整站代码」· Java 代码 · 共 301 行

JAVA
301
字号
package com.doone.fj1w.fjmgr.order;

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

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

public class BssInter6 {

    public BssInter6() {
        super();
        // TODO Auto-generated constructor stub
    }
    
    /**
     * <p>
     *  通过分段地址编码,查询局向、业务接入点编码 
     * </p>
     * 
     * @param DEVICE_COVERAGEiSUB_ADDR_ID   覆盖地址    String
     * @param ACCESS_NODE_DEVICEiEXCH_ID  旧局向(可空)但要传  String
     * @param ACCESS_NODE_DEVICEiDEVICE_ID    旧接入点(可空)但要传 String
     * @param citycode
     * @return 
     *         EXCHiEXCH_ID 局向编码    
     *         ACCESS_INTERFACEiACCESS_ID  业务接点编码
     *
     * @throws IOException
     * @throws RuntimeException
     */
    static public DataTable callWebAccessBySub(String DEVICE_COVERAGEiSUB_ADDR_ID,
            String ACCESS_NODE_DEVICEiEXCH_ID,
            String ACCESS_NODE_DEVICEiDEVICE_ID,
            String citycode)
    throws IOException,RuntimeException{
        
        Hashtable ht = new Hashtable();
        ht.put("DEVICE_COVERAGEiSUB_ADDR_ID",DEVICE_COVERAGEiSUB_ADDR_ID);
        ht.put("ACCESS_NODE_DEVICEiEXCH_ID",ACCESS_NODE_DEVICEiEXCH_ID);
        ht.put("ACCESS_NODE_DEVICEiDEVICE_ID",ACCESS_NODE_DEVICEiDEVICE_ID);

        String methodname = "WebAccessBySub";
        String result = CallTuxdoInter.callTuxdo(ht,
                CallTuxdoInter.BSS_SERVICENAME,
                citycode,
                methodname);
        
        EMessage msg = new EMessage(result);
        if("".equals(msg.getBody())) return null;

        return msg.getDataTableBody();
    }

    /**
     * <p>
     *  通过局向编码选择的接入点
     * </p>
     * @param EXCHiEXCH_ID  局向编码    String
     * @param citycode
     * @return SO_ACCESSiACC_NODE_ID    接入点编码  
     * @throws IOException
     * @throws RuntimeException
     */
    static public DataTable callWebQryAccNode(String EXCHiEXCH_ID,
            String citycode)
    throws IOException,RuntimeException{
        Hashtable ht = new Hashtable();
        ht.put("EXCHiEXCH_ID",EXCHiEXCH_ID);
       
        String methodname = "WebQryAccNode";
        String result = CallTuxdoInter.callTuxdo(ht,
                CallTuxdoInter.BSS_SERVICENAME,
                citycode,
                methodname);
        EMessage msg = new EMessage(result);
        if("".equals(msg.getBody())) return null;

        return msg.getDataTableBody();
    }
    
    /**
     * <p>
     *  查询银行信息
     * </p>
     * @param citycode
     * @return 
     * BANK_BRANiBANK_ID    银行编码
     * BANK_BRANiAREA_ID   银行地区
     * BANK_BRANiBRAN_NAME 银行名称
     * BANK_BRANiBANK_TYPE 银行类型
     * 
     * @throws IOException
     * @throws RuntimeException
     */
    static public FormBody callWebQryBank(String citycode)
    throws IOException,RuntimeException{
        
        String methodname = "WebQryBank";
        String result = CallTuxdoInter.callTuxdo(null,
                CallTuxdoInter.BSS_SERVICENAME,
                citycode,
                methodname);
        FormBody fb = new FormBody();
        fb.fromXML(result);
        return fb;
    }
    
    /**
     * <p>
     *  查询付款方式 
     * </p>
     * @param citycode
     * @return
     *         PAY_METHODiPAY_METHOD_ID         付款方式编码
     *         PAY_METHODiPAY_METHOD_NAME          付款方式名称
     *         PAY_METHODiPAY_METHOD_SORT_ID   付款方式大类编码
     *         
     * @throws IOException
     * @throws RuntimeException
     */
    static public DataTable callWebQryPayMethod(String citycode)
    throws IOException,RuntimeException{
    	try {
    		String methodname = "WebQryPayMethod";
    		Hashtable ht = new Hashtable();
            ht.put("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();
    	}catch(Exception e) {
    		e.printStackTrace();
    		return null;
    	}
    }
    
    /**
     * 
     * @param PRODiPROD_ID  主产品编号
     * @param citycode
     * @return 
     *         PROT_DISC_TREEiTREE_LEVEL           节点层次
     *         SO_DISCT_PROTOCOLiPRO_MODEL_NODE    优惠协议id
     *         PROTOCOL_INFOiPROTOCOL_NAME         优惠协议名称
     *         SO_LINE_INFOiIS_NODE                父节点优惠协议ID
     *         SO_CHARGEiIS_DIVIDED                是否是叶子
     *         PROT_INFO_SYSiEFF_DATE              生效时间
     *         PROT_INFO_SYSiEXP_DATE              失效时间
     *         
     * @throws IOException
     * @throws RuntimeException
     */
    static public FormBody callWebQryDisctPro(String PRODiPROD_ID,
                                              String citycode)
    throws IOException,RuntimeException{
        Hashtable ht = new Hashtable();
        ht.put("PRODiPROD_ID",PRODiPROD_ID);
        
        String methodname = "WebQryDisctPro";
        String result = CallTuxdoInter.callTuxdo(ht,
                CallTuxdoInter.BSS_SERVICENAME,
                citycode,
                methodname);
        FormBody fb = new FormBody();
        fb.fromXML(result);
        return fb;
    }
    
    /**
     * <p>
     *  判断两个优惠协议是否互斥(需要把选择的优惠协议
     *  跟已选的所有优惠协议进行判断,互斥则不能选)
     * </p>
     * @param SO_DISCT_PROTOCOLiPRO_MODEL_NODE  优惠协议1ID
     * @param SO_DISCT_PROTOCOLiACTION_TYPE   优惠协议2ID
     * @param citycode
     * @return SO_DISCT_PROTOCOLiSEQ 是否互斥,1:是 0:不是
     * @throws IOException
     * @throws RuntimeException
     */
    static public FormBody callWebMutexDisct(String SO_DISCT_PROTOCOLiPRO_MODEL_NODE,
            String SO_DISCT_PROTOCOLiACTION_TYPE,
            String citycode)
    throws IOException,RuntimeException{
        Hashtable ht = new Hashtable();
        ht.put("SO_DISCT_PROTOCOLiPRO_MODEL_NODE",SO_DISCT_PROTOCOLiPRO_MODEL_NODE);
        ht.put("SO_DISCT_PROTOCOLiACTION_TYPE",SO_DISCT_PROTOCOLiACTION_TYPE);
        
        String methodname = "WebMutexDisct";
        String result = CallTuxdoInter.callTuxdo(ht,
                CallTuxdoInter.BSS_SERVICENAME,
                citycode,
                methodname);
        FormBody fb = new FormBody();
        fb.fromXML(result);
        return fb;
    }

    /**
     * <p>取申请流水号</p>
     * @param SOiAREA_ID    地区编码
     * @param citycode
     * @return SOiSO_ID 申请流水号
     *         SOiSO_NBR   申请单号
     *         
     * @throws IOException
     * @throws RuntimeException
     */
    static public DataTable callWebGetSoIDNbr(String SOiAREA_ID,
            String citycode)
    throws IOException,RuntimeException{
        Hashtable ht = new Hashtable();
        ht.put("SOiAREA_ID",SOiAREA_ID);
          
        String methodname = "WebGetSoIDNbr";
        String result = CallTuxdoInter.callTuxdo(ht,
                CallTuxdoInter.BSS_SERVICENAME,
                citycode,
                methodname);
        //System.out.println("result==>"+result);
        EMessage msg = new EMessage(result);
        if("".equals(msg.getBody())) return null;

        return msg.getDataTableBody();
    }
    
    /**
     * <p>
     *  判断两个协议是否互斥(需要把选择的协议
     *  跟已选的所有优惠协议进行判断,互斥则不能选)
     * </p>
     * @param SO_DISCT_PROTOCOLiPRO_MODEL_NODE  协议1ID(选中的协议)
     * @param SO_DISCT_PROTOCOLiACTION_TYPE   协议2ID(已有的协议)
     * 
     * @param citycode
     * @return SO_DISCT_PROTOCOLiSEQ    是否互斥,1:是 0:不是
     * @throws IOException
     * @throws RuntimeException
     */
    static public DataTable callWebMutexProto(String PROT_INFO_SYSiPROTOCOL_ID,
            String SERV_PROTOCOL_INFOiPROTOCOL_ID,
            String citycode)
    throws IOException,RuntimeException{
        Hashtable ht = new Hashtable();
        ht.put("PROT_INFO_SYSiPROTOCOL_ID",PROT_INFO_SYSiPROTOCOL_ID);
        ht.put("SERV_PROTOCOL_INFOiPROTOCOL_ID",SERV_PROTOCOL_INFOiPROTOCOL_ID);
          
        String methodname = "WebMutexProto";
        String result = CallTuxdoInter.callTuxdo(ht,
                CallTuxdoInter.BSS_SERVICENAME,
                citycode,
                methodname);
        //System.out.println("result==>"+result);
        EMessage msg = new EMessage(result);
        if("".equals(msg.getBody())) return null;

        return msg.getDataTableBody();
    }
    
    /**
     * <p>
     *  判断两个协议是否依赖
     * </p>
     * @param PROT_INFO_SYSiPROTOCOL_ID 协议1ID(选中的协议)
     * @param SERV_PROTOCOL_INFOiPROTOCOL_ID  协议2ID(值为:!+已有协议+!  已有协议循环)
     * 
     * @param citycode
     * @return SERViSERV_ID 服务唯一标识
     *         
     * @throws IOException
     * @throws RuntimeException
     */
    static public DataTable callWebRelaBProto(String PROT_INFO_SYSiPROTOCOL_ID,
            String SERV_PROTOCOL_INFOiPROTOCOL_ID,
            String SERViSERV_ID,
            String citycode)
    throws IOException,RuntimeException{
        Hashtable ht = new Hashtable();
        ht.put("PROT_INFO_SYSiPROTOCOL_ID",PROT_INFO_SYSiPROTOCOL_ID);
        ht.put("SERV_PROTOCOL_INFOiPROTOCOL_ID",SERV_PROTOCOL_INFOiPROTOCOL_ID);
        ht.put("SERViSERV_ID",SERViSERV_ID);
          
        String methodname = "WebRelaBProto";
        String result = CallTuxdoInter.callTuxdo(ht,
                CallTuxdoInter.BSS_SERVICENAME,
                citycode,
                methodname);
        //System.out.println("result==>"+result);
        EMessage msg = new EMessage(result);
        if("".equals(msg.getBody())) return null;

        return msg.getDataTableBody();
    }
}

⌨️ 快捷键说明

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