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

📄 wsxautonumber.java

📁 Agile PLM公司的二次开发例子。 测试程序也就是二次开发例子。希望大家有用。里面有webservice的调用方法
💻 JAVA
字号:
/**
 * @Date: 2005-2-4
 * @Author: jiadongz
 * @E-mail: jiadong.zhu@agile.com
 */
 
package wsx.agile.com;

import java.io.InputStream;
import java.util.Properties;


/**
 * This is a WSX for PX to invoke.
 * read throw the property and get the value
 */
public class WSXAutoNumber {
    
    /*
     * @description
     * load properties, and get the prefix for the autonumber
     */
    public String generateNum() {
        String prefix = "ERR";
        try{
            //	load property	//
            Properties property = new Properties();
            InputStream in = this.getClass().getResourceAsStream("file/number.properties");
            property.load(in);
            in.close();
            //	get the value from the key	//
            prefix = property.getProperty("ZJD"); 
        }catch(Exception e){
            e.printStackTrace();
            return "ERR";
        }
        return prefix;
    }///:~ generaeNum() Ends
    

}///:~ WSXAutoNumber Ends

⌨️ 快捷键说明

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