Files
HRMS/hrmsWeb/WEB-INF/classes/wenrgise/hrms/businessdelegate/HrmATDTransCnclOrderForSingleEmpBD.java
2025-07-28 13:56:49 +05:30

117 lines
5.8 KiB
Java

package WEB-INF.classes.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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmTransCnclOrderSingEmpHdrBean;
import wenrgise.hrms.businessdelegate.HrmBaseBD;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmATDTransCnclOrderSingleEmpQVO;
public class HrmATDTransCnclOrderForSingleEmpBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmEmpTrnsCnclOrderHdrMetaInfo((HrmATDTransCnclOrderSingleEmpQVO)oQueryVO, this.oUserInfo);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
ArrayList oHeaderList = oHrmThirdFacade.getHrmEmpTrnsCnclOrderHeaderInfo((HrmATDTransCnclOrderSingleEmpQVO)oQueryVO, lStartPosition, lLastPosition, this.oUserInfo);
return oHeaderList;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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 boolean checkHeaderTimestampImpl(String lHeaderPrimaryKey, Timestamp oWhenPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public boolean validateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public boolean insertHeaderRecordImpl(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 {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.saveData((HrmTransCnclOrderSingEmpHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmTransCnclOrderSingEmpHdrBean oHrmTransCnclOrderSingEmpHdrBean = (HrmTransCnclOrderSingEmpHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
arylstDisableList.add("butApproverNo");
arylstDisableList.add("orderNo");
}
if (!oHrmTransCnclOrderSingEmpHdrBean.equals(null))
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
arylstEnableList.add("butApproverNo");
arylstEnableList.add("orderNo");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
arylstDisableList.add("butApproverNo");
arylstDisableList.add("orderNo");
}
oHashMap.put("D", arylstDisableList);
oHashMap.put("E", arylstEnableList);
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();
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {}
}