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()));
   }
 }
 // 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;
 }
 // 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;
 }