Package com.centraview.account.accountfacade

Examples of com.centraview.account.accountfacade.AccountFacadeHome


  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();

    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      InvoiceForm invoiceForm = (InvoiceForm)form;

      HttpSession session = request.getSession(true);
      UserObject  userobjectd = (UserObject)session.getAttribute( "userobject" );
      int individualID = userobjectd.getIndividualID();
      session.setAttribute("highlightmodule", "account");

      request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.INVOICE);
      request.setAttribute("body",AccountConstantKeys.ADD );

      int invoiceID = 0;
      String invoiceIDStr = (String)request.getParameter("rowId");
      if(invoiceIDStr != null && !invoiceIDStr.equals(""))
        invoiceID  = Integer.parseInt(invoiceIDStr);

      // for getting data from EJB
      AccountFacade remote =(AccountFacade)accountFacadeHome.create();
      remote.setDataSource(dataSource);

      Vector taxJurisdiction = remote.getTaxJurisdiction();

      InvoiceVO vo = remote.getInvoiceVO(invoiceID,individualID);
View Full Code Here


   * @param   key 
   */
  public void  deleteElement( int indvID, String key )throws CommunicationException,NamingException
  {
    int elementID = Integer.parseInt(key);
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      AccountFacade remote =(AccountFacade)accountFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.deletePurchaseOrder(elementID,indvID);
    }
    catch(Exception e)
    {
View Full Code Here

    * @return resultDeleteLog A Collection of the Error Message while deleting a particular record.
    */
  public ArrayList deleteElement(int individualID, String recordID[]) throws CommunicationException,NamingException,RemoteException
  {
    ArrayList resultDeleteLog = new ArrayList();
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      //call to EJB server
      AccountFacade remote =(AccountFacade)accountFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
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();

    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      PurchaseOrderForm purchaseForm = (PurchaseOrderForm)form;
      purchaseForm.convertItemLines();

      ItemLines itemLines = null;

      HttpSession session = request.getSession(true);
      UserObject  userobjectd = (UserObject)session.getAttribute( "userobject" );//get the user object
      int individualID = userobjectd.getIndividualID();

      request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.PURCHASEORDER);

      request.setAttribute("body",AccountConstantKeys.EDIT);

      String typeOfOperation = request.getParameter(AccountConstantKeys.TYPEOFOPERATION);

      if ( typeOfOperation != null &&  typeOfOperation.equals("ShowPurchaseOrder"))
      {
        int purchaseID = 0;
        String purchaseIDStr = (String)request.getParameter("rowId");

        if(purchaseIDStr != null && !purchaseIDStr.equals(""))
          purchaseID  = Integer.parseInt(purchaseIDStr);

        // for getting data from EJB
        AccountFacade remote =(AccountFacade)accountFacadeHome.create();
        remote.setDataSource(dataSource);

        PurchaseOrderVO vo = remote.getPurchaseOrderVO(purchaseID,individualID);

        purchaseForm.setPurchaseOrderid(vo.getPurchaseOrderId()+"");
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();

    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      PurchaseOrderForm purchaseForm = (PurchaseOrderForm)form;
      purchaseForm.convertItemLines();

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


      String typeOfSave = "saveclose";

      if (request.getParameter("buttonpress") != null)
        typeOfSave = request.getParameter("buttonpress");

      AccountFacade remote = (AccountFacade)accountFacadeHome.create();
      remote.setDataSource(dataSource);

      PurchaseOrderVOX vox  = new PurchaseOrderVOX(purchaseForm);
      PurchaseOrderVO vo = vox.getVO();
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    HttpSession session = request.getSession(true);
    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();
    String rowId[] = request.getParameterValues("rowId");
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      AccountFacade remote = (AccountFacade)accountFacadeHome.create();
      remote.setDataSource(dataSource);
      for (int i=0; i<rowId.length; i++)
      {
        if(rowId[i] != null && !rowId[i].equals(""))
        {
View Full Code Here

  }

  public OrderForm saveNewOrder(HttpServletRequest req,
    HttpServletResponse res, OrderForm of, int individualID, String dataSource) throws CommunicationException, NamingException
  {
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)
        CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
    try
    {
        AccountFacade remote = (AccountFacade) accountFacadeHome.create();
        remote.setDataSource(dataSource);
      int jurisdictionID = 0;
      int billingAddressID = 0;
      if(of.getJurisdictionID() != null && !((of.getJurisdictionID()).equals(""))){
        jurisdictionID = (of.getJurisdictionID()).intValue();
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();
   
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
   
    try {
      String listId = request.getParameter("listId");
      if (listId == null) {
        listId = (String)request.getAttribute("listId");
      }
     
      HttpSession session = request.getSession();
      UserObject userobjectd = (UserObject)session.getAttribute("userobject");
      int individualID = userobjectd.getIndividualID();
      session.setAttribute("highlightmodule", "account");

      request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.ORDER);
      request.setAttribute("body", AccountConstantKeys.EDIT);

      AccountFacade remote = (AccountFacade)accountFacadeHome.create();
      remote.setDataSource(dataSource);

      Vector taxJurisdiction = remote.getTaxJurisdiction();

      // ItemList Handling start
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    HttpSession session = request.getSession(true);
    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();
    String rowId[] = request.getParameterValues("rowId");
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      AccountFacade remote = (AccountFacade)accountFacadeHome.create();
      remote.setDataSource(dataSource);
      for (int i=0; i<rowId.length; i++)
      {
        if(rowId[i] != null && !rowId[i].equals(""))
        {
View Full Code Here

  {

    if (key != null)
    {
      int  expID = Integer.parseInt(key);
      AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
      try
      {
        AccountFacade remote =(AccountFacade)accountFacadeHome.create();
        remote.setDataSource(this.dataSource);

        remote.deleteExpense(expID,indvID);
      } catch (Exception e)
      {
View Full Code Here

TOP

Related Classes of com.centraview.account.accountfacade.AccountFacadeHome

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.