Package com.centraview.sale.salefacade

Examples of com.centraview.sale.salefacade.SaleFacadeHome


  }

  private void setSaleLists()
  {
    try {
      SaleFacadeHome cfh = (SaleFacadeHome)CVUtility.getHomeObject(
          "com.centraview.sale.salefacade.SaleFacadeHome", "SaleFacade");
      SaleFacade remote = cfh.create();
      remote.setDataSource(this.dataSource);

      allSaleStatus = remote.getAllStatus();
      allSaleStage = remote.getAllStage();
      allSaleType = remote.getAllType();
View Full Code Here


        activityForm.setActivityRelatedTypeValue("Opportunity");
        activityForm.setActivityRelatedTypeID("30");

        if (opportunityID != null && !(opportunityID.equals(""))) {
          int oppID = Integer.parseInt(opportunityID);
          SaleFacadeHome saleFacade = (SaleFacadeHome)CVUtility.getHomeObject(
              "com.centraview.sale.salefacade.SaleFacadeHome", "SaleFacade");
          SaleFacade remote = saleFacade.create();
          remote.setDataSource(dataSource);

          HashMap relatedOpportunityInfo = remote.getOpportunityRelatedInfo(individualID, oppID);

          if (relatedOpportunityInfo != null && relatedOpportunityInfo.size() != 0) {
View Full Code Here

  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

    try {
      HttpSession session = request.getSession(true);
      SaleFacadeHome salesFacadeHome = (SaleFacadeHome) CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome", "SaleFacade");
      SaleFacade remote = salesFacadeHome.create();
      remote.setDataSource(dataSource);

      String typeofoperation = SaleConstantKeys.ADD;
      if (request.getParameter(SaleConstantKeys.TYPEOFOPERATION) != null) {
        typeofoperation = request.getParameter(SaleConstantKeys.TYPEOFOPERATION);
View Full Code Here

  public void updateList(String status, int individualID, ProposalListForm proposallistform) throws CommunicationException,NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    //DynaActionForm dynaform = (DynaActionForm)form;
    SaleFacadeHome sfh = (SaleFacadeHome)
        CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome", "SaleFacade");
    try
    {
      SaleFacade remote =(SaleFacade) sfh.create();
      remote.setDataSource(dataSource);

      int billingAddressID = 0;
      int jurisdictionID = 0;
      if(proposallistform.getBillingaddressid() != null && !((proposallistform.getBillingaddressid()).equals(""))){
View Full Code Here

      int row = Integer.parseInt((String) request.getParameter("eventid"));

      ProposalListForm proposallistform = (ProposalListForm) form;
      proposallistform.convertItemLines();

      SaleFacadeHome sfh = (SaleFacadeHome) CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome",
          "SaleFacade");
      SaleFacade remote = (SaleFacade) sfh.create();
      remote.setDataSource(dataSource);

      HashMap hm = (HashMap) remote.viewProposal(individualID, row, proposallistform);
      itemLines = (ItemLines) hm.get("itemLines");
      java.util.Set listkey = itemLines.keySet();
View Full Code Here

      UserObject userObject = (UserObject)session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();

      OpportunityForm oForm = (OpportunityForm)form;

      SaleFacadeHome saleFacade = (SaleFacadeHome)CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome","SaleFacade");
      SaleFacade remote = (SaleFacade)saleFacade.create();
      remote.setDataSource(dataSource);

      // Check the session for an existing error message (possibly from the delete handler)
      ActionErrors allErrors = (ActionErrors)session.getAttribute("listErrorMessage");
      if (allErrors != null) {
View Full Code Here

    HttpSession session = request.getSession(true);
    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();
   
    String rowId[] = request.getParameterValues("rowId");
    SaleFacadeHome saleFacadeHome = (SaleFacadeHome)CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome","SaleFacade");
    try
    {
      SaleFacade remote = (SaleFacade)saleFacadeHome.create();
      remote.setDataSource(dataSource);
      for (int i=0; i<rowId.length; i++)
      {
        if(rowId[i] != null && !rowId[i].equals(""))
        {         
View Full Code Here

        row = Integer.parseInt(request.getParameter("eventid"));
      }catch (Exception ex){
        row = Integer.parseInt(proposallistform.getProposalid());
      }

      SaleFacadeHome sfh = (SaleFacadeHome) CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome","SaleFacade");
      SaleFacade remote =(SaleFacade) sfh.create();
      remote.setDataSource(dataSource);

      HashMap hm  = (HashMap) remote.viewProposal(individualID, row , proposallistform);

      String Items = "";
View Full Code Here

      HttpSession session = request.getSession();
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();
      int opportunityid = Integer.parseInt(request.getParameter("opportunityid"));
     
      SaleFacadeHome aa = (SaleFacadeHome)
        CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome", "SaleFacade");
      SaleFacade remote = (SaleFacade) aa.create();
      remote.setDataSource(dataSource);
      String closeornew = request.getParameter("closeornew");

      String pathParameter = null;
      try
View Full Code Here

  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, CommunicationException, NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
   
    SaleFacadeHome sfh = (SaleFacadeHome)CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome", "SaleFacade");
   
    try{
      HttpSession session = request.getSession();
      UserObject userObject = (UserObject)session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();

      request.setAttribute("newProposal", new Boolean(true));
      ProposalListForm proposalListForm = (ProposalListForm)form;
     
      String oppId = request.getParameter("oppId");
      String oppTitle = request.getParameter("oppTitle");
     
      if ((oppId == null) && (oppTitle == null)) {
        oppId = (String)request.getAttribute("oppId");
        oppTitle = (String)request.getAttribute("oppTitle");
      }
     
      if ((oppId != null) && (oppTitle != null)) {
        proposalListForm.setOpportunityid(oppId);
        proposalListForm.setOpportunity(oppTitle);
        SaleFacade remote = (SaleFacade)sfh.create();
        remote.setDataSource(dataSource);
       
        int opportunityId = (new Integer(oppId)).intValue();
        OpportunityVO oppVO = remote.getOpportunity(individualID, opportunityId);
        proposalListForm.setIndividualid(String.valueOf(oppVO.getIndividualID()));
View Full Code Here

TOP

Related Classes of com.centraview.sale.salefacade.SaleFacadeHome

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.