Package com.gcrm.domain

Examples of com.gcrm.domain.Account


            String lastName = CommonUtil.fromNullToEmpty(instance
                    .getLast_name());
            String name = instance.getName();
            String title = CommonUtil.fromNullToEmpty(instance.getTitle());

            Account account = instance.getAccount();
            if (account != null) {
                accountName = CommonUtil.fromNullToEmpty(account.getName());
            } else {
                accountName = "";
            }
            String email = CommonUtil.fromNullToEmpty(instance.getEmail());
            String officePhone = CommonUtil.fromNullToEmpty(instance
View Full Code Here


                    String accountID = row
                            .get(getText("entity.account_id.label"));
                    if (CommonUtil.isNullOrEmpty(accountID)) {
                        lead.setAccount(null);
                    } else {
                        Account account = accountService.getEntityById(
                                Account.class, Integer.parseInt(accountID));
                        lead.setAccount(account);
                    }
                    lead.setPrimary_street(CommonUtil.fromNullToEmpty(row
                            .get(getText("entity.primary_street.label"))));
View Full Code Here

            String lastName = CommonUtil.fromNullToEmpty(instance
                    .getLast_name());
            String name = instance.getName();
            String title = CommonUtil.fromNullToEmpty(instance.getTitle());

            Account account = instance.getAccount();
            if (account != null) {
                accountName = CommonUtil.fromNullToEmpty(account.getName());
            } else {
                accountName = "";
            }
            String email = CommonUtil.fromNullToEmpty(instance.getEmail());
            String officePhone = CommonUtil.fromNullToEmpty(instance
View Full Code Here

                    String accountID = row
                            .get(getText("entity.account_id.label"));
                    if (CommonUtil.isNullOrEmpty(accountID)) {
                        target.setAccount(null);
                    } else {
                        Account account = accountService.getEntityById(
                                Account.class, Integer.parseInt(accountID));
                        target.setAccount(account);
                    }
                    target.setPrimary_street(CommonUtil.fromNullToEmpty(row
                            .get(getText("entity.primary_street.label"))));
View Full Code Here

            target.setTargetLists(originalTarget.getTargetLists());
            target.setCreated_on(originalTarget.getCreated_on());
            target.setCreated_by(originalTarget.getCreated_by());
        }

        Account account = null;
        if (accountID != null) {
            account = accountService.getEntityById(Account.class, accountID);
        }
        target.setAccount(account);
View Full Code Here

            String newNotes = CommonUtil.fromNullToEmpty(target.getNotes());
            createChangeLog(changeLogs, entityName, recordID,
                    "entity.notes.label", oldNotes, newNotes, loginUser);

            String oldAccountName = "";
            Account oldAccount = originalTarget.getAccount();
            if (oldAccount != null) {
                oldAccountName = CommonUtil.fromNullToEmpty(oldAccount
                        .getName());
            }
            String newAccountName = "";
            Account newAccount = target.getAccount();
            if (newAccount != null) {
                newAccountName = CommonUtil.fromNullToEmpty(newAccount
                        .getName());
            }
            createChangeLog(changeLogs, entityName, recordID,
                    "entity.account.label", oldAccountName, newAccountName,
                    loginUser);
View Full Code Here

     * @return the SUCCESS result
     */
    public String get() throws Exception {
        if (this.getId() != null) {
            target = baseService.getEntityById(Target.class, this.getId());
            Account account = target.getAccount();
            if (account != null) {
                accountID = account.getId();
            }

            Salutation salutation = target.getSalutation();
            if (salutation != null) {
                salutationID = salutation.getId();
View Full Code Here

     */
    public void convert(Integer id, boolean accountCheck, boolean contactCheck,
            boolean opportunityCheck) throws Exception {
        Lead lead = this.getEntityById(Lead.class, id);
        if (accountCheck) {
            Account account = new Account();
            String firstName = CommonUtil.fromNullToEmpty(lead.getFirst_name());
            String lastName = CommonUtil.fromNullToEmpty(lead.getLast_name());
            account.setName(firstName + " " + lastName);
            account.setOffice_phone(lead.getOffice_phone());
            account.setFax(lead.getFax());
            account.setBill_street(lead.getPrimary_street());
            account.setBill_city(lead.getPrimary_city());
            account.setBill_country(lead.getPrimary_country());
            account.setBill_postal_code(lead.getPrimary_postal_code());
            account.setBill_state(lead.getPrimary_state());
            account.setShip_street(lead.getOther_street());
            account.setShip_city(lead.getOther_city());
            account.setShip_country(lead.getOther_country());
            account.setShip_postal_code(lead.getOther_postal_code());
            account.setShip_state(lead.getOther_state());
            account.setEmail(lead.getEmail());
            account.setNotes(lead.getNotes());
            account.setAssigned_to(lead.getAssigned_to());
            account.setOwner(lead.getOwner());
            this.getAccountService().makePersistent(account);
        }
        if (contactCheck) {
            Contact contact = new Contact();
            contact.setSalutation(lead.getSalutation());
View Full Code Here

TOP

Related Classes of com.gcrm.domain.Account

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.