Package com.centraview.hr.hrfacade

Examples of com.centraview.hr.hrfacade.HrFacade


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

        DL = remote.getEmployeeDetailList(userID, hm);

        DL.setSortMember(sortColumn);
        DL.setListType("Employee");
        DL.setDirtyFlag(false);
View Full Code Here


        hm.put("EndAtparam", new Integer(EndAt));
        hm.put("searchString", searchString);
        hm.put("sortmem", sortColumn);
        hm.put("sortType", new Character('A'));

        HrFacade remote = (HrFacade)aa.create();
        remote.setDataSource(this.dataSource);
        DL = remote.getTimeSheetList(individualID, hm);
        DL.setSortMember(sortColumn);
        DL.setListType("TimeSheet");
        DL.setDirtyFlag(false);
        DL.setTotalNoOfRecords(DL.size());
      } catch (Exception e) {
View Full Code Here

    if (searchString.equals("") || searchString.startsWith("SIMPLE :")) {
      try {
        HrFacadeHome aa = (HrFacadeHome)CVUtility.getHomeObject(
            "com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");

        HrFacade remote = (HrFacade)aa.create();
        remote.setDataSource(this.dataSource);
        DL = remote.getTimeSheetList(individualID, hm);
        DL.setTotalNoOfRecords(DL.size());
        DL.setListType("TimeSheet");
        DL.setDirtyFlag(false);
      } catch (Exception e) {
        System.out.println("ListGenerator::getTimeSheetList" + e);
      }
      TimeSheetList DL1 = new TimeSheetList();
      DL1.setSortMember(DL2.getSortMember());
      DL1.setSortType(DL2.getSortType());
      DL1.setStartAT(DL2.getStartAT());
      DL1.setEndAT(DL2.getEndAT());
      DL1.setSearchString(searchString);
      DL1.setListType("TimeSheet");

      int beginIndex = 0;
      int endIndex = 0;

      int tnorec = DL.size();

      if (tnorec > EndAt) {
        if (tnorec > EndAt + 100)
          beginIndex = startAT - 100;
        if (beginIndex < 1)
          beginIndex = 1;
        endIndex = EndAt + 100;
      } else {

        beginIndex = 1;
        endIndex = EndAt;
      }

      DL1.setBeginIndex(beginIndex);
      DL1.setEndIndex(endIndex);

      // search String

      // ****** sort
      DL1 = (TimeSheetList)this.Sort(DL1, DL);

      DL1.setSearchString(searchString);
      if (!searchString.equals(""))
        DL1.search();

      DL1.setListID(DLparam.getListID());
      DL1.setTotalNoOfRecords(DL1.size());
      DL1.setBeginIndex(1);
      DL1.setEndIndex(DL1.size());

      DL2.setBeginIndex(0);
      DL2.setEndIndex(0);
      DL2.setSearchString(searchString);
      displayLists.put(new Long(DLparam.getListID()), DL2);
      return DL1;
    }// end of "" or SIMPLE :
    else // for ADVANCE:
    {
      String powerString = DLparam.getPowerString();
      try {
        HrFacadeHome aa = (HrFacadeHome)CVUtility.getHomeObject(
            "com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");
        hm.put("ADVANCESEARCHSTRING", searchString);
        HrFacade remote = (HrFacade)aa.create();
        remote.setDataSource(this.dataSource);

        DL = remote.getTimeSheetList(individualID, hm);
        DL.setTotalNoOfRecords(DL.size());
        DL.setListType("TimeSheet");
        DL.setDirtyFlag(false);
      } catch (Exception e) {
        System.out.println("ListGenerator::getTimeSheetList" + e);
View Full Code Here

        hm.put("EndAtparam", new Integer(EndAt));
        hm.put("searchString", searchString);
        hm.put("sortmem", sortColumn);
        hm.put("sortType", new Character('A'));

        HrFacade remote = (HrFacade)aa.create();
        remote.setDataSource(this.dataSource);
        DL = remote.getExpenseFormList(individualID, hm);
        DL.setSortMember(sortColumn);
        DL.setListType("Expenses");
        DL.setDirtyFlag(false);
        DL.setTotalNoOfRecords(DL.size());
      } catch (Exception e) {
View Full Code Here

    if (searchString.equals("") || searchString.startsWith("SIMPLE :")) {
      try {
        HrFacadeHome aa = (HrFacadeHome)CVUtility.getHomeObject(
            "com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");

        HrFacade remote = (HrFacade)aa.create();
        remote.setDataSource(this.dataSource);
        DL = remote.getExpenseFormList(individualID, hm);
        DL.setTotalNoOfRecords(DL.size());
        DL.setListType("Expenses");
        DL.setDirtyFlag(false);
      } catch (Exception e) {
        System.out.println("ListGenerator::getExpensesList" + e);
      }
      ExpenseFormList DL1 = new ExpenseFormList();
      DL1.setSortMember(DL2.getSortMember());
      DL1.setSortType(DL2.getSortType());
      DL1.setStartAT(DL2.getStartAT());
      DL1.setEndAT(DL2.getEndAT());
      DL1.setSearchString(searchString);
      DL1.setListType("Expenses");

      int beginIndex = 0;
      int endIndex = 0;

      int tnorec = DL.size();

      if (tnorec > EndAt) {
        if (tnorec > EndAt + 100)
          beginIndex = startAT - 100;
        if (beginIndex < 1)
          beginIndex = 1;
        endIndex = EndAt + 100;
      } else {

        beginIndex = 1;
        endIndex = EndAt;
      }

      DL1.setBeginIndex(beginIndex);
      DL1.setEndIndex(endIndex);

      // search String

      // ****** sort
      DL1 = (ExpenseFormList)this.Sort(DL1, DL);

      DL1.setSearchString(searchString);
      if (!searchString.equals(""))
        DL1.search();

      DL1.setListID(DLparam.getListID());
      DL1.setTotalNoOfRecords(DL1.size());
      DL1.setBeginIndex(1);
      DL1.setEndIndex(DL1.size());

      DL2.setBeginIndex(0);
      DL2.setEndIndex(0);
      DL2.setSearchString(searchString);
      displayLists.put(new Long(DLparam.getListID()), DL2);
      return DL1;
    }// end of "" or SIMPLE :
    else // for ADVANCE:
    {
      String powerString = DLparam.getPowerString();
      try {
        HrFacadeHome aa = (HrFacadeHome)CVUtility.getHomeObject(
            "com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");
        hm.put("ADVANCESEARCHSTRING", searchString);
        HrFacade remote = (HrFacade)aa.create();
        remote.setDataSource(this.dataSource);

        DL = remote.getExpenseFormList(individualID, hm);
        DL.setTotalNoOfRecords(DL.size());
        DL.setListType("Expenses");
        DL.setDirtyFlag(false);
      } catch (Exception e) {
        System.out.println("ListGenerator::getExpensesList" + e);
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.