Package com.iisigroup.cap.formatter

Examples of com.iisigroup.cap.formatter.ADDateFormatter


            val = callback.reformat(val);
          }
        } else if (val instanceof Timestamp) {
          val = new ADDateTimeFormatter().reformat(val);
        } else if (val instanceof Date || val instanceof Calendar) {
          val = new ADDateFormatter().reformat(val);
        }
        json.element(str, val);
      } catch (Exception e) {
        throw new CapException(e.getMessage(), e, getClass());
      }
View Full Code Here


        String[] status = params.getParamsAsStringArray("status");
        Page<Map<String, Object>> page = userService.findUser(code, name,
                roleCodes, status, search.getMaxResults(),
                search.getFirstResult());
        Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
        fmt.put("createTime", new ADDateFormatter());
        fmt.put("updateTime", new ADDateFormatter());
        fmt.put("pwdExpiredTime", new ADDateFormatter());
        fmt.put("status", new CodeTypeFormatter(codeTypeService, "userStatus",
                (Locale) SimpleContextHolder.get(CapWebUtil.localeKey)));
        return new MapGridResult(page.getContent(), page.getTotalRow(), fmt);
    }// ;
View Full Code Here

TOP

Related Classes of com.iisigroup.cap.formatter.ADDateFormatter

Copyright © 2018 www.massapicom. 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.