Examples of CasesVO


Examples of de.xanders.data.customer.vo.CasesVO

     * @see CasesService#getCaseById(java.lang.Long)
     */
    protected CasesVO handleGetCaseById(java.lang.Long caseId)
        throws java.lang.Exception {
      Cases cases = this.getCasesDao().load(caseId);
      CasesVO casesVO = this.getCasesDao().toCasesVO(cases);
      CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
      casesVO.setCustAccountVO(custAccountService.toCustAccountVO(cases.getCustAccount()));
      return casesVO;
    }
View Full Code Here

Examples of de.xanders.data.customer.vo.CasesVO

      List list = new ArrayList();
        Collection casesCollection =  this.getCasesDao().findByCriteria(casesCriteria);
        Iterator iterator = casesCollection.iterator();
        while (iterator.hasNext()) {
          Cases cases = (Cases) iterator.next();
          CasesVO casesVO = this.getCasesDao().toCasesVO(cases);
          CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
          casesVO.setCustAccountVO(custAccountService.toCustAccountVO(cases.getCustAccount()));
          list.add(casesVO);
        }
        return list;       
    }
View Full Code Here

Examples of de.xanders.data.customer.vo.CasesVO

    }

    protected void sort(final String column, final boolean ascending) {
      Comparator comparator = new Comparator() {
          public int compare(Object o1, Object o2) {
              CasesVO c1 = (CasesVO) o1;
              CasesVO c2 = (CasesVO) o2;

              if (column == null) {
                  return 0;
              }

              if (column.equals("caseNumber")) {
                  return ascending
                  ? c1.getCaseNumber().compareTo(c2.getCaseNumber())
                  : c2.getCaseNumber().compareTo(c1.getCaseNumber());
              /* } else if (column.equals("customerName")) {
                  return ascending
                  ? c1.getCustAccountVO().getCustomerName1().compareTo(c2.getCustAccountVO().getCustomerName1())
                  : c2.getCustAccountVO().getCustomerName1().compareTo(c1.getCustAccountVO().getCustomerName1()); */
              } else if (column.equals("subject")) {
                  return ascending
                  ? c1.getSubject().compareTo(c2.getSubject())
                  : c2.getSubject().compareTo(c1.getSubject());
              } else if (column.equals("status")) {
                  return ascending
                  ? c1.getStatus().compareTo(c2.getStatus())
                  : c2.getStatus().compareTo(c1.getStatus());
              } else if (column.equals("priority")) {
                  return ascending
                  ? c1.getPriority().compareTo(c2.getPriority())
                  : c2.getPriority().compareTo(c1.getPriority());
              } else {
                  return 0;
              }
          }
      };
View Full Code Here

Examples of de.xanders.data.customer.vo.CasesVO

     *
     * Prepares to enter new case
     */
    public String initCase() throws Exception {
        caseDetailForm = (CaseDetailForm) getForm(CASE_DETAIL_FORM);
        CustomerMapperFactory.getCaseMapper().mapToBean(new CasesVO(), caseDetailForm);
        return "caseDetail";
    }
View Full Code Here

Examples of de.xanders.data.customer.vo.CasesVO

     */
    public String saveCase() throws Exception {
        caseDetailForm = (CaseDetailForm) getForm(CASE_DETAIL_FORM);
        if (validateBeanProperties(caseDetailForm)) {
            try {
                casesVO = new CasesVO();
                CustomerMapperFactory.getCaseMapper().mapToObj(caseDetailForm, casesVO);
                UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
                if (casesVO.getCaseId() == null) {
                    casesVO.setCreatedOn(new Date());
                    casesVO.setCreatedBy(loggedInUserVO.getUserIdent());
View Full Code Here

Examples of de.xanders.data.customer.vo.CasesVO

     */
    public String deleteCase() throws Exception {
        caseDetailForm = (CaseDetailForm) getForm(CASE_DETAIL_FORM);
        try {
            dataServiceLocator.getCasesService().deleteCase(new Long(caseDetailForm.getCaseId()));
            CustomerMapperFactory.getCaseMapper().mapToBean(new CasesVO(), caseDetailForm);
        } catch (CasesServiceException ex) {
      logger.error("DAO exception occured, cause: ", ex);
          CustomerMapperFactory.getCaseMapper().mapToBean(new CasesVO(), caseDetailForm);
        }
        return "caseDetail";
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.