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.WflDelegationMstBO;
import wenrgise.workflow.vo.WflDelegationQVO;

public class WflDelegateMstFacadeBean implements SessionBean {
  public void ejbCreate() {}
  
  public void ejbActivate() {}
  
  public void ejbPassivate() {}
  
  public void ejbRemove() {}
  
  public void setSessionContext(SessionContext ctx) {}
  
  public RecordMetaInfo getWflDelegationHdrMetaInfo(WflDelegationQVO oWflDelegationQVO, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    WflDelegationMstBO oWflDelegationMstBO = new WflDelegationMstBO(oUserInfo);
    return oWflDelegationMstBO.getWflDelegationHdrMetaInfo(oWflDelegationQVO);
  }
  
  public ArrayList getWflDelegationHdrInfo(WflDelegationQVO oWflDelegationQVO, long lStartPosition, long lLastPosition, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    WflDelegationMstBO oWflDelegationMstBO = new WflDelegationMstBO(oUserInfo);
    return oWflDelegationMstBO.getWflDelegationHdrInfo(oWflDelegationQVO, lStartPosition, lLastPosition);
  }
  
  public RecordMetaInfo getWflDelegationDtlMetaInfo(String lPrimaryKey, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    WflDelegationMstBO oWflDelegationMstBO = new WflDelegationMstBO(oUserInfo);
    return oWflDelegationMstBO.getWflDelegationDtlMetaInfo(lPrimaryKey);
  }
  
  public ArrayList getWflDelegationDtlInfo(String lPrimaryKey, long lStartPosition, long lLastPosition, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    WflDelegationMstBO oWflDelegationMstBO = new WflDelegationMstBO(oUserInfo);
    return oWflDelegationMstBO.getWflDelegationDtlInfo(lPrimaryKey, lStartPosition, lLastPosition);
  }
  
  public String saveWflDelegation(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked, UserInfo oUserInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
    WflDelegationMstBO oWflDelegationMstBO = new WflDelegationMstBO(oUserInfo);
    return oWflDelegationMstBO.saveData(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
  }
  
  public LovVO getWflDtlDocTypeLOVdata(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    WflDelegationMstBO oWflDelegationMstBO = new WflDelegationMstBO();
    LovVO oLovVO = oWflDelegationMstBO.getWflDtlDocTypeLOVdata(oLovQueryVO);
    return oLovVO;
  }
}
