package wenrgise.hrms.ejb.facade;

import java.sql.Timestamp;
import java.util.ArrayList;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import wenrgise.common.bean.BaseHeaderBean;
import wenrgise.common.exception.EnrgiseApplicationException;
import wenrgise.common.exception.EnrgiseSystemException;
import wenrgise.common.utility.RecordMetaInfo;
import wenrgise.common.utility.UserInfo;
import wenrgise.common.vo.LovQueryVO;
import wenrgise.common.vo.LovVO;
import wenrgise.hrms.bean.HrmTrngCalHdrBean;
import wenrgise.hrms.bean.HrmTrngCrsBudHdrBean;
import wenrgise.hrms.bean.HrmTrngCrsMstHdrBean;
import wenrgise.hrms.bean.HrmTrngEmpAttHdrBean;
import wenrgise.hrms.bean.HrmTrngEmpReqHdrBean;
import wenrgise.hrms.bean.HrmTrngFacBean;
import wenrgise.hrms.bean.HrmTrngFacTrngHdrBean;
import wenrgise.hrms.bean.HrmTrngInsCrsHdrBean;
import wenrgise.hrms.ejb.business.HrmTrngCalBO;
import wenrgise.hrms.ejb.business.HrmTrngCalCloseBO;
import wenrgise.hrms.ejb.business.HrmTrngCrsBudBO;
import wenrgise.hrms.ejb.business.HrmTrngCrsMstBO;
import wenrgise.hrms.ejb.business.HrmTrngEmpAttBO;
import wenrgise.hrms.ejb.business.HrmTrngEmpFdbkBO;
import wenrgise.hrms.ejb.business.HrmTrngEmpHistBO;
import wenrgise.hrms.ejb.business.HrmTrngEmpReqBO;
import wenrgise.hrms.ejb.business.HrmTrngFacBO;
import wenrgise.hrms.ejb.business.HrmTrngFacFdbkBO;
import wenrgise.hrms.ejb.business.HrmTrngFacTrngBO;
import wenrgise.hrms.ejb.business.HrmTrngInsCrsBO;
import wenrgise.hrms.vo.HrmTrngCalQVO;
import wenrgise.hrms.vo.HrmTrngCrsBudQVO;
import wenrgise.hrms.vo.HrmTrngCrsMstQVO;
import wenrgise.hrms.vo.HrmTrngEmpAttQVO;
import wenrgise.hrms.vo.HrmTrngEmpFbkQVO;
import wenrgise.hrms.vo.HrmTrngEmpHistQVO;
import wenrgise.hrms.vo.HrmTrngEmpReqQVO;
import wenrgise.hrms.vo.HrmTrngFacFdbkQVO;
import wenrgise.hrms.vo.HrmTrngFacQVO;
import wenrgise.hrms.vo.HrmTrngFacTrngQVO;
import wenrgise.hrms.vo.HrmTrngInsCrsQVO;

public class HrmTrainingFacadeBean implements SessionBean {
  SessionContext ctx;
  
  public void ejbCreate() {}
  
  public void ejbActivate() {}
  
  public void ejbPassivate() {}
  
  public void ejbRemove() {}
  
  public void setSessionContext(SessionContext ctx) {
    this.ctx = ctx;
  }
  
  public RecordMetaInfo getHrmTrngCrsHeaderMetaInfo(HrmTrngCrsMstQVO oHrmTrngCrsMstQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsMstBO oHrmTrngCrsMstBO = new HrmTrngCrsMstBO();
    return oHrmTrngCrsMstBO.getHrmTrngCrsHdrMetaInfo(oHrmTrngCrsMstQVO);
  }
  
  public ArrayList getHrmTrngCrsHeader(HrmTrngCrsMstQVO oHrmTrngCrsMstQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsMstBO oHrmTrngCrsMstBO = new HrmTrngCrsMstBO();
    return oHrmTrngCrsMstBO.getHrmTrngCrsHeaderInfo(oHrmTrngCrsMstQVO, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getHrmTrngCrsDetailMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsMstBO oHrmTrngCrsMstBO = new HrmTrngCrsMstBO();
    return oHrmTrngCrsMstBO.getHrmTrngCrsDetailMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getHrmTrngCrsDetail(String lPrimaryKey, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsMstBO oHrmTrngCrsMstBO = new HrmTrngCrsMstBO();
    return oHrmTrngCrsMstBO.getHrmTrngCrsDetail(lPrimaryKey, lStartPosition, lLastPosition);
  }
  
  public String saveData(HrmTrngCrsMstHdrBean oHrmTrngCrsMstHdrBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      HrmTrngCrsMstBO oHrmTrngCrsMstBO = new HrmTrngCrsMstBO();
      return oHrmTrngCrsMstBO.saveData((BaseHeaderBean)oHrmTrngCrsMstHdrBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public RecordMetaInfo getHrmTrngInsCrsHeaderMetaInfo(HrmTrngInsCrsQVO oHrmTrngInsCrsQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngInsCrsBO oHrmTrngInsCrsBO = new HrmTrngInsCrsBO();
    return oHrmTrngInsCrsBO.getHrmTrngInsCrsHdrMetaInfo(oHrmTrngInsCrsQVO);
  }
  
  public ArrayList getHrmTrngInsCrsHeader(HrmTrngInsCrsQVO oHrmTrngInsCrsQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngInsCrsBO oHrmTrngInsCrsBO = new HrmTrngInsCrsBO();
    return oHrmTrngInsCrsBO.getHrmTrngInsCrsHeaderInfo(oHrmTrngInsCrsQVO, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getHrmTrngInsCrsDetailMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngInsCrsBO oHrmTrngInsCrsBO = new HrmTrngInsCrsBO();
    return oHrmTrngInsCrsBO.getHrmTrngInsCrsDetailMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getHrmTrngInsCrsDetail(String lPrimaryKey, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngInsCrsBO oHrmTrngInsCrsBO = new HrmTrngInsCrsBO();
    return oHrmTrngInsCrsBO.getHrmTrngInsCrsDetail(lPrimaryKey, lStartPosition, lLastPosition);
  }
  
  public String saveData(HrmTrngInsCrsHdrBean oHrmTrngInsCrsHdrBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      HrmTrngInsCrsBO oHrmTrngInsCrsBO = new HrmTrngInsCrsBO();
      return oHrmTrngInsCrsBO.saveData((BaseHeaderBean)oHrmTrngInsCrsHdrBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public RecordMetaInfo getHrmTrngCrsBudHeaderMetaInfo(HrmTrngCrsBudQVO oHrmTrngCrsBudQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsBudBO oHrmTrngCrsBudBO = new HrmTrngCrsBudBO();
    return oHrmTrngCrsBudBO.getHrmTrngCrsBudHdrMetaInfo(oHrmTrngCrsBudQVO);
  }
  
  public ArrayList getHrmTrngCrsBudHeader(HrmTrngCrsBudQVO oHrmTrngCrsBudQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsBudBO oHrmTrngCrsBudBO = new HrmTrngCrsBudBO();
    return oHrmTrngCrsBudBO.getHrmTrngCrsBudHeaderInfo(oHrmTrngCrsBudQVO, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getHrmTrngCrsBudDetailMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsBudBO oHrmTrngCrsBudBO = new HrmTrngCrsBudBO();
    return oHrmTrngCrsBudBO.getHrmTrngCrsBudDtlMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getHrmTrngCrsBudDetail(String lPrimaryKey, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsBudBO oHrmTrngCrsBudBO = new HrmTrngCrsBudBO();
    return oHrmTrngCrsBudBO.getHrmTrngCrsBudDetailInfo(lPrimaryKey, lStartPosition, lLastPosition);
  }
  
  public String saveData(HrmTrngCrsBudHdrBean oHrmTrngCrsBudHdrBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      HrmTrngCrsBudBO oHrmTrngCrsBudBO = new HrmTrngCrsBudBO(oUserInfo);
      return oHrmTrngCrsBudBO.saveData((BaseHeaderBean)oHrmTrngCrsBudHdrBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public RecordMetaInfo getHrmTrngCalHeaderMetaInfo(HrmTrngCalQVO oHrmTrngCalQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalBO oHrmTrngCalBO = new HrmTrngCalBO();
    return oHrmTrngCalBO.getHrmTrngCalHdrMetaInfo(oHrmTrngCalQVO);
  }
  
  public ArrayList getHrmTrngCalHeader(HrmTrngCalQVO oHrmTrngCalQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalBO oHrmTrngCalBO = new HrmTrngCalBO();
    return oHrmTrngCalBO.getHrmTrngCalHeaderInfo(oHrmTrngCalQVO, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getHrmTrngCalDetailMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalBO oHrmTrngCalBO = new HrmTrngCalBO();
    return oHrmTrngCalBO.getHrmTrngCalDtlMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getHrmTrngCalDetail(String lPrimaryKey, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalBO oHrmTrngCalBO = new HrmTrngCalBO();
    return oHrmTrngCalBO.getHrmTrngCalDetailInfo(lPrimaryKey, lStartPosition, lLastPosition);
  }
  
  public boolean chkHrmTrnCalByRatingId(String sRatingId) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalBO oHrmTrngCalBO = new HrmTrngCalBO();
    return oHrmTrngCalBO.chkHrmTrnCalHdrByRatingIdCount(sRatingId);
  }
  
  public LovVO getHrmTrngCalInstLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalBO oHrmTrngCalBO = new HrmTrngCalBO();
    return oHrmTrngCalBO.getHrmTrngCalInstLOVdata(oLovQueryVO);
  }
  
  public LovVO getHrmTrngCalCrsCdLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalBO oHrmTrngCalBO = new HrmTrngCalBO();
    return oHrmTrngCalBO.getHrmTrngCalCrsCdLOVdata(oLovQueryVO);
  }
  
  public String saveData(HrmTrngCalHdrBean oHrmTrngCalHdrBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      HrmTrngCalBO oHrmTrngCalBO = new HrmTrngCalBO();
      return oHrmTrngCalBO.saveData((BaseHeaderBean)oHrmTrngCalHdrBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public RecordMetaInfo getHrmFacHeaderMetaInfo(HrmTrngFacQVO oHrmTrngFacQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacBO oHrmTrngFacBO = new HrmTrngFacBO();
    return oHrmTrngFacBO.getHrmFacHdrMetaInfo(oHrmTrngFacQVO);
  }
  
  public ArrayList getHrmFacHeader(HrmTrngFacQVO oHrmTrngFacQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacBO oHrmTrngFacBO = new HrmTrngFacBO();
    return oHrmTrngFacBO.getHrmFacHeaderInfo(oHrmTrngFacQVO, lStartPosition, lLastPosition);
  }
  
  public String saveData(HrmTrngFacBean oHrmTrngFacBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      HrmTrngFacBO oHrmTrngFacBO = new HrmTrngFacBO(oUserInfo);
      return oHrmTrngFacBO.saveData((BaseHeaderBean)oHrmTrngFacBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public RecordMetaInfo getHrmFacTrngHeaderMetaInfo(HrmTrngFacTrngQVO oHrmTrngFacTrngQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacTrngBO oHrmTrngFacTrngBO = new HrmTrngFacTrngBO();
    return oHrmTrngFacTrngBO.getHrmFacTrngHdrMetaInfo(oHrmTrngFacTrngQVO);
  }
  
  public ArrayList getHrmFacTrngHeader(HrmTrngFacTrngQVO oHrmTrngFacTrngQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacTrngBO oHrmTrngFacTrngBO = new HrmTrngFacTrngBO();
    return oHrmTrngFacTrngBO.getHrmFacTrngHeaderInfo(oHrmTrngFacTrngQVO, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getHrmFacTrngDetailMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacTrngBO oHrmTrngFacTrngBO = new HrmTrngFacTrngBO();
    return oHrmTrngFacTrngBO.getHrmFacTrngDtlMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getHrmFacTrngDetail(String lPrimaryKey, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacTrngBO oHrmTrngFacTrngBO = new HrmTrngFacTrngBO();
    return oHrmTrngFacTrngBO.getHrmFacTrngDetailInfo(lPrimaryKey, lStartPosition, lLastPosition);
  }
  
  public String saveData(HrmTrngFacTrngHdrBean oHrmTrngFacTrngHdrBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      HrmTrngFacTrngBO oHrmTrngFacTrngBO = new HrmTrngFacTrngBO();
      return oHrmTrngFacTrngBO.saveData((BaseHeaderBean)oHrmTrngFacTrngHdrBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public RecordMetaInfo getHrmEmpTrngReqHeaderMetaInfo(HrmTrngEmpReqQVO oHrmTrngEmpReqQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    return oHrmTrngEmpReqBO.getHrmEmpTrngReqHdrMetaInfo(oHrmTrngEmpReqQVO);
  }
  
  public ArrayList getHrmEmpTrngReqHeader(HrmTrngEmpReqQVO oHrmTrngEmpReqQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    return oHrmTrngEmpReqBO.getHrmEmpTrngReqHeaderInfo(oHrmTrngEmpReqQVO, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getHrmEmpReqDetailMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    return oHrmTrngEmpReqBO.getHrmEmpReqDetailMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getHrmEmpReqDetail(String lPrimaryKey, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    return oHrmTrngEmpReqBO.getHrmEmpReqDetail(lPrimaryKey, lStartPosition, lLastPosition);
  }
  
  public String approveEmpTrngReq(HrmTrngEmpReqHdrBean oHrmTrngEmpReqHdrBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO(oUserInfo);
      return oHrmTrngEmpReqBO.approveEmpTrngReq((BaseHeaderBean)oHrmTrngEmpReqHdrBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public String rejectEmpTrngReq(HrmTrngEmpReqHdrBean oHrmTrngEmpReqHdrBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO(oUserInfo);
      return oHrmTrngEmpReqBO.rejectEmpTrngReq((BaseHeaderBean)oHrmTrngEmpReqHdrBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public String submitEmpTrngReq(HrmTrngEmpReqHdrBean oHrmTrngEmpReqHdrBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO(oUserInfo);
      return oHrmTrngEmpReqBO.submitEmpTrngReq((BaseHeaderBean)oHrmTrngEmpReqHdrBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public LovVO getHrmTrgReqCalLOVData(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    return oHrmTrngEmpReqBO.getHrmTrgReqCalLOVData(oLovQueryVO);
  }
  
  public LovVO getHrmTrgReqRecoLOVData(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    return oHrmTrngEmpReqBO.getHrmTrgReqRecoLOVData(oLovQueryVO);
  }
  
  public LovVO getHrmTrgReqEmpLOVData(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    return oHrmTrngEmpReqBO.getHrmTrgReqEmpLOVData(oLovQueryVO);
  }
  
  public String saveData(HrmTrngEmpReqHdrBean oHrmTrngEmpReqHdrBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO(oUserInfo);
      return oHrmTrngEmpReqBO.saveData((BaseHeaderBean)oHrmTrngEmpReqHdrBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public RecordMetaInfo getHrmTrngEmpHistHeaderMetaInfo(HrmTrngEmpHistQVO oHrmTrngEmpHistQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpHistBO oHrmTrngEmpHistBO = new HrmTrngEmpHistBO();
    return oHrmTrngEmpHistBO.getHrmTrngEmpHistHdrMetaInfo(oHrmTrngEmpHistQVO);
  }
  
  public ArrayList getHrmTrngEmpHistHeader(HrmTrngEmpHistQVO oHrmTrngEmpHistQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpHistBO oHrmTrngEmpHistBO = new HrmTrngEmpHistBO();
    return oHrmTrngEmpHistBO.getHrmTrngEmpHistHeaderInfo(oHrmTrngEmpHistQVO, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getHrmTrngEmpHistDetailMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpHistBO oHrmTrngEmpHistBO = new HrmTrngEmpHistBO();
    return oHrmTrngEmpHistBO.getHrmTrngEmpHistDetailMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getHrmTrngEmpHistDetail(String lPrimaryKey, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpHistBO oHrmTrngEmpHistBO = new HrmTrngEmpHistBO();
    return oHrmTrngEmpHistBO.getHrmTrngEmpHistDetail(lPrimaryKey, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getHrmTrngEmpAttHeaderMetaInfo(HrmTrngEmpAttQVO oHrmTrngEmpAttQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpAttBO oHrmTrngEmpAttBusinessObject = new HrmTrngEmpAttBO();
    return oHrmTrngEmpAttBusinessObject.getHrmTrngEmpAttHdrMetaInfo(oHrmTrngEmpAttQueryVO);
  }
  
  public ArrayList getHrmTrngEmpAttHeader(HrmTrngEmpAttQVO oHrmTrngEmpAttQueryVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpAttBO oHrmTrngEmpAttBusinessObject = new HrmTrngEmpAttBO();
    return oHrmTrngEmpAttBusinessObject.getHrmTrngEmpAttHeaderInfo(oHrmTrngEmpAttQueryVO, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getHrmTrngEmpAttDetailMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpAttBO oHrmTrngEmpAttBusinessObject = new HrmTrngEmpAttBO();
    return oHrmTrngEmpAttBusinessObject.getHrmTrngEmpAttDetailMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getHrmTrngEmpAttDetail(String lPrimaryKey, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpAttBO oHrmTrngEmpAttBusinessObject = new HrmTrngEmpAttBO();
    return oHrmTrngEmpAttBusinessObject.getHrmTRngEmpAttDetail(lPrimaryKey, lStartPosition, lLastPosition);
  }
  
  public String saveHrmTrngEmpAtt(HrmTrngEmpAttHdrBean oHrmTrngEmpAttHdrBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpAttBO oHrmTrngEmpAttBusinessObject = new HrmTrngEmpAttBO();
    return oHrmTrngEmpAttBusinessObject.saveData((BaseHeaderBean)oHrmTrngEmpAttHdrBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
  }
  
  public LovVO getHrmTrngCalDetailLOVInfo(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacFdbkBO oHrmTrngFacFdbkBO = new HrmTrngFacFdbkBO();
    return new LovVO();
  }
  
  public LovVO getHrmFacNameLOVInfo(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacFdbkBO oHrmTrngFacFdbkBO = new HrmTrngFacFdbkBO();
    return new LovVO();
  }
  
  public RecordMetaInfo getHrmTrngFacFdbkDtlHdrMetaInfo(HrmTrngFacFdbkQVO oHrmTrngFacFdbkQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacFdbkBO oHrmTrngFacFdbkBO = new HrmTrngFacFdbkBO();
    return new RecordMetaInfo();
  }
  
  public ArrayList getHrmTrngFacFdbkDtlHdr(HrmTrngFacFdbkQVO oHrmTrngFacFdbkQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacFdbkBO oHrmTrngFacFdbkBO = new HrmTrngFacFdbkBO();
    return new ArrayList();
  }
  
  public RecordMetaInfo getHrmTrngFacFdBkDtlMetaInfo(HrmTrngFacFdbkQVO oHrmTrngFacFdbkQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacFdbkBO oHrmTrngFacFdbkBO = new HrmTrngFacFdbkBO();
    return new RecordMetaInfo();
  }
  
  public ArrayList getHrmTrngFacFdBkDetailInfo(HrmTrngFacFdbkQVO oHrmTrngFacFdbkQVO, long lDetailFirstPosition, long lDetailLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacFdbkBO oHrmTrngFacFdbkBO = new HrmTrngFacFdbkBO();
    return new ArrayList();
  }
  
  public RecordMetaInfo getHrmTrngFacFdBkNextDtlMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacFdbkBO oHrmTrngFacFdbkBO = new HrmTrngFacFdbkBO();
    return new RecordMetaInfo();
  }
  
  public ArrayList getHrmTrngFacFdBkNextDtl(String lPrimaryKey, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacFdbkBO oHrmTrngFacFdbkBO = new HrmTrngFacFdbkBO();
    return new ArrayList();
  }
  
  public LovVO getHrmTrngCourseLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpFdbkBO oHrmTrngEmpFdbkBO = new HrmTrngEmpFdbkBO();
    LovVO oLovVO = oHrmTrngEmpFdbkBO.getHrmTrngCourseLOV(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getHrmTrngFacultyLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpFdbkBO oHrmTrngEmpFdbkBO = new HrmTrngEmpFdbkBO();
    LovVO oLovVO = oHrmTrngEmpFdbkBO.getHrmTrngFacultyLOV(oLovQueryVO);
    return oLovVO;
  }
  
  public RecordMetaInfo getHrmTrngEmpFdBkDtlMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpFdbkBO oHrmTrngEmpFdbkBO = new HrmTrngEmpFdbkBO();
    return oHrmTrngEmpFdbkBO.getTrngEmpFdBkDetailMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getHrmTrngEmpFdBkDetailInfo(String lPrimaryKey, long lDetailFirstPosition, long lDetailLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpFdbkBO oHrmTrngEmpFdbkBO = new HrmTrngEmpFdbkBO();
    return oHrmTrngEmpFdbkBO.getTrngEmpFdBkDetail(lPrimaryKey, lDetailFirstPosition, lDetailLastPosition);
  }
  
  public RecordMetaInfo getHrmTrngEmpFbkHeaderMetaInfo(HrmTrngEmpFbkQVO oHrmTrngEmpFdbkQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpFdbkBO oHrmTrngEmpFdbkBO = new HrmTrngEmpFdbkBO();
    return oHrmTrngEmpFdbkBO.getHrmTrngEmpFbkHdrMetaInfo(oHrmTrngEmpFdbkQVO);
  }
  
  public ArrayList getHrmTrngEmpFbkHeader(HrmTrngEmpFbkQVO oHrmTrngEmpFdbkQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpFdbkBO oHrmTrngEmpFdbkBO = new HrmTrngEmpFdbkBO();
    return oHrmTrngEmpFdbkBO.getHrmTrngEmpFbkHeader(oHrmTrngEmpFdbkQVO, lStartPosition, lLastPosition);
  }
  
  public String saveData(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    try {
      if (sScreenName.equalsIgnoreCase("HrmTrngEmpFeedBack")) {
        HrmTrngEmpFdbkBO oHrmTrngEmpFdbkBO = new HrmTrngEmpFdbkBO(oUserInfo);
        return oHrmTrngEmpFdbkBO.saveData(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
      } 
      return new String("");
    } catch (EnrgiseSystemException oSysEx) {
      this.ctx.setRollbackOnly();
      throw oSysEx;
    } catch (EnrgiseApplicationException oAppEx) {
      this.ctx.setRollbackOnly();
      throw oAppEx;
    } 
  }
  
  public LovVO getHrmTrgMstBranchCodeLOVdataQmode(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsMstBO oTrngCourseMst = new HrmTrngCrsMstBO();
    LovVO oLovVO = oTrngCourseMst.getHrmTrgMstBranchCodeLOVdataQmode(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getHrmTrgInstCodeLOVdataQmode(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngInsCrsBO oTrngInstCode = new HrmTrngInsCrsBO();
    LovVO oLovVO = oTrngInstCode.getHrmTrgInstCodeLOVdataQmode(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getHrmTrgCourseLOVData(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngInsCrsBO oTrngInstCode = new HrmTrngInsCrsBO();
    LovVO oLovVO = oTrngInstCode.getHrmTrgCourseLOVData(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getHrmTrgReqCourseLOVData(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    LovVO oLovVO = oHrmTrngEmpReqBO.getHrmTrgReqCourseLOVData(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getHrmTrgCountryCodeLOVdataQmode(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngInsCrsBO oTrngCountryCode = new HrmTrngInsCrsBO();
    LovVO oLovVO = oTrngCountryCode.getHrmTrgCountryCodeLOVdataQmode(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getHrmTrgCityCodeLOVdataQmode(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngInsCrsBO oTrngCityCode = new HrmTrngInsCrsBO();
    LovVO oLovVO = oTrngCityCode.getHrmTrgCityCodeLOVdataQmode(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getHrmTrgFacMstEmpNoLOVNmode(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacBO oTrngFacMstEmpNoCode = new HrmTrngFacBO();
    LovVO oLovVO = oTrngFacMstEmpNoCode.getHrmTrgFacMstEmpNoLOVNmode(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getHrmTrgFacMstBaseInstLOVQmode(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacBO oTrngFacMstBaseInst = new HrmTrngFacBO();
    LovVO oLovVO = oTrngFacMstBaseInst.getHrmTrgFacMstBaseInstLOVQmode(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getHrmTrngBudCodeLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsBudBO oHrmTrngCrsBudBO = new HrmTrngCrsBudBO();
    return oHrmTrngCrsBudBO.getHrmTrngBudCodeLOVdata(oLovQueryVO);
  }
  
  public LovVO getHrmTrngBudCalendarCodeLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsBudBO oHrmTrngCrsBudBO = new HrmTrngCrsBudBO();
    return oHrmTrngCrsBudBO.getHrmTrngBudCalendarCodeLOVdata(oLovQueryVO);
  }
  
  public LovVO getHrmTrngBudCourseCodeLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsBudBO oHrmTrngCrsBudBO = new HrmTrngCrsBudBO();
    return oHrmTrngCrsBudBO.getHrmTrngBudCourseCodeLOVdata(oLovQueryVO);
  }
  
  public LovVO getHrmTrngCalNameLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsBudBO oHrmTrngCrsBudBO = new HrmTrngCrsBudBO();
    return oHrmTrngCrsBudBO.getHrmTrngCalNameLOVdata(oLovQueryVO);
  }
  
  public LovVO getHrmTrngSiteLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCrsBudBO oHrmTrngCrsBudBO = new HrmTrngCrsBudBO();
    return oHrmTrngCrsBudBO.getHrmTrngSiteLOVdata(oLovQueryVO);
  }
  
  public LovVO getHrmTrngCrsInsNameLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngInsCrsBO oHrmTrngInsCrsBO = new HrmTrngInsCrsBO();
    return oHrmTrngInsCrsBO.getHrmTrngCrsInsNameLOV(oLovQueryVO);
  }
  
  public LovVO getHrmClsCalCrsLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalBO oHrmTrngCalBO = new HrmTrngCalBO();
    return oHrmTrngCalBO.getHrmClsCalCrsLOV(oLovQueryVO);
  }
  
  public LovVO getHrmEmpHistEmpLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpHistBO oHrmTrngEmpHistBO = new HrmTrngEmpHistBO();
    return oHrmTrngEmpHistBO.getHrmEmpHistEmpLOV(oLovQueryVO);
  }
  
  public LovVO getHrmEmpHistCrsLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpHistBO oHrmTrngEmpHistBO = new HrmTrngEmpHistBO();
    return oHrmTrngEmpHistBO.getHrmEmpHistCrsLOV(oLovQueryVO);
  }
  
  public LovVO getHrmEmpHistCalLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpHistBO oHrmTrngEmpHistBO = new HrmTrngEmpHistBO();
    return oHrmTrngEmpHistBO.getHrmEmpHistCalLOV(oLovQueryVO);
  }
  
  public LovVO getHrmAttendanceDtlLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpHistBO oHrmTrngEmpHistBO = new HrmTrngEmpHistBO();
    return oHrmTrngEmpHistBO.getHrmAttendanceDtlLOV(oLovQueryVO);
  }
  
  public LovVO getHrmTrngFacultyLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngFacTrngBO oHrmTrngFacTrngBO = new HrmTrngFacTrngBO();
    return oHrmTrngFacTrngBO.getHrmTrngFacultyLOVdata(oLovQueryVO);
  }
  
  public LovVO getHrmTrngRatingLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalBO oHrmTrngCalBO = new HrmTrngCalBO();
    return oHrmTrngCalBO.getHrmTrngRatingLOVdata(oLovQueryVO);
  }
  
  public LovVO getHrmTrngFdbkRatingHelpLOVData(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpFdbkBO oHrmTrngEmpFdbkBO = new HrmTrngEmpFdbkBO();
    return new LovVO();
  }
  
  public LovVO getHrmCalCloseCrsNameLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalCloseBO oHrmTrngCalCloseBO = new HrmTrngCalCloseBO();
    LovVO oLovVO = oHrmTrngCalCloseBO.getHrmCalCloseCrsNameLOVdata(oLovQueryVO);
    return oLovVO;
  }
  
  public void calendarClose(String sCalId) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngCalCloseBO oHrmTrngCalCloseBO = new HrmTrngCalCloseBO();
    oHrmTrngCalCloseBO.calendarClose(sCalId);
  }
  
  public LovVO getEmpCodeLOVdataQ(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    LovVO oLovVO = oHrmTrngEmpReqBO.getEmpCodeLOVdataQ(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getEmpCodeLOVdataN(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    LovVO oLovVO = oHrmTrngEmpReqBO.getEmpCodeLOVdataN(oLovQueryVO);
    return oLovVO;
  }
  
  public String getGroupInfo(String oUserTypeId) throws EnrgiseApplicationException, EnrgiseSystemException {
    HrmTrngEmpReqBO oHrmTrngEmpReqBO = new HrmTrngEmpReqBO();
    String groupId = oHrmTrngEmpReqBO.getGroupInfo(oUserTypeId);
    return groupId;
  }
}
