Exemplo n.º 1
0
 /*
  * 字典项转化
  */
 public void translateDictZT() {
   if (lQyyyrztj != null && lQyyyrztj.size() > 0) {
     for (int index = 0, max = lQyyyrztj.size(); index < max; index++) {
       Qyyyrztj tempQy = (Qyyyrztj) lQyyyrztj.get(index);
       Dict_item dict_item1 = CacheManager.getCacheDictitemOne("dm_bez", tempQy.getSffsaj());
       Dict_item dict_item2 = CacheManager.getCacheDictitemOne("dm_bez", tempQy.getSfglbmjc());
       if (dict_item1 != null) {
         tempQy.setSffsaj(dict_item1.getDisplay_name());
       }
       if (dict_item2 != null) {
         tempQy.setSfglbmjc(dict_item2.getDisplay_name());
       }
       lQyyyrztj.set(index, tempQy);
     }
   }
 }
Exemplo n.º 2
0
 /**
  * 取得全局变量
  *
  * @param String key
  * @return String value
  */
 public String queryQjbl(String key) throws Exception {
   Globalpar globalpar = new Globalpar();
   globalpar.setGlobalparcode(key);
   List list = CacheManager.getCacheGlobalpar(globalpar);
   String value = "0";
   if (list != null && list.size() > 0) {
     value = (((Globalpar) list.get(0)).getGlobalparvalue()).toString();
   }
   return value;
 }
Exemplo n.º 3
0
 /**
  * 是否生成账号标志
  *
  * @param String key 行业类别+gwbh
  * @return String value
  */
 public String sczhFlag(String key, String gwbh) throws Exception {
   Globalpar globalpar = new Globalpar();
   globalpar.setGlobalparcode(key + "gwbh");
   List list = CacheManager.getCacheGlobalpar(globalpar);
   String value = "0";
   if (list != null && list.size() > 0) {
     value = (((Globalpar) list.get(0)).getGlobalparvalue()).toString();
     String[] gwbhs = value.split(",");
     for (int i = 0; i < gwbhs.length; i++)
       if (gwbhs[i].equals(gwbh)) {
         return "1";
       }
   }
   return "0";
 }