コード例 #1
0
 private void generateExportParameter(ReportParamVO paramVO, HashMap<String, String> reportParam) {
   reportParam.put("startDate", "");
   reportParam.put("endDate", "");
   reportParam.put("merchantName", paramVO.getMerchantName());
   if (paramVO.getTrxType().equals("-1")) {
     reportParam.put("trxType", "all");
   } else {
     List<Lookup> listTrxType = lookupService.findLookupByCat(LookupService.CAT_TRX_STATUS);
     for (Lookup lookup : listTrxType) {
       if (lookup.getLookupValue().equals(paramVO.getStatus())) {
         reportParam.put("trxType", lookup.getLookupDesc());
       }
     }
   }
   if (paramVO.getStartDate() != null) {
     reportParam.put("startDate", DateConverter.stringValue(paramVO.getStartDate()));
   }
   if (paramVO.getEndDate() != null) {
     reportParam.put("endDate", DateConverter.stringValue(paramVO.getEndDate()));
   }
 }
コード例 #2
0
 // list trx type
 public List<Lookup> getListTrxType() {
   List<Lookup> listTrxType = lookupService.findLookupByCat(LookupService.CAT_TRX_STATUS);
   return listTrxType;
 }
コード例 #3
0
 // list department
 public List<Lookup> getListProductType() {
   List<Lookup> listDepartment = lookupService.findLookupByCat(LookupService.CAT_PRODUCT_TYPE);
   return listDepartment;
 }
コード例 #4
0
 // list status
 public List<Lookup> getListStatus() {
   List<Lookup> listStatus = lookupService.findLookupByCat(LookupService.CAT_LOGIN_USER);
   return listStatus;
 }
コード例 #5
0
 // list status
 public List<Lookup> getListStatus() {
   List<Lookup> listStatus = lookupService.findLookupByCat(LookupService.CAT_STATUS);
   return listStatus;
 }