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

📄 addinfo.java

📁 wincvs 的使用配置的东西
💻 JAVA
字号:
/* **************************************************************** *//* System Name : 億乕僞儖仌僌儖乕僾僂僄傾僾儘僕僃僋僩 * File   Name : UID堦尦娗棟僔僗僥儉栭娫僶僢僠(AddInfo.java) * Compiler    : JDK 1.5.0 * Description : 奜晹掕媊愝掕僼傽僀儖庢摼僋儔僗 * ---------------------------------------------------------------- * Modification History * Date         Name            Description * -----------  --------------  ----------------------------------- * 2007/11/XX                   Initial Release * ---------------------------------------------------------------- *//* **************************************************************** */package common;import java.io.FileInputStream;import java.util.Properties;public class AddInfo {  // 娐嫬(愝掕僼傽僀儖)  public static final String INFO_FILE = "C:/addbatch.properties"; //僾儘僷僥傿僷僗  public static final String COMPNYCD      = "add.companycode";    //夛幮僐乕僪  public static final String LOGIN_GROUPID = "add.login.group";    //儘僌僀儞僌儖乕僾  public static final String LOGIN_USERID  = "add.login.userid";   //儘僌僀儞儐乕僓  public static final String BATCHNO       = "add.batchno";        //僶僢僠斣崋  public static final String FIN_STATLOG   = "add.statuslog";      //廔椆儘僌弌椡僷僗  public static final String MESSAGE_LOG   = "add.messagelog";     //儊僢僙乕僕堦棗  public static final String UT_CONF       = "add.utconf";         //僩儔儞僓僋僔儑儞愝掕  public static final String EVENT_URL     = "add.eventurl";       //僶僢僠張棟梡僀儀儞僩URL  public static final String ENC_MS932     = "add.enc";            //暥帤僐乕僪  public static final String LOCALE_JP     = "add.locale";         //儘働乕儖  public static final String LOG_MODE      = "add.logmode";        //儘僌儌乕僪  public static final String LOG_OVO       = "add.ovolog";         //OVO儘僌僷僗  /******************************************************************   * 奜晹偵掕媊偝傟偨愝掕僼傽僀儖偺忣曬傪庢摼偡傞(嫟捠)丅   *   * @param key 僉乕   * @return 掕媊忣曬   * @version   ******************************************************************/  public String getTeigi(String key) {    String infoPath = "";    FileInputStream fis = null;    Properties properties = new Properties();    try {      fis = new FileInputStream(INFO_FILE);      properties.load(fis);      infoPath = properties.getProperty(key);      properties = null;    } catch (Exception e) {    } finally {      try {        fis.close();      } catch (Exception ex) {}    }    return infoPath;  }  /******************************************************************   * 愝掕僼傽僀儖傛傝僶僢僠斣崋傪庢摼偡傞(嫟捠)丅   *   * @return 僶僢僠斣崋   * @version   ******************************************************************/  public String getBATCHNO() {    return this.getTeigi(BATCHNO);   }  /******************************************************************   * 愝掕僼傽僀儖傛傝夛幮僐乕僪傪庢摼偡傞(嫟捠)丅   *   * @return 夛幮僐乕僪   * @version   ******************************************************************/  public String getCOMPNYCD() {    return this.getTeigi(COMPNYCD);  }  /******************************************************************   * 愝掕僼傽僀儖傛傝暥帤僐乕僪傪庢摼偡傞(嫟捠)丅   *   * @return 暥帤僐乕僪   * @version   ******************************************************************/  public String getENC_MS932() {    return this.getTeigi(ENC_MS932);  }  /******************************************************************   * 愝掕僼傽僀儖傛傝ActionEventURL傪庢摼偡傞(嫟捠)丅   *   * @return ActionEventURL   * @version   ******************************************************************/  public String getEVENT_URL() {    return this.getTeigi(EVENT_URL);  }  /******************************************************************   * 愝掕僼傽僀儖傛傝廔椆儘僌弌椡僷僗傪庢摼偡傞(嫟捠)丅   *   * @return 廔椆儘僌弌椡僷僗   * @version   ******************************************************************/  public String getFIN_STATLOG() {    return this.getTeigi(FIN_STATLOG);  }  /******************************************************************   * 愝掕僼傽僀儖傛傝儘働乕儖忣曬傪庢摼偡傞(嫟捠)丅   *   * @return 儘働乕儖忣曬   * @version   ******************************************************************/  public String getLOCALE_JP() {    return this.getTeigi(LOCALE_JP);  }  /******************************************************************   * 愝掕僼傽僀儖傛傝儘僌僀儞僌儖乕僾ID傪庢摼偡傞(嫟捠)丅   *   * @return 儘僌僀儞僌儖乕僾ID   * @version   ******************************************************************/  public String getLOGIN_GROUPID() {    return this.getTeigi(LOGIN_GROUPID);  }  /******************************************************************   * 愝掕僼傽僀儖傛傝儘僌僀儞儐乕僓ID傪庢摼偡傞(嫟捠)丅   *   * @return 儘僌僀儞儐乕僓ID   * @version   ******************************************************************/  public String getLOGIN_USERID() {    return this.getTeigi(LOGIN_USERID);  }  /******************************************************************   * 愝掕僼傽僀儖傛傝儊僢僙乕僕堦棗僷僗傪庢摼偡傞(嫟捠)丅   *   * @return 儊僢僙乕僕堦棗僷僗   * @version   ******************************************************************/  public String getMESSAGE_LOG() {    return this.getTeigi(MESSAGE_LOG);  }  /******************************************************************   * 愝掕僼傽僀儖傛傝UserTransaction忣曬傪庢摼偡傞(嫟捠)丅   *   * @return UserTransaction忣曬   * @version   ******************************************************************/  public String getUT_CONF() {    return this.getTeigi(UT_CONF);  }  /******************************************************************   * 愝掕僼傽僀儖傛傝儘僌儌乕僪傪庢摼偡傞(嫟捠)丅   *   * @return 儘僌儌乕僪   * @version   ******************************************************************/  public String getLOG_MODE() {    return this.getTeigi(LOG_MODE);  }  /******************************************************************   * 愝掕僼傽僀儖傛傝OVO儘僌僷僗傪庢摼偡傞(嫟捠)丅   *   * @return OVO儘僌僷僗   * @version   ******************************************************************/  public String getLOG_OVO() {    return this.getTeigi(LOG_OVO);  }  /* **********************************************************************   * 僗僩儕儞僌撪梕傪斾妑   * @param String 擖椡僗僩儕儞僌1   * @param String 擖椡僗僩儕儞僌2   * @return boolean 斾妑寢壥   * @throws 側偟   * @version  *************************************************************************/  public static boolean s_equal(String s1,String s2){    if (s1 != null && s2 != null && s1.length()>14 && s2.length()>14){      s1 = s1.substring(10,14);      s2 = s2.substring(10,14);      return s1.equals(s2);    }    return false;  }}

⌨️ 快捷键说明

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