Package com.centraview.printtemplate

Examples of com.centraview.printtemplate.PrintTemplate


      }

      PrintTemplateHome PTHome = (PrintTemplateHome) CVUtility.getHomeObject(
          "com.centraview.printtemplate.PrintTemplateHome", "Printtemplate");
      PrintTemplate PTRemote = PTHome.create();
      PTRemote.setDataSource(dataSource);

      PrintTemplateVO ptVO = PTRemote.getPrintTemplate(3);

      String ticketTemplate = ptVO.getPtData();

      Set listkey = Values.keySet();
      Iterator it1 = listkey.iterator();
View Full Code Here


      OpportunityVO opportunityVO  = remote.getOpportunity(individualID, iOpportunityId);
      OpportunityForm opportunityForm = new OpportunityForm();

      PrintTemplateHome PTHome = (PrintTemplateHome)CVUtility.getHomeObject("com.centraview.printtemplate.PrintTemplateHome", "Printtemplate");
      PrintTemplate PTRemote = PTHome.create();
      PTRemote.setDataSource(dataSource);
     
      PrintTemplateVO ptVO = (PrintTemplateVO)PTRemote.getPrintTemplate(2);

      String proposalCompose = ptVO.getPtData();

      //Setting the Proposal Name
      String title = proposallistform.getProposal();
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    String rowId[] = request.getParameterValues("rowId");
    int templateId = 0;
    try
    {
      PrintTemplate ejb = (PrintTemplate)CVUtility.setupEJB("Printtemplate", "com.centraview.printtemplate.PrintTemplateHome", dataSource);
      for (int i = 0; i < rowId.length; i++)
      {
        templateId = Integer.valueOf(rowId[i]).intValue();
        ejb.deletePT(templateId);
      }
    } catch (RemoteException re) {
      logger.error("[execute] Exception thrown deleting template: " + templateId, re);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown setting up the EJB.");
View Full Code Here

    int templateId = Integer.parseInt(request.getParameter("templateId"));
    // Get the detail from the EJB world ...
    PrintTemplateVO templateVO = null;
    Collection templateCategories = null;
    try {
      PrintTemplate remoteEJB = (PrintTemplate)CVUtility.setupEJB("Printtemplate", "com.centraview.printtemplate.PrintTemplateHome", dataSource);
      templateVO = remoteEJB.getPrintTemplate(templateId);
      templateCategories = remoteEJB.getCategories();
    } catch (Exception e) {
      throw new ServletException(e);
    }
    // ... and populate the DynaActionForm
    DynaActionForm templateForm = (DynaActionForm)form;
View Full Code Here

TOP

Related Classes of com.centraview.printtemplate.PrintTemplate

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.