Package com.centraview.sale.proposal

Examples of com.centraview.sale.proposal.ProposalLocal


              break;
            case 31: // Proposal - from module table
              try
              {
                ProposalHome home = (ProposalHome)ic.lookup("local/Proposal");
                ProposalLocal remote =  home.create();
                remote.setDataSource(this.dataSource);
                String proposalTitle = remote.getProposalName(linkId);
                flvo.setRelatedFieldID(linkId);
                flvo.setRelatedFieldValue(proposalTitle);
                flvo.setRelatedTypeID(31);
                flvo.setRelatedTypeValue("Project");
              } catch (Exception e) {
                logger.error("[getFileLink] Exception thrown.", e);
              } //end of catch block (Exception)
              break;

            case 36: // Projects - from module table
              try
              {
                ProjectLocalHome home = (ProjectLocalHome)ic.lookup("local/Project");
                ProjectLocal remote = home.create();
                remote.setDataSource(this.dataSource);
                String projectTitle = remote.getProjectName(linkId);
                flvo.setRelatedFieldID(linkId);
                flvo.setRelatedFieldValue(projectTitle);
                flvo.setRelatedTypeID(36);
                flvo.setRelatedTypeValue("Project");
              } catch (Exception e) {
                logger.error("[getFileLink] Exception thrown.", e);
              } //end of catch block (Exception)
              break;
            case 39: // Ticket - from module table
              try
              {
                TicketLocalHome home = (TicketLocalHome)ic.lookup("local/Ticket");
                TicketLocal remote = home.create();
                remote.setDataSource(this.dataSource);
                String ticketSubject = remote.getTicketName(linkId);
                flvo.setRelatedFieldID(linkId);
                flvo.setRelatedFieldValue(ticketSubject);
                flvo.setRelatedTypeID(39);
                flvo.setRelatedTypeValue("Ticket");
              } catch (Exception e) {
View Full Code Here


    int returnValue = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProposalHome home = (ProposalHome)ic.lookup("local/Proposal");
      ProposalLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      returnValue = remote.getProbabilityPercent(userId, probabilityID);
    } catch (Exception e) {
      System.out.println("Failed in getting the probability value: " + e.toString());
      // e.printStackTrace();
    }
    return returnValue;
View Full Code Here

    int listid = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProposalHome home = (ProposalHome)ic.lookup("local/Proposal");
      ProposalLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      listid = remote.addProposal(individualID, proposallistform);
    } catch (Exception e) {
      System.out.println("Failed in getting EmailList");
      e.printStackTrace();
      return 0;
    }
View Full Code Here

      throws AuthorizationFailedException
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProposalHome home = (ProposalHome)ic.lookup("local/Proposal");
      ProposalLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteProposal(individualID, proposalID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
View Full Code Here

      throw new AuthorizationFailedException("Proposals - updateProposal");

    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProposalHome home = (ProposalHome)ic.lookup("local/Proposal");
      ProposalLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.updateProposal(individualID, proposallistform);
    } catch (Exception e) {
      System.out.println("[Exception] SalesFacadeEJB.updateProposal: " + e.toString());
      e.printStackTrace();
      return false;
    }
View Full Code Here

    HashMap dyna = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProposalHome home = (ProposalHome)ic.lookup("local/Proposal");
      ProposalLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      dyna = remote.viewProposal(individualID, listid, info);

    } catch (Exception e) {
      System.out.println("[Exception] SalesFacadeEJB.viewProposal: " + e.toString());
      e.printStackTrace();
      // return dyna;
View Full Code Here

  public void setOrderIsGenerated(boolean orderIsGenerated, int proposalID, int orderID)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProposalHome home = (ProposalHome)ic.lookup("local/Proposal");
      ProposalLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.setOrderIsGenerated(orderIsGenerated, proposalID, orderID);
    } catch (Exception e) {
      System.out.println("Errorin Salefacade in setOrderIsGenerated...:" + e);
      e.printStackTrace();
    }
  }
View Full Code Here

  {
    String proposalName = "";
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProposalHome home = (ProposalHome)ic.lookup("local/Proposal");
      ProposalLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      proposalName = remote.getProposalName(ProposalID);
    } catch (Exception e) {
      System.out.println("Errorin Salefacade in setOrderIsGenerated...:" + e);
      e.printStackTrace();
    }
    return proposalName;
View Full Code Here

TOP

Related Classes of com.centraview.sale.proposal.ProposalLocal

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.