Package com.gcrm.domain

Examples of com.gcrm.domain.LeadStatus


        ActionContext context = ActionContext.getContext();
        Map<String, Object> session = context.getSession();
        String local = (String) session.get("locale");
        list = new ArrayList<ChartVO>();
        ChartVO chartVO = null;
        LeadStatus leadStatus = null;
        while (it.hasNext()) {
            Object[] row = (Object[]) it.next();

            leadStatus = (LeadStatus) row[0];
            String IndustryLabel = "";
            if (leadStatus != null) {
                if ("zh_CN".equals(local)) {
                    IndustryLabel = leadStatus.getLabel_zh_CN();
                } else {
                    IndustryLabel = leadStatus.getLabel_en_US();
                }
            }
            Long number = (Long) row[1];
            chartVO = new ChartVO();
            chartVO.setLabel(IndustryLabel);
View Full Code Here


            if (account != null) {
                accountID = account.getId();
                accountText = account.getName();
            }

            LeadStatus leadStatus = lead.getStatus();
            if (leadStatus != null) {
                leadStatusID = leadStatus.getId();
            }

            LeadSource leadSource = lead.getLead_source();
            if (leadSource != null) {
                leadSourceID = leadSource.getId();
View Full Code Here

        if (accountID != null) {
            account = accountService.getEntityById(Account.class, accountID);
        }
        lead.setAccount(account);

        LeadStatus leadStatus = null;
        if (leadStatusID != null) {
            leadStatus = leadStatusService.getEntityById(LeadStatus.class,
                    leadStatusID);
        }
        lead.setStatus(leadStatus);
View Full Code Here

                            CommonUtil.fromNullToEmpty(lead.getOther_country()));
                    data1.put(header[23],
                            CommonUtil.fromNullToEmpty(lead.getEmail()));
                    data1.put(header[24],
                            CommonUtil.fromNullToEmpty(lead.getNotes()));
                    LeadStatus leadStatus = lead.getStatus();
                    if (leadStatus != null) {
                        data1.put(header[25], leadStatus.getId());
                    } else {
                        data1.put(header[25], "");
                    }
                    data1.put(header[26], CommonUtil.getOptionLabel(leadStatus));
                    data1.put(header[27], CommonUtil.fromNullToEmpty(lead
View Full Code Here

                    String statusID = row
                            .get(getText("entity.status_id.label"));
                    if (CommonUtil.isNullOrEmpty(statusID)) {
                        lead.setStatus(null);
                    } else {
                        LeadStatus leadStatus = leadStatusService
                                .getEntityById(LeadStatus.class,
                                        Integer.parseInt(statusID));
                        lead.setStatus(leadStatus);
                    }
                    lead.setStatus_description(CommonUtil.fromNullToEmpty(row
View Full Code Here

            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);
        this.makePersistent(lead);
    }
View Full Code Here

        lead.setEmail(target.getEmail());
        lead.setNotes(target.getNotes());
        lead.setNot_call(target.isNot_call());
        lead.setAssigned_to(target.getAssigned_to());
        lead.setOwner(target.getOwner());
        LeadStatus status = this.getLeadStatusService().findByName(
                LeadStatus.class.getSimpleName(), "New");
        lead.setStatus(status);
        lead = this.getLeadService().makePersistent(lead);
        target.setLead_id(lead.getId());
        this.makePersistent(target);
View Full Code Here

TOP

Related Classes of com.gcrm.domain.LeadStatus

Copyright © 2018 www.massapicom. 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.