Package com.centraview.hr.hrfacade

Examples of com.centraview.hr.hrfacade.HrFacade


    //call to EJB server
    int elementID = Integer.parseInt(key);
    HrFacadeHome hrFacadeHome = (HrFacadeHome)CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome","HrFacade");
    try
    {
      HrFacade remote =(HrFacade)hrFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.deleteTimeSheet(indvID,elementID);
      // TODO deleteTimeSheet user-rignts?
      this.setDirtyFlag(true);
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("TimeSheet");
    }
View Full Code Here


    ArrayList resultDeleteLog = new ArrayList();
    HrFacadeHome hrFacadeHome = (HrFacadeHome)CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome","HrFacade");
    try
    {
      //call to EJB server
      HrFacade remote =(HrFacade)hrFacadeHome.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]);
          try{
            remote.deleteTimeSheet(individualID,elementID);
            // TODO deleteTimeSheet user-rignts?
          }//end of try block
          catch(AuthorizationFailedException ae){
            String errorMessage = ae.getExceptionDescription();
            resultDeleteLog.add(errorMessage);
View Full Code Here

    userobjectd = (com.centraview.common.UserObject)session.getAttribute("userobject");
    HrFacadeHome aa = (HrFacadeHome)CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");
    try
    {
      HrFacade remote = (HrFacade)aa.create();
      remote.setDataSource(dataSource);
      int indvID = userobjectd.getIndividualID();
      String timeslipIds = (String)request.getParameter("timeslipIds");
      if (timeslipIds != null)
      {
          remote.deleteTimeSlip(indvID,timeslipIds);
      }
      Integer iTimeSheetId = (Integer)request.getAttribute("timesheetID");
      request.setAttribute("timesheetID", iTimeSheetId);
      returnStatus = ".view.success";
    }
View Full Code Here

    try
    {
      int indvID = userobjectd.getIndividualID();
      HrFacadeHome hrh = (HrFacadeHome)CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");
      HrFacade remote = (HrFacade)hrh.create();
      remote.setDataSource(dataSource);
      TimeSheetVO timeSheetVO = null;
      if (timeSheetId != 0)
        timeSheetVO = remote.getTimeSheet(timeSheetId);

      DynaValidatorForm dynaForm = (DynaValidatorForm)form;
      dynaForm.reset(mapping, request);
      if (timeSheetVO.getReportingTo() != null)
      {
View Full Code Here

          try
          {
            HrFacadeHome aa = (HrFacadeHome)
            CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");

            HrFacade remote = (HrFacade) aa.create();
            remote.setDataSource(dataSource);
            timeSheetVO = remote.getTimeSheet(iNewTimeSheetId);
          }
          catch (Exception e)
          {
            System.out.println("[Exception] AddTimeSheetHandler.execute: " + e.toString());
            e.printStackTrace();
View Full Code Here

      TimeSheetVOX timeSheetVOX = new TimeSheetVOX(userobjectd, dynaValidatorForm);
      TimeSheetVO timeSheetVO = timeSheetVOX.getTimeSheetVO();

      HrFacadeHome aa = (HrFacadeHome)
      CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");
      HrFacade remote = (HrFacade) aa.create();
      remote.setDataSource(dataSource);
      int indvID = userobjectd.getIndividualID();
      timesheetID = remote.addTimeSheet(indvID, timeSheetVO);
    }
    catch (Exception e)
    {
      System.out.println("[Exception] AddTimeSheetHandler.saveForm: " + e.toString());
      e.printStackTrace();
View Full Code Here

    try
    {
      HrFacadeHome aa = (HrFacadeHome)
      CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");
      HrFacade remote = (HrFacade) aa.create();
      remote.setDataSource(dataSource);

      int indvID = userobjectd.getIndividualID();
      remote.updateTimeSheet(indvID, timeSheetVO);
    }
    catch (Exception e)
    {
      System.out.println("[Exception] AddTimeSheetHandler.updateForm: " + e.toString());
      e.printStackTrace();
View Full Code Here

        try
        {
          HrFacadeHome aa = (HrFacadeHome)
          CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");
          HrFacade remote = (HrFacade) aa.create();
          remote.setDataSource(dataSource);
          int indvID = userobjectd.getIndividualID();
          int iNewTimeSlipId = remote.addTimeSlip(indvID, hrtsvo);
        }
        catch (Exception e)
        {
          System.out.println("[Exception] AddTimeSheetHandler.duplicateTimeSlipRecords: " + e.toString());
          e.printStackTrace();
View Full Code Here

    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();
    String rowId[] = request.getParameterValues("rowId");
    try {
      HrFacade ejb = (HrFacade)CVUtility.setupEJB("HrFacade", "com.centraview.hr.hrfacade.HrFacadeHome", dataSource);
      for (int i=0; i<rowId.length; i++) {
        if(rowId[i] != null && !rowId[i].equals("")) {
          int elementId = Integer.parseInt(rowId[i]);
          ejb.deleteTimeSheet(individualId, elementId);
        }
      }
    } catch(Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new CommunicationException(e.getMessage());
View Full Code Here

    HrFacadeHome hfh = (HrFacadeHome)
      CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");

    try
    {
      HrFacade remote = (HrFacade) hfh.create();
      remote.setDataSource(dataSource);
      remote.createExpense(expenseFormVO, indvID);

      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("hr");

      return true;
View Full Code Here

TOP

Related Classes of com.centraview.hr.hrfacade.HrFacade

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.