package wenrgise.workflow.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.workflow.ejb.business.WFLDtlDocActivityMapBO;
import wenrgise.workflow.vo.WflDtlDocActivityMapQVO;

public class WflDtlDocActivityMapFacadeBean implements SessionBean {
  public void ejbCreate() {}
  
  public void ejbActivate() {}
  
  public void ejbPassivate() {}
  
  public void ejbRemove() {}
  
  public void setSessionContext(SessionContext ctx) {}
  
  public RecordMetaInfo getWFLDtlDocActivityHdrMetaInfo(WflDtlDocActivityMapQVO oWflDtlDocActivityMapQVO, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    WFLDtlDocActivityMapBO oWFLDtlDocActivityMapBO = new WFLDtlDocActivityMapBO(oUserInfo);
    return oWFLDtlDocActivityMapBO.getWFLDtlDocActivityHdrMetaInfo(oWflDtlDocActivityMapQVO);
  }
  
  public ArrayList getWFLDtlDocActivityHdrInfo(WflDtlDocActivityMapQVO oWflDtlDocActivityMapQVO, long lStartPosition, long lLastPosition, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    WFLDtlDocActivityMapBO oWFLDtlDocActivityMapBO = new WFLDtlDocActivityMapBO(oUserInfo);
    return oWFLDtlDocActivityMapBO.getWFLDtlDocActivityHdrInfo(oWflDtlDocActivityMapQVO, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getWFLDtlDocActivityDtlMetaInfo(String lPrimaryKey, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    WFLDtlDocActivityMapBO oWFLDtlDocActivityMapBO = new WFLDtlDocActivityMapBO(oUserInfo);
    return oWFLDtlDocActivityMapBO.getWFLDtlDocActivityDtlMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getWFLDtlDocActivityDtlInfo(String lPrimaryKey, long lStartPosition, long lLastPosition, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    WFLDtlDocActivityMapBO oWFLDtlDocActivityMapBO = new WFLDtlDocActivityMapBO(oUserInfo);
    return oWFLDtlDocActivityMapBO.getWFLDtlDocActivityDtlInfo(lPrimaryKey, lStartPosition, lLastPosition);
  }
  
  public String saveWflDtlDocActivityMst(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    WFLDtlDocActivityMapBO oWFLDtlDocActivityMapBO = new WFLDtlDocActivityMapBO();
    return oWFLDtlDocActivityMapBO.saveData(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
  }
  
  public LovVO getWflMapCodeLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    WFLDtlDocActivityMapBO oWFLDtlDocActivityMapBO = new WFLDtlDocActivityMapBO();
    LovVO oLovVO = oWFLDtlDocActivityMapBO.getWflMapCodeLOVdata(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getWflDocCodeDtlLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    WFLDtlDocActivityMapBO oWFLDtlDocActivityMapBO = new WFLDtlDocActivityMapBO();
    LovVO oLovVO = oWFLDtlDocActivityMapBO.getWflDocCodeDtlLOVdata(oLovQueryVO);
    return oLovVO;
  }
  
  public LovVO getWflActCodeLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    WFLDtlDocActivityMapBO oWFLDtlDocActivityMapBO = new WFLDtlDocActivityMapBO();
    LovVO oLovVO = oWFLDtlDocActivityMapBO.getWflActCodeLOVdata(oLovQueryVO);
    return oLovVO;
  }
}
