Package com.centraview.hr.hrfacade

Examples of com.centraview.hr.hrfacade.HrFacadeHome


  //abstract
  public void  deleteElement( int indvID, String key ) throws CommunicationException,NamingException
  {
    //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);
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();
    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]);
View Full Code Here

    HttpSession session = request.getSession(true);
    if (session.getAttribute("highlightmodule") != null)
      session.setAttribute("highlightmodule", "hr");

    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)
      {
View Full Code Here

    String sOperationType = request.getParameter("TYPEOFOPERATION");

    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);
View Full Code Here

          int timesheetId = iTimeSheetId.intValue();
          int iNewTimeSheetId = saveForm();
          TimeSheetVO timeSheetVO=null;
          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)
          {
View Full Code Here

    try
    {
      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)
View Full Code Here

    TimeSheetVO timeSheetVO = timeSheetVOX.getTimeSheetVO();
    int timesheetID = 0;

    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);
    }
View Full Code Here

        String sDuration = sm.getDisplayString();

        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)
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    ExpenseFormVOX expenseFormVOX = new ExpenseFormVOX(userobject, dynaform);
    ExpenseFormVO expenseFormVO = expenseFormVOX.getExpenseFormVO();

    //    //ProjectFacadeHome pfh = (ProjectFacadeHome)CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome","ProjectFacade");
    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");
View Full Code Here


      int expenseFormID = Integer.parseInt((String)request.getParameter("rowId"));
      HrExpenseForm hrexpenseForm= new HrExpenseForm();
     
      HrFacadeHome hm = (HrFacadeHome)CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome","HrFacade");
      HrFacade remote =(HrFacade)hm.create();
      remote.setDataSource(dataSource);
     
      ExpenseFormVO expenseFormVO = remote.getExpenseFormVO(expenseFormID);
      hrexpenseForm.setExpenseFormID(0);
View Full Code Here

TOP

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

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.