📄 wsxautonumber.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 + -