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);
        }
      //  row.add(String.valueOf(val));
      } catch (Exception e) {
        //2013/5/21,rodeschen,修改format錯誤放入原值
        //val = "";
View Full Code Here


      search.addSearchModeParameters(SearchMode.LIKE, "jobId",
          params.get("jobId") + "%");
    }
    Page<BatchJob> page = batchSrv.findJobsPage(search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("updateTime", new ADDateFormatter());
    fmt.put("jobStatus", new IBeanFormatter() {

      Collection<String> jobs = jobRegistry.getJobNames();

      @SuppressWarnings("unchecked")
View Full Code Here

      search.addSearchModeParameters(SearchMode.LIKE, "schId",
          params.get("schId") + "%");
    }
    Page<BatchSchedule> page = batchSrv.findSchPage(search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("updateTime", new ADDateFormatter());
    fmt.put("schType", new I18NFormatter("sch.schType."));
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

        new StringBuffer(startDate).append(" ").append(startTime)
            .append(":00.000"));

    Page<Map<String, Object>> page = batchSrv.findExecutionsPage(search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("startDate", new ADDateFormatter());
    fmt.put("START_TIME", new ADDateTimeFormatter("HH:mm:ss"));
    fmt.put("duration", new DurationFormatter("START_TIME", "END_TIME",
        "HH:mm:ss.SSS"));
    return new MapGridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

    if (!search.hasOrderBy()) {
      search.addOrderBy("parmId");
    }
    Page<SysParm> page = commonService.findPage(SysParm.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("updateTime", new ADDateFormatter());
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

        search.addOrderBy("codeOrder");
      }
    }
    Page<CodeType> page = commonService.findPage(CodeType.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("updateTime", new ADDateFormatter());
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

      remind = commonSrv.findById(Remind.class, oid);
    }

    if (remind != null) {
      Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
      fmt.put("startDate", new ADDateFormatter());
      fmt.put("endDate", new ADDateFormatter());

      result.set("startTime", new ADDateTimeFormatter("HH:mm")
          .reformat(remind.getStartDate()));
      result.set("endTime", new ADDateTimeFormatter("HH:mm")
          .reformat(remind.getEndDate()));
View Full Code Here

      return new GridResult();
    }
   
    Page<DivCtDtl> page = commonService.findPage(DivCtDtl.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("updateTime", new ADDateFormatter());
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

      return new GridResult();
    }
   
    Page<DivFtDtl> page = commonService.findPage(DivFtDtl.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("updateTime", new ADDateFormatter());
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

            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);
        }
        row.add(String.valueOf(val));
      } catch (Exception e) {
        throw new CapException(e.getMessage(), e, getClass());
      }
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.