Examples of OpportunityVO


Examples of com.centraview.sale.opportunity.OpportunityVO

        proposallistform.setItemLines((ItemLines) hm.get("itemLines"));
        int iOpportunityId;
        iOpportunityId = Integer.parseInt(proposallistform.getOpportunityid());

        // **************** set the opportunity form bean start *************
        OpportunityVO opportunityVO = remote.getOpportunity(individualID, iOpportunityId);
        OpportunityForm opportunityForm = new OpportunityForm();

        if (opportunityVO != null) {
          opportunityForm.setEntityid("" + opportunityVO.getEntityID());
          opportunityForm.setTitle(opportunityVO.getTitle());
          opportunityForm.setDescription(opportunityVO.getDescription());
          opportunityForm.setEntityname(opportunityVO.getEntityname());
          opportunityForm.setOpportunityid(new Integer(opportunityVO.getOpportunityID()).toString());
          opportunityForm.setStatusname(opportunityVO.getStatus());
          opportunityForm.setStagename(opportunityVO.getStage());
          opportunityForm.setOpportunitytypename(opportunityVO.getOpportunityType());
          opportunityForm.setForecastedamount(currencyFormat.format(new Float(opportunityVO.getForecastedAmount())));
          opportunityForm.setAcctmgrname(opportunityVO.getManagerName());
        } // end of if statement (opportunityVO != null)
        request.setAttribute("opportunityForm", opportunityForm);
        session.setAttribute("opportunityForm", opportunityForm);
        // **************** set the opportunity form bean end *************
      } // end of if statement
View Full Code Here

Examples of com.centraview.sale.opportunity.OpportunityVO

  {
    if (!CVUtility.canPerformRecordOperation(userId, "Opportunities", opportunityId,
        ModuleFieldRightMatrix.VIEW_RIGHT, this.dataSource))
      throw new AuthorizationFailedException("Opportunities - getOpportunity");

    OpportunityVO oVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      OpportunityLocalHome home = (OpportunityLocalHome)ic.lookup("local/Opportunity");
      OpportunityLocal remote = home.create();
      remote.setDataSource(this.dataSource);
View Full Code Here

Examples of com.centraview.sale.opportunity.OpportunityVO

        Iterator i = result.iterator();
        while (i.hasNext()) {
          HashMap resultRow = (HashMap)i.next();
          Number opportunityId = (Number)resultRow.get("oppId");
          try {
            OpportunityVO opportunity = opportunityBean.getOpportunity(individualId, opportunityId
                .intValue());
            opportunityList.add(opportunity);
          } catch (AuthorizationFailedException afe) {
            // no reason to completely fail here, it will just be one less thing
            // on our list. dump it in the logs, because it is indicative of an
View Full Code Here

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

     * @see OpportunityService#getOpportunityById(java.lang.Long)
     */
    protected OpportunityVO handleGetOpportunityById(java.lang.Long opportunityId)
        throws java.lang.Exception {
      Opportunity opportunity = this.getOpportunityDao().load(opportunityId);
      OpportunityVO opportunityVO = this.getOpportunityDao().toOpportunityVO(opportunity);
      CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
      opportunityVO.setCustAccountVO(custAccountService.toCustAccountVO(opportunity.getCustAccount()));
      return opportunityVO;           
    }
View Full Code Here

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

      List list = new ArrayList();
        Collection opportunityCollection = this.getOpportunityDao().findByCriteria(opportunityCriteria);
        Iterator iterator = opportunityCollection.iterator();
        while (iterator.hasNext()) {
          Opportunity opportunity = (Opportunity) iterator.next();
          OpportunityVO opportunityVO = this.getOpportunityDao().toOpportunityVO(opportunity);
          CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
          opportunityVO.setCustAccountVO(custAccountService.toCustAccountVO(opportunity.getCustAccount()));
          list.add(opportunityVO);
        }
        return list;                     
    }
View Full Code Here

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

    }

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

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

              if (column.equals("custAccountId")) {
                  return ascending
                  ? c1.getCustAccountVO().getCustAccountId().compareTo(
                      c2.getCustAccountVO().getCustAccountId())
                  : c2.getCustAccountVO().getCustAccountId().compareTo(
                      c1.getCustAccountVO().getCustAccountId());
              } else if (column.equals("expiresOn")) {
                  return ascending
                  ? c1.getExpiresOn().compareTo(c2.getExpiresOn())
                  : c2.getExpiresOn().compareTo(c1.getExpiresOn());
              } else {
                  return 0;
              }
          }
      };
View Full Code Here

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

     *
   * Prepares to enter a new opportunity entry
   */
  public String initOpportunity() throws Exception {
        opportunityDetailForm = (OpportunityDetailForm) getForm(OPPORTUNITY_DETAIL_FORM);
        CustomerMapperFactory.getOpportunityMapper().mapToBean(new OpportunityVO(), opportunityDetailForm);
    return "opportunityDetail";
  }
View Full Code Here

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

   */
  public String saveOpportunity() throws Exception {
        opportunityDetailForm = (OpportunityDetailForm) getForm(OPPORTUNITY_DETAIL_FORM);
    if (validateBeanProperties(opportunityDetailForm)) {
      try {
        opportunityVO = new OpportunityVO();
        CustomerMapperFactory.getOpportunityMapper().mapToObj(opportunityDetailForm, opportunityVO);
                UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
                if (opportunityVO.getOpportunityId() == null) {
                    opportunityVO.setCreatedOn(new Date());
                    opportunityVO.setCreatedBy(loggedInUserVO.getUserIdent());
View Full Code Here

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

  public String deleteOpportunity() throws Exception {
        opportunityDetailForm = (OpportunityDetailForm) getForm(OPPORTUNITY_DETAIL_FORM);
    try {
      dataServiceLocator.getOpportunityService().deleteOpportunity(
          new Long(opportunityDetailForm.getOpportunityId()));
      CustomerMapperFactory.getOpportunityMapper().mapToBean(new OpportunityVO(), opportunityDetailForm);
    } catch (OpportunityServiceException ex) {
      logger.error("DAO exception occured, cause: ", ex);
      MessageUtils.addErrorMessage("error.dataSource");
    }
    return "opportunityDetail";
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.