Package com.gcrm.domain

Examples of com.gcrm.domain.CampaignStatus


     * @return the SUCCESS result
     */
    public String get() throws Exception {
        if (this.getId() != null) {
            campaign = baseService.getEntityById(Campaign.class, this.getId());
            CampaignStatus status = campaign.getStatus();
            if (status != null) {
                statusID = status.getId();
            }
            CampaignType type = campaign.getType();
            if (type != null) {
                typeID = type.getId();
            }
View Full Code Here


                    campaign.getId());
            campaign.setTargetLists(originalCampaign.getTargetLists());
            campaign.setCreated_on(originalCampaign.getCreated_on());
            campaign.setCreated_by(originalCampaign.getCreated_by());
        }
        CampaignStatus status = null;
        if (statusID != null) {
            status = campaignStatusService.getEntityById(CampaignStatus.class,
                    statusID);
        }
        campaign.setStatus(status);
View Full Code Here

        String assignedTo = null;
        while (campaigns.hasNext()) {
            Campaign instance = campaigns.next();
            int id = instance.getId();
            String name = CommonUtil.fromNullToEmpty(instance.getName());
            CampaignStatus status = instance.getStatus();
            statusName = CommonUtil.getOptionLabel(status);
            CampaignType type = instance.getType();
            typeName = CommonUtil.getOptionLabel(type);

            SimpleDateFormat dateFormat = new SimpleDateFormat(
View Full Code Here

                            Campaign.class, Integer.parseInt(id));
                    final HashMap<String, ? super Object> data1 = new HashMap<String, Object>();
                    data1.put(header[0], campaign.getId());
                    data1.put(header[1],
                            CommonUtil.fromNullToEmpty(campaign.getName()));
                    CampaignStatus campaignStatus = campaign.getStatus();
                    if (campaignStatus != null) {
                        data1.put(header[2], campaignStatus.getId());
                    } else {
                        data1.put(header[2], "");
                    }
                    data1.put(header[3],
                            CommonUtil.getOptionLabel(campaignStatus));
View Full Code Here

                    String statusID = row
                            .get(getText("entity.status_id.label"));
                    if (CommonUtil.isNullOrEmpty(statusID)) {
                        campaign.setStatus(null);
                    } else {
                        CampaignStatus status = campaignStatusService
                                .getEntityById(CampaignStatus.class,
                                        Integer.parseInt(statusID));
                        campaign.setStatus(status);
                    }
                    String typeID = row.get(getText("entity.type_id.label"));
View Full Code Here

TOP

Related Classes of com.gcrm.domain.CampaignStatus

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.