- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
public class SHcoGlobalInf extends Hashtable {
//много-много констант, но в силу ограничений обьема я их сокращаю
public static final String KEY_KAKKO_MAE = "KEY_KAKKO_S";
public static final String KEY_KAKKO_MAE_0 = "KEY_KAKKO_S0";
// ..... исчо набор "как"
public static final String KEY_KAKKO_MAE_K = "KEY_KAKKO_SK";
public static final String KEY_KAKKO_ATO = "KEY_KAKKO_E";
public static final String KEY_KAKKO_ATO_0 = "KEY_KAKKO_E0";
//набор "каков-атов"
public static final String KEY_KAKKO_ATO_K = "KEY_KAKKO_EK";
public static final String KEY_HATUHENDEN_CD = "KEY_HATUHENDEN_CD";
public static final String KEY_SODEN_CD = "KEY_SODEN_CD";
public static final String KEY_BUTTON_W = "KEY_BUTTON_W";
public static final String KEY_BUTTON_H = "KEY_BUTTON_H";
public static final String KEY_TOTAL = "KEY_TOTAL";
public static final String KEY_BUNRUI_CD = "KEY_BUNRUI_CD";
public static final String KEY_SIZAI_SVR_URL = "comSizaiSvrUrl";
public static final String KEY_BIZ_LIMIT_RANGE_MINUTE = "KEY_BIZ_LIMIT_RANGE_MINUTE";
public static final String KEY_SIZAI_SVR_DIRECT_URL = "comSizaiSvrDirectUrl";
public static final String KEY_DOMAIN_MOBILE = "comPsmoDomainMobile";
public static final String KEY_TRAINING_MODE = "comTrainingMode";
public static final String KEY_BATCH_HOME = "comBatchHome";
public String getKakkoStart(String strShuyakuCd) {
StringBuffer strAttributeName = new StringBuffer();
strAttributeName.append(KEY_KAKKO_MAE);
strAttributeName.append(strShuyakuCd);
Object obj = this.get(strAttributeName.toString());
if(obj instanceof String) {
return (String) obj;
} else {
return "";
}
}
public String getKakkoEnd(String strShuyakuCd) {
StringBuffer strAttributeName = new StringBuffer();
strAttributeName.append(KEY_KAKKO_ATO);
strAttributeName.append(strShuyakuCd);
Object obj = this.get(strAttributeName.toString());
if(obj instanceof String) {
return (String) obj;
} else {
return "";
}
}
public String parseKakko(String strValue, String strShuyakuCd) {
String strResult = "";
if(strValue instanceof String) {
if(!strValue.equals("")) {
StringBuffer outValue = new StringBuffer();
outValue.append(this.getKakkoStart(strShuyakuCd));
outValue.append(strValue);
outValue.append(this.getKakkoEnd(strShuyakuCd));
return outValue.toString();
}
}
return strResult;
}
public String getCodeSet(String strKey) {
Object obj = this.get(strKey);
return (String) obj;
}
public String getHostUrl() {
StringBuffer sbHostUrl = new StringBuffer();
sbHostUrl.append((String)this.get("KEY_PROTOCOL"));
sbHostUrl.append((String)this.get("comHstAplSvr"));
sbHostUrl.append(".");
sbHostUrl.append((String)this.get("comPsmoDomain"));
return sbHostUrl.toString();
}
}