Examples of dictType()


Examples of com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField.dictType()

      for (Object[] os : annotationList){
        Object val = this.getCellValue(row, column++);
        if (val != null){
          ExcelField ef = (ExcelField)os[0];
          // If is dict type, get dict value
          if (StringUtils.isNotBlank(ef.dictType())){
            val = DictUtils.getDictValue(val.toString(), ef.dictType(), "");
            //log.debug("Dictionary type value: ["+i+","+colunm+"] " + val);
          }
          // Get param type and type cast
          Class<?> valType = Class.class;
View Full Code Here

Examples of com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField.dictType()

        Object val = this.getCellValue(row, column++);
        if (val != null){
          ExcelField ef = (ExcelField)os[0];
          // If is dict type, get dict value
          if (StringUtils.isNotBlank(ef.dictType())){
            val = DictUtils.getDictValue(val.toString(), ef.dictType(), "");
            //log.debug("Dictionary type value: ["+i+","+colunm+"] " + val);
          }
          // Get param type and type cast
          Class<?> valType = Class.class;
          if (os[1] instanceof Field){
View Full Code Here

Examples of com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField.dictType()

              val = Reflections.invokeMethod(e, ((Method)os[1]).getName(), new Class[] {}, new Object[] {});
            }
          }
          // If is dict, get dict label
          if (StringUtils.isNotBlank(ef.dictType())){
            val = DictUtils.getDictLabel(val==null?"":val.toString(), ef.dictType(), "");
          }
        }catch(Exception ex) {
          // Failure to ignore
          log.info(ex.toString());
          val = "";
View Full Code Here

Examples of com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField.dictType()

            }else if (os[1] instanceof Method){
              val = Reflections.invokeMethod(e, ((Method)os[1]).getName(), new Class[] {}, new Object[] {});
            }
          }
          // If is dict, get dict label
          if (StringUtils.isNotBlank(ef.dictType())){
            val = DictUtils.getDictLabel(val==null?"":val.toString(), ef.dictType(), "");
          }
        }catch(Exception ex) {
          // Failure to ignore
          log.info(ex.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.