Package com.centraview.sale.salefacade

Examples of com.centraview.sale.salefacade.SaleFacadeHome


    ProposalListForm proposallistform)
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    try
    {
      SaleFacadeHome sfh = (SaleFacadeHome) CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome",
          "SaleFacade");
      SaleFacade remote = (SaleFacade) sfh.create();
      remote.setDataSource(dataSource);
      remote.updateProposal(userid, proposallistform);
    }
    catch (Exception e)
    {
View Full Code Here


  public int saveList(int individualID, ProposalListForm proposallistform) throws CommunicationException, NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    int listid = 0;
    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(""))){
        billingAddressID = Integer.parseInt(proposallistform.getBillingaddressid());
View Full Code Here

    ActionMessages allErrors = new ActionMessages();

    int rowID = 0;
    int ownerId = userObject.getIndividualID();

    SaleFacadeHome mfh = (SaleFacadeHome)CVUtility.getHomeObject(
        "com.centraview.sale.salefacade.SaleFacadeHome", "SaleFacade");

    try {
      SaleFacade remote = mfh.create();
      remote.setDataSource(dataSource);

      OpportunityForm opportunityForm = (OpportunityForm)form;
      OpportunityVO opportunityVO = new OpportunityVO();
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

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

    // initialization of required parameter
    SaleFacadeHome sfh = (SaleFacadeHome) CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome",
        "SaleFacade");
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome) CVUtility.getHomeObject(
        "com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
    EmailFacadeHome emailFacade = (EmailFacadeHome) CVUtility.getHomeObject(
        "com.centraview.email.emailfacade.EmailFacadeHome", "EmailFacade");
    try {
      Boolean openAddItem = (request.getAttribute("openAddItem") == null) ? new Boolean(false) : (Boolean) request
          .getAttribute("openAddItem");
      request.setAttribute("openAddItem", openAddItem);

      int counter = 0;
      int row = 0;
      ItemLines itemLines = null;
      String viewOperation = (request.getParameter(ProposalConstantKeys.TYPEOFOPERATION) == null) ? "" : request
          .getParameter(ProposalConstantKeys.TYPEOFOPERATION);

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

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

      AccountFacade accountFacade = accountFacadeHome.create();
      accountFacade.setDataSource(dataSource);
      Vector taxJurisdiction = accountFacade.getTaxJurisdiction();
      proposallistform.setJurisdictionVec(taxJurisdiction);

      EmailFacade remoteEmail = emailFacade.create();
      remoteEmail.setDataSource(dataSource);
      String emailDisableFlag = "";

      boolean emailFlag = remoteEmail.checkEmailAccount(individualID);

      if (!emailFlag) {
        emailDisableFlag = "disabled= true";
      }
      request.setAttribute("emailDisableFlag", emailDisableFlag);

      if (!(viewOperation.equalsIgnoreCase(ProposalConstantKeys.REMOVEITEM) || viewOperation
          .equalsIgnoreCase(ProposalConstantKeys.ADDITEM))) {

        SaleFacade remote = sfh.create();
        remote.setDataSource(dataSource);

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

        itemLines = (ItemLines) hm.get("itemLines");
View Full Code Here

    } else {
      entityID = proposallistform.getEntityID();
    }

    AccountFacadeHome afh = (AccountFacadeHomeCVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
    SaleFacadeHome sfh = (SaleFacadeHome) CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome","SaleFacade");
   
    try  {
      SaleFacade saleRemote =(SaleFacade) sfh.create();
      saleRemote.setDataSource(dataSource);
     
      AccountFacade orderRemote = (AccountFacade) afh.create();
      orderRemote.setDataSource(dataSource);
      HashMap hm  = (HashMap) saleRemote.viewProposal(individualID, proposalID , proposallistform);
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 aa = (SaleFacadeHome) CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome", "SaleFacade");
    try
    {
      HttpSession session = request.getSession(true);
      int proposalid = 0;
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualId = userObject.getIndividualID();
      ProposalListForm pf = (ProposalListForm) form;
      proposalid = Integer.parseInt(pf.getProposalid());

      SaleFacade remote = (SaleFacade) aa.create();
      remote.setDataSource(dataSource);

      boolean b = remote.deleteProposal(individualId, proposalid);
      FORWARD_final = FORWARD_Proposal;
    }
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.