Examples of Opportunity


Examples of com.gcrm.domain.Opportunity

                    .getEntityById(Campaign.class, campaignID);
        }
        lead.setCampaign(campaign);

        if ("Opportunity".equals(this.getRelationKey())) {
            Opportunity opportunity = opportunityService
                    .getEntityById(Opportunity.class,
                            Integer.valueOf(this.getRelationValue()));
            Set<Opportunity> opportunities = lead.getOpportunities();
            if (opportunities == null) {
                opportunities = new HashSet<Opportunity>();
View Full Code Here

Examples of com.gcrm.domain.Opportunity

     *
     * @return the SUCCESS result
     */
    public String select() throws ServiceException {
        Contact contact = null;
        Opportunity opportunity = null;
        TargetList targetList = null;
        Call call = null;
        Meeting meeting = null;
        Set<Lead> leads = null;

        if ("Contact".equals(this.getRelationKey())) {
            contact = contactService.getEntityById(Contact.class,
                    Integer.valueOf(this.getRelationValue()));
            leads = contact.getLeads();
        } else if ("Opportunity".equals(this.getRelationKey())) {
            opportunity = opportunityService.getEntityById(Opportunity.class,
                    Integer.valueOf(this.getRelationValue()));
            leads = opportunity.getLeads();
        } else if ("TargetList".equals(this.getRelationKey())) {
            targetList = targetListService.getEntityById(TargetList.class,
                    Integer.valueOf(this.getRelationValue()));
            leads = targetList.getLeads();
        } else if ("Call".equals(this.getRelationKey())) {
View Full Code Here

Examples of com.gcrm.domain.Opportunity

     *
     * @return the SUCCESS result
     */
    public String unselect() throws ServiceException {
        Contact contact = null;
        Opportunity opportunity = null;
        TargetList targetList = null;
        Call call = null;
        Meeting meeting = null;
        Set<Lead> leads = null;
        if ("Contact".equals(this.getRelationKey())) {
            contact = contactService.getEntityById(Contact.class,
                    Integer.valueOf(this.getRelationValue()));
            leads = contact.getLeads();
        } else if ("Opportunity".equals(this.getRelationKey())) {
            opportunity = opportunityService.getEntityById(Opportunity.class,
                    Integer.valueOf(this.getRelationValue()));
            leads = opportunity.getLeads();
        } else if ("TargetList".equals(this.getRelationKey())) {
            targetList = targetListService.getEntityById(TargetList.class,
                    Integer.valueOf(this.getRelationValue()));
            leads = targetList.getLeads();
        } else if ("Call".equals(this.getRelationKey())) {
View Full Code Here

Examples of com.gcrm.domain.Opportunity

            contact.setAssigned_to(lead.getAssigned_to());
            contact.setOwner(lead.getOwner());
            this.getContactService().makePersistent(contact);
        }
        if (opportunityCheck) {
            Opportunity opportunity = new Opportunity();
            String firstName = CommonUtil.fromNullToEmpty(lead.getFirst_name());
            String lastName = CommonUtil.fromNullToEmpty(lead.getLast_name());
            opportunity.setName(firstName + " " + lastName);
            opportunity.setCampaign(lead.getCampaign());
            opportunity.setAssigned_to(lead.getAssigned_to());
            opportunity.setOwner(lead.getOwner());
            this.getOpportunityService().makePersistent(opportunity);
        }
        LeadStatus status = this.getLeadStatusService().findByValue(
                LeadStatus.class.getSimpleName(), "Converted");
        lead.setStatus(status);
View Full Code Here

Examples of de.xanders.data.customer.dao.Opportunity

    /**
     * @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.dao.Opportunity

        throws java.lang.Exception {
      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.dao.Opportunity

    /**
     * @see OpportunityService#saveOpportunity(OpportunityVO)
     */
    protected OpportunityVO handleSaveOpportunity(OpportunityVO oppportunityVO)
        throws java.lang.Exception {
      Opportunity opportunity = this.getOpportunityDao().opportunityVOToEntity(oppportunityVO);
        if (opportunity.getOpportunityId() == null) {
            opportunity = this.getOpportunityDao().create(opportunity);
        }
        else {
            this.getOpportunityDao().update(opportunity);           
        }   
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.