示例#1
0
  /**
   * @Title: queryBasiType @Description: 基础类别资料
   *
   * @param @return 参数
   * @return String 返回类型
   * @throws
   * @author taozhaoping 26078
   * @author mail [email protected]
   * @throws ParameterException
   */
  public String queryBasiType() throws ProjectException {
    String formId = dictionaryModel.getFormId();
    BasiType basiType = new BasiType();
    if (null != formId && !"".equals(formId)) {
      basiType.setId(Integer.valueOf(formId));
    }

    List<BasiType> list = BasiTypeService.queryList(basiType);
    this.dictionaryModel.setBasiTypeList(list);
    return "basiTypejson";
  }
示例#2
0
文件: JspUtil.java 项目: lehoon/ERP
  /**
   * @Title: queryBasiType @Description: 查询基础类型资料
   *
   * @param @param id
   * @param @return 参数
   * @return String 返回类型
   * @throws
   * @author taozhaoping 26078
   * @author mail [email protected]
   */
  public static String queryBasiType(String id) {
    if (null == id || "null".equals(id)) {
      return "";
    }

    BasiType basiType = new BasiType();
    basiType.setId(Integer.valueOf(id));
    BasiType reult = basiTypeService.query(basiType);
    if (reult == null) {
      return "";
    } else {
      return reult.getName();
    }
  }