first commit
This commit is contained in:
110
hrmsEjb/wenrgise/hrms/businessdelegate/HrmLvCancQueryBD.java
Normal file
110
hrmsEjb/wenrgise/hrms/businessdelegate/HrmLvCancQueryBD.java
Normal file
@@ -0,0 +1,110 @@
|
||||
package wenrgise.hrms.businessdelegate;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import javax.ejb.CreateException;
|
||||
import wenrgise.common.bean.BaseHeaderBean;
|
||||
import wenrgise.common.exception.EnrgiseApplicationException;
|
||||
import wenrgise.common.exception.EnrgiseSystemException;
|
||||
import wenrgise.common.utility.EnrgiseUtil;
|
||||
import wenrgise.common.utility.RecordMetaInfo;
|
||||
import wenrgise.common.vo.BaseQueryVO;
|
||||
import wenrgise.common.vo.ThisPageVO;
|
||||
import wenrgise.ejb.common.utility.ServiceLocator;
|
||||
import wenrgise.hrms.bean.HrmLvCancQueryHdrBean;
|
||||
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
|
||||
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
|
||||
import wenrgise.hrms.vo.HrmLvCancQueryQVO;
|
||||
|
||||
public class HrmLvCancQueryBD extends HrmBaseBD {
|
||||
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
|
||||
try {
|
||||
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
|
||||
HrmSecondFacade oHrmSecondFacade = oHome.create();
|
||||
return oHrmSecondFacade.getHrmLeaveCanQueryDtlMetaInfo((HrmLvCancQueryQVO)oBaseQueryVO);
|
||||
} catch (RemoteException oRe) {
|
||||
throw new EnrgiseSystemException(oRe);
|
||||
} catch (CreateException oCrt) {
|
||||
throw new EnrgiseSystemException(oCrt);
|
||||
}
|
||||
}
|
||||
|
||||
public ArrayList getDetailRecordImpl(BaseQueryVO oBaseQueryVO, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
|
||||
try {
|
||||
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
|
||||
HrmSecondFacade oHrmSecondFacade = oHome.create();
|
||||
if (sScreenName.equalsIgnoreCase("HrmEmployeeLeaveCancellationQueryScreen"))
|
||||
return oHrmSecondFacade.getHrmLeaveCanQueryDetailInfo((HrmLvCancQueryQVO)oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
|
||||
return null;
|
||||
} catch (RemoteException oRe) {
|
||||
throw new EnrgiseSystemException(oRe);
|
||||
} catch (CreateException oCrt) {
|
||||
throw new EnrgiseSystemException(oCrt);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
|
||||
return true;
|
||||
}
|
||||
|
||||
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
|
||||
return "no Save";
|
||||
}
|
||||
|
||||
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
|
||||
return "Only Implementation";
|
||||
}
|
||||
|
||||
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
|
||||
RecordMetaInfo oRecordMetaInfo = null;
|
||||
return oRecordMetaInfo;
|
||||
}
|
||||
|
||||
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
|
||||
ArrayList oRet = null;
|
||||
return oRet;
|
||||
}
|
||||
|
||||
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
|
||||
RecordMetaInfo oRecordMetaInfo = null;
|
||||
return oRecordMetaInfo;
|
||||
}
|
||||
|
||||
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
|
||||
ArrayList oRet = null;
|
||||
return oRet;
|
||||
}
|
||||
|
||||
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
|
||||
HashMap oHashMap = new HashMap();
|
||||
ArrayList oEnableList = new ArrayList();
|
||||
ArrayList oDisableList = new ArrayList();
|
||||
HrmLvCancQueryHdrBean oHrmLvCancQueryHdrBean = (HrmLvCancQueryHdrBean)oThisPageVO.getOHeaderBean();
|
||||
if (!oHrmLvCancQueryHdrBean.equals(null))
|
||||
if (EnrgiseUtil.checkString(oHrmLvCancQueryHdrBean.getEmployeeNumber()))
|
||||
if (!String.valueOf(oHrmLvCancQueryHdrBean.getEmployeeNumber()).equalsIgnoreCase(null)) {
|
||||
oEnableList.add("butGetDetail");
|
||||
} else {
|
||||
oDisableList.add("butGetDetail");
|
||||
}
|
||||
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
|
||||
oDisableList.add("butQuery");
|
||||
oDisableList.add("butAddRow");
|
||||
oDisableList.add("butDelRow");
|
||||
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
|
||||
oEnableList.add("butQuery");
|
||||
oDisableList.add("butAddRow");
|
||||
oDisableList.add("butDelRow");
|
||||
}
|
||||
oHashMap.put("D", oDisableList);
|
||||
oHashMap.put("E", oEnableList);
|
||||
return oHashMap;
|
||||
}
|
||||
|
||||
public String submitImpl(String sButtonName, BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
|
||||
return new String("");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user